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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b3cfbee8d5a5dbc5e4416c83cd11af3048e292043305392d03f536f9a8c51c64
4
- data.tar.gz: b67f334fbb01dbb79ed85b5773dbf30c0d923d1c91c0f2e06d1d66f0fd6e0643
3
+ metadata.gz: 7ee42117a6f0c89fd3dbf5a3fb81a4953dcb4ab6a6a0b7b17d701fd4a1df5692
4
+ data.tar.gz: 9c1cd45b938b7763bf30fd62670bf2119054129f44b2cb86f9c421e7ba8e7861
5
5
  SHA512:
6
- metadata.gz: 6ba9dc6197fc4c73209df255cd9840a9220f34db791fcd54d191ef32d7b22d8cdb23461e785fb2beaffb5d58c02389898eab7a0b789017425cff4bc3e59c9f51
7
- data.tar.gz: 15b63bc41c3c82597a2c90bae4904376d2aed2771d2239c19dfd0af31fb07a22b5ba9ce39086016ec230def7f8fa1325de00fc57b47953f5e9fa32574746901a
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,]*)\]$', nil, 'n')
1083
+ TypeParseRegexp = Regexp.new('^(.+)\[([\d,]*)\]$', Regexp::NOENCODING)
1084
1084
 
1085
1085
  def self.parse_type(string)
1086
1086
  TypeParseRegexp =~ string
@@ -270,7 +270,15 @@ private
270
270
  end
271
271
 
272
272
  def get_encode_char_regexp
273
- ENCODE_CHAR_REGEXP[XSD::Charset.encoding] ||= Regexp.new("[#{EncodeMap.keys.join}]", nil, (RUBY_VERSION.to_f <= 1.8) ? XSD::Charset.encoding : nil) # RubyJedi: compatible with Ruby 1.8.6 and above
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
@@ -3,7 +3,7 @@ module SOAP
3
3
  module VERSION #:nodoc:
4
4
  MAJOR = 2
5
5
  MINOR = 0
6
- TINY = 4
6
+ TINY = 6
7
7
  STRING = [MAJOR, MINOR, TINY].join('.')
8
8
 
9
9
  FORK = "SOAP4R-NG"
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", nil, 'n')
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", nil, 'n')
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", nil, 'n')
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", nil, 'n')
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
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: 2018-06-21 00:00:00.000000000 Z
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
- rubyforge_project:
205
- rubygems_version: 2.7.7
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