clientele 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/lib/clientele/request_builder.rb +5 -5
- data/lib/clientele/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fe8ff228c3ad2cc5110ea5c04c4e2d8ef5f92009
|
4
|
+
data.tar.gz: b3074fad509bd6cc2984ab69fb04a71908e0b570
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e31ad4f9101ed1f39e614948be25f7b115bd2f4c34a0bb33cb4378e0a47af29ed0297bf5f74fbadd509eda4e5df1e182ec45f4294aed8897de22e955d2d91f18
|
7
|
+
data.tar.gz: 807e1c399c6b41d3429ab14e5ad2978d488d0979ad79aaf3cb8f1a0d287193cc5c903bd2fab69e49fe43f5e697f128493d06280d1be32890038cb50faa1a12ed
|
data/.gitignore
CHANGED
@@ -55,18 +55,18 @@ module Clientele
|
|
55
55
|
private
|
56
56
|
|
57
57
|
def method_missing(method_name, *args, &block)
|
58
|
-
if
|
58
|
+
if stack.last.respond_to? method_name, false
|
59
|
+
tap { |builder| builder.stack = builder.stack[0..-2] << builder.stack.last.send(method_name, *args, &block) }
|
60
|
+
elsif client.resources.keys.include? method_name
|
59
61
|
tap { |builder| builder.stack << client.resources[method_name] }
|
60
62
|
elsif stack.last.respond_to? :each_with_builder and method_name == :each
|
61
63
|
stack.last.each_with_builder(self, &block)
|
62
|
-
elsif stack.last.respond_to? method_name, false
|
63
|
-
tap { |builder| builder.stack = builder.stack[0..-2] << builder.stack.last.send(method_name, *args, &block) }
|
64
64
|
else; super; end
|
65
65
|
end
|
66
66
|
|
67
67
|
def respond_to_missing?(method_name, include_private=false)
|
68
|
-
|
69
|
-
or
|
68
|
+
stack.last.respond_to?(method_name, include_private) \
|
69
|
+
or API::resources.keys.include?(method_name) \
|
70
70
|
or super
|
71
71
|
end
|
72
72
|
|
data/lib/clientele/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: clientele
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Keele
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-12-
|
11
|
+
date: 2014-12-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|