clx_rest_api 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/clx_rest_api/endpoint_dsl.rb +2 -2
- data/lib/clx_rest_api/version.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: 59666b1a66940f47a2b741883a6ee50a444bc1d6
|
4
|
+
data.tar.gz: 8631053620e1d80c3ead73c9815768b47d0e2779
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f42c4e34c31713caf421b31035eb94f5673bcc9cc2bc24457d7629758a6812692a3690a5889558e9129f4ac90aefc45a0cf75c3981c3d5d21eb19db11ce80152
|
7
|
+
data.tar.gz: b658201712b558f0a7e4e204d9632faa4c309565a2eec5b03d3246cf40a0ce8937ab0318fb4c5c6d093cb14bb5d9b9dfa0652f6f689df92e6949614487423110
|
data/Gemfile.lock
CHANGED
@@ -6,8 +6,8 @@ module CLXRestAPI
|
|
6
6
|
module EndpointDSL
|
7
7
|
def define_endpoint(name, method, uri)
|
8
8
|
define_method(name) do |args = {}|
|
9
|
-
|
10
|
-
request = CLXRestAPI::Request.new(
|
9
|
+
new_uri = URIInterpretation.new(uri, OpenStruct.new(args), config: @config).to_s
|
10
|
+
request = CLXRestAPI::Request.new(new_uri, method: method, config: @config)
|
11
11
|
request.execute(args[:params] || {})
|
12
12
|
end
|
13
13
|
end
|
data/lib/clx_rest_api/version.rb
CHANGED