remotable 0.6.1 → 0.6.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/lib/remotable/active_record_extender.rb +2 -2
- data/lib/remotable/version.rb +1 -1
- data/test/active_resource_test.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0bc89a5dd898f5030f0ced00996be9fe97cf9f56f4817b664feff997b45be1eb
|
4
|
+
data.tar.gz: 317441824b1507700cd77f17a8a623a472145ee458a3aa6fc68e820f2a0ae1c9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 69072c80830b9bad844d0d1e2347875577c9de503edc8c0b5c28898e2f9612d5697e089365bd8e554e4dc53375445ba6a813d3c2d8df4619873c72ae327dc1cf
|
7
|
+
data.tar.gz: 8b5c7e8760947917691c089d19004b8c665f9fa5abaa35873fe9d203247a832f882ee10e7c39059f249aa34133cf8e79140c745aaf3c2bf082e43495d3187583
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,11 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
### 0.6.3
|
4
|
+
* **Fix** Replaced deprecated calls to URI.escape
|
5
|
+
|
6
|
+
### 0.6.2
|
7
|
+
* ~~**Bugfix** Replaced deprecated calls to URI.escape~~ _Pulled_
|
8
|
+
|
3
9
|
### 0.6.1
|
4
10
|
* **Bugfix** Tweaked the behavior of `Remotable.nosync?` to defer to a value set on the main thread if no value has been set for the current thread.
|
5
11
|
|
@@ -348,7 +348,7 @@ module Remotable
|
|
348
348
|
end
|
349
349
|
|
350
350
|
def remote_path_for_simple_key(route, local_key, value)
|
351
|
-
route.gsub(/:#{local_key}/,
|
351
|
+
route.gsub(/:#{local_key}/, ERB::Util.url_encode(value.to_s))
|
352
352
|
end
|
353
353
|
|
354
354
|
def remote_path_for_composite_key(route, local_key, values)
|
@@ -358,7 +358,7 @@ module Remotable
|
|
358
358
|
end
|
359
359
|
|
360
360
|
(0...values.length).inject(route) do |route, i|
|
361
|
-
route.gsub(/:#{local_key[i]}/,
|
361
|
+
route.gsub(/:#{local_key[i]}/, ERB::Util.url_encode(values[i].to_s))
|
362
362
|
end
|
363
363
|
end
|
364
364
|
|
data/lib/remotable/version.rb
CHANGED
@@ -141,8 +141,8 @@ class ActiveResourceTest < ActiveSupport::TestCase
|
|
141
141
|
simple_key_path = Tenant.remote_path_for_simple_key("tenants/:slug", :slug, bad_uri)
|
142
142
|
composite_key_path = Tenant.remote_path_for_composite_key(route, [:group_id, :slug], [5, bad_uri])
|
143
143
|
|
144
|
-
assert_equal "tenants/http
|
145
|
-
assert_equal "groups/5/tenants/http
|
144
|
+
assert_equal "tenants/http%3A%2F%2F%28%29%20%7B%20%3A%3B%20%7D%3B%20ping%20-c%2023%200.0.0.0", simple_key_path
|
145
|
+
assert_equal "groups/5/tenants/http%3A%2F%2F%28%29%20%7B%20%3A%3B%20%7D%3B%20ping%20-c%2023%200.0.0.0", composite_key_path
|
146
146
|
end
|
147
147
|
|
148
148
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: remotable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Robert Lail
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-04-
|
11
|
+
date: 2020-04-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activeresource
|