http2 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/VERSION +1 -1
  2. data/http2.gemspec +1 -1
  3. data/lib/http2.rb +2 -1
  4. metadata +2 -2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.2
1
+ 0.0.3
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{http2}
8
- s.version = "0.0.2"
8
+ s.version = "0.0.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Kasper Johansen"]
@@ -335,7 +335,7 @@ class Http2
335
335
  praw << "Content-Type: text/plain#{@nl}"
336
336
  praw << @nl
337
337
 
338
- if val.is_a?(StringIO)
338
+ if val.class.name.to_s == "StringIO"
339
339
  praw << val.read
340
340
  elsif val.is_a?(Hash) and val[:content]
341
341
  praw << val[:content].to_s
@@ -475,6 +475,7 @@ class Http2
475
475
  if @encoding == "gzip"
476
476
  require "zlib"
477
477
  require "iconv"
478
+ require "stringio"
478
479
  io = StringIO.new(@resp.args[:body])
479
480
  gz = Zlib::GzipReader.new(io)
480
481
  untrusted_str = gz.read
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: http2
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.0.2
5
+ version: 0.0.3
6
6
  platform: ruby
7
7
  authors:
8
8
  - Kasper Johansen
@@ -107,7 +107,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
107
107
  requirements:
108
108
  - - ">="
109
109
  - !ruby/object:Gem::Version
110
- hash: -2222070059487422283
110
+ hash: -2078940960128615639
111
111
  segments:
112
112
  - 0
113
113
  version: "0"