http 1.0.0.pre2 → 1.0.0.pre3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 88e73e87efcb7c8c34d776d5bffcf72f45c195da
4
- data.tar.gz: d9e4ef53d51cf7fa664999fd9e81c43e40d0a73c
3
+ metadata.gz: 6e1927443d777f84c1531531c9dec4e0b6eba9ff
4
+ data.tar.gz: 4ac6e616a529191f56f7af34dd71e3fb93667155
5
5
  SHA512:
6
- metadata.gz: afb56806f4e58c1781db4722362319930d12489b60a258a83e3bfcd035f362ab22e9605078a23d89ebf6d265508482652bdf5e26ffeb4311fba061c458e1e576
7
- data.tar.gz: cefe686bd8276230e515498becaa20c43aa14ee4203b47497ca7cbd4c9ec56ebe15c6a908737e042001135fd664c543401d22a97674386aa08b420475e2c8530
6
+ metadata.gz: 2f9b035441245faf2b3124cf4c2562b705ac74d1522f75216f31d7dcff91779acae067845127b0cca63ccf0159567ae11ed94408425cf4626d072178ed09d4a1
7
+ data.tar.gz: 44745a975c4fe5595857ed2214cdc9ec1d7caf0bb5c146270a2a9630574955d2ad33b63a600d8c9d0c2898facb59bd8cfc9f9685c972a66e8c4c23532a4659c1
data/CHANGES.md CHANGED
@@ -30,6 +30,10 @@
30
30
  Support for disabling Nagle's algorithm with `HTTP.nodelay`.
31
31
  ([@nerdrew])
32
32
 
33
+ * [#276](https://github.com/httprb/http/pull/276)
34
+ Use Encoding::BINARY as the default encoding for HTTP::Response::Body.
35
+ ([@tarcieri])
36
+
33
37
  ## 0.9.8 (2015-09-29)
34
38
 
35
39
  * [#260](https://github.com/httprb/http/pull/258):
@@ -9,7 +9,7 @@ module HTTP
9
9
  include Enumerable
10
10
  def_delegator :to_s, :empty?
11
11
 
12
- def initialize(client, encoding)
12
+ def initialize(client, encoding = Encoding::BINARY)
13
13
  @client = client
14
14
  @streaming = nil
15
15
  @contents = nil
@@ -1,3 +1,3 @@
1
1
  module HTTP
2
- VERSION = "1.0.0.pre2".freeze
2
+ VERSION = "1.0.0.pre3".freeze
3
3
  end
@@ -59,6 +59,9 @@ RSpec.shared_context "HTTP handling" do
59
59
  let(:read_timeout) { 2.5 }
60
60
 
61
61
  it "does not time out" do
62
+ # TODO: investigate sporadic JRuby timeouts on CI
63
+ skip "flaky environment" if flaky_env?
64
+
62
65
  expect { client.get("#{server.endpoint}/sleep").body.to_s }.to_not raise_error
63
66
  end
64
67
  end
@@ -94,7 +97,7 @@ RSpec.shared_context "HTTP handling" do
94
97
 
95
98
  it "does not timeout" do
96
99
  # TODO: investigate sporadic JRuby timeouts on CI
97
- skip if defined?(JRUBY_VERSION)
100
+ skip "flaky environment" if flaky_env?
98
101
 
99
102
  client.get("#{server.endpoint}/sleep").body.to_s
100
103
  client.get("#{server.endpoint}/sleep").body.to_s
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: http
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0.pre2
4
+ version: 1.0.0.pre3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tony Arcieri
@@ -183,7 +183,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
183
183
  version: 1.3.1
184
184
  requirements: []
185
185
  rubyforge_project:
186
- rubygems_version: 2.4.8
186
+ rubygems_version: 2.4.5.1
187
187
  signing_key:
188
188
  specification_version: 4
189
189
  summary: HTTP should be easy