soap4r-ng 2.0.4 → 2.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/soap/baseData.rb +1 -1
- data/lib/soap/generator.rb +9 -1
- data/lib/soap/version.rb +1 -1
- data/lib/xsd/charset.rb +4 -4
- metadata +6 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7ee42117a6f0c89fd3dbf5a3fb81a4953dcb4ab6a6a0b7b17d701fd4a1df5692
|
4
|
+
data.tar.gz: 9c1cd45b938b7763bf30fd62670bf2119054129f44b2cb86f9c421e7ba8e7861
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c967b100a580ee46c0b4825579f4c195a292f22764ecb18789c447d12572f30de45c051d4a5ad7a2dc9bab72d73520e63c5ca23877998b706bb6a8797c267aff
|
7
|
+
data.tar.gz: cc8c9af693fff6f4c3e88e66cc4ed489f05e9b98e8edee3f2a7c1568f956b552be1dadb2738ded70e14a273ffff1054927f79b49997f4052fcb6872a8ad3c443
|
data/lib/soap/baseData.rb
CHANGED
@@ -1080,7 +1080,7 @@ private
|
|
1080
1080
|
"#{typename}[" << ',' * (rank - 1) << ']'
|
1081
1081
|
end
|
1082
1082
|
|
1083
|
-
TypeParseRegexp = Regexp.new('^(.+)\[([\d,]*)\]$',
|
1083
|
+
TypeParseRegexp = Regexp.new('^(.+)\[([\d,]*)\]$', Regexp::NOENCODING)
|
1084
1084
|
|
1085
1085
|
def self.parse_type(string)
|
1086
1086
|
TypeParseRegexp =~ string
|
data/lib/soap/generator.rb
CHANGED
@@ -270,7 +270,15 @@ private
|
|
270
270
|
end
|
271
271
|
|
272
272
|
def get_encode_char_regexp
|
273
|
-
ENCODE_CHAR_REGEXP[XSD::Charset.encoding] ||=
|
273
|
+
ENCODE_CHAR_REGEXP[XSD::Charset.encoding] ||= begin
|
274
|
+
if RUBY_VERSION.to_f <= 1.8
|
275
|
+
Regexp.new("[#{EncodeMap.keys.join}]", nil, XSD::Charset.encoding)
|
276
|
+
elsif RUBY_VERSION.to_f < 3.3
|
277
|
+
Regexp.new("[#{EncodeMap.keys.join}]", nil, nil) # RubyJedi: compatible with Ruby 1.8.6 and above
|
278
|
+
else
|
279
|
+
Regexp.new("[#{EncodeMap.keys.join}]")
|
280
|
+
end
|
281
|
+
end
|
274
282
|
end
|
275
283
|
|
276
284
|
def find_handler(encodingstyle)
|
data/lib/soap/version.rb
CHANGED
data/lib/xsd/charset.rb
CHANGED
@@ -130,18 +130,18 @@ public
|
|
130
130
|
|
131
131
|
# us_ascii = '[\x00-\x7F]'
|
132
132
|
us_ascii = '[\x9\xa\xd\x20-\x7F]' # XML 1.0 restricted.
|
133
|
-
USASCIIRegexp = Regexp.new("\\A#{us_ascii}*\\z",
|
133
|
+
USASCIIRegexp = Regexp.new("\\A#{us_ascii}*\\z", Regexp::NOENCODING)
|
134
134
|
|
135
135
|
twobytes_euc = '(?:[\x8E\xA1-\xFE][\xA1-\xFE])'
|
136
136
|
threebytes_euc = '(?:\x8F[\xA1-\xFE][\xA1-\xFE])'
|
137
137
|
character_euc = "(?:#{us_ascii}|#{twobytes_euc}|#{threebytes_euc})"
|
138
|
-
EUCRegexp = Regexp.new("\\A#{character_euc}*\\z",
|
138
|
+
EUCRegexp = Regexp.new("\\A#{character_euc}*\\z", Regexp::NOENCODING)
|
139
139
|
|
140
140
|
# onebyte_sjis = '[\x00-\x7F\xA1-\xDF]'
|
141
141
|
onebyte_sjis = '[\x9\xa\xd\x20-\x7F\xA1-\xDF]' # XML 1.0 restricted.
|
142
142
|
twobytes_sjis = '(?:[\x81-\x9F\xE0-\xFC][\x40-\x7E\x80-\xFC])'
|
143
143
|
character_sjis = "(?:#{onebyte_sjis}|#{twobytes_sjis})"
|
144
|
-
SJISRegexp = Regexp.new("\\A#{character_sjis}*\\z",
|
144
|
+
SJISRegexp = Regexp.new("\\A#{character_sjis}*\\z", Regexp::NOENCODING)
|
145
145
|
|
146
146
|
# 0xxxxxxx
|
147
147
|
# 110yyyyy 10xxxxxx
|
@@ -152,7 +152,7 @@ public
|
|
152
152
|
fourbytes_utf8 = '(?:[\xF0-\xF7][\x80-\xBF][\x80-\xBF][\x80-\xBF])'
|
153
153
|
character_utf8 =
|
154
154
|
"(?:#{us_ascii}|#{twobytes_utf8}|#{threebytes_utf8}|#{fourbytes_utf8})"
|
155
|
-
UTF8Regexp = Regexp.new("\\A#{character_utf8}*\\z",
|
155
|
+
UTF8Regexp = Regexp.new("\\A#{character_utf8}*\\z", Regexp::NOENCODING)
|
156
156
|
|
157
157
|
def Charset.is_us_ascii(str)
|
158
158
|
USASCIIRegexp =~ str
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: soap4r-ng
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.0.
|
4
|
+
version: 2.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Laurence A. Lee, Hiroshi NAKAMURA
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-08-03 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: Soap4R NextGen (as maintained by RubyJedi) for Ruby 1.8 thru 2.1 and
|
14
14
|
beyond
|
@@ -185,7 +185,7 @@ homepage: http://rubyjedi.github.io/soap4r/
|
|
185
185
|
licenses:
|
186
186
|
- Ruby
|
187
187
|
metadata: {}
|
188
|
-
post_install_message:
|
188
|
+
post_install_message:
|
189
189
|
rdoc_options: []
|
190
190
|
require_paths:
|
191
191
|
- lib
|
@@ -201,9 +201,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
201
201
|
version: '0'
|
202
202
|
requirements:
|
203
203
|
- none
|
204
|
-
|
205
|
-
|
206
|
-
signing_key:
|
204
|
+
rubygems_version: 3.5.11
|
205
|
+
signing_key:
|
207
206
|
specification_version: 4
|
208
207
|
summary: Soap4R-ng - Soap4R (as maintained by RubyJedi) for Ruby 1.8 thru 2.1 and
|
209
208
|
beyond
|