yajl-ruby 0.7.2 → 0.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of yajl-ruby might be problematic. Click here for more details.
- data/CHANGELOG.md +3 -0
- data/VERSION.yml +1 -1
- data/lib/yajl.rb +1 -1
- data/lib/yajl/http_stream.rb +0 -4
- data/yajl-ruby.gemspec +1 -1
- metadata +2 -2
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
# Changelog
|
2
2
|
|
3
|
+
## 0.7.3 (February 23rd, 2010)
|
4
|
+
* remove trap from HttpStream code, it's really not needed
|
5
|
+
|
3
6
|
## 0.7.2 (February 23rd, 2010)
|
4
7
|
* fixed broken to_json compatibility
|
5
8
|
* removed strlen in a few places in favor of RSTRING_LEN since ruby already knows the length of the string
|
data/VERSION.yml
CHANGED
data/lib/yajl.rb
CHANGED
@@ -13,7 +13,7 @@ require 'yajl_ext'
|
|
13
13
|
#
|
14
14
|
# Ruby bindings to the excellent Yajl (Yet Another JSON Parser) ANSI C library.
|
15
15
|
module Yajl
|
16
|
-
VERSION = "0.7.
|
16
|
+
VERSION = "0.7.3"
|
17
17
|
|
18
18
|
# For compatibility, has the same signature of Yajl::Parser.parse
|
19
19
|
def self.load(str_or_io, options={}, read_bufsize=nil, &block)
|
data/lib/yajl/http_stream.rb
CHANGED
@@ -99,9 +99,6 @@ module Yajl
|
|
99
99
|
end
|
100
100
|
|
101
101
|
socket = opts.has_key?(:socket) ? opts.delete(:socket) : TCPSocket.new(uri.host, uri.port)
|
102
|
-
original_trap = trap("INT") {
|
103
|
-
return
|
104
|
-
}
|
105
102
|
request = "#{method} #{uri.path}#{uri.query ? "?"+uri.query : nil} HTTP/1.1\r\n"
|
106
103
|
request << "Host: #{uri.host}\r\n"
|
107
104
|
request << "Authorization: Basic #{[uri.userinfo].pack('m').strip!}\r\n" unless uri.userinfo.nil?
|
@@ -183,7 +180,6 @@ module Yajl
|
|
183
180
|
end
|
184
181
|
end
|
185
182
|
ensure
|
186
|
-
trap("INT", original_trap) if original_trap
|
187
183
|
socket.close if !socket.nil? and !socket.closed?
|
188
184
|
end
|
189
185
|
|
data/yajl-ruby.gemspec
CHANGED