remotable 0.6.1 → 0.6.3

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
  SHA256:
3
- metadata.gz: a78225c824ca7d175cf92ee2b9249c8f7cb564b40b9cb9e517afb23c60942a33
4
- data.tar.gz: c9ccfb561fcf0589e907868f62bc0208677addd29be93bf69556d84e0a1e7997
3
+ metadata.gz: 0bc89a5dd898f5030f0ced00996be9fe97cf9f56f4817b664feff997b45be1eb
4
+ data.tar.gz: 317441824b1507700cd77f17a8a623a472145ee458a3aa6fc68e820f2a0ae1c9
5
5
  SHA512:
6
- metadata.gz: f59286e3951a20031978f3077f95a3d93fb9d4a69cbeb37d35ae7375233b10ddf9ed28f09c7a4d95aa8a2c38bc10b942b6f48f6a451a4a3c1222262f44d976c6
7
- data.tar.gz: 114ee2c2f19c42c85b81e629a540aa8bfee1cc7b269462e62743e41ed09273627cdc2f21a8532a8d4f9cf681cc6bb9e74f9f46ebc91404c78aa67b181a8fc1d2
6
+ metadata.gz: 69072c80830b9bad844d0d1e2347875577c9de503edc8c0b5c28898e2f9612d5697e089365bd8e554e4dc53375445ba6a813d3c2d8df4619873c72ae327dc1cf
7
+ data.tar.gz: 8b5c7e8760947917691c089d19004b8c665f9fa5abaa35873fe9d203247a832f882ee10e7c39059f249aa34133cf8e79140c745aaf3c2bf082e43495d3187583
@@ -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}/, URI.escape(value.to_s))
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]}/, URI.escape(values[i].to_s))
361
+ route.gsub(/:#{local_key[i]}/, ERB::Util.url_encode(values[i].to_s))
362
362
  end
363
363
  end
364
364
 
@@ -1,3 +1,3 @@
1
1
  module Remotable
2
- VERSION = "0.6.1"
2
+ VERSION = "0.6.3"
3
3
  end
@@ -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://()%20%7B%20:;%20%7D;%20ping%20-c%2023%200.0.0.0", simple_key_path
145
- assert_equal "groups/5/tenants/http://()%20%7B%20:;%20%7D;%20ping%20-c%2023%200.0.0.0", composite_key_path
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.1
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-17 00:00:00.000000000 Z
11
+ date: 2020-04-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activeresource