zephyr 1.1.9 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -2,12 +2,13 @@ PATH
2
2
  remote: .
3
3
  specs:
4
4
  zephyr (1.1.9)
5
- typhoeus (>= 0.2.4)
5
+ typhoeus (~> 0.4.2)
6
6
  yajl-ruby
7
7
 
8
8
  GEM
9
9
  remote: http://rubygems.org/
10
10
  specs:
11
+ ffi (1.2.0)
11
12
  git (1.2.5)
12
13
  jeweler (1.6.4)
13
14
  bundler (~> 1.0)
@@ -19,9 +20,9 @@ GEM
19
20
  metaclass (~> 0.0.1)
20
21
  rake (0.9.2.2)
21
22
  shoulda (2.11.3)
22
- typhoeus (0.2.4)
23
- mime-types
24
- mime-types
23
+ typhoeus (0.4.2)
24
+ ffi (~> 1.0)
25
+ mime-types (~> 1.18)
25
26
  yajl-ruby (1.1.0)
26
27
 
27
28
  PLATFORMS
data/Rakefile CHANGED
@@ -11,20 +11,6 @@ rescue Bundler::BundlerError => e
11
11
  end
12
12
  require 'rake'
13
13
 
14
- require 'jeweler'
15
- Jeweler::Tasks.new do |gem|
16
- # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
17
- gem.name = "zephyr"
18
- gem.homepage = "http://github.com/mhat/zephyr"
19
- gem.license = "MIT"
20
- gem.summary = %Q{Battle-tested HTTP client using Typhoeus, derived from the Riak client}
21
- gem.description = %Q{Battle-tested HTTP client using Typhoeus, derived from the Riak client}
22
- gem.email = "matt.knopp@gmail.com"
23
- gem.authors = ["Matt Knopp"]
24
- # dependencies defined in Gemfile
25
- end
26
- Jeweler::RubygemsDotOrgTasks.new
27
-
28
14
  require 'rake/testtask'
29
15
  Rake::TestTask.new(:test) do |test|
30
16
  test.libs << 'lib' << 'test'
@@ -32,13 +18,5 @@ Rake::TestTask.new(:test) do |test|
32
18
  test.verbose = true
33
19
  end
34
20
 
35
- ##require 'rcov/rcovtask'
36
- ##Rcov::RcovTask.new do |test|
37
- ## test.libs << 'test'
38
- ## test.pattern = 'test/**/test_*.rb'
39
- ## test.verbose = true
40
- ## test.rcov_opts << '--exclude "gems/*"'
41
- ##end
42
-
43
21
  task :default => :test
44
22
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.9
1
+ 1.2.0
@@ -1,6 +1,7 @@
1
1
  module Typhoeus
2
2
  class Request
3
3
  def params_string
4
+ return nil unless params
4
5
  Zephyr.build_query_string(params)
5
6
  end
6
7
  end
@@ -79,7 +79,7 @@ class Zephyr
79
79
  end
80
80
 
81
81
  def percent_encode(value)
82
- typhoeus_easy.send(:easy_escape, value.to_s, value.to_s.bytesize)
82
+ Typhoeus::Curl.easy_escape(typhoeus_easy.handle, value.to_s, value.to_s.bytesize)
83
83
  end
84
84
 
85
85
  def build_query_string(params)
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "zephyr"
5
- s.version = "1.1.9"
5
+ s.version = "1.2.0"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Matt Knopp"]
@@ -40,21 +40,21 @@ Gem::Specification.new do |s|
40
40
  s.specification_version = 3
41
41
 
42
42
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
43
- s.add_runtime_dependency(%q<typhoeus>, [">= 0.2.4"])
43
+ s.add_runtime_dependency(%q<typhoeus>, ["~> 0.4.2"])
44
44
  s.add_runtime_dependency(%q<yajl-ruby>, [">= 0"])
45
45
  s.add_development_dependency(%q<bundler>, ["~> 1.1.0"])
46
46
  s.add_development_dependency(%q<jeweler>, ["~> 1.6.4"])
47
47
  s.add_development_dependency(%q<shoulda>, ["~> 2.11.3"])
48
48
  s.add_development_dependency(%q<mocha>, ["~> 0.12.0"])
49
49
  else
50
- s.add_dependency(%q<typhoeus>, [">= 0.2.4"])
50
+ s.add_dependency(%q<typhoeus>, ["~> 0.4.2"])
51
51
  s.add_dependency(%q<yajl-ruby>, [">= 0"])
52
52
  s.add_dependency(%q<bundler>, ["~> 1.1.0"])
53
53
  s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
54
54
  s.add_dependency(%q<shoulda>, ["~> 2.11.3"])
55
55
  end
56
56
  else
57
- s.add_dependency(%q<typhoeus>, [">= 0.2.4"])
57
+ s.add_dependency(%q<typhoeus>, ["~> 0.4.2"])
58
58
  s.add_dependency(%q<yajl-ruby>, [">= 0"])
59
59
  s.add_dependency(%q<bundler>, ["~> 1.1.0"])
60
60
  s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zephyr
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.9
4
+ version: 1.2.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -16,17 +16,17 @@ dependencies:
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
- - - ! '>='
19
+ - - ~>
20
20
  - !ruby/object:Gem::Version
21
- version: 0.2.4
21
+ version: 0.4.2
22
22
  type: :runtime
23
23
  prerelease: false
24
24
  version_requirements: !ruby/object:Gem::Requirement
25
25
  none: false
26
26
  requirements:
27
- - - ! '>='
27
+ - - ~>
28
28
  - !ruby/object:Gem::Version
29
- version: 0.2.4
29
+ version: 0.4.2
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: yajl-ruby
32
32
  requirement: !ruby/object:Gem::Requirement