gateway-http 0.1.0 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.0
1
+ 0.1.2
@@ -0,0 +1,69 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = "gateway-http"
8
+ s.version = "0.1.2"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Aaron Qian"]
12
+ s.date = "2012-02-15"
13
+ s.description = " Gateway wrapper client for Net::HTTP "
14
+ s.email = "aq1018@gmail.com"
15
+ s.extra_rdoc_files = [
16
+ "LICENSE.txt",
17
+ "README.rdoc"
18
+ ]
19
+ s.files = [
20
+ ".document",
21
+ ".rspec",
22
+ "Gemfile",
23
+ "LICENSE.txt",
24
+ "README.rdoc",
25
+ "Rakefile",
26
+ "VERSION",
27
+ "gateway-http.gemspec",
28
+ "lib/gateway-http.rb",
29
+ "lib/gateway/http.rb",
30
+ "spec/gateway-http_spec.rb",
31
+ "spec/spec_helper.rb"
32
+ ]
33
+ s.homepage = "http://github.com/aq1018/gateway-http"
34
+ s.licenses = ["MIT"]
35
+ s.require_paths = ["lib"]
36
+ s.rubygems_version = "1.8.10"
37
+ s.summary = "Gateway wrapper client for Net::HTTP"
38
+
39
+ if s.respond_to? :specification_version then
40
+ s.specification_version = 3
41
+
42
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
43
+ s.add_runtime_dependency(%q<gateway>, [">= 0.1.0"])
44
+ s.add_runtime_dependency(%q<net-http-pipeline>, ["~> 1.0"])
45
+ s.add_development_dependency(%q<rspec>, ["~> 2.8.0"])
46
+ s.add_development_dependency(%q<yard>, ["~> 0.7"])
47
+ s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
48
+ s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
49
+ s.add_development_dependency(%q<jeweler>, ["~> 1.8.3"])
50
+ else
51
+ s.add_dependency(%q<gateway>, [">= 0.1.0"])
52
+ s.add_dependency(%q<net-http-pipeline>, ["~> 1.0"])
53
+ s.add_dependency(%q<rspec>, ["~> 2.8.0"])
54
+ s.add_dependency(%q<yard>, ["~> 0.7"])
55
+ s.add_dependency(%q<rdoc>, ["~> 3.12"])
56
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
57
+ s.add_dependency(%q<jeweler>, ["~> 1.8.3"])
58
+ end
59
+ else
60
+ s.add_dependency(%q<gateway>, [">= 0.1.0"])
61
+ s.add_dependency(%q<net-http-pipeline>, ["~> 1.0"])
62
+ s.add_dependency(%q<rspec>, ["~> 2.8.0"])
63
+ s.add_dependency(%q<yard>, ["~> 0.7"])
64
+ s.add_dependency(%q<rdoc>, ["~> 3.12"])
65
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
66
+ s.add_dependency(%q<jeweler>, ["~> 1.8.3"])
67
+ end
68
+ end
69
+
data/lib/gateway/http.rb CHANGED
@@ -17,7 +17,7 @@ module Gateway
17
17
 
18
18
  # It's safe to specify all actions because non-idempotent requests
19
19
  # will skip retry automatically
20
- categorize_error Timeout::Error, Net::HTTPError,
20
+ categorize_error Timeout::Error, Net::HTTPError, Net::HTTP::Pipeline::ResponseError,
21
21
  :as => :retry, :for => :all
22
22
 
23
23
  def self.normalize_uri uri
data/lib/gateway-http.rb CHANGED
@@ -1,3 +1,4 @@
1
+ require 'active_support/core_ext/string/inflections'
1
2
  require 'gateway'
2
3
  require 'net/http/pipeline'
3
4
  require 'gateway/http'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gateway-http
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-02-10 00:00:00.000000000 Z
12
+ date: 2012-02-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: gateway
16
- requirement: &18457440 !ruby/object:Gem::Requirement
16
+ requirement: &22209500 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 0.1.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *18457440
24
+ version_requirements: *22209500
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: net-http-pipeline
27
- requirement: &18472140 !ruby/object:Gem::Requirement
27
+ requirement: &22224720 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '1.0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *18472140
35
+ version_requirements: *22224720
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rspec
38
- requirement: &18471440 !ruby/object:Gem::Requirement
38
+ requirement: &22223400 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 2.8.0
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *18471440
46
+ version_requirements: *22223400
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: yard
49
- requirement: &18470680 !ruby/object:Gem::Requirement
49
+ requirement: &22222280 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ~>
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0.7'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *18470680
57
+ version_requirements: *22222280
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: rdoc
60
- requirement: &18469940 !ruby/object:Gem::Requirement
60
+ requirement: &22221260 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ~>
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: '3.12'
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *18469940
68
+ version_requirements: *22221260
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: bundler
71
- requirement: &18469160 !ruby/object:Gem::Requirement
71
+ requirement: &22219400 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ~>
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: 1.0.0
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *18469160
79
+ version_requirements: *22219400
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: jeweler
82
- requirement: &18468380 !ruby/object:Gem::Requirement
82
+ requirement: &22217700 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ~>
@@ -87,7 +87,7 @@ dependencies:
87
87
  version: 1.8.3
88
88
  type: :development
89
89
  prerelease: false
90
- version_requirements: *18468380
90
+ version_requirements: *22217700
91
91
  description: ! ' Gateway wrapper client for Net::HTTP '
92
92
  email: aq1018@gmail.com
93
93
  executables: []
@@ -103,6 +103,7 @@ files:
103
103
  - README.rdoc
104
104
  - Rakefile
105
105
  - VERSION
106
+ - gateway-http.gemspec
106
107
  - lib/gateway-http.rb
107
108
  - lib/gateway/http.rb
108
109
  - spec/gateway-http_spec.rb
@@ -122,7 +123,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
122
123
  version: '0'
123
124
  segments:
124
125
  - 0
125
- hash: -993550479734440858
126
+ hash: -1390503096420622121
126
127
  required_rubygems_version: !ruby/object:Gem::Requirement
127
128
  none: false
128
129
  requirements: