frenchy 0.2.4 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/frenchy/resource.rb +1 -1
- data/lib/frenchy/version.rb +1 -1
- data/spec/lib/frenchy/resource_spec.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 079b65af1cc7e83657a259c7c354b56fffbb74bf
|
4
|
+
data.tar.gz: bef2547373688fed01688bf1896e1eefe0bd21f3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 18b3566cea38658d57b0e25693af7f29d049a848aa2c07ca75fe8a32af47446f09933526b541f4ab75caa8994f32b53a9fdaa491d2dc99ba2342480307efb8fd
|
7
|
+
data.tar.gz: 1a98a8c76f6b0ad72196bccda720027818fc649043aeb53711c452a3fb6fc510e951f058e87b9ed73747ab19c4cdc1b0c6a4349bbe013cd34a06b882d40d5a67
|
data/lib/frenchy/resource.rb
CHANGED
@@ -26,7 +26,7 @@ module Frenchy
|
|
26
26
|
params.stringify_keys!
|
27
27
|
name, endpoint = resolve_endpoints(endpoints)
|
28
28
|
method = endpoint["method"] || "get"
|
29
|
-
extras = {
|
29
|
+
extras = {model: self.name.underscore, endpoint: name}
|
30
30
|
|
31
31
|
response = Frenchy::Request.new(@service, method, endpoint["path"], params, extras).value
|
32
32
|
digest_response(response, endpoint)
|
data/lib/frenchy/version.rb
CHANGED
@@ -107,7 +107,7 @@ describe Frenchy::Resource do
|
|
107
107
|
|
108
108
|
expect(Frenchy::Request).
|
109
109
|
to receive(:new).
|
110
|
-
with("httpbin", "get", "/get", {"id" => 1}, {
|
110
|
+
with("httpbin", "get", "/get", {"id" => 1}, {model: "bin_one_endpoint", endpoint: "default"}).
|
111
111
|
and_return(response)
|
112
112
|
|
113
113
|
BinOneEndpoint.find_with_endpoint(:default, id: 1)
|