clientele 0.3.1 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/clientele.gemspec +1 -1
- data/lib/clientele/api.rb +2 -2
- data/lib/clientele/resource.rb +1 -1
- data/lib/clientele/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dd4cdcb536b1585df339d6c28edaaeaae5f7e800
|
4
|
+
data.tar.gz: c62346d5f390ac8d3898aaeb8d3f606d156b5853
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bdaa588aa44d6a9cf4e02b7c99b2b5b6c10a2112ff61521e21b568d7d1f22a49b105306bfc644adc77c73d8a9030200f758acbe07155d47d690d8de8a8c3f92c
|
7
|
+
data.tar.gz: d199739d7ee10c3e18d8c5d818d393a242f4fd5f835f474e4f15b6c7ac21a320b9169d69efde52444e7ef6acf8e0d7c8c7eff8947e87e9c74fe6ecd594cfbb07
|
data/clientele.gemspec
CHANGED
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
|
|
12
12
|
spec.description = <<-DESC
|
13
13
|
DSL for creating RESTful API clients for external services.
|
14
14
|
|
15
|
-
|
15
|
+
Follows an ActiveRecord-style class-based resource pattern.
|
16
16
|
DESC
|
17
17
|
spec.homepage = "https://github.com/christhekeele/clientele"
|
18
18
|
spec.license = "MIT"
|
data/lib/clientele/api.rb
CHANGED
@@ -65,7 +65,7 @@ module Clientele
|
|
65
65
|
|
66
66
|
def method_missing(method_name, *args, &block)
|
67
67
|
autoconfigure!
|
68
|
-
if respond_to_missing?(method_name, false)
|
68
|
+
if respond_to_missing?(method_name.to_s, false)
|
69
69
|
client.send method_name, *args, &block
|
70
70
|
else; super; end
|
71
71
|
end
|
@@ -84,7 +84,7 @@ module Clientele
|
|
84
84
|
private
|
85
85
|
|
86
86
|
def respond_to_missing?(method_name, include_private=false)
|
87
|
-
resources.keys.include?(method_name) or Request::VERBS.include?(method_name) or super
|
87
|
+
resources.keys.include?(method_name.to_s) or Request::VERBS.include?(method_name) or super
|
88
88
|
end
|
89
89
|
|
90
90
|
def method_missing(method_name, *args, &block)
|
data/lib/clientele/resource.rb
CHANGED
data/lib/clientele/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: clientele
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Keele
|
@@ -136,10 +136,10 @@ dependencies:
|
|
136
136
|
- - ">="
|
137
137
|
- !ruby/object:Gem::Version
|
138
138
|
version: '0'
|
139
|
-
description: |2
|
139
|
+
description: |2
|
140
140
|
DSL for creating RESTful API clients for external services.
|
141
141
|
|
142
|
-
|
142
|
+
Follows an ActiveRecord-style class-based resource pattern.
|
143
143
|
email:
|
144
144
|
- dev@chriskeele.com
|
145
145
|
executables: []
|