ocean-rails 1.25.1 → 1.25.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/ocean/api.rb +9 -1
- data/lib/ocean/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c8f5cb0650c0b3d22fe68439bcf5824047d7a164
|
4
|
+
data.tar.gz: 40ce069d99ffcee433416a41432b65374794ff2b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ed6d9b0b3cce4d001f2adc2de9521a491e52d22f3a1e3b43d763500641793f4705f3b5f1aea73433756a4d3b37d98284c4aad41631d1517e80af77d8c0f78846
|
7
|
+
data.tar.gz: 7ab8ba7cf00ffa8f79100e71479c72829a852d3f45be7a41c1ba38b0449f3b911964cd0820a7e4bf99583ecc51cfa6140825cc44c3b3e48ab043806831afe114
|
data/lib/ocean/api.rb
CHANGED
@@ -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
|
data/lib/ocean/version.rb
CHANGED
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.
|
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
|
+
date: 2013-12-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|