neo 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/neo.rb +1 -1
- data/lib/neo/http_client.rb +1 -6
- data/lib/neo/version.rb +1 -1
- data/neo.gemspec +1 -1
- metadata +2 -2
data/lib/neo.rb
CHANGED
data/lib/neo/http_client.rb
CHANGED
@@ -6,12 +6,7 @@ module HttpClient
|
|
6
6
|
VERBS.each do |verb|
|
7
7
|
define_method verb do |uri, body = {}, options = {}|
|
8
8
|
headers = merge_default_headers(options[:headers])
|
9
|
-
|
10
|
-
http = Curl.send verb, uri, body do |c|
|
11
|
-
c.headers = headers
|
12
|
-
end
|
13
|
-
|
14
|
-
Yajl::Parser.parse http.body_str
|
9
|
+
Yajl::Parser.parse RestClient.send(verb, uri, body, headers)
|
15
10
|
end
|
16
11
|
end
|
17
12
|
|
data/lib/neo/version.rb
CHANGED
data/neo.gemspec
CHANGED
@@ -16,6 +16,6 @@ Gem::Specification.new do |gem|
|
|
16
16
|
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
17
17
|
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
18
18
|
gem.require_paths = ["lib"]
|
19
|
-
gem.add_dependency '
|
19
|
+
gem.add_dependency 'rest-client'
|
20
20
|
gem.add_dependency 'yajl-ruby'
|
21
21
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: neo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -12,7 +12,7 @@ cert_chain: []
|
|
12
12
|
date: 2013-04-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
|
-
name:
|
15
|
+
name: rest-client
|
16
16
|
requirement: !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|