api-client 1.6.0 → 1.6.1
Sign up to get free protection for your applications and to get access to all the features.
- data/.travis.yml +3 -0
- data/CHANGELOG.md +6 -0
- data/README.md +2 -3
- data/lib/api-client/base.rb +0 -1
- data/lib/api-client/version.rb +1 -1
- metadata +3 -3
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
# ApiClient [![Build Status](https://secure.travis-ci.org/plribeiro3000/api-client.png)](http://travis-ci.org/plribeiro3000/api-client)
|
2
2
|
|
3
|
-
Client to make Api calls easily.
|
4
|
-
For older versions, check branch retro-compatibility.
|
3
|
+
Client to make Api calls easily. It supports ruby 1.8.7, 1.9.2, 1.9.3, jruby and ree out of the box.
|
5
4
|
|
6
5
|
## Installation
|
7
6
|
|
@@ -59,7 +58,7 @@ end
|
|
59
58
|
```
|
60
59
|
|
61
60
|
## TODO
|
62
|
-
* Add Support to
|
61
|
+
* Add Support to Faraday
|
63
62
|
* Add more Response Handlers
|
64
63
|
|
65
64
|
## Contributing
|
data/lib/api-client/base.rb
CHANGED
@@ -61,7 +61,6 @@ module ApiClient
|
|
61
61
|
protected
|
62
62
|
|
63
63
|
def self.method_missing(method, *args)
|
64
|
-
return super unless Dispatcher.respond_to?(method)
|
65
64
|
json_object = Parser.response(Dispatcher.send(method, *args), remote_object)
|
66
65
|
return json_object.map { |a| new(a) } if json_object.instance_of?(Array)
|
67
66
|
new(json_object)
|
data/lib/api-client/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: api-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -165,7 +165,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
165
165
|
version: '0'
|
166
166
|
segments:
|
167
167
|
- 0
|
168
|
-
hash:
|
168
|
+
hash: 3779983035564175223
|
169
169
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
170
170
|
none: false
|
171
171
|
requirements:
|
@@ -174,7 +174,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
174
174
|
version: '0'
|
175
175
|
segments:
|
176
176
|
- 0
|
177
|
-
hash:
|
177
|
+
hash: 3779983035564175223
|
178
178
|
requirements: []
|
179
179
|
rubyforge_project:
|
180
180
|
rubygems_version: 1.8.24
|