clientele 0.3.6 → 0.3.7

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: 2f8c94289c8a941f31b24e84595f6c80624a90fb
4
- data.tar.gz: bd1b53a3a86fee816ecb19c9b55ceddbdc852b6c
3
+ metadata.gz: 87bc7d61e47a39881cd03d0d2e1f4bb023bc6a77
4
+ data.tar.gz: ecf6d0bc7f9273140438fe915f7485bca663f489
5
5
  SHA512:
6
- metadata.gz: a18c3e81c0f784bd6179a650957be8c0c7c4c9731bc88bc866c68715aee987dce65696282e9c0032bc88810a3d7034faa4798f4d980432cddb4e35b51792049f
7
- data.tar.gz: 22446602cdadcc3ae3986e6944dcd56a4d25401651b19b996a9413d842fcf0d0ecbd74ce0b37e1cc42ecbc9936130b1e5de558a001f5e2eabad05a2c3467fe82
6
+ metadata.gz: fcd2499a0aa2d47f34b52129cc3db141be7012ef5c9607ed96c482b2f4a2a81e74518668beae10e771e6ac5c5981a05338b3c92ecfee3e081c7f2a286545ba15
7
+ data.tar.gz: 4eb4de1043f19967b2197df9e13977122f0ef1a0ed2bbba374925c288e8b760f825d747090a7384bcacc1b1971e087c6d96ea45a033afdf9f093f81918975a15
@@ -72,9 +72,9 @@ module Clientele
72
72
  build dataset, client: client
73
73
  end
74
74
  elsif (klass or data).kind_of? Hash and data.keys.map(&:to_s).include? result_key.to_s
75
- build data.send method_name, client: client
75
+ build data.send result_key, client: client
76
76
  elsif (klass or data).kind_of? Hash and data.keys.map(&:to_s).include? plural_key.to_s
77
- build data.send method_name, client: client
77
+ build data.send plural_key, client: client
78
78
  else
79
79
  new(data).tap do |instance|
80
80
  instance.instance_variable_set :@client, client if client
@@ -1,3 +1,3 @@
1
1
  module Clientele
2
- VERSION = "0.3.6"
2
+ VERSION = "0.3.7"
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.6
4
+ version: 0.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Keele