ocean-rails 1.25.1 → 1.25.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: fb4ad2372d6dff1a25460793b4e953dd31b592a9
4
- data.tar.gz: de69dc5015dabaa738b1212e322182ea648860a3
3
+ metadata.gz: c8f5cb0650c0b3d22fe68439bcf5824047d7a164
4
+ data.tar.gz: 40ce069d99ffcee433416a41432b65374794ff2b
5
5
  SHA512:
6
- metadata.gz: 0e5771f4439ea8dad68a8a4f074d97cabd6a8c1bf206cc63f73c1c0825114627be5ca00c44e3086f00fe4dcceda8e80d81885fa2eb3bee098b0a588fcfd1b4e1
7
- data.tar.gz: c305deeb97a55bb63428144c1289b8827c5d78312b886fd75e63b263a7b89b8fc1079957cb85110be9185a99fdeb8dc5d2352e08a16dcc8e1db0757e2c4fa6ca
6
+ metadata.gz: ed6d9b0b3cce4d001f2adc2de9521a491e52d22f3a1e3b43d763500641793f4705f3b5f1aea73433756a4d3b37d98284c4aad41631d1517e80af77d8c0f78846
7
+ data.tar.gz: 7ab8ba7cf00ffa8f79100e71479c72829a852d3f45be7a41c1ba38b0449f3b911964cd0820a7e4bf99583ecc51cfa6140825cc44c3b3e48ab043806831afe114
@@ -173,10 +173,18 @@ class Api
173
173
  #
174
174
  def self.ban(path)
175
175
  LOAD_BALANCERS.each do |host|
176
- call_p("http://#{host}", :ban, path)
176
+ call_p("http://#{host}", :ban, escape(path))
177
177
  end
178
178
  end
179
179
 
180
+
181
+ #
182
+ # This escapes BAN request paths, which is needed as they are regexes.
183
+ #
184
+ def self.escape(path)
185
+ URI.escape(path, Regexp.new("[^#{URI::PATTERN::UNRESERVED}]"))
186
+ end
187
+
180
188
 
181
189
  #
182
190
  # Authenticates against the Auth service (which must be deployed and running) with
@@ -1,3 +1,3 @@
1
1
  module Ocean
2
- VERSION = "1.25.1"
2
+ VERSION = "1.25.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ocean-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.25.1
4
+ version: 1.25.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Bengtson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-30 00:00:00.000000000 Z
11
+ date: 2013-12-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday