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 CHANGED
@@ -1,6 +1,6 @@
1
1
  require 'neo/version'
2
2
  require 'neo/http_client'
3
- require 'curb'
3
+ require 'rest_client'
4
4
  require 'yajl'
5
5
 
6
6
  module Neo
@@ -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
 
@@ -1,3 +1,3 @@
1
1
  module Neo
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -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 'curb'
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.2
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: curb
15
+ name: rest-client
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements: