clientele 0.3.1 → 0.3.3

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: 42d05ad46528a07ab88673413c5bdb66dfda81b3
4
- data.tar.gz: 0dfc3af744108a98ce482fc6b243eabd3c4ab9c8
3
+ metadata.gz: dd4cdcb536b1585df339d6c28edaaeaae5f7e800
4
+ data.tar.gz: c62346d5f390ac8d3898aaeb8d3f606d156b5853
5
5
  SHA512:
6
- metadata.gz: 79ce0d0cfbe01da3b297422d36c89980aebafa02390d86c4b34a30d050d991628f6ac8d2b5ca9592ecd3c9b37c8bc9e054eea5eb9760e25a9bf098b7b8909868
7
- data.tar.gz: c631f93a29c1d4751b90793ee948962d652ac413490adea379995e24abfe9ee981230bf75726378caed917d19dd141343acac71fd2e4e61e50e8042c12aa1ac9
6
+ metadata.gz: bdaa588aa44d6a9cf4e02b7c99b2b5b6c10a2112ff61521e21b568d7d1f22a49b105306bfc644adc77c73d8a9030200f758acbe07155d47d690d8de8a8c3f92c
7
+ data.tar.gz: d199739d7ee10c3e18d8c5d818d393a242f4fd5f835f474e4f15b6c7ac21a320b9169d69efde52444e7ef6acf8e0d7c8c7eff8947e87e9c74fe6ecd594cfbb07
data/clientele.gemspec CHANGED
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
12
12
  spec.description = <<-DESC
13
13
  DSL for creating RESTful API clients for external services.
14
14
 
15
-
15
+ Follows an ActiveRecord-style class-based resource pattern.
16
16
  DESC
17
17
  spec.homepage = "https://github.com/christhekeele/clientele"
18
18
  spec.license = "MIT"
data/lib/clientele/api.rb CHANGED
@@ -65,7 +65,7 @@ module Clientele
65
65
 
66
66
  def method_missing(method_name, *args, &block)
67
67
  autoconfigure!
68
- if respond_to_missing?(method_name, false)
68
+ if respond_to_missing?(method_name.to_s, false)
69
69
  client.send method_name, *args, &block
70
70
  else; super; end
71
71
  end
@@ -84,7 +84,7 @@ module Clientele
84
84
  private
85
85
 
86
86
  def respond_to_missing?(method_name, include_private=false)
87
- resources.keys.include?(method_name) or Request::VERBS.include?(method_name) or super
87
+ resources.keys.include?(method_name.to_s) or Request::VERBS.include?(method_name) or super
88
88
  end
89
89
 
90
90
  def method_missing(method_name, *args, &block)
@@ -56,7 +56,7 @@ module Clientele
56
56
 
57
57
  def nested_result_key
58
58
  @nested_result_key || result_key
59
- e
59
+ end
60
60
 
61
61
  def build(data, client: nil)
62
62
  if data.kind_of? Array
@@ -1,3 +1,3 @@
1
1
  module Clientele
2
- VERSION = "0.3.1"
2
+ VERSION = "0.3.3"
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.1
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Keele
@@ -136,10 +136,10 @@ dependencies:
136
136
  - - ">="
137
137
  - !ruby/object:Gem::Version
138
138
  version: '0'
139
- description: |2+
139
+ description: |2
140
140
  DSL for creating RESTful API clients for external services.
141
141
 
142
-
142
+ Follows an ActiveRecord-style class-based resource pattern.
143
143
  email:
144
144
  - dev@chriskeele.com
145
145
  executables: []