castle-rb 6.0.0 → 6.0.1

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: 5e4354fd7a96d78e03da9bbe10015e375af34636a2e5e186c4de361d0851a6ca
4
- data.tar.gz: 15c6bbf6f34ba315b5f42db490754a92e238f66a006a91e3986b9b1ba540d47a
3
+ metadata.gz: 538dcb5ae34bd3c453ccc2627f351bacb167d46bccb6698dbc90a6c71179a824
4
+ data.tar.gz: 87e1156703a21a88d9a1bb4990303720ab7577aedb190b580672f6d7456066d9
5
5
  SHA512:
6
- metadata.gz: 7bb580056e70ed854014054791ef5987874e52b2471838605a90092f70269ba095d40ef5df5310636b0fbd652dfa9460bb95a314e6e2dae5074732672c77122b
7
- data.tar.gz: 22fb6013ec018e8c983ecf8051041eb62f69f4b54f73528f185f783ab2343e23f5504e3d420143fb3a19f0f49e094a2d56c2fc873411d697b95be645b7cefb47
6
+ metadata.gz: c126df845b56433ad362acea73516b8022757e546a504d2cd5ff79a3c5fea4d20cffe8dd7577cc224edaeca72b8d1f0d1da88c9996fff2cee1f9e9180b26a95d
7
+ data.tar.gz: 4c3990829af576a0a9162018007446aeb29d7483526f1fd358ac798e5c8b382ba091dc75983da2e956f829c66e1b0311bfe0cd81db2f0ae6a2e892d641b14194
@@ -58,7 +58,7 @@
58
58
  castle/headers/extract
59
59
  castle/secure_mode
60
60
  castle/client_id/extract
61
- castle/ip/extract
61
+ castle/ips/extract
62
62
  castle/core/get_connection
63
63
  castle/core/process_response
64
64
  castle/core/send_request
@@ -39,7 +39,7 @@ module Castle
39
39
 
40
40
  # @return [String]
41
41
  def ip
42
- Castle::IP::Extract.new(@pre_headers).call
42
+ Castle::IPs::Extract.new(@pre_headers).call
43
43
  end
44
44
 
45
45
  # @return [String]
@@ -1,7 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Castle
4
- module IP
4
+ # IPs-related module
5
+ module IPs
5
6
  # used for extraction of ip from the request
6
7
  class Extract
7
8
  # ordered list of ip headers for ip extraction
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Castle
4
- VERSION = '6.0.0'
4
+ VERSION = '6.0.1'
5
5
  end
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- describe Castle::IP::Extract do
3
+ describe Castle::IPs::Extract do
4
4
  subject(:extractor) { described_class.new(headers) }
5
5
 
6
6
  describe 'ip' do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: castle-rb
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.0.0
4
+ version: 6.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Johan Brissmyr
@@ -73,7 +73,7 @@ files:
73
73
  - lib/castle/headers/extract.rb
74
74
  - lib/castle/headers/filter.rb
75
75
  - lib/castle/headers/format.rb
76
- - lib/castle/ip/extract.rb
76
+ - lib/castle/ips/extract.rb
77
77
  - lib/castle/logger.rb
78
78
  - lib/castle/payload/prepare.rb
79
79
  - lib/castle/secure_mode.rb
@@ -136,7 +136,7 @@ files:
136
136
  - spec/lib/castle/headers/extract_spec.rb
137
137
  - spec/lib/castle/headers/filter_spec.rb
138
138
  - spec/lib/castle/headers/format_spec.rb
139
- - spec/lib/castle/ip/extract_spec.rb
139
+ - spec/lib/castle/ips/extract_spec.rb
140
140
  - spec/lib/castle/logger_spec.rb
141
141
  - spec/lib/castle/payload/prepare_spec.rb
142
142
  - spec/lib/castle/secure_mode_spec.rb
@@ -197,6 +197,7 @@ test_files:
197
197
  - spec/lib/castle/core/process_webhook_spec.rb
198
198
  - spec/lib/castle/core/send_request_spec.rb
199
199
  - spec/lib/castle/core/process_response_spec.rb
200
+ - spec/lib/castle/ips/extract_spec.rb
200
201
  - spec/lib/castle/api_spec.rb
201
202
  - spec/lib/castle/logger_spec.rb
202
203
  - spec/lib/castle/client_id/extract_spec.rb
@@ -235,7 +236,6 @@ test_files:
235
236
  - spec/lib/castle/validators/not_supported_spec.rb
236
237
  - spec/lib/castle/validators/present_spec.rb
237
238
  - spec/lib/castle/webhooks/verify_spec.rb
238
- - spec/lib/castle/ip/extract_spec.rb
239
239
  - spec/lib/castle/failover/strategy_spec.rb
240
240
  - spec/lib/castle/secure_mode_spec.rb
241
241
  - spec/lib/castle/singleton_configuration_spec.rb