zephyr 1.1.8 → 1.1.9

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,12 +1,3 @@
1
-
2
1
  source "http://rubygems.org"
3
- gem "typhoeus", ">= 0.2.4"
4
- gem "yajl-ruby"
5
-
6
2
 
7
- group :development do
8
- gem "bundler", "~> 1.0.21"
9
- gem "jeweler", "~> 1.6.4"
10
- gem "shoulda", "~> 2.11.3"
11
- gem "mocha", "~> 0.12.0", :require => false
12
- end
3
+ gemspec
@@ -1,3 +1,10 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ zephyr (1.1.9)
5
+ typhoeus (>= 0.2.4)
6
+ yajl-ruby
7
+
1
8
  GEM
2
9
  remote: http://rubygems.org/
3
10
  specs:
@@ -7,7 +14,7 @@ GEM
7
14
  git (>= 1.2.5)
8
15
  rake
9
16
  metaclass (0.0.1)
10
- mime-types (1.16)
17
+ mime-types (1.19)
11
18
  mocha (0.12.0)
12
19
  metaclass (~> 0.0.1)
13
20
  rake (0.9.2.2)
@@ -21,9 +28,8 @@ PLATFORMS
21
28
  ruby
22
29
 
23
30
  DEPENDENCIES
24
- bundler (~> 1.0.21)
31
+ bundler (~> 1.1.0)
25
32
  jeweler (~> 1.6.4)
26
33
  mocha (~> 0.12.0)
27
34
  shoulda (~> 2.11.3)
28
- typhoeus (>= 0.2.4)
29
- yajl-ruby
35
+ zephyr!
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.1.8
1
+ 1.1.9
@@ -0,0 +1,7 @@
1
+ module Typhoeus
2
+ class Request
3
+ def params_string
4
+ Zephyr.build_query_string(params)
5
+ end
6
+ end
7
+ end
@@ -0,0 +1,7 @@
1
+ module Typhoeus
2
+ class Response
3
+ def retryable_request?
4
+ timed_out? || (500..599).include?(code)
5
+ end
6
+ end
7
+ end
@@ -6,11 +6,3 @@ module Typhoeus
6
6
  module_function :escape
7
7
  end
8
8
  end
9
-
10
- module Typhoeus
11
- class Request
12
- def params_string
13
- Zephyr.build_query_string(params)
14
- end
15
- end
16
- end
@@ -1,7 +1,9 @@
1
1
  require 'logger'
2
2
  require 'net/http'
3
3
  require 'typhoeus'
4
- require 'ext/typhoeus_ext'
4
+ require 'typhoeus_ext/request.rb'
5
+ require 'typhoeus_ext/response.rb'
6
+ require 'typhoeus_ext/utils.rb'
5
7
  require 'yajl'
6
8
 
7
9
  # Stolen with a fair bit of modification from the riak-client gem, which is
@@ -1,11 +1,8 @@
1
- # Generated by jeweler
2
- # DO NOT EDIT THIS FILE DIRECTLY
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
1
  # -*- encoding: utf-8 -*-
5
2
 
6
3
  Gem::Specification.new do |s|
7
4
  s.name = "zephyr"
8
- s.version = "1.1.8"
5
+ s.version = "1.1.9"
9
6
 
10
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
8
  s.authors = ["Matt Knopp"]
@@ -26,7 +23,9 @@ Gem::Specification.new do |s|
26
23
  "VERSION",
27
24
  "lib/zephyr.rb",
28
25
  "lib/zephyr/failed_request.rb",
29
- "lib/ext/typhoeus_ext.rb",
26
+ "lib/typhoeus_ext/request.rb",
27
+ "lib/typhoeus_ext/response.rb",
28
+ "lib/typhoeus_ext/utils.rb",
30
29
  "test/helper.rb",
31
30
  "test/test_zephyr.rb",
32
31
  "zephyr.gemspec"
@@ -43,21 +42,21 @@ Gem::Specification.new do |s|
43
42
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
44
43
  s.add_runtime_dependency(%q<typhoeus>, [">= 0.2.4"])
45
44
  s.add_runtime_dependency(%q<yajl-ruby>, [">= 0"])
46
- s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
45
+ s.add_development_dependency(%q<bundler>, ["~> 1.1.0"])
47
46
  s.add_development_dependency(%q<jeweler>, ["~> 1.6.4"])
48
47
  s.add_development_dependency(%q<shoulda>, ["~> 2.11.3"])
49
48
  s.add_development_dependency(%q<mocha>, ["~> 0.12.0"])
50
49
  else
51
50
  s.add_dependency(%q<typhoeus>, [">= 0.2.4"])
52
51
  s.add_dependency(%q<yajl-ruby>, [">= 0"])
53
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
52
+ s.add_dependency(%q<bundler>, ["~> 1.1.0"])
54
53
  s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
55
54
  s.add_dependency(%q<shoulda>, ["~> 2.11.3"])
56
55
  end
57
56
  else
58
57
  s.add_dependency(%q<typhoeus>, [">= 0.2.4"])
59
58
  s.add_dependency(%q<yajl-ruby>, [">= 0"])
60
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
59
+ s.add_dependency(%q<bundler>, ["~> 1.1.0"])
61
60
  s.add_dependency(%q<jeweler>, ["~> 1.6.4"])
62
61
  s.add_dependency(%q<shoulda>, ["~> 2.11.3"])
63
62
  end
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.8
4
+ version: 1.1.9
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -50,7 +50,7 @@ dependencies:
50
50
  requirements:
51
51
  - - ~>
52
52
  - !ruby/object:Gem::Version
53
- version: 1.0.0
53
+ version: 1.1.0
54
54
  type: :development
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
@@ -58,7 +58,7 @@ dependencies:
58
58
  requirements:
59
59
  - - ~>
60
60
  - !ruby/object:Gem::Version
61
- version: 1.0.0
61
+ version: 1.1.0
62
62
  - !ruby/object:Gem::Dependency
63
63
  name: jeweler
64
64
  requirement: !ruby/object:Gem::Requirement
@@ -124,7 +124,9 @@ files:
124
124
  - VERSION
125
125
  - lib/zephyr.rb
126
126
  - lib/zephyr/failed_request.rb
127
- - lib/ext/typhoeus_ext.rb
127
+ - lib/typhoeus_ext/request.rb
128
+ - lib/typhoeus_ext/response.rb
129
+ - lib/typhoeus_ext/utils.rb
128
130
  - test/helper.rb
129
131
  - test/test_zephyr.rb
130
132
  - zephyr.gemspec