brianmario-yajl-ruby 0.4.5 → 0.4.6

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.rdoc CHANGED
@@ -1,5 +1,9 @@
1
1
  = Changelog
2
2
 
3
+ 0.4.6 (May 17th, 2009)
4
+ * Applied a patch from benburkert (http://github.com/benburkert) to fix HTTP Basic Auth in
5
+ Yajl::HttpStream.get
6
+
3
7
  0.4.5 (May 17th, 2009)
4
8
  * added Yajl::Stream.encode(hash, io)
5
9
  ** generates a JSON string stream, and writes to IO
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 0
3
3
  :minor: 4
4
- :patch: 5
4
+ :patch: 6
@@ -48,7 +48,7 @@ Benchmark.bm { |x|
48
48
  puts "YAML.load_stream"
49
49
  times.times {
50
50
  yaml.rewind
51
- YAML.load_stream(yaml)
51
+ YAML.load(yaml)
52
52
  }
53
53
  }
54
54
  }
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.4.5"
16
+ VERSION = "0.4.6"
17
17
 
18
18
  # == Yajl::Chunked
19
19
  #
@@ -30,7 +30,7 @@ module Yajl
30
30
  socket = TCPSocket.new(uri.host, uri.port)
31
31
  request = "GET #{uri.path}#{uri.query ? "?"+uri.query : nil} HTTP/1.1\r\n"
32
32
  request << "Host: #{uri.host}\r\n"
33
- request << "Authorization: Basic #{[userinfo].pack('m')}\r\n" unless uri.userinfo.nil?
33
+ request << "Authorization: Basic #{[uri.userinfo].pack('m')}\r\n" unless uri.userinfo.nil?
34
34
  request << "User-Agent: #{user_agent}\r\n"
35
35
  request << "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8\r\n"
36
36
  request << "Connection: close\r\n"
data/yajl-ruby.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{yajl-ruby}
5
- s.version = "0.4.5"
5
+ s.version = "0.4.6"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Brian Lopez"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brianmario-yajl-ruby
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.5
4
+ version: 0.4.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brian Lopez