clientele 0.3.8 → 0.3.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/clientele/request_builder.rb +2 -2
- data/lib/clientele/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: f931acbaba3e45fdd2a8d439bd83b3b634ad4ce5
|
4
|
+
data.tar.gz: 88740b5de27c38468065f86137e3f13324d244ba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ea94dc080c1fb7e8008dd4d6a53b50d411a3a6f2aa7661f1d93eda728a0f2cf75feb6396ec7b30083b16d02cc7809659070fb8b10b3994aff41b4997791c4c39
|
7
|
+
data.tar.gz: 9778ad711a7e4ea3058bfea8560941ff08c050224760cca1ec27b33305dc74a5a667fec8e6e45691b0ee80f89141d00304025c428eac8f2e3f0d46f87f6c5f3b
|
@@ -59,8 +59,8 @@ module Clientele
|
|
59
59
|
def method_missing(method_name, *args, &block)
|
60
60
|
if stack.last.respond_to? method_name, false
|
61
61
|
tap { |builder| builder.stack = builder.stack[0..-2] << builder.stack.last.send(method_name, *args, &block) }
|
62
|
-
elsif client.resources.keys.include? method_name
|
63
|
-
tap { |builder| builder.stack << client.resources[method_name] }
|
62
|
+
elsif client.resources.keys.include? method_name.to_s
|
63
|
+
tap { |builder| builder.stack << client.resources[method_name.to_s] }
|
64
64
|
elsif stack.last.paginateable? and enumberable_methods.include? method_name
|
65
65
|
stack.last.send :each, build, &block
|
66
66
|
else; super; end
|
data/lib/clientele/version.rb
CHANGED