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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c007e157b3b34fbc7d0527566670837e910f33da
4
- data.tar.gz: 7ed13ea38b32be707dee5ba56fe81a2166d33bae
3
+ metadata.gz: f931acbaba3e45fdd2a8d439bd83b3b634ad4ce5
4
+ data.tar.gz: 88740b5de27c38468065f86137e3f13324d244ba
5
5
  SHA512:
6
- metadata.gz: 80785216d87f2da664a61cf762f22a788d7da55de2c09b762f7f2f369b0c011fa940a1f5cc18c801c988d87a71cb3025dab776125e7dcd441c6f3311bbc30ac9
7
- data.tar.gz: 30d5360b2d15203a67692f1f43b8ffeaea271572ea7aee16c3c39158efba48f16fd90010cfc12ad339344ef033188d5a158c115584aa12cfd1fda2fdcf6d8a10
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
@@ -1,3 +1,3 @@
1
1
  module Clientele
2
- VERSION = "0.3.8"
2
+ VERSION = "0.3.9"
3
3
  end
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.8
4
+ version: 0.3.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Keele