wallee-ruby-sdk 3.1.4 → 3.1.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (44) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +4 -4
  3. data/lib/wallee-ruby-sdk/models/rendered_document.rb +17 -5
  4. data/lib/wallee-ruby-sdk/models/rendered_terminal_receipt.rb +17 -5
  5. data/lib/wallee-ruby-sdk/models/rendered_terminal_transaction_summary.rb +17 -5
  6. data/lib/wallee-ruby-sdk/version.rb +1 -1
  7. data/vendor/bundle/ruby/2.4.0/cache/addressable-2.8.1.gem +0 -0
  8. data/vendor/bundle/ruby/2.4.0/extensions/x86_64-linux/2.4.0/ffi-1.15.5/gem_make.out +2 -2
  9. data/vendor/bundle/ruby/2.4.0/extensions/x86_64-linux/2.4.0/json-2.6.2/gem_make.out +1 -1
  10. data/vendor/bundle/ruby/2.4.0/extensions/x86_64-linux/2.4.0/json-2.6.2/mkmf.log +1 -1
  11. data/vendor/bundle/ruby/2.4.0/gems/{addressable-2.8.0 → addressable-2.8.1}/CHANGELOG.md +16 -0
  12. data/vendor/bundle/ruby/2.4.0/gems/{addressable-2.8.0 → addressable-2.8.1}/Gemfile +4 -2
  13. data/vendor/bundle/ruby/2.4.0/gems/{addressable-2.8.0 → addressable-2.8.1}/LICENSE.txt +0 -0
  14. data/vendor/bundle/ruby/2.4.0/gems/{addressable-2.8.0 → addressable-2.8.1}/README.md +0 -0
  15. data/vendor/bundle/ruby/2.4.0/gems/{addressable-2.8.0 → addressable-2.8.1}/Rakefile +0 -0
  16. data/vendor/bundle/ruby/2.4.0/gems/{addressable-2.8.0 → addressable-2.8.1}/data/unicode.data +0 -0
  17. data/vendor/bundle/ruby/2.4.0/gems/{addressable-2.8.0 → addressable-2.8.1}/lib/addressable/idna/native.rb +0 -1
  18. data/vendor/bundle/ruby/2.4.0/gems/{addressable-2.8.0 → addressable-2.8.1}/lib/addressable/idna/pure.rb +0 -1
  19. data/vendor/bundle/ruby/2.4.0/gems/{addressable-2.8.0 → addressable-2.8.1}/lib/addressable/idna.rb +0 -1
  20. data/vendor/bundle/ruby/2.4.0/gems/{addressable-2.8.0 → addressable-2.8.1}/lib/addressable/template.rb +3 -4
  21. data/vendor/bundle/ruby/2.4.0/gems/{addressable-2.8.0 → addressable-2.8.1}/lib/addressable/uri.rb +57 -53
  22. data/vendor/bundle/ruby/2.4.0/gems/{addressable-2.8.0 → addressable-2.8.1}/lib/addressable/version.rb +1 -2
  23. data/vendor/bundle/ruby/2.4.0/gems/{addressable-2.8.0 → addressable-2.8.1}/lib/addressable.rb +0 -0
  24. data/vendor/bundle/ruby/2.4.0/gems/{addressable-2.8.0 → addressable-2.8.1}/spec/addressable/idna_spec.rb +0 -1
  25. data/vendor/bundle/ruby/2.4.0/gems/{addressable-2.8.0 → addressable-2.8.1}/spec/addressable/net_http_compat_spec.rb +0 -1
  26. data/vendor/bundle/ruby/2.4.0/gems/{addressable-2.8.0 → addressable-2.8.1}/spec/addressable/security_spec.rb +0 -1
  27. data/vendor/bundle/ruby/2.4.0/gems/{addressable-2.8.0 → addressable-2.8.1}/spec/addressable/template_spec.rb +9 -1
  28. data/vendor/bundle/ruby/2.4.0/gems/{addressable-2.8.0 → addressable-2.8.1}/spec/addressable/uri_spec.rb +81 -1
  29. data/vendor/bundle/ruby/2.4.0/gems/{addressable-2.8.0 → addressable-2.8.1}/spec/spec_helper.rb +0 -0
  30. data/vendor/bundle/ruby/2.4.0/gems/{addressable-2.8.0 → addressable-2.8.1}/tasks/clobber.rake +0 -0
  31. data/vendor/bundle/ruby/2.4.0/gems/{addressable-2.8.0 → addressable-2.8.1}/tasks/gem.rake +5 -2
  32. data/vendor/bundle/ruby/2.4.0/gems/{addressable-2.8.0 → addressable-2.8.1}/tasks/git.rake +0 -0
  33. data/vendor/bundle/ruby/2.4.0/gems/{addressable-2.8.0 → addressable-2.8.1}/tasks/metrics.rake +0 -0
  34. data/vendor/bundle/ruby/2.4.0/gems/{addressable-2.8.0 → addressable-2.8.1}/tasks/profile.rake +0 -0
  35. data/vendor/bundle/ruby/2.4.0/gems/{addressable-2.8.0 → addressable-2.8.1}/tasks/rspec.rake +0 -0
  36. data/vendor/bundle/ruby/2.4.0/gems/{addressable-2.8.0 → addressable-2.8.1}/tasks/yard.rake +0 -0
  37. data/vendor/bundle/ruby/2.4.0/gems/ffi-1.15.5/ext/ffi_c/Makefile +3 -3
  38. data/vendor/bundle/ruby/2.4.0/gems/json-2.6.2/ext/json/Makefile +2 -2
  39. data/vendor/bundle/ruby/2.4.0/gems/json-2.6.2/ext/json/ext/generator/Makefile +2 -2
  40. data/vendor/bundle/ruby/2.4.0/gems/json-2.6.2/ext/json/ext/parser/Makefile +2 -2
  41. data/vendor/bundle/ruby/2.4.0/specifications/{addressable-2.8.0.gemspec → addressable-2.8.1.gemspec} +8 -7
  42. metadata +30 -31
  43. data/vendor/bundle/ruby/2.4.0/cache/addressable-2.8.0.gem +0 -0
  44. data/vendor/bundle/ruby/2.4.0/gems/addressable-2.8.0/addressable.gemspec +0 -37
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d4245eec7b9273e33d76944d1cec6233450829cd
4
- data.tar.gz: 9c0fa757290b8e291584c4a5ee876f7f6a57b076
3
+ metadata.gz: 843a5ea79e38a9c29f88c58303da6b256c2d7dfd
4
+ data.tar.gz: b863ca9fbc443b01c576da369e101088577660ea
5
5
  SHA512:
6
- metadata.gz: 31de25748d1ffbc154e7c4ffa6b3fd5f97fed598e66160e605e68a7464a760d0ed6e4bc642d016e91ea97a1f358ef0151234a1bd98b5665ff9cd2177ec18f0c5
7
- data.tar.gz: 9889bce34ef6094472468852f33e42fb0184b904795a25fe97fdbc1a83d6028ac3cb8dbdb515e0be0986337c00e178f02e6d6506b3769def28348b5398af36ed
6
+ metadata.gz: 141012e0e87f09bfd7237d22eb0880b2eccff3c1f89efd4eeabc6e42e0e5a138c00df9c22b1376237a33312c7dc998065c3dca7fe00eac80aadc9eb1af6cf277
7
+ data.tar.gz: a563e40cf04964fd11f71f6b6e2b384174d5bb085e3d758aeff80b1d1829859ce910b0381a515a8d0f1dabe7f74f524785195671beaa805083a87f8ddccc40b9
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- wallee-ruby-sdk (3.1.4)
4
+ wallee-ruby-sdk (3.1.5)
5
5
  addressable (~> 2.3, >= 2.3.0)
6
6
  json (~> 2.3, >= 2.3.0)
7
7
  typhoeus (~> 1.0, >= 1.0.1)
@@ -9,8 +9,8 @@ PATH
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
- addressable (2.8.0)
13
- public_suffix (>= 2.0.2, < 5.0)
12
+ addressable (2.8.1)
13
+ public_suffix (>= 2.0.2, < 6.0)
14
14
  ethon (0.15.0)
15
15
  ffi (>= 1.15.0)
16
16
  ffi (1.15.5)
@@ -32,4 +32,4 @@ DEPENDENCIES
32
32
  wallee-ruby-sdk!
33
33
 
34
34
  BUNDLED WITH
35
- 2.3.19
35
+ 2.3.22
@@ -20,7 +20,6 @@ require 'date'
20
20
  module Wallee
21
21
  #
22
22
  class RenderedDocument
23
- #
24
23
  attr_accessor :data
25
24
 
26
25
  #
@@ -45,7 +44,7 @@ module Wallee
45
44
  # Attribute type mapping.
46
45
  def self.swagger_types
47
46
  {
48
- :'data' => :'Array<String>',
47
+ :'data' => :'String',
49
48
  :'document_template_type' => :'Integer',
50
49
  :'mime_type' => :'String',
51
50
  :'title' => :'String'
@@ -61,9 +60,7 @@ module Wallee
61
60
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
62
61
 
63
62
  if attributes.has_key?(:'data')
64
- if (value = attributes[:'data']).is_a?(Array)
65
- self.data = value
66
- end
63
+ self.data = attributes[:'data']
67
64
  end
68
65
 
69
66
  if attributes.has_key?(:'documentTemplateType')
@@ -83,15 +80,30 @@ module Wallee
83
80
  # @return Array for valid properties with the reasons
84
81
  def list_invalid_properties
85
82
  invalid_properties = Array.new
83
+ if !@data.nil? && @data !~ Regexp.new(/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/)
84
+ invalid_properties.push('invalid value for "data", must conform to the pattern /^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/.')
85
+ end
86
+
86
87
  invalid_properties
87
88
  end
88
89
 
89
90
  # Check to see if the all the properties in the model are valid
90
91
  # @return true if the model is valid
91
92
  def valid?
93
+ return false if !@data.nil? && @data !~ Regexp.new(/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/)
92
94
  true
93
95
  end
94
96
 
97
+ # Custom attribute writer method with validation
98
+ # @param [Object] data Value to be assigned
99
+ def data=(data)
100
+ if !data.nil? && data !~ Regexp.new(/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/)
101
+ fail ArgumentError, 'invalid value for "data", must conform to the pattern /^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/.'
102
+ end
103
+
104
+ @data = data
105
+ end
106
+
95
107
  # Checks equality by comparing each attribute.
96
108
  # @param [Object] Object to be compared
97
109
  def ==(o)
@@ -20,7 +20,6 @@ require 'date'
20
20
  module Wallee
21
21
  #
22
22
  class RenderedTerminalReceipt
23
- # The data property contains the binary data of the receipt document encoded as base 64 encoded string.
24
23
  attr_accessor :data
25
24
 
26
25
  # The mime type indicates the format of the receipt document. The mime type depends on the requested receipt format.
@@ -45,7 +44,7 @@ module Wallee
45
44
  # Attribute type mapping.
46
45
  def self.swagger_types
47
46
  {
48
- :'data' => :'Array<String>',
47
+ :'data' => :'String',
49
48
  :'mime_type' => :'String',
50
49
  :'printed' => :'BOOLEAN',
51
50
  :'receipt_type' => :'PaymentTerminalReceiptType'
@@ -61,9 +60,7 @@ module Wallee
61
60
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
62
61
 
63
62
  if attributes.has_key?(:'data')
64
- if (value = attributes[:'data']).is_a?(Array)
65
- self.data = value
66
- end
63
+ self.data = attributes[:'data']
67
64
  end
68
65
 
69
66
  if attributes.has_key?(:'mimeType')
@@ -83,15 +80,30 @@ module Wallee
83
80
  # @return Array for valid properties with the reasons
84
81
  def list_invalid_properties
85
82
  invalid_properties = Array.new
83
+ if !@data.nil? && @data !~ Regexp.new(/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/)
84
+ invalid_properties.push('invalid value for "data", must conform to the pattern /^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/.')
85
+ end
86
+
86
87
  invalid_properties
87
88
  end
88
89
 
89
90
  # Check to see if the all the properties in the model are valid
90
91
  # @return true if the model is valid
91
92
  def valid?
93
+ return false if !@data.nil? && @data !~ Regexp.new(/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/)
92
94
  true
93
95
  end
94
96
 
97
+ # Custom attribute writer method with validation
98
+ # @param [Object] data Value to be assigned
99
+ def data=(data)
100
+ if !data.nil? && data !~ Regexp.new(/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/)
101
+ fail ArgumentError, 'invalid value for "data", must conform to the pattern /^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/.'
102
+ end
103
+
104
+ @data = data
105
+ end
106
+
95
107
  # Checks equality by comparing each attribute.
96
108
  # @param [Object] Object to be compared
97
109
  def ==(o)
@@ -20,7 +20,6 @@ require 'date'
20
20
  module Wallee
21
21
  #
22
22
  class RenderedTerminalTransactionSummary
23
- # The data property contains the binary data of the receipt document encoded as base 64 encoded string.
24
23
  attr_accessor :data
25
24
 
26
25
  # The mime type indicates the format of the receipt document. The mime type depends on the requested receipt format.
@@ -37,7 +36,7 @@ module Wallee
37
36
  # Attribute type mapping.
38
37
  def self.swagger_types
39
38
  {
40
- :'data' => :'Array<String>',
39
+ :'data' => :'String',
41
40
  :'mime_type' => :'String'
42
41
  }
43
42
  end
@@ -51,9 +50,7 @@ module Wallee
51
50
  attributes = attributes.each_with_object({}) { |(k, v), h| h[k.to_sym] = v }
52
51
 
53
52
  if attributes.has_key?(:'data')
54
- if (value = attributes[:'data']).is_a?(Array)
55
- self.data = value
56
- end
53
+ self.data = attributes[:'data']
57
54
  end
58
55
 
59
56
  if attributes.has_key?(:'mimeType')
@@ -65,15 +62,30 @@ module Wallee
65
62
  # @return Array for valid properties with the reasons
66
63
  def list_invalid_properties
67
64
  invalid_properties = Array.new
65
+ if !@data.nil? && @data !~ Regexp.new(/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/)
66
+ invalid_properties.push('invalid value for "data", must conform to the pattern /^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/.')
67
+ end
68
+
68
69
  invalid_properties
69
70
  end
70
71
 
71
72
  # Check to see if the all the properties in the model are valid
72
73
  # @return true if the model is valid
73
74
  def valid?
75
+ return false if !@data.nil? && @data !~ Regexp.new(/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/)
74
76
  true
75
77
  end
76
78
 
79
+ # Custom attribute writer method with validation
80
+ # @param [Object] data Value to be assigned
81
+ def data=(data)
82
+ if !data.nil? && data !~ Regexp.new(/^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/)
83
+ fail ArgumentError, 'invalid value for "data", must conform to the pattern /^(?:[A-Za-z0-9+\/]{4})*(?:[A-Za-z0-9+\/]{2}==|[A-Za-z0-9+\/]{3}=)?$/.'
84
+ end
85
+
86
+ @data = data
87
+ end
88
+
77
89
  # Checks equality by comparing each attribute.
78
90
  # @param [Object] Object to be compared
79
91
  def ==(o)
@@ -16,5 +16,5 @@ limitations under the License.
16
16
  =end
17
17
 
18
18
  module Wallee
19
- VERSION = '3.1.4'
19
+ VERSION = '3.1.5'
20
20
  end
@@ -1,5 +1,5 @@
1
1
  current directory: /home/runner/work/ruby-sdk/ruby-sdk/vendor/bundle/ruby/2.4.0/gems/ffi-1.15.5/ext/ffi_c
2
- /opt/hostedtoolcache/Ruby/2.4.1/x64/bin/ruby -r ./siteconf20220808-1628-1a9hxv8.rb extconf.rb
2
+ /opt/hostedtoolcache/Ruby/2.4.1/x64/bin/ruby -r ./siteconf20220920-1640-11ub6nx.rb extconf.rb
3
3
  checking for ffi.h... yes
4
4
  checking for ffi_prep_closure_loc() in -lffi... yes
5
5
  checking for ffi_prep_cif_var()... yes
@@ -367,4 +367,4 @@ linking shared-object ffi_c.so
367
367
 
368
368
  current directory: /home/runner/work/ruby-sdk/ruby-sdk/vendor/bundle/ruby/2.4.0/gems/ffi-1.15.5/ext/ffi_c
369
369
  make "DESTDIR=" install
370
- /usr/bin/install -c -m 0755 ffi_c.so ./.gem.20220808-1628-1h33zqf
370
+ /usr/bin/install -c -m 0755 ffi_c.so ./.gem.20220920-1640-1as9lc
@@ -1,5 +1,5 @@
1
1
  current directory: /home/runner/work/ruby-sdk/ruby-sdk/vendor/bundle/ruby/2.4.0/gems/json-2.6.2/ext/json
2
- /opt/hostedtoolcache/Ruby/2.4.1/x64/bin/ruby -r ./siteconf20220808-1628-ql0wo3.rb extconf.rb
2
+ /opt/hostedtoolcache/Ruby/2.4.1/x64/bin/ruby -r ./siteconf20220920-1640-12w2j2l.rb extconf.rb
3
3
  creating Makefile
4
4
 
5
5
  current directory: /home/runner/work/ruby-sdk/ruby-sdk/vendor/bundle/ruby/2.4.0/gems/json-2.6.2/ext/json
@@ -176,7 +176,7 @@ In file included from /opt/hostedtoolcache/Ruby/2.4.1/x64/include/ruby-2.4.0/rub
176
176
  cc1: warning: unrecognized command line option ‘-Wno-self-assign’
177
177
  cc1: warning: unrecognized command line option ‘-Wno-constant-logical-operand’
178
178
  cc1: warning: unrecognized command line option ‘-Wno-parentheses-equality’
179
- /usr/bin/ld: /tmp/ccsqa8n8.o: in function `t':
179
+ /usr/bin/ld: /tmp/ccpVzI2p.o: in function `t':
180
180
  /home/runner/work/ruby-sdk/ruby-sdk/vendor/bundle/ruby/2.4.0/gems/json-2.6.2/ext/json/ext/parser/conftest.c:16: undefined reference to `rb_enc_interned_str'
181
181
  collect2: error: ld returned 1 exit status
182
182
  checked program was:
@@ -1,3 +1,19 @@
1
+ # Addressable 2.8.1
2
+ - refactor `Addressable::URI.normalize_path` to address linter offenses ([#430](https://github.com/sporkmonger/addressable/pull/430))
3
+ - remove redundant colon in `Addressable::URI::CharacterClasses::AUTHORITY` regex ([#438](https://github.com/sporkmonger/addressable/pull/438))
4
+ - update gemspec to reflect supported Ruby versions ([#466], [#464], [#463])
5
+ - compatibility w/ public_suffix 5.x ([#466], [#465], [#460])
6
+ - fixes "invalid byte sequence in UTF-8" exception when unencoding URLs containing non UTF-8 characters ([#459](https://github.com/sporkmonger/addressable/pull/459))
7
+ - `Ractor` compatibility ([#449](https://github.com/sporkmonger/addressable/pull/449))
8
+ - use the whole string instead of a single line for template match ([#431](https://github.com/sporkmonger/addressable/pull/431))
9
+ - force UTF-8 encoding only if needed ([#341](https://github.com/sporkmonger/addressable/pull/341))
10
+
11
+ [#460]: https://github.com/sporkmonger/addressable/pull/460
12
+ [#463]: https://github.com/sporkmonger/addressable/pull/463
13
+ [#464]: https://github.com/sporkmonger/addressable/pull/464
14
+ [#465]: https://github.com/sporkmonger/addressable/pull/465
15
+ [#466]: https://github.com/sporkmonger/addressable/pull/466
16
+
1
17
  # Addressable 2.8.0
2
18
  - fixes ReDoS vulnerability in Addressable::Template#match
3
19
  - no longer replaces `+` with spaces in queries for non-http(s) schemes
@@ -2,7 +2,7 @@
2
2
 
3
3
  source 'https://rubygems.org'
4
4
 
5
- gemspec(path: __FILE__ == "(eval)" ? ".." : ".")
5
+ gemspec
6
6
 
7
7
  group :test do
8
8
  gem 'rspec', '~> 3.8'
@@ -25,4 +25,6 @@ group :test, :development do
25
25
  gem "rake", ">= 12.3.3"
26
26
  end
27
27
 
28
- gem "idn-ruby", platform: :mri
28
+ unless ENV["IDNA_MODE"] == "pure"
29
+ gem "idn-ruby", platform: :mri
30
+ end
@@ -1,6 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # encoding:utf-8
4
3
  #--
5
4
  # Copyright (C) Bob Aman
6
5
  #
@@ -1,6 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # encoding:utf-8
4
3
  #--
5
4
  # Copyright (C) Bob Aman
6
5
  #
@@ -1,6 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # encoding:utf-8
4
3
  #--
5
4
  # Copyright (C) Bob Aman
6
5
  #
@@ -1,6 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # encoding:utf-8
4
3
  #--
5
4
  # Copyright (C) Bob Aman
6
5
  #
@@ -657,12 +656,12 @@ module Addressable
657
656
  def ordered_variable_defaults
658
657
  @ordered_variable_defaults ||= begin
659
658
  expansions, _ = parse_template_pattern(pattern)
660
- expansions.map do |capture|
659
+ expansions.flat_map do |capture|
661
660
  _, _, varlist = *capture.match(EXPRESSION)
662
661
  varlist.split(',').map do |varspec|
663
662
  varspec[VARSPEC, 1]
664
663
  end
665
- end.flatten
664
+ end
666
665
  end
667
666
  end
668
667
 
@@ -1023,7 +1022,7 @@ module Addressable
1023
1022
  end
1024
1023
 
1025
1024
  # Ensure that the regular expression matches the whole URI.
1026
- regexp_string = "^#{regexp_string}$"
1025
+ regexp_string = "\\A#{regexp_string}\\z"
1027
1026
  return expansions, Regexp.new(regexp_string)
1028
1027
  end
1029
1028
 
@@ -1,6 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # encoding:utf-8
4
3
  #--
5
4
  # Copyright (C) Bob Aman
6
5
  #
@@ -38,20 +37,26 @@ module Addressable
38
37
  ##
39
38
  # Container for the character classes specified in
40
39
  # <a href="http://www.ietf.org/rfc/rfc3986.txt">RFC 3986</a>.
40
+ #
41
+ # Note: Concatenated and interpolated `String`s are not affected by the
42
+ # `frozen_string_literal` directive and must be frozen explicitly.
43
+ #
44
+ # Interpolated `String`s *were* frozen this way before Ruby 3.0:
45
+ # https://bugs.ruby-lang.org/issues/17104
41
46
  module CharacterClasses
42
47
  ALPHA = "a-zA-Z"
43
48
  DIGIT = "0-9"
44
49
  GEN_DELIMS = "\\:\\/\\?\\#\\[\\]\\@"
45
50
  SUB_DELIMS = "\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\="
46
- RESERVED = GEN_DELIMS + SUB_DELIMS
47
- UNRESERVED = ALPHA + DIGIT + "\\-\\.\\_\\~"
48
- PCHAR = UNRESERVED + SUB_DELIMS + "\\:\\@"
49
- SCHEME = ALPHA + DIGIT + "\\-\\+\\."
50
- HOST = UNRESERVED + SUB_DELIMS + "\\[\\:\\]"
51
- AUTHORITY = PCHAR + "\\[\\:\\]"
52
- PATH = PCHAR + "\\/"
53
- QUERY = PCHAR + "\\/\\?"
54
- FRAGMENT = PCHAR + "\\/\\?"
51
+ RESERVED = (GEN_DELIMS + SUB_DELIMS).freeze
52
+ UNRESERVED = (ALPHA + DIGIT + "\\-\\.\\_\\~").freeze
53
+ PCHAR = (UNRESERVED + SUB_DELIMS + "\\:\\@").freeze
54
+ SCHEME = (ALPHA + DIGIT + "\\-\\+\\.").freeze
55
+ HOST = (UNRESERVED + SUB_DELIMS + "\\[\\:\\]").freeze
56
+ AUTHORITY = (PCHAR + "\\[\\:\\]").freeze
57
+ PATH = (PCHAR + "\\/").freeze
58
+ QUERY = (PCHAR + "\\/\\?").freeze
59
+ FRAGMENT = (PCHAR + "\\/\\?").freeze
55
60
  end
56
61
 
57
62
  module NormalizeCharacterClasses
@@ -469,19 +474,13 @@ module Addressable
469
474
  "Expected Class (String or Addressable::URI), " +
470
475
  "got #{return_type.inspect}"
471
476
  end
472
- uri = uri.dup
473
- # Seriously, only use UTF-8. I'm really not kidding!
474
- uri.force_encoding("utf-8")
475
-
476
- unless leave_encoded.empty?
477
- leave_encoded = leave_encoded.dup.force_encoding("utf-8")
478
- end
479
477
 
480
- result = uri.gsub(/%[0-9a-f]{2}/iu) do |sequence|
478
+ result = uri.gsub(/%[0-9a-f]{2}/i) do |sequence|
481
479
  c = sequence[1..3].to_i(16).chr
482
- c.force_encoding("utf-8")
480
+ c.force_encoding(sequence.encoding)
483
481
  leave_encoded.include?(c) ? sequence : c
484
482
  end
483
+
485
484
  result.force_encoding("utf-8")
486
485
  if return_type == String
487
486
  return result
@@ -561,10 +560,10 @@ module Addressable
561
560
  leave_re = if leave_encoded.length > 0
562
561
  character_class = "#{character_class}%" unless character_class.include?('%')
563
562
 
564
- "|%(?!#{leave_encoded.chars.map do |char|
563
+ "|%(?!#{leave_encoded.chars.flat_map do |char|
565
564
  seq = SEQUENCE_ENCODING_TABLE[char]
566
565
  [seq.upcase, seq.downcase]
567
- end.flatten.join('|')})"
566
+ end.join('|')})"
568
567
  end
569
568
 
570
569
  character_class = if leave_re
@@ -900,7 +899,7 @@ module Addressable
900
899
  end
901
900
  end
902
901
  # All normalized values should be UTF-8
903
- @normalized_scheme.force_encoding(Encoding::UTF_8) if @normalized_scheme
902
+ force_utf8_encoding_if_needed(@normalized_scheme)
904
903
  @normalized_scheme
905
904
  end
906
905
 
@@ -955,7 +954,7 @@ module Addressable
955
954
  end
956
955
  end
957
956
  # All normalized values should be UTF-8
958
- @normalized_user.force_encoding(Encoding::UTF_8) if @normalized_user
957
+ force_utf8_encoding_if_needed(@normalized_user)
959
958
  @normalized_user
960
959
  end
961
960
 
@@ -1012,9 +1011,7 @@ module Addressable
1012
1011
  end
1013
1012
  end
1014
1013
  # All normalized values should be UTF-8
1015
- if @normalized_password
1016
- @normalized_password.force_encoding(Encoding::UTF_8)
1017
- end
1014
+ force_utf8_encoding_if_needed(@normalized_password)
1018
1015
  @normalized_password
1019
1016
  end
1020
1017
 
@@ -1082,9 +1079,7 @@ module Addressable
1082
1079
  end
1083
1080
  end
1084
1081
  # All normalized values should be UTF-8
1085
- if @normalized_userinfo
1086
- @normalized_userinfo.force_encoding(Encoding::UTF_8)
1087
- end
1082
+ force_utf8_encoding_if_needed(@normalized_userinfo)
1088
1083
  @normalized_userinfo
1089
1084
  end
1090
1085
 
@@ -1151,9 +1146,7 @@ module Addressable
1151
1146
  end
1152
1147
  end
1153
1148
  # All normalized values should be UTF-8
1154
- if @normalized_host && !@normalized_host.empty?
1155
- @normalized_host.force_encoding(Encoding::UTF_8)
1156
- end
1149
+ force_utf8_encoding_if_needed(@normalized_host)
1157
1150
  @normalized_host
1158
1151
  end
1159
1152
 
@@ -1271,9 +1264,7 @@ module Addressable
1271
1264
  authority
1272
1265
  end
1273
1266
  # All normalized values should be UTF-8
1274
- if @normalized_authority
1275
- @normalized_authority.force_encoding(Encoding::UTF_8)
1276
- end
1267
+ force_utf8_encoding_if_needed(@normalized_authority)
1277
1268
  @normalized_authority
1278
1269
  end
1279
1270
 
@@ -1507,7 +1498,7 @@ module Addressable
1507
1498
  site_string
1508
1499
  end
1509
1500
  # All normalized values should be UTF-8
1510
- @normalized_site.force_encoding(Encoding::UTF_8) if @normalized_site
1501
+ force_utf8_encoding_if_needed(@normalized_site)
1511
1502
  @normalized_site
1512
1503
  end
1513
1504
 
@@ -1570,7 +1561,7 @@ module Addressable
1570
1561
  result
1571
1562
  end
1572
1563
  # All normalized values should be UTF-8
1573
- @normalized_path.force_encoding(Encoding::UTF_8) if @normalized_path
1564
+ force_utf8_encoding_if_needed(@normalized_path)
1574
1565
  @normalized_path
1575
1566
  end
1576
1567
 
@@ -1646,7 +1637,7 @@ module Addressable
1646
1637
  component == "" ? nil : component
1647
1638
  end
1648
1639
  # All normalized values should be UTF-8
1649
- @normalized_query.force_encoding(Encoding::UTF_8) if @normalized_query
1640
+ force_utf8_encoding_if_needed(@normalized_query)
1650
1641
  @normalized_query
1651
1642
  end
1652
1643
 
@@ -1842,9 +1833,7 @@ module Addressable
1842
1833
  component == "" ? nil : component
1843
1834
  end
1844
1835
  # All normalized values should be UTF-8
1845
- if @normalized_fragment
1846
- @normalized_fragment.force_encoding(Encoding::UTF_8)
1847
- end
1836
+ force_utf8_encoding_if_needed(@normalized_fragment)
1848
1837
  @normalized_fragment
1849
1838
  end
1850
1839
 
@@ -2440,30 +2429,35 @@ module Addressable
2440
2429
  def self.normalize_path(path)
2441
2430
  # Section 5.2.4 of RFC 3986
2442
2431
 
2443
- return nil if path.nil?
2432
+ return if path.nil?
2444
2433
  normalized_path = path.dup
2445
- begin
2446
- mod = nil
2434
+ loop do
2447
2435
  mod ||= normalized_path.gsub!(RULE_2A, SLASH)
2448
2436
 
2449
2437
  pair = normalized_path.match(RULE_2B_2C)
2450
- parent, current = pair[1], pair[2] if pair
2438
+ if pair
2439
+ parent = pair[1]
2440
+ current = pair[2]
2441
+ else
2442
+ parent = nil
2443
+ current = nil
2444
+ end
2445
+
2446
+ regexp = "/#{Regexp.escape(parent.to_s)}/\\.\\./|"
2447
+ regexp += "(/#{Regexp.escape(current.to_s)}/\\.\\.$)"
2448
+
2451
2449
  if pair && ((parent != SELF_REF && parent != PARENT) ||
2452
2450
  (current != SELF_REF && current != PARENT))
2453
- mod ||= normalized_path.gsub!(
2454
- Regexp.new(
2455
- "/#{Regexp.escape(parent.to_s)}/\\.\\./|" +
2456
- "(/#{Regexp.escape(current.to_s)}/\\.\\.$)"
2457
- ), SLASH
2458
- )
2451
+ mod ||= normalized_path.gsub!(Regexp.new(regexp), SLASH)
2459
2452
  end
2460
2453
 
2461
2454
  mod ||= normalized_path.gsub!(RULE_2D, EMPTY_STR)
2462
2455
  # Non-standard, removes prefixed dotted segments from path.
2463
2456
  mod ||= normalized_path.gsub!(RULE_PREFIXED_PARENT, SLASH)
2464
- end until mod.nil?
2457
+ break if mod.nil?
2458
+ end
2465
2459
 
2466
- return normalized_path
2460
+ normalized_path
2467
2461
  end
2468
2462
 
2469
2463
  ##
@@ -2552,5 +2546,15 @@ module Addressable
2552
2546
  remove_instance_variable(:@uri_string) if defined?(@uri_string)
2553
2547
  remove_instance_variable(:@hash) if defined?(@hash)
2554
2548
  end
2549
+
2550
+ ##
2551
+ # Converts the string to be UTF-8 if it is not already UTF-8
2552
+ #
2553
+ # @api private
2554
+ def force_utf8_encoding_if_needed(str)
2555
+ if str && str.encoding != Encoding::UTF_8
2556
+ str.force_encoding(Encoding::UTF_8)
2557
+ end
2558
+ end
2555
2559
  end
2556
2560
  end
@@ -1,6 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # encoding:utf-8
4
3
  #--
5
4
  # Copyright (C) Bob Aman
6
5
  #
@@ -24,7 +23,7 @@ if !defined?(Addressable::VERSION)
24
23
  module VERSION
25
24
  MAJOR = 2
26
25
  MINOR = 8
27
- TINY = 0
26
+ TINY = 1
28
27
 
29
28
  STRING = [MAJOR, MINOR, TINY].join('.')
30
29
  end
@@ -1,6 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # coding: utf-8
4
3
  # Copyright (C) Bob Aman
5
4
  #
6
5
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,6 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # coding: utf-8
4
3
  # Copyright (C) Bob Aman
5
4
  #
6
5
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,6 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # coding: utf-8
4
3
  # Copyright (C) Bob Aman
5
4
  #
6
5
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -1,6 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # coding: utf-8
4
3
  # Copyright (C) Bob Aman
5
4
  #
6
5
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -78,6 +77,15 @@ describe "==" do
78
77
  end
79
78
  end
80
79
 
80
+ describe "#to_regexp" do
81
+ it "does not match the first line of multiline strings" do
82
+ uri = "https://www.example.com/bar"
83
+ template = Addressable::Template.new(uri)
84
+ expect(template.match(uri)).not_to be_nil
85
+ expect(template.match("#{uri}\ngarbage")).to be_nil
86
+ end
87
+ end
88
+
81
89
  describe "Type conversion" do
82
90
  subject {
83
91
  {
@@ -1,6 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- # coding: utf-8
4
3
  # Copyright (C) Bob Aman
5
4
  #
6
5
  # Licensed under the Apache License, Version 2.0 (the "License");
@@ -999,6 +998,72 @@ describe Addressable::URI, "when frozen" do
999
998
  end
1000
999
  end
1001
1000
 
1001
+ describe Addressable::URI, "when normalized and then deeply frozen" do
1002
+ before do
1003
+ @uri = Addressable::URI.parse(
1004
+ "http://user:password@example.com:8080/path?query=value#fragment"
1005
+ ).normalize!
1006
+
1007
+ @uri.instance_variables.each do |var|
1008
+ @uri.instance_variable_set(var, @uri.instance_variable_get(var).freeze)
1009
+ end
1010
+
1011
+ @uri.freeze
1012
+ end
1013
+
1014
+ it "#normalized_scheme should not error" do
1015
+ expect { @uri.normalized_scheme }.not_to raise_error
1016
+ end
1017
+
1018
+ it "#normalized_user should not error" do
1019
+ expect { @uri.normalized_user }.not_to raise_error
1020
+ end
1021
+
1022
+ it "#normalized_password should not error" do
1023
+ expect { @uri.normalized_password }.not_to raise_error
1024
+ end
1025
+
1026
+ it "#normalized_userinfo should not error" do
1027
+ expect { @uri.normalized_userinfo }.not_to raise_error
1028
+ end
1029
+
1030
+ it "#normalized_host should not error" do
1031
+ expect { @uri.normalized_host }.not_to raise_error
1032
+ end
1033
+
1034
+ it "#normalized_authority should not error" do
1035
+ expect { @uri.normalized_authority }.not_to raise_error
1036
+ end
1037
+
1038
+ it "#normalized_port should not error" do
1039
+ expect { @uri.normalized_port }.not_to raise_error
1040
+ end
1041
+
1042
+ it "#normalized_site should not error" do
1043
+ expect { @uri.normalized_site }.not_to raise_error
1044
+ end
1045
+
1046
+ it "#normalized_path should not error" do
1047
+ expect { @uri.normalized_path }.not_to raise_error
1048
+ end
1049
+
1050
+ it "#normalized_query should not error" do
1051
+ expect { @uri.normalized_query }.not_to raise_error
1052
+ end
1053
+
1054
+ it "#normalized_fragment should not error" do
1055
+ expect { @uri.normalized_fragment }.not_to raise_error
1056
+ end
1057
+
1058
+ it "should be frozen" do
1059
+ expect(@uri).to be_frozen
1060
+ end
1061
+
1062
+ it "should not allow destructive operations" do
1063
+ expect { @uri.normalize! }.to raise_error(RuntimeError)
1064
+ end
1065
+ end
1066
+
1002
1067
  describe Addressable::URI, "when created from string components" do
1003
1068
  before do
1004
1069
  @uri = Addressable::URI.new(
@@ -5993,6 +6058,11 @@ describe Addressable::URI, "when unencoding a multibyte string" do
5993
6058
  expect(Addressable::URI.unencode_component("ski=%BA%DAɫ")).to eq("ski=\xBA\xDAɫ")
5994
6059
  end
5995
6060
 
6061
+ it "should not fail with UTF-8 incompatible string" do
6062
+ url = "/M%E9/\xE9?p=\xFC".b
6063
+ expect(Addressable::URI.unencode_component(url)).to eq("/M\xE9/\xE9?p=\xFC")
6064
+ end
6065
+
5996
6066
  it "should result in correct percent encoded sequence as a URI" do
5997
6067
  expect(Addressable::URI.unencode(
5998
6068
  "/path?g%C3%BCnther", ::Addressable::URI
@@ -6663,3 +6733,13 @@ describe Addressable::URI, "when initializing a subclass of Addressable::URI" do
6663
6733
  expect(@uri.class).to eq(@uri.join('path').class)
6664
6734
  end
6665
6735
  end
6736
+
6737
+ describe Addressable::URI, "when initialized in a non-main `Ractor`" do
6738
+ it "should have the same value as if used in the main `Ractor`" do
6739
+ pending("Ruby 3.0+ for `Ractor` support") unless defined?(Ractor)
6740
+ main = Addressable::URI.parse("http://example.com")
6741
+ expect(
6742
+ Ractor.new { Addressable::URI.parse("http://example.com") }.take
6743
+ ).to eq(main)
6744
+ end
6745
+ end
@@ -19,9 +19,9 @@ namespace :gem do
19
19
  exit(1)
20
20
  end
21
21
 
22
- s.required_ruby_version = ">= 2.0"
22
+ s.required_ruby_version = ">= 2.2"
23
23
 
24
- s.add_runtime_dependency "public_suffix", ">= 2.0.2", "< 5.0"
24
+ s.add_runtime_dependency "public_suffix", ">= 2.0.2", "< 6.0"
25
25
  s.add_development_dependency "bundler", ">= 1.0", "< 3.0"
26
26
 
27
27
  s.require_path = "lib"
@@ -30,6 +30,9 @@ namespace :gem do
30
30
  s.email = "bob@sporkmonger.com"
31
31
  s.homepage = "https://github.com/sporkmonger/addressable"
32
32
  s.license = "Apache-2.0"
33
+ s.metadata = {
34
+ "changelog_uri" => "https://github.com/sporkmonger/addressable/blob/main/CHANGELOG.md"
35
+ }
33
36
  end
34
37
 
35
38
  Gem::PackageTask.new(GEM_SPEC) do |p|
@@ -31,8 +31,8 @@ rubyhdrdir = $(includedir)/$(RUBY_VERSION_NAME)
31
31
  vendorarchdir = $(vendorlibdir)/$(sitearch)
32
32
  vendorlibdir = $(vendordir)/$(ruby_version)
33
33
  vendordir = $(rubylibprefix)/vendor_ruby
34
- sitearchdir = $(DESTDIR)./.gem.20220808-1628-1h33zqf
35
- sitelibdir = $(DESTDIR)./.gem.20220808-1628-1h33zqf
34
+ sitearchdir = $(DESTDIR)./.gem.20220920-1640-1as9lc
35
+ sitelibdir = $(DESTDIR)./.gem.20220920-1640-1as9lc
36
36
  sitedir = $(rubylibprefix)/site_ruby
37
37
  rubyarchdir = $(rubylibdir)/$(arch)
38
38
  rubylibdir = $(rubylibprefix)/$(ruby_version)
@@ -138,7 +138,7 @@ LIBS = $(LIBRUBYARG_SHARED) -lffi -lpthread -lgmp -ldl -lcrypt -lm -lc
138
138
  ORIG_SRCS = AbstractMemory.c ArrayType.c Buffer.c Call.c ClosurePool.c DynamicLibrary.c Function.c FunctionInfo.c LastError.c LongDouble.c MappedType.c MemoryPointer.c MethodHandle.c Platform.c Pointer.c Struct.c StructByValue.c StructLayout.c Thread.c Type.c Types.c Variadic.c ffi.c
139
139
  SRCS = $(ORIG_SRCS)
140
140
  OBJS = AbstractMemory.o ArrayType.o Buffer.o Call.o ClosurePool.o DynamicLibrary.o Function.o FunctionInfo.o LastError.o LongDouble.o MappedType.o MemoryPointer.o MethodHandle.o Platform.o Pointer.o Struct.o StructByValue.o StructLayout.o Thread.o Type.o Types.o Variadic.o ffi.o
141
- HDRS = $(srcdir)/compat.h $(srcdir)/Types.h $(srcdir)/MemoryPointer.h $(srcdir)/extconf.h $(srcdir)/Type.h $(srcdir)/Call.h $(srcdir)/ArrayType.h $(srcdir)/MappedType.h $(srcdir)/rbffi.h $(srcdir)/StructByValue.h $(srcdir)/LastError.h $(srcdir)/rbffi_endian.h $(srcdir)/AbstractMemory.h $(srcdir)/ClosurePool.h $(srcdir)/MethodHandle.h $(srcdir)/Struct.h $(srcdir)/DynamicLibrary.h $(srcdir)/Thread.h $(srcdir)/Pointer.h $(srcdir)/LongDouble.h $(srcdir)/Function.h $(srcdir)/Platform.h
141
+ HDRS = $(srcdir)/Call.h $(srcdir)/Types.h $(srcdir)/LongDouble.h $(srcdir)/DynamicLibrary.h $(srcdir)/MethodHandle.h $(srcdir)/Function.h $(srcdir)/Pointer.h $(srcdir)/Thread.h $(srcdir)/ArrayType.h $(srcdir)/Type.h $(srcdir)/StructByValue.h $(srcdir)/compat.h $(srcdir)/MappedType.h $(srcdir)/AbstractMemory.h $(srcdir)/extconf.h $(srcdir)/Platform.h $(srcdir)/MemoryPointer.h $(srcdir)/rbffi.h $(srcdir)/Struct.h $(srcdir)/rbffi_endian.h $(srcdir)/LastError.h $(srcdir)/ClosurePool.h
142
142
  LOCAL_HDRS =
143
143
  TARGET = ffi_c
144
144
  TARGET_NAME = ffi_c
@@ -31,8 +31,8 @@ rubyhdrdir = $(includedir)/$(RUBY_VERSION_NAME)
31
31
  vendorarchdir = $(vendorlibdir)/$(sitearch)
32
32
  vendorlibdir = $(vendordir)/$(ruby_version)
33
33
  vendordir = $(rubylibprefix)/vendor_ruby
34
- sitearchdir = $(DESTDIR)./.gem.20220808-1628-om7w7
35
- sitelibdir = $(DESTDIR)./.gem.20220808-1628-om7w7
34
+ sitearchdir = $(DESTDIR)./.gem.20220920-1640-1yxbwg4
35
+ sitelibdir = $(DESTDIR)./.gem.20220920-1640-1yxbwg4
36
36
  sitedir = $(rubylibprefix)/site_ruby
37
37
  rubyarchdir = $(rubylibdir)/$(arch)
38
38
  rubylibdir = $(rubylibprefix)/$(ruby_version)
@@ -31,8 +31,8 @@ rubyhdrdir = $(includedir)/$(RUBY_VERSION_NAME)
31
31
  vendorarchdir = $(vendorlibdir)/$(sitearch)
32
32
  vendorlibdir = $(vendordir)/$(ruby_version)
33
33
  vendordir = $(rubylibprefix)/vendor_ruby
34
- sitearchdir = $(DESTDIR)./.gem.20220808-1628-1fisew3
35
- sitelibdir = $(DESTDIR)./.gem.20220808-1628-1fisew3
34
+ sitearchdir = $(DESTDIR)./.gem.20220920-1640-1etspin
35
+ sitelibdir = $(DESTDIR)./.gem.20220920-1640-1etspin
36
36
  sitedir = $(rubylibprefix)/site_ruby
37
37
  rubyarchdir = $(rubylibdir)/$(arch)
38
38
  rubylibdir = $(rubylibprefix)/$(ruby_version)
@@ -31,8 +31,8 @@ rubyhdrdir = $(includedir)/$(RUBY_VERSION_NAME)
31
31
  vendorarchdir = $(vendorlibdir)/$(sitearch)
32
32
  vendorlibdir = $(vendordir)/$(ruby_version)
33
33
  vendordir = $(rubylibprefix)/vendor_ruby
34
- sitearchdir = $(DESTDIR)./.gem.20220808-1628-suspxw
35
- sitelibdir = $(DESTDIR)./.gem.20220808-1628-suspxw
34
+ sitearchdir = $(DESTDIR)./.gem.20220920-1640-rst3r7
35
+ sitelibdir = $(DESTDIR)./.gem.20220920-1640-rst3r7
36
36
  sitedir = $(rubylibprefix)/site_ruby
37
37
  rubyarchdir = $(rubylibdir)/$(arch)
38
38
  rubylibdir = $(rubylibprefix)/$(ruby_version)
@@ -1,14 +1,15 @@
1
1
  # -*- encoding: utf-8 -*-
2
- # stub: addressable 2.8.0 ruby lib
2
+ # stub: addressable 2.8.1 ruby lib
3
3
 
4
4
  Gem::Specification.new do |s|
5
5
  s.name = "addressable".freeze
6
- s.version = "2.8.0"
6
+ s.version = "2.8.1"
7
7
 
8
8
  s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
9
+ s.metadata = { "changelog_uri" => "https://github.com/sporkmonger/addressable/blob/main/CHANGELOG.md" } if s.respond_to? :metadata=
9
10
  s.require_paths = ["lib".freeze]
10
11
  s.authors = ["Bob Aman".freeze]
11
- s.date = "2021-07-03"
12
+ s.date = "2022-08-19"
12
13
  s.description = "Addressable is an alternative implementation to the URI implementation that is\npart of Ruby's standard library. It is flexible, offers heuristic parsing, and\nadditionally provides extensive support for IRIs and URI templates.\n".freeze
13
14
  s.email = "bob@sporkmonger.com".freeze
14
15
  s.extra_rdoc_files = ["README.md".freeze]
@@ -16,7 +17,7 @@ Gem::Specification.new do |s|
16
17
  s.homepage = "https://github.com/sporkmonger/addressable".freeze
17
18
  s.licenses = ["Apache-2.0".freeze]
18
19
  s.rdoc_options = ["--main".freeze, "README.md".freeze]
19
- s.required_ruby_version = Gem::Requirement.new(">= 2.0".freeze)
20
+ s.required_ruby_version = Gem::Requirement.new(">= 2.2".freeze)
20
21
  s.rubygems_version = "2.6.11".freeze
21
22
  s.summary = "URI Implementation".freeze
22
23
 
@@ -26,14 +27,14 @@ Gem::Specification.new do |s|
26
27
  s.specification_version = 4
27
28
 
28
29
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
29
- s.add_runtime_dependency(%q<public_suffix>.freeze, ["< 5.0", ">= 2.0.2"])
30
+ s.add_runtime_dependency(%q<public_suffix>.freeze, ["< 6.0", ">= 2.0.2"])
30
31
  s.add_development_dependency(%q<bundler>.freeze, ["< 3.0", ">= 1.0"])
31
32
  else
32
- s.add_dependency(%q<public_suffix>.freeze, ["< 5.0", ">= 2.0.2"])
33
+ s.add_dependency(%q<public_suffix>.freeze, ["< 6.0", ">= 2.0.2"])
33
34
  s.add_dependency(%q<bundler>.freeze, ["< 3.0", ">= 1.0"])
34
35
  end
35
36
  else
36
- s.add_dependency(%q<public_suffix>.freeze, ["< 5.0", ">= 2.0.2"])
37
+ s.add_dependency(%q<public_suffix>.freeze, ["< 6.0", ">= 2.0.2"])
37
38
  s.add_dependency(%q<bundler>.freeze, ["< 3.0", ">= 1.0"])
38
39
  end
39
40
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wallee-ruby-sdk
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.4
4
+ version: 3.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - wallee AG
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-08-08 00:00:00.000000000 Z
11
+ date: 2022-09-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: typhoeus
@@ -637,7 +637,7 @@ files:
637
637
  - test/transaction_create_service_test.rb
638
638
  - test/transaction_payment_page_service_test.rb
639
639
  - vendor/bundle/ruby/2.4.0/bin/rake
640
- - vendor/bundle/ruby/2.4.0/cache/addressable-2.8.0.gem
640
+ - vendor/bundle/ruby/2.4.0/cache/addressable-2.8.1.gem
641
641
  - vendor/bundle/ruby/2.4.0/cache/ethon-0.15.0.gem
642
642
  - vendor/bundle/ruby/2.4.0/cache/ffi-1.15.5.gem
643
643
  - vendor/bundle/ruby/2.4.0/cache/json-2.6.2.gem
@@ -655,33 +655,32 @@ files:
655
655
  - vendor/bundle/ruby/2.4.0/extensions/x86_64-linux/2.4.0/json-2.6.2/json/ext/generator.so
656
656
  - vendor/bundle/ruby/2.4.0/extensions/x86_64-linux/2.4.0/json-2.6.2/json/ext/parser.so
657
657
  - vendor/bundle/ruby/2.4.0/extensions/x86_64-linux/2.4.0/json-2.6.2/mkmf.log
658
- - vendor/bundle/ruby/2.4.0/gems/addressable-2.8.0/CHANGELOG.md
659
- - vendor/bundle/ruby/2.4.0/gems/addressable-2.8.0/Gemfile
660
- - vendor/bundle/ruby/2.4.0/gems/addressable-2.8.0/LICENSE.txt
661
- - vendor/bundle/ruby/2.4.0/gems/addressable-2.8.0/README.md
662
- - vendor/bundle/ruby/2.4.0/gems/addressable-2.8.0/Rakefile
663
- - vendor/bundle/ruby/2.4.0/gems/addressable-2.8.0/addressable.gemspec
664
- - vendor/bundle/ruby/2.4.0/gems/addressable-2.8.0/data/unicode.data
665
- - vendor/bundle/ruby/2.4.0/gems/addressable-2.8.0/lib/addressable.rb
666
- - vendor/bundle/ruby/2.4.0/gems/addressable-2.8.0/lib/addressable/idna.rb
667
- - vendor/bundle/ruby/2.4.0/gems/addressable-2.8.0/lib/addressable/idna/native.rb
668
- - vendor/bundle/ruby/2.4.0/gems/addressable-2.8.0/lib/addressable/idna/pure.rb
669
- - vendor/bundle/ruby/2.4.0/gems/addressable-2.8.0/lib/addressable/template.rb
670
- - vendor/bundle/ruby/2.4.0/gems/addressable-2.8.0/lib/addressable/uri.rb
671
- - vendor/bundle/ruby/2.4.0/gems/addressable-2.8.0/lib/addressable/version.rb
672
- - vendor/bundle/ruby/2.4.0/gems/addressable-2.8.0/spec/addressable/idna_spec.rb
673
- - vendor/bundle/ruby/2.4.0/gems/addressable-2.8.0/spec/addressable/net_http_compat_spec.rb
674
- - vendor/bundle/ruby/2.4.0/gems/addressable-2.8.0/spec/addressable/security_spec.rb
675
- - vendor/bundle/ruby/2.4.0/gems/addressable-2.8.0/spec/addressable/template_spec.rb
676
- - vendor/bundle/ruby/2.4.0/gems/addressable-2.8.0/spec/addressable/uri_spec.rb
677
- - vendor/bundle/ruby/2.4.0/gems/addressable-2.8.0/spec/spec_helper.rb
678
- - vendor/bundle/ruby/2.4.0/gems/addressable-2.8.0/tasks/clobber.rake
679
- - vendor/bundle/ruby/2.4.0/gems/addressable-2.8.0/tasks/gem.rake
680
- - vendor/bundle/ruby/2.4.0/gems/addressable-2.8.0/tasks/git.rake
681
- - vendor/bundle/ruby/2.4.0/gems/addressable-2.8.0/tasks/metrics.rake
682
- - vendor/bundle/ruby/2.4.0/gems/addressable-2.8.0/tasks/profile.rake
683
- - vendor/bundle/ruby/2.4.0/gems/addressable-2.8.0/tasks/rspec.rake
684
- - vendor/bundle/ruby/2.4.0/gems/addressable-2.8.0/tasks/yard.rake
658
+ - vendor/bundle/ruby/2.4.0/gems/addressable-2.8.1/CHANGELOG.md
659
+ - vendor/bundle/ruby/2.4.0/gems/addressable-2.8.1/Gemfile
660
+ - vendor/bundle/ruby/2.4.0/gems/addressable-2.8.1/LICENSE.txt
661
+ - vendor/bundle/ruby/2.4.0/gems/addressable-2.8.1/README.md
662
+ - vendor/bundle/ruby/2.4.0/gems/addressable-2.8.1/Rakefile
663
+ - vendor/bundle/ruby/2.4.0/gems/addressable-2.8.1/data/unicode.data
664
+ - vendor/bundle/ruby/2.4.0/gems/addressable-2.8.1/lib/addressable.rb
665
+ - vendor/bundle/ruby/2.4.0/gems/addressable-2.8.1/lib/addressable/idna.rb
666
+ - vendor/bundle/ruby/2.4.0/gems/addressable-2.8.1/lib/addressable/idna/native.rb
667
+ - vendor/bundle/ruby/2.4.0/gems/addressable-2.8.1/lib/addressable/idna/pure.rb
668
+ - vendor/bundle/ruby/2.4.0/gems/addressable-2.8.1/lib/addressable/template.rb
669
+ - vendor/bundle/ruby/2.4.0/gems/addressable-2.8.1/lib/addressable/uri.rb
670
+ - vendor/bundle/ruby/2.4.0/gems/addressable-2.8.1/lib/addressable/version.rb
671
+ - vendor/bundle/ruby/2.4.0/gems/addressable-2.8.1/spec/addressable/idna_spec.rb
672
+ - vendor/bundle/ruby/2.4.0/gems/addressable-2.8.1/spec/addressable/net_http_compat_spec.rb
673
+ - vendor/bundle/ruby/2.4.0/gems/addressable-2.8.1/spec/addressable/security_spec.rb
674
+ - vendor/bundle/ruby/2.4.0/gems/addressable-2.8.1/spec/addressable/template_spec.rb
675
+ - vendor/bundle/ruby/2.4.0/gems/addressable-2.8.1/spec/addressable/uri_spec.rb
676
+ - vendor/bundle/ruby/2.4.0/gems/addressable-2.8.1/spec/spec_helper.rb
677
+ - vendor/bundle/ruby/2.4.0/gems/addressable-2.8.1/tasks/clobber.rake
678
+ - vendor/bundle/ruby/2.4.0/gems/addressable-2.8.1/tasks/gem.rake
679
+ - vendor/bundle/ruby/2.4.0/gems/addressable-2.8.1/tasks/git.rake
680
+ - vendor/bundle/ruby/2.4.0/gems/addressable-2.8.1/tasks/metrics.rake
681
+ - vendor/bundle/ruby/2.4.0/gems/addressable-2.8.1/tasks/profile.rake
682
+ - vendor/bundle/ruby/2.4.0/gems/addressable-2.8.1/tasks/rspec.rake
683
+ - vendor/bundle/ruby/2.4.0/gems/addressable-2.8.1/tasks/yard.rake
685
684
  - vendor/bundle/ruby/2.4.0/gems/ethon-0.15.0/.github/workflows/ruby.yml
686
685
  - vendor/bundle/ruby/2.4.0/gems/ethon-0.15.0/.gitignore
687
686
  - vendor/bundle/ruby/2.4.0/gems/ethon-0.15.0/.rspec
@@ -1762,7 +1761,7 @@ files:
1762
1761
  - vendor/bundle/ruby/2.4.0/gems/typhoeus-1.4.0/spec/typhoeus/response_spec.rb
1763
1762
  - vendor/bundle/ruby/2.4.0/gems/typhoeus-1.4.0/spec/typhoeus_spec.rb
1764
1763
  - vendor/bundle/ruby/2.4.0/gems/typhoeus-1.4.0/typhoeus.gemspec
1765
- - vendor/bundle/ruby/2.4.0/specifications/addressable-2.8.0.gemspec
1764
+ - vendor/bundle/ruby/2.4.0/specifications/addressable-2.8.1.gemspec
1766
1765
  - vendor/bundle/ruby/2.4.0/specifications/ethon-0.15.0.gemspec
1767
1766
  - vendor/bundle/ruby/2.4.0/specifications/ffi-1.15.5.gemspec
1768
1767
  - vendor/bundle/ruby/2.4.0/specifications/json-2.6.2.gemspec
@@ -1,37 +0,0 @@
1
- # -*- encoding: utf-8 -*-
2
- # stub: addressable 2.8.0 ruby lib
3
-
4
- Gem::Specification.new do |s|
5
- s.name = "addressable".freeze
6
- s.version = "2.8.0"
7
-
8
- s.required_rubygems_version = Gem::Requirement.new(">= 0".freeze) if s.respond_to? :required_rubygems_version=
9
- s.require_paths = ["lib".freeze]
10
- s.authors = ["Bob Aman".freeze]
11
- s.date = "2021-07-03"
12
- s.description = "Addressable is an alternative implementation to the URI implementation that is\npart of Ruby's standard library. It is flexible, offers heuristic parsing, and\nadditionally provides extensive support for IRIs and URI templates.\n".freeze
13
- s.email = "bob@sporkmonger.com".freeze
14
- s.extra_rdoc_files = ["README.md".freeze]
15
- s.files = ["CHANGELOG.md".freeze, "Gemfile".freeze, "LICENSE.txt".freeze, "README.md".freeze, "Rakefile".freeze, "addressable.gemspec".freeze, "data/unicode.data".freeze, "lib/addressable.rb".freeze, "lib/addressable/idna.rb".freeze, "lib/addressable/idna/native.rb".freeze, "lib/addressable/idna/pure.rb".freeze, "lib/addressable/template.rb".freeze, "lib/addressable/uri.rb".freeze, "lib/addressable/version.rb".freeze, "spec/addressable/idna_spec.rb".freeze, "spec/addressable/net_http_compat_spec.rb".freeze, "spec/addressable/security_spec.rb".freeze, "spec/addressable/template_spec.rb".freeze, "spec/addressable/uri_spec.rb".freeze, "spec/spec_helper.rb".freeze, "tasks/clobber.rake".freeze, "tasks/gem.rake".freeze, "tasks/git.rake".freeze, "tasks/metrics.rake".freeze, "tasks/profile.rake".freeze, "tasks/rspec.rake".freeze, "tasks/yard.rake".freeze]
16
- s.homepage = "https://github.com/sporkmonger/addressable".freeze
17
- s.licenses = ["Apache-2.0".freeze]
18
- s.rdoc_options = ["--main".freeze, "README.md".freeze]
19
- s.required_ruby_version = Gem::Requirement.new(">= 2.0".freeze)
20
- s.rubygems_version = "3.0.3".freeze
21
- s.summary = "URI Implementation".freeze
22
-
23
- if s.respond_to? :specification_version then
24
- s.specification_version = 4
25
-
26
- if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
27
- s.add_runtime_dependency(%q<public_suffix>.freeze, [">= 2.0.2", "< 5.0"])
28
- s.add_development_dependency(%q<bundler>.freeze, [">= 1.0", "< 3.0"])
29
- else
30
- s.add_dependency(%q<public_suffix>.freeze, [">= 2.0.2", "< 5.0"])
31
- s.add_dependency(%q<bundler>.freeze, [">= 1.0", "< 3.0"])
32
- end
33
- else
34
- s.add_dependency(%q<public_suffix>.freeze, [">= 2.0.2", "< 5.0"])
35
- s.add_dependency(%q<bundler>.freeze, [">= 1.0", "< 3.0"])
36
- end
37
- end