File: deprecated-constant-data.patch

package info (click to toggle)
ruby-soap4r 2.0.5-5
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 4,972 kB
  • sloc: ruby: 52,729; xml: 266; sh: 42; javascript: 20; perl: 10; makefile: 9
file content (18 lines) | stat: -rw-r--r-- 731 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
Description: remove deprecated constant ::Data
  Its presence emits a warning with ruby2.7
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=954775
Forwarded: https://github.com/noeticpenguin/soap4r-noeticpenguin/pull/14
Author: Cédric Boutillier <boutil@debian.org>
Last-Update: 2020-07-10

--- a/lib/soap/mapping/rubytypeFactory.rb
+++ b/lib/soap/mapping/rubytypeFactory.rb
@@ -193,7 +193,7 @@
         param.add('member', ele_member)
         addiv2soapattr(param, obj, map)
       end
-    when ::IO, ::Binding, ::Data, ::Dir, ::File::Stat,
+    when ::IO, ::Binding, ::Dir, ::File::Stat,
         ::MatchData, Method, ::Proc, ::Process::Status, ::Thread,
         ::ThreadGroup, ::UnboundMethod
       return nil