benofsky-yajl-ruby 0.7.6 → 0.7.7
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION.yml +2 -2
- data/benofsky-yajl-ruby.gemspec +204 -0
- data/lib/yajl/http_stream.rb +1 -1
- metadata +4 -3
data/VERSION.yml
CHANGED
@@ -0,0 +1,204 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = %q{benofsky-yajl-ruby}
|
8
|
+
s.version = "0.7.7"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Ben McRedmond", "Brian Lopez", "Lloyd Hilaiel"]
|
12
|
+
s.date = %q{2010-06-21}
|
13
|
+
s.email = %q{ben@benmcredmond.com}
|
14
|
+
s.extensions = ["ext/extconf.rb"]
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"README.rdoc",
|
17
|
+
"ext/yajl.c"
|
18
|
+
]
|
19
|
+
s.files = [
|
20
|
+
".gitignore",
|
21
|
+
"CHANGELOG.md",
|
22
|
+
"MIT-LICENSE",
|
23
|
+
"README.rdoc",
|
24
|
+
"Rakefile",
|
25
|
+
"VERSION.yml",
|
26
|
+
"benchmark/encode.rb",
|
27
|
+
"benchmark/encode_json_and_marshal.rb",
|
28
|
+
"benchmark/encode_json_and_yaml.rb",
|
29
|
+
"benchmark/http.rb",
|
30
|
+
"benchmark/parse.rb",
|
31
|
+
"benchmark/parse_json_and_marshal.rb",
|
32
|
+
"benchmark/parse_json_and_yaml.rb",
|
33
|
+
"benchmark/parse_stream.rb",
|
34
|
+
"benchmark/subjects/item.json",
|
35
|
+
"benchmark/subjects/ohai.json",
|
36
|
+
"benchmark/subjects/ohai.marshal_dump",
|
37
|
+
"benchmark/subjects/ohai.yml",
|
38
|
+
"benchmark/subjects/twitter_search.json",
|
39
|
+
"benchmark/subjects/twitter_stream.json",
|
40
|
+
"benchmark/subjects/unicode.json",
|
41
|
+
"benofsky-yajl-ruby.gemspec",
|
42
|
+
"examples/encoding/chunked_encoding.rb",
|
43
|
+
"examples/encoding/one_shot.rb",
|
44
|
+
"examples/encoding/to_an_io.rb",
|
45
|
+
"examples/http/twitter_search_api.rb",
|
46
|
+
"examples/http/twitter_stream_api.rb",
|
47
|
+
"examples/parsing/from_file.rb",
|
48
|
+
"examples/parsing/from_stdin.rb",
|
49
|
+
"examples/parsing/from_string.rb",
|
50
|
+
"ext/api/yajl_common.h",
|
51
|
+
"ext/api/yajl_gen.h",
|
52
|
+
"ext/api/yajl_parse.h",
|
53
|
+
"ext/extconf.rb",
|
54
|
+
"ext/yajl.c",
|
55
|
+
"ext/yajl_alloc.c",
|
56
|
+
"ext/yajl_alloc.h",
|
57
|
+
"ext/yajl_buf.c",
|
58
|
+
"ext/yajl_buf.h",
|
59
|
+
"ext/yajl_bytestack.h",
|
60
|
+
"ext/yajl_encode.c",
|
61
|
+
"ext/yajl_encode.h",
|
62
|
+
"ext/yajl_ext.c",
|
63
|
+
"ext/yajl_ext.h",
|
64
|
+
"ext/yajl_gen.c",
|
65
|
+
"ext/yajl_lex.c",
|
66
|
+
"ext/yajl_lex.h",
|
67
|
+
"ext/yajl_parser.c",
|
68
|
+
"ext/yajl_parser.h",
|
69
|
+
"lib/yajl.rb",
|
70
|
+
"lib/yajl/bzip2.rb",
|
71
|
+
"lib/yajl/bzip2/stream_reader.rb",
|
72
|
+
"lib/yajl/bzip2/stream_writer.rb",
|
73
|
+
"lib/yajl/deflate.rb",
|
74
|
+
"lib/yajl/deflate/stream_reader.rb",
|
75
|
+
"lib/yajl/deflate/stream_writer.rb",
|
76
|
+
"lib/yajl/gzip.rb",
|
77
|
+
"lib/yajl/gzip/stream_reader.rb",
|
78
|
+
"lib/yajl/gzip/stream_writer.rb",
|
79
|
+
"lib/yajl/http_stream.rb",
|
80
|
+
"lib/yajl/json_gem.rb",
|
81
|
+
"lib/yajl/json_gem/encoding.rb",
|
82
|
+
"lib/yajl/json_gem/parsing.rb",
|
83
|
+
"spec/encoding/encoding_spec.rb",
|
84
|
+
"spec/global/global_spec.rb",
|
85
|
+
"spec/http/fixtures/http.bzip2.dump",
|
86
|
+
"spec/http/fixtures/http.chunked.dump",
|
87
|
+
"spec/http/fixtures/http.deflate.dump",
|
88
|
+
"spec/http/fixtures/http.error.dump",
|
89
|
+
"spec/http/fixtures/http.gzip.dump",
|
90
|
+
"spec/http/fixtures/http.html.dump",
|
91
|
+
"spec/http/fixtures/http.raw.dump",
|
92
|
+
"spec/http/http_delete_spec.rb",
|
93
|
+
"spec/http/http_error_spec.rb",
|
94
|
+
"spec/http/http_get_spec.rb",
|
95
|
+
"spec/http/http_post_spec.rb",
|
96
|
+
"spec/http/http_put_spec.rb",
|
97
|
+
"spec/json_gem_compatibility/compatibility_spec.rb",
|
98
|
+
"spec/parsing/active_support_spec.rb",
|
99
|
+
"spec/parsing/chunked_spec.rb",
|
100
|
+
"spec/parsing/fixtures/fail.15.json",
|
101
|
+
"spec/parsing/fixtures/fail.16.json",
|
102
|
+
"spec/parsing/fixtures/fail.17.json",
|
103
|
+
"spec/parsing/fixtures/fail.26.json",
|
104
|
+
"spec/parsing/fixtures/fail11.json",
|
105
|
+
"spec/parsing/fixtures/fail12.json",
|
106
|
+
"spec/parsing/fixtures/fail13.json",
|
107
|
+
"spec/parsing/fixtures/fail14.json",
|
108
|
+
"spec/parsing/fixtures/fail19.json",
|
109
|
+
"spec/parsing/fixtures/fail20.json",
|
110
|
+
"spec/parsing/fixtures/fail21.json",
|
111
|
+
"spec/parsing/fixtures/fail22.json",
|
112
|
+
"spec/parsing/fixtures/fail23.json",
|
113
|
+
"spec/parsing/fixtures/fail24.json",
|
114
|
+
"spec/parsing/fixtures/fail25.json",
|
115
|
+
"spec/parsing/fixtures/fail27.json",
|
116
|
+
"spec/parsing/fixtures/fail28.json",
|
117
|
+
"spec/parsing/fixtures/fail3.json",
|
118
|
+
"spec/parsing/fixtures/fail4.json",
|
119
|
+
"spec/parsing/fixtures/fail5.json",
|
120
|
+
"spec/parsing/fixtures/fail6.json",
|
121
|
+
"spec/parsing/fixtures/fail9.json",
|
122
|
+
"spec/parsing/fixtures/pass.array.json",
|
123
|
+
"spec/parsing/fixtures/pass.codepoints_from_unicode_org.json",
|
124
|
+
"spec/parsing/fixtures/pass.contacts.json",
|
125
|
+
"spec/parsing/fixtures/pass.db100.xml.json",
|
126
|
+
"spec/parsing/fixtures/pass.db1000.xml.json",
|
127
|
+
"spec/parsing/fixtures/pass.dc_simple_with_comments.json",
|
128
|
+
"spec/parsing/fixtures/pass.deep_arrays.json",
|
129
|
+
"spec/parsing/fixtures/pass.difficult_json_c_test_case.json",
|
130
|
+
"spec/parsing/fixtures/pass.difficult_json_c_test_case_with_comments.json",
|
131
|
+
"spec/parsing/fixtures/pass.doubles.json",
|
132
|
+
"spec/parsing/fixtures/pass.empty_array.json",
|
133
|
+
"spec/parsing/fixtures/pass.empty_string.json",
|
134
|
+
"spec/parsing/fixtures/pass.escaped_bulgarian.json",
|
135
|
+
"spec/parsing/fixtures/pass.escaped_foobar.json",
|
136
|
+
"spec/parsing/fixtures/pass.item.json",
|
137
|
+
"spec/parsing/fixtures/pass.json-org-sample1.json",
|
138
|
+
"spec/parsing/fixtures/pass.json-org-sample2.json",
|
139
|
+
"spec/parsing/fixtures/pass.json-org-sample3.json",
|
140
|
+
"spec/parsing/fixtures/pass.json-org-sample4-nows.json",
|
141
|
+
"spec/parsing/fixtures/pass.json-org-sample4.json",
|
142
|
+
"spec/parsing/fixtures/pass.json-org-sample5.json",
|
143
|
+
"spec/parsing/fixtures/pass.map-spain.xml.json",
|
144
|
+
"spec/parsing/fixtures/pass.ns-invoice100.xml.json",
|
145
|
+
"spec/parsing/fixtures/pass.ns-soap.xml.json",
|
146
|
+
"spec/parsing/fixtures/pass.numbers-fp-4k.json",
|
147
|
+
"spec/parsing/fixtures/pass.numbers-fp-64k.json",
|
148
|
+
"spec/parsing/fixtures/pass.numbers-int-4k.json",
|
149
|
+
"spec/parsing/fixtures/pass.numbers-int-64k.json",
|
150
|
+
"spec/parsing/fixtures/pass.twitter-search.json",
|
151
|
+
"spec/parsing/fixtures/pass.twitter-search2.json",
|
152
|
+
"spec/parsing/fixtures/pass.unicode.json",
|
153
|
+
"spec/parsing/fixtures/pass.yelp.json",
|
154
|
+
"spec/parsing/fixtures/pass1.json",
|
155
|
+
"spec/parsing/fixtures/pass2.json",
|
156
|
+
"spec/parsing/fixtures/pass3.json",
|
157
|
+
"spec/parsing/fixtures_spec.rb",
|
158
|
+
"spec/parsing/one_off_spec.rb",
|
159
|
+
"spec/rcov.opts",
|
160
|
+
"spec/spec.opts",
|
161
|
+
"spec/spec_helper.rb",
|
162
|
+
"yajl-ruby.gemspec"
|
163
|
+
]
|
164
|
+
s.homepage = %q{http://github.com/benofsky/yajl-ruby}
|
165
|
+
s.rdoc_options = ["--charset=UTF-8"]
|
166
|
+
s.require_paths = ["lib", "ext"]
|
167
|
+
s.rubyforge_project = %q{yajl-ruby}
|
168
|
+
s.rubygems_version = %q{1.3.7}
|
169
|
+
s.summary = %q{Ruby C bindings to the excellent Yajl JSON stream-based parser library.}
|
170
|
+
s.test_files = [
|
171
|
+
"spec/encoding/encoding_spec.rb",
|
172
|
+
"spec/global/global_spec.rb",
|
173
|
+
"spec/http/http_delete_spec.rb",
|
174
|
+
"spec/http/http_error_spec.rb",
|
175
|
+
"spec/http/http_get_spec.rb",
|
176
|
+
"spec/http/http_post_spec.rb",
|
177
|
+
"spec/http/http_put_spec.rb",
|
178
|
+
"spec/json_gem_compatibility/compatibility_spec.rb",
|
179
|
+
"spec/parsing/active_support_spec.rb",
|
180
|
+
"spec/parsing/chunked_spec.rb",
|
181
|
+
"spec/parsing/fixtures_spec.rb",
|
182
|
+
"spec/parsing/one_off_spec.rb",
|
183
|
+
"spec/spec_helper.rb",
|
184
|
+
"examples/encoding/chunked_encoding.rb",
|
185
|
+
"examples/encoding/one_shot.rb",
|
186
|
+
"examples/encoding/to_an_io.rb",
|
187
|
+
"examples/http/twitter_search_api.rb",
|
188
|
+
"examples/http/twitter_stream_api.rb",
|
189
|
+
"examples/parsing/from_file.rb",
|
190
|
+
"examples/parsing/from_stdin.rb",
|
191
|
+
"examples/parsing/from_string.rb"
|
192
|
+
]
|
193
|
+
|
194
|
+
if s.respond_to? :specification_version then
|
195
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
196
|
+
s.specification_version = 3
|
197
|
+
|
198
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
199
|
+
else
|
200
|
+
end
|
201
|
+
else
|
202
|
+
end
|
203
|
+
end
|
204
|
+
|
data/lib/yajl/http_stream.rb
CHANGED
@@ -99,7 +99,7 @@ module Yajl
|
|
99
99
|
end
|
100
100
|
|
101
101
|
socket = opts.has_key?(:socket) ? opts.delete(:socket) : TCPSocket.new(uri.host, uri.port)
|
102
|
-
request = "#{method} #{uri.
|
102
|
+
request = "#{method} #{uri.to_s} HTTP/1.1\r\n"
|
103
103
|
request << "Host: #{uri.host}\r\n"
|
104
104
|
request << "Authorization: Basic #{[uri.userinfo].pack('m').strip!}\r\n" unless uri.userinfo.nil?
|
105
105
|
request << "User-Agent: #{user_agent}\r\n"
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: benofsky-yajl-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 13
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 7
|
9
|
-
-
|
10
|
-
version: 0.7.
|
9
|
+
- 7
|
10
|
+
version: 0.7.7
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Ben McRedmond
|
@@ -52,6 +52,7 @@ files:
|
|
52
52
|
- benchmark/subjects/twitter_search.json
|
53
53
|
- benchmark/subjects/twitter_stream.json
|
54
54
|
- benchmark/subjects/unicode.json
|
55
|
+
- benofsky-yajl-ruby.gemspec
|
55
56
|
- examples/encoding/chunked_encoding.rb
|
56
57
|
- examples/encoding/one_shot.rb
|
57
58
|
- examples/encoding/to_an_io.rb
|