right_http_connection 1.4.0 → 1.5.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +7 -0
  2. data/lib/base/net_fix.rb +1 -0
  3. data/lib/base/version.rb +1 -1
  4. metadata +79 -106
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 3d94d6c43766073b517b8dc185bb2692f3483e65
4
+ data.tar.gz: b4bd20525530947e06de7f68feab772b4f99413c
5
+ SHA512:
6
+ metadata.gz: ce70d0290c2176db0b4aa51aed38554b33ac4175ac8333b57deb39e9e8c2bcf4cb57ab3275f708070af77b8d851410803c94cdfb6df99b172be84ced989d2bf7
7
+ data.tar.gz: 9d606c893180617072469dd6cd62a6641fa827a2c29357cc42044fb267709a910c96448e222b586106c68d17397db79beab4815284a40f1f38b193575de503a5
@@ -162,6 +162,7 @@ module Net
162
162
  req.exec @socket, @curr_http_version, edit_path(req.path), send_only
163
163
  begin
164
164
  res = HTTPResponse.read_new(@socket)
165
+ res.decode_content = req.decode_content if RUBY_VERSION > '2.0'
165
166
  # if we expected 100-continue then send a body
166
167
  if res.is_a?(HTTPContinue) && send_only && req['content-length'].to_i > 0
167
168
  req.exec @socket, @curr_http_version, edit_path(req.path), :body
@@ -24,7 +24,7 @@
24
24
  module RightHttpConnection #:nodoc:
25
25
  module VERSION #:nodoc:
26
26
  MAJOR = 1 unless defined?(MAJOR)
27
- MINOR = 4 unless defined?(MINOR)
27
+ MINOR = 5 unless defined?(MINOR)
28
28
  TINY = 0 unless defined?(TINY)
29
29
 
30
30
  STRING = [MAJOR, MINOR, TINY].join('.') unless defined?(STRING)
metadata CHANGED
@@ -1,115 +1,100 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: right_http_connection
3
- version: !ruby/object:Gem::Version
4
- hash: 7
5
- prerelease:
6
- segments:
7
- - 1
8
- - 4
9
- - 0
10
- version: 1.4.0
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.5.0
11
5
  platform: ruby
12
- authors:
6
+ authors:
13
7
  - RightScale, Inc.
14
8
  autorequire:
15
9
  bindir: bin
16
10
  cert_chain: []
17
-
18
- date: 2013-06-13 00:00:00 Z
19
- dependencies:
20
- - !ruby/object:Gem::Dependency
11
+ date: 2014-08-19 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
21
14
  name: rake
22
- prerelease: false
23
- requirement: &id001 !ruby/object:Gem::Requirement
24
- none: false
25
- requirements:
26
- - - ">="
27
- - !ruby/object:Gem::Version
28
- hash: 3
29
- segments:
30
- - 0
31
- version: "0"
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '>='
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
32
20
  type: :development
33
- version_requirements: *id001
34
- - !ruby/object:Gem::Dependency
35
- name: rspec
36
21
  prerelease: false
37
- requirement: &id002 !ruby/object:Gem::Requirement
38
- none: false
39
- requirements:
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '>='
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rspec
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
40
31
  - - ~>
41
- - !ruby/object:Gem::Version
42
- hash: 5
43
- segments:
44
- - 2
45
- - 3
46
- version: "2.3"
32
+ - !ruby/object:Gem::Version
33
+ version: '2.3'
47
34
  type: :development
48
- version_requirements: *id002
49
- - !ruby/object:Gem::Dependency
50
- name: cucumber
51
35
  prerelease: false
52
- requirement: &id003 !ruby/object:Gem::Requirement
53
- none: false
54
- requirements:
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ~>
39
+ - !ruby/object:Gem::Version
40
+ version: '2.3'
41
+ - !ruby/object:Gem::Dependency
42
+ name: cucumber
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
55
45
  - - ~>
56
- - !ruby/object:Gem::Version
57
- hash: 27
58
- segments:
59
- - 0
60
- - 8
61
- version: "0.8"
46
+ - !ruby/object:Gem::Version
47
+ version: '0.8'
62
48
  type: :development
63
- version_requirements: *id003
64
- - !ruby/object:Gem::Dependency
65
- name: flexmock
66
49
  prerelease: false
67
- requirement: &id004 !ruby/object:Gem::Requirement
68
- none: false
69
- requirements:
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: '0.8'
55
+ - !ruby/object:Gem::Dependency
56
+ name: flexmock
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
70
59
  - - ~>
71
- - !ruby/object:Gem::Version
72
- hash: 41
73
- segments:
74
- - 0
75
- - 8
76
- - 11
60
+ - !ruby/object:Gem::Version
77
61
  version: 0.8.11
78
62
  type: :development
79
- version_requirements: *id004
80
- - !ruby/object:Gem::Dependency
81
- name: trollop
82
63
  prerelease: false
83
- requirement: &id005 !ruby/object:Gem::Requirement
84
- none: false
85
- requirements:
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ~>
67
+ - !ruby/object:Gem::Version
68
+ version: 0.8.11
69
+ - !ruby/object:Gem::Dependency
70
+ name: trollop
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
86
73
  - - ~>
87
- - !ruby/object:Gem::Version
88
- hash: 47
89
- segments:
90
- - 1
91
- - 16
92
- version: "1.16"
74
+ - !ruby/object:Gem::Version
75
+ version: '1.16'
93
76
  type: :development
94
- version_requirements: *id005
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ~>
81
+ - !ruby/object:Gem::Version
82
+ version: '1.16'
95
83
  description: |
96
84
  Rightscale::HttpConnection is a robust HTTP/S library. It implements a retry
97
85
  algorithm for low-level network errors.
98
-
86
+
99
87
  == FEATURES:
100
-
88
+
101
89
  - provides put/get streaming
102
90
  - does configurable retries on connect and read timeouts, DNS failures, etc.
103
91
  - HTTPS certificate checking
104
-
105
92
  email: rubygems@rightscale.com
106
93
  executables: []
107
-
108
94
  extensions: []
109
-
110
- extra_rdoc_files:
95
+ extra_rdoc_files:
111
96
  - README.txt
112
- files:
97
+ files:
113
98
  - History.txt
114
99
  - Manifest.txt
115
100
  - README.txt
@@ -138,9 +123,9 @@ files:
138
123
  - spec/server.key
139
124
  homepage: http://rightscale.rubyforge.org/
140
125
  licenses: []
141
-
126
+ metadata: {}
142
127
  post_install_message:
143
- rdoc_options:
128
+ rdoc_options:
144
129
  - --quiet
145
130
  - --main
146
131
  - README.txt
@@ -150,34 +135,22 @@ rdoc_options:
150
135
  - index.html
151
136
  - --line-numbers
152
137
  - --inline-source
153
- require_paths:
138
+ require_paths:
154
139
  - lib
155
- required_ruby_version: !ruby/object:Gem::Requirement
156
- none: false
157
- requirements:
158
- - - ">="
159
- - !ruby/object:Gem::Version
160
- hash: 57
161
- segments:
162
- - 1
163
- - 8
164
- - 7
140
+ required_ruby_version: !ruby/object:Gem::Requirement
141
+ requirements:
142
+ - - '>='
143
+ - !ruby/object:Gem::Version
165
144
  version: 1.8.7
166
- required_rubygems_version: !ruby/object:Gem::Requirement
167
- none: false
168
- requirements:
169
- - - ">="
170
- - !ruby/object:Gem::Version
171
- hash: 3
172
- segments:
173
- - 0
174
- version: "0"
145
+ required_rubygems_version: !ruby/object:Gem::Requirement
146
+ requirements:
147
+ - - '>='
148
+ - !ruby/object:Gem::Version
149
+ version: '0'
175
150
  requirements: []
176
-
177
151
  rubyforge_project: rightscale
178
- rubygems_version: 1.8.5
152
+ rubygems_version: 2.0.14
179
153
  signing_key:
180
- specification_version: 3
154
+ specification_version: 4
181
155
  summary: RightScale's robust HTTP/S connection module
182
156
  test_files: []
183
-