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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 88fca56c3d0d1aeefda397db16761647de0076d7
4
- data.tar.gz: e8681f282556c70e74b3390c5c6407a333c82d08
3
+ metadata.gz: fe8ff228c3ad2cc5110ea5c04c4e2d8ef5f92009
4
+ data.tar.gz: b3074fad509bd6cc2984ab69fb04a71908e0b570
5
5
  SHA512:
6
- metadata.gz: ffd27f7cac3344386bb4873fc2ca5407e4ff5e24a5986f3973f13371b980202818940f452b44fc11c2dad0dc2dea07ac7af61c8f99ba1a307b70bc01364ca7de
7
- data.tar.gz: 982447bbb8ce83d68e0278eb5e264c9c978134d262df35d8bde3cf8c65024fd9857c33cea11644a5fb1e994b81594b242ccd0b60cee8af187afab6361ef5adb2
6
+ metadata.gz: e31ad4f9101ed1f39e614948be25f7b115bd2f4c34a0bb33cb4378e0a47af29ed0297bf5f74fbadd509eda4e5df1e182ec45f4294aed8897de22e955d2d91f18
7
+ data.tar.gz: 807e1c399c6b41d3429ab14e5ad2978d488d0979ad79aaf3cb8f1a0d287193cc5c903bd2fab69e49fe43f5e697f128493d06280d1be32890038cb50faa1a12ed
data/.gitignore CHANGED
@@ -8,6 +8,7 @@ InstalledFiles
8
8
  _yardoc
9
9
  coverage
10
10
  doc/
11
+ gems/
11
12
  lib/bundler/man
12
13
  pkg
13
14
  rdoc
@@ -55,18 +55,18 @@ module Clientele
55
55
  private
56
56
 
57
57
  def method_missing(method_name, *args, &block)
58
- if client.resources.keys.include? method_name
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
- API::resources.keys.include?(method_name) \
69
- or stack.last.respond_to?(method_name, include_private) \
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
 
@@ -1,3 +1,3 @@
1
1
  module Clientele
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
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.0
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-01 00:00:00.000000000 Z
11
+ date: 2014-12-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday