yajl-ruby 0.7.8 → 0.7.9
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/.gitignore +2 -1
- data/.rspec +2 -0
- data/CHANGELOG.md +12 -2
- data/Gemfile +7 -0
- data/Gemfile.lock +28 -0
- data/MIT-LICENSE +1 -1
- data/Rakefile +5 -37
- data/VERSION.yml +2 -2
- data/benchmark/encode.rb +2 -1
- data/benchmark/encode_json_and_marshal.rb +2 -1
- data/benchmark/encode_json_and_yaml.rb +2 -1
- data/benchmark/http.rb +1 -0
- data/benchmark/parse.rb +2 -1
- data/benchmark/parse_json_and_marshal.rb +2 -1
- data/benchmark/parse_json_and_yaml.rb +2 -1
- data/benchmark/parse_stream.rb +2 -1
- data/examples/encoding/chunked_encoding.rb +1 -0
- data/examples/encoding/one_shot.rb +1 -0
- data/examples/encoding/to_an_io.rb +1 -0
- data/examples/http/twitter_search_api.rb +1 -0
- data/examples/http/twitter_stream_api.rb +1 -0
- data/examples/parsing/from_file.rb +1 -0
- data/examples/parsing/from_stdin.rb +1 -0
- data/examples/parsing/from_string.rb +1 -0
- data/ext/{api → yajl/api}/yajl_common.h +5 -1
- data/ext/{api → yajl/api}/yajl_gen.h +1 -1
- data/ext/{api → yajl/api}/yajl_parse.h +3 -3
- data/ext/yajl/api/yajl_version.h +23 -0
- data/ext/yajl/extconf.rb +8 -0
- data/ext/{yajl.c → yajl/yajl.c} +0 -0
- data/ext/{yajl_alloc.c → yajl/yajl_alloc.c} +0 -0
- data/ext/{yajl_alloc.h → yajl/yajl_alloc.h} +0 -0
- data/ext/{yajl_buf.c → yajl/yajl_buf.c} +0 -0
- data/ext/{yajl_buf.h → yajl/yajl_buf.h} +0 -0
- data/ext/{yajl_bytestack.h → yajl/yajl_bytestack.h} +0 -0
- data/ext/{yajl_encode.c → yajl/yajl_encode.c} +0 -0
- data/ext/{yajl_encode.h → yajl/yajl_encode.h} +0 -0
- data/ext/{yajl_ext.c → yajl/yajl_ext.c} +27 -13
- data/ext/{yajl_ext.h → yajl/yajl_ext.h} +2 -1
- data/ext/{yajl_gen.c → yajl/yajl_gen.c} +2 -2
- data/ext/{yajl_lex.c → yajl/yajl_lex.c} +4 -3
- data/ext/{yajl_lex.h → yajl/yajl_lex.h} +0 -0
- data/ext/{yajl_parser.c → yajl/yajl_parser.c} +0 -0
- data/ext/{yajl_parser.h → yajl/yajl_parser.h} +0 -0
- data/ext/yajl/yajl_version.c +7 -0
- data/lib/yajl.rb +2 -17
- data/spec/parsing/chunked_spec.rb +0 -1
- data/spec/spec_helper.rb +2 -1
- data/tasks/compile.rake +37 -0
- data/tasks/jeweler.rake +17 -0
- data/tasks/rspec.rake +16 -0
- data/yajl-ruby.gemspec +183 -171
- metadata +90 -41
- data/ext/extconf.rb +0 -9
- data/spec/spec.opts +0 -2
@@ -1,5 +1,5 @@
|
|
1
1
|
/*
|
2
|
-
* Copyright (c) 2008-
|
2
|
+
* Copyright (c) 2008-2011 Brian Lopez - http://github.com/brianmario
|
3
3
|
*
|
4
4
|
* Permission is hereby granted, free of charge, to any person obtaining
|
5
5
|
* a copy of this software and associated documentation files (the
|
@@ -98,6 +98,7 @@ typedef struct {
|
|
98
98
|
VALUE on_progress_callback;
|
99
99
|
VALUE terminator;
|
100
100
|
yajl_gen encoder;
|
101
|
+
unsigned char *indentString;
|
101
102
|
} yajl_encoder_wrapper;
|
102
103
|
|
103
104
|
static VALUE rb_yajl_parser_new(int argc, VALUE * argv, VALUE self);
|
@@ -171,7 +171,7 @@ yajl_gen_free(yajl_gen g)
|
|
171
171
|
} \
|
172
172
|
|
173
173
|
#define FINAL_NEWLINE
|
174
|
-
|
174
|
+
|
175
175
|
yajl_gen_status
|
176
176
|
yajl_gen_integer(yajl_gen g, long int number)
|
177
177
|
{
|
@@ -197,7 +197,7 @@ yajl_gen_double(yajl_gen g, double number)
|
|
197
197
|
ENSURE_VALID_STATE; ENSURE_NOT_KEY;
|
198
198
|
if (isnan(number) || isinf(number)) return yajl_gen_invalid_number;
|
199
199
|
INSERT_SEP; INSERT_WHITESPACE;
|
200
|
-
sprintf(i, "
|
200
|
+
sprintf(i, "%.20g", number);
|
201
201
|
g->print(g->ctx, i, strlen(i));
|
202
202
|
APPENDED_ATOM;
|
203
203
|
FINAL_NEWLINE;
|
@@ -131,11 +131,12 @@ yajl_lex_alloc(yajl_alloc_funcs * alloc,
|
|
131
131
|
|
132
132
|
yajl_lexer
|
133
133
|
yajl_lex_realloc(yajl_lexer orig) {
|
134
|
+
orig->lineOff = 0;
|
135
|
+
orig->charOff = 0;
|
136
|
+
orig->error = yajl_lex_e_ok;
|
134
137
|
yajl_buf_clear(orig->buf);
|
135
|
-
orig->bufInUse = 0;
|
136
138
|
orig->bufOff = 0;
|
137
|
-
orig->
|
138
|
-
orig->lineOff = 0;
|
139
|
+
orig->bufInUse = 0;
|
139
140
|
return orig;
|
140
141
|
}
|
141
142
|
|
File without changes
|
File without changes
|
File without changes
|
data/lib/yajl.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# encoding: UTF-8
|
2
|
-
require '
|
2
|
+
require 'yajl/yajl'
|
3
3
|
|
4
4
|
# = Extras
|
5
5
|
# We're not going to load these auotmatically, because you might not need them ;)
|
@@ -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.9"
|
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)
|
@@ -75,19 +75,4 @@ module Yajl
|
|
75
75
|
new(options).encode(obj, io, &block)
|
76
76
|
end
|
77
77
|
end
|
78
|
-
|
79
|
-
# DEPRECATED - See Yajl::Parser and Yajl::Encoder
|
80
|
-
module Stream
|
81
|
-
# DEPRECATED - See Yajl::Parser
|
82
|
-
def self.parse(str_or_io)
|
83
|
-
warn "WARNING: Yajl::Stream has be deprecated and will most likely be gone in the next release. Use the Yajl::Parser class instead."
|
84
|
-
Parser.new.parse(str_or_io)
|
85
|
-
end
|
86
|
-
|
87
|
-
# DEPRECATED - See Yajl::Encoder
|
88
|
-
def self.encode(obj, str_or_io=nil)
|
89
|
-
warn "WARNING: Yajl::Stream has be deprecated and will most likely be gone in the next release. Use the Yajl::Encoder class instead."
|
90
|
-
Encoder.new.encode(obj, str_or_io)
|
91
|
-
end
|
92
|
-
end
|
93
78
|
end
|
data/spec/spec_helper.rb
CHANGED
@@ -2,9 +2,10 @@
|
|
2
2
|
$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/..')
|
3
3
|
$LOAD_PATH.unshift File.expand_path(File.dirname(__FILE__) + '/../lib')
|
4
4
|
|
5
|
-
require '
|
5
|
+
require 'rspec'
|
6
6
|
require 'yajl'
|
7
7
|
require 'date'
|
8
|
+
require 'stringio'
|
8
9
|
|
9
10
|
module Kernel
|
10
11
|
def silence_warnings
|
data/tasks/compile.rake
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
gem 'rake-compiler', '>= 0.7.5'
|
2
|
+
require "rake/extensiontask"
|
3
|
+
|
4
|
+
def gemspec
|
5
|
+
@clean_gemspec ||= eval(File.read(File.expand_path('../../yajl-ruby.gemspec', __FILE__)))
|
6
|
+
end
|
7
|
+
|
8
|
+
Rake::ExtensionTask.new("yajl", gemspec) do |ext|
|
9
|
+
# automatically add build options to avoid need of manual input
|
10
|
+
ext.cross_compile = true
|
11
|
+
ext.cross_platform = ['x86-mingw32', 'x86-mswin32-60']
|
12
|
+
|
13
|
+
# inject 1.8/1.9 pure-ruby entry point when cross compiling only
|
14
|
+
ext.cross_compiling do |spec|
|
15
|
+
spec.files << 'lib/yajl/yajl.rb'
|
16
|
+
end
|
17
|
+
|
18
|
+
ext.lib_dir = File.join 'lib', 'yajl'
|
19
|
+
|
20
|
+
# clean compiled extension
|
21
|
+
CLEAN.include "#{ext.lib_dir}/*.#{RbConfig::CONFIG['DLEXT']}"
|
22
|
+
end
|
23
|
+
Rake::Task[:spec].prerequisites << :compile
|
24
|
+
|
25
|
+
file 'lib/yajl/yajl.rb' do |t|
|
26
|
+
name = gemspec.name
|
27
|
+
File.open(t.name, 'wb') do |f|
|
28
|
+
f.write <<-eoruby
|
29
|
+
RUBY_VERSION =~ /(\\d+.\\d+)/
|
30
|
+
require "#{name}/\#{$1}/#{name}"
|
31
|
+
eoruby
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
if Rake::Task.task_defined?(:cross)
|
36
|
+
Rake::Task[:cross].prerequisites << "lib/yajl/yajl.rb"
|
37
|
+
end
|
data/tasks/jeweler.rake
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
begin
|
2
|
+
require 'jeweler'
|
3
|
+
Jeweler::Tasks.new do |gem|
|
4
|
+
gem.name = "yajl-ruby"
|
5
|
+
gem.summary = "Ruby C bindings to the excellent Yajl JSON stream-based parser library."
|
6
|
+
gem.email = "seniorlopez@gmail.com"
|
7
|
+
gem.homepage = "http://github.com/brianmario/yajl-ruby"
|
8
|
+
gem.authors = ["Brian Lopez", "Lloyd Hilaiel"]
|
9
|
+
gem.require_paths = ["lib", "ext"]
|
10
|
+
gem.extra_rdoc_files = `git ls-files *.rdoc`.split("\n")
|
11
|
+
gem.files = `git ls-files`.split("\n")
|
12
|
+
gem.extensions = ["ext/yajl/extconf.rb"]
|
13
|
+
gem.files.include %w(lib/jeweler/templates/.document lib/jeweler/templates/.gitignore)
|
14
|
+
end
|
15
|
+
rescue LoadError
|
16
|
+
puts "jeweler, or one of its dependencies, is not available. Install it with: sudo gem install jeweler -s http://gems.github.com"
|
17
|
+
end
|
data/tasks/rspec.rake
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
begin
|
2
|
+
require 'rspec'
|
3
|
+
require 'rspec/core/rake_task'
|
4
|
+
|
5
|
+
desc "Run all examples with RCov"
|
6
|
+
RSpec::Core::RakeTask.new('spec:rcov') do |t|
|
7
|
+
t.rcov = true
|
8
|
+
end
|
9
|
+
RSpec::Core::RakeTask.new('spec') do |t|
|
10
|
+
t.verbose = true
|
11
|
+
end
|
12
|
+
|
13
|
+
task :default => :spec
|
14
|
+
rescue LoadError
|
15
|
+
puts "rspec, or one of its dependencies, is not available. Install it with: sudo gem install rspec"
|
16
|
+
end
|
data/yajl-ruby.gemspec
CHANGED
@@ -1,203 +1,215 @@
|
|
1
1
|
# Generated by jeweler
|
2
2
|
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{yajl-ruby}
|
8
|
-
s.version = "0.7.
|
8
|
+
s.version = "0.7.9"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Brian Lopez", "Lloyd Hilaiel"]
|
12
|
-
s.date = %q{
|
12
|
+
s.date = %q{2011-01-11}
|
13
13
|
s.email = %q{seniorlopez@gmail.com}
|
14
|
-
s.extensions = ["ext/extconf.rb"]
|
14
|
+
s.extensions = ["ext/yajl/extconf.rb"]
|
15
15
|
s.extra_rdoc_files = [
|
16
|
-
"README.rdoc"
|
17
|
-
"ext/yajl.c"
|
16
|
+
"README.rdoc"
|
18
17
|
]
|
19
18
|
s.files = [
|
20
19
|
".gitignore",
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
20
|
+
".rspec",
|
21
|
+
"CHANGELOG.md",
|
22
|
+
"Gemfile",
|
23
|
+
"Gemfile.lock",
|
24
|
+
"MIT-LICENSE",
|
25
|
+
"README.rdoc",
|
26
|
+
"Rakefile",
|
27
|
+
"VERSION.yml",
|
28
|
+
"benchmark/encode.rb",
|
29
|
+
"benchmark/encode_json_and_marshal.rb",
|
30
|
+
"benchmark/encode_json_and_yaml.rb",
|
31
|
+
"benchmark/http.rb",
|
32
|
+
"benchmark/parse.rb",
|
33
|
+
"benchmark/parse_json_and_marshal.rb",
|
34
|
+
"benchmark/parse_json_and_yaml.rb",
|
35
|
+
"benchmark/parse_stream.rb",
|
36
|
+
"benchmark/subjects/item.json",
|
37
|
+
"benchmark/subjects/ohai.json",
|
38
|
+
"benchmark/subjects/ohai.marshal_dump",
|
39
|
+
"benchmark/subjects/ohai.yml",
|
40
|
+
"benchmark/subjects/twitter_search.json",
|
41
|
+
"benchmark/subjects/twitter_stream.json",
|
42
|
+
"benchmark/subjects/unicode.json",
|
43
|
+
"examples/encoding/chunked_encoding.rb",
|
44
|
+
"examples/encoding/one_shot.rb",
|
45
|
+
"examples/encoding/to_an_io.rb",
|
46
|
+
"examples/http/twitter_search_api.rb",
|
47
|
+
"examples/http/twitter_stream_api.rb",
|
48
|
+
"examples/parsing/from_file.rb",
|
49
|
+
"examples/parsing/from_stdin.rb",
|
50
|
+
"examples/parsing/from_string.rb",
|
51
|
+
"ext/yajl/api/yajl_common.h",
|
52
|
+
"ext/yajl/api/yajl_gen.h",
|
53
|
+
"ext/yajl/api/yajl_parse.h",
|
54
|
+
"ext/yajl/api/yajl_version.h",
|
55
|
+
"ext/yajl/extconf.rb",
|
56
|
+
"ext/yajl/yajl.c",
|
57
|
+
"ext/yajl/yajl_alloc.c",
|
58
|
+
"ext/yajl/yajl_alloc.h",
|
59
|
+
"ext/yajl/yajl_buf.c",
|
60
|
+
"ext/yajl/yajl_buf.h",
|
61
|
+
"ext/yajl/yajl_bytestack.h",
|
62
|
+
"ext/yajl/yajl_encode.c",
|
63
|
+
"ext/yajl/yajl_encode.h",
|
64
|
+
"ext/yajl/yajl_ext.c",
|
65
|
+
"ext/yajl/yajl_ext.h",
|
66
|
+
"ext/yajl/yajl_gen.c",
|
67
|
+
"ext/yajl/yajl_lex.c",
|
68
|
+
"ext/yajl/yajl_lex.h",
|
69
|
+
"ext/yajl/yajl_parser.c",
|
70
|
+
"ext/yajl/yajl_parser.h",
|
71
|
+
"ext/yajl/yajl_version.c",
|
72
|
+
"lib/yajl.rb",
|
73
|
+
"lib/yajl/bzip2.rb",
|
74
|
+
"lib/yajl/bzip2/stream_reader.rb",
|
75
|
+
"lib/yajl/bzip2/stream_writer.rb",
|
76
|
+
"lib/yajl/deflate.rb",
|
77
|
+
"lib/yajl/deflate/stream_reader.rb",
|
78
|
+
"lib/yajl/deflate/stream_writer.rb",
|
79
|
+
"lib/yajl/gzip.rb",
|
80
|
+
"lib/yajl/gzip/stream_reader.rb",
|
81
|
+
"lib/yajl/gzip/stream_writer.rb",
|
82
|
+
"lib/yajl/http_stream.rb",
|
83
|
+
"lib/yajl/json_gem.rb",
|
84
|
+
"lib/yajl/json_gem/encoding.rb",
|
85
|
+
"lib/yajl/json_gem/parsing.rb",
|
86
|
+
"spec/encoding/encoding_spec.rb",
|
87
|
+
"spec/global/global_spec.rb",
|
88
|
+
"spec/http/fixtures/http.bzip2.dump",
|
89
|
+
"spec/http/fixtures/http.chunked.dump",
|
90
|
+
"spec/http/fixtures/http.deflate.dump",
|
91
|
+
"spec/http/fixtures/http.error.dump",
|
92
|
+
"spec/http/fixtures/http.gzip.dump",
|
93
|
+
"spec/http/fixtures/http.html.dump",
|
94
|
+
"spec/http/fixtures/http.raw.dump",
|
95
|
+
"spec/http/http_delete_spec.rb",
|
96
|
+
"spec/http/http_error_spec.rb",
|
97
|
+
"spec/http/http_get_spec.rb",
|
98
|
+
"spec/http/http_post_spec.rb",
|
99
|
+
"spec/http/http_put_spec.rb",
|
100
|
+
"spec/json_gem_compatibility/compatibility_spec.rb",
|
101
|
+
"spec/parsing/active_support_spec.rb",
|
102
|
+
"spec/parsing/chunked_spec.rb",
|
103
|
+
"spec/parsing/fixtures/fail.15.json",
|
104
|
+
"spec/parsing/fixtures/fail.16.json",
|
105
|
+
"spec/parsing/fixtures/fail.17.json",
|
106
|
+
"spec/parsing/fixtures/fail.26.json",
|
107
|
+
"spec/parsing/fixtures/fail11.json",
|
108
|
+
"spec/parsing/fixtures/fail12.json",
|
109
|
+
"spec/parsing/fixtures/fail13.json",
|
110
|
+
"spec/parsing/fixtures/fail14.json",
|
111
|
+
"spec/parsing/fixtures/fail19.json",
|
112
|
+
"spec/parsing/fixtures/fail20.json",
|
113
|
+
"spec/parsing/fixtures/fail21.json",
|
114
|
+
"spec/parsing/fixtures/fail22.json",
|
115
|
+
"spec/parsing/fixtures/fail23.json",
|
116
|
+
"spec/parsing/fixtures/fail24.json",
|
117
|
+
"spec/parsing/fixtures/fail25.json",
|
118
|
+
"spec/parsing/fixtures/fail27.json",
|
119
|
+
"spec/parsing/fixtures/fail28.json",
|
120
|
+
"spec/parsing/fixtures/fail3.json",
|
121
|
+
"spec/parsing/fixtures/fail4.json",
|
122
|
+
"spec/parsing/fixtures/fail5.json",
|
123
|
+
"spec/parsing/fixtures/fail6.json",
|
124
|
+
"spec/parsing/fixtures/fail9.json",
|
125
|
+
"spec/parsing/fixtures/pass.array.json",
|
126
|
+
"spec/parsing/fixtures/pass.codepoints_from_unicode_org.json",
|
127
|
+
"spec/parsing/fixtures/pass.contacts.json",
|
128
|
+
"spec/parsing/fixtures/pass.db100.xml.json",
|
129
|
+
"spec/parsing/fixtures/pass.db1000.xml.json",
|
130
|
+
"spec/parsing/fixtures/pass.dc_simple_with_comments.json",
|
131
|
+
"spec/parsing/fixtures/pass.deep_arrays.json",
|
132
|
+
"spec/parsing/fixtures/pass.difficult_json_c_test_case.json",
|
133
|
+
"spec/parsing/fixtures/pass.difficult_json_c_test_case_with_comments.json",
|
134
|
+
"spec/parsing/fixtures/pass.doubles.json",
|
135
|
+
"spec/parsing/fixtures/pass.empty_array.json",
|
136
|
+
"spec/parsing/fixtures/pass.empty_string.json",
|
137
|
+
"spec/parsing/fixtures/pass.escaped_bulgarian.json",
|
138
|
+
"spec/parsing/fixtures/pass.escaped_foobar.json",
|
139
|
+
"spec/parsing/fixtures/pass.item.json",
|
140
|
+
"spec/parsing/fixtures/pass.json-org-sample1.json",
|
141
|
+
"spec/parsing/fixtures/pass.json-org-sample2.json",
|
142
|
+
"spec/parsing/fixtures/pass.json-org-sample3.json",
|
143
|
+
"spec/parsing/fixtures/pass.json-org-sample4-nows.json",
|
144
|
+
"spec/parsing/fixtures/pass.json-org-sample4.json",
|
145
|
+
"spec/parsing/fixtures/pass.json-org-sample5.json",
|
146
|
+
"spec/parsing/fixtures/pass.map-spain.xml.json",
|
147
|
+
"spec/parsing/fixtures/pass.ns-invoice100.xml.json",
|
148
|
+
"spec/parsing/fixtures/pass.ns-soap.xml.json",
|
149
|
+
"spec/parsing/fixtures/pass.numbers-fp-4k.json",
|
150
|
+
"spec/parsing/fixtures/pass.numbers-fp-64k.json",
|
151
|
+
"spec/parsing/fixtures/pass.numbers-int-4k.json",
|
152
|
+
"spec/parsing/fixtures/pass.numbers-int-64k.json",
|
153
|
+
"spec/parsing/fixtures/pass.twitter-search.json",
|
154
|
+
"spec/parsing/fixtures/pass.twitter-search2.json",
|
155
|
+
"spec/parsing/fixtures/pass.unicode.json",
|
156
|
+
"spec/parsing/fixtures/pass.yelp.json",
|
157
|
+
"spec/parsing/fixtures/pass1.json",
|
158
|
+
"spec/parsing/fixtures/pass2.json",
|
159
|
+
"spec/parsing/fixtures/pass3.json",
|
160
|
+
"spec/parsing/fixtures_spec.rb",
|
161
|
+
"spec/parsing/one_off_spec.rb",
|
162
|
+
"spec/rcov.opts",
|
163
|
+
"spec/spec_helper.rb",
|
164
|
+
"tasks/compile.rake",
|
165
|
+
"tasks/jeweler.rake",
|
166
|
+
"tasks/rspec.rake",
|
167
|
+
"yajl-ruby.gemspec"
|
162
168
|
]
|
163
169
|
s.homepage = %q{http://github.com/brianmario/yajl-ruby}
|
164
|
-
s.rdoc_options = ["--charset=UTF-8"]
|
165
170
|
s.require_paths = ["lib", "ext"]
|
166
|
-
s.
|
167
|
-
s.rubygems_version = %q{1.3.7}
|
171
|
+
s.rubygems_version = %q{1.4.2}
|
168
172
|
s.summary = %q{Ruby C bindings to the excellent Yajl JSON stream-based parser library.}
|
169
173
|
s.test_files = [
|
174
|
+
"examples/encoding/chunked_encoding.rb",
|
175
|
+
"examples/encoding/one_shot.rb",
|
176
|
+
"examples/encoding/to_an_io.rb",
|
177
|
+
"examples/http/twitter_search_api.rb",
|
178
|
+
"examples/http/twitter_stream_api.rb",
|
179
|
+
"examples/parsing/from_file.rb",
|
180
|
+
"examples/parsing/from_stdin.rb",
|
181
|
+
"examples/parsing/from_string.rb",
|
170
182
|
"spec/encoding/encoding_spec.rb",
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
"examples/encoding/chunked_encoding.rb",
|
184
|
-
"examples/encoding/one_shot.rb",
|
185
|
-
"examples/encoding/to_an_io.rb",
|
186
|
-
"examples/http/twitter_search_api.rb",
|
187
|
-
"examples/http/twitter_stream_api.rb",
|
188
|
-
"examples/parsing/from_file.rb",
|
189
|
-
"examples/parsing/from_stdin.rb",
|
190
|
-
"examples/parsing/from_string.rb"
|
183
|
+
"spec/global/global_spec.rb",
|
184
|
+
"spec/http/http_delete_spec.rb",
|
185
|
+
"spec/http/http_error_spec.rb",
|
186
|
+
"spec/http/http_get_spec.rb",
|
187
|
+
"spec/http/http_post_spec.rb",
|
188
|
+
"spec/http/http_put_spec.rb",
|
189
|
+
"spec/json_gem_compatibility/compatibility_spec.rb",
|
190
|
+
"spec/parsing/active_support_spec.rb",
|
191
|
+
"spec/parsing/chunked_spec.rb",
|
192
|
+
"spec/parsing/fixtures_spec.rb",
|
193
|
+
"spec/parsing/one_off_spec.rb",
|
194
|
+
"spec/spec_helper.rb"
|
191
195
|
]
|
192
196
|
|
193
197
|
if s.respond_to? :specification_version then
|
194
|
-
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
195
198
|
s.specification_version = 3
|
196
199
|
|
197
200
|
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
201
|
+
s.add_development_dependency(%q<rake-compiler>, [">= 0.7.5"])
|
202
|
+
s.add_development_dependency(%q<jeweler>, [">= 0"])
|
203
|
+
s.add_development_dependency(%q<rspec>, [">= 0"])
|
198
204
|
else
|
205
|
+
s.add_dependency(%q<rake-compiler>, [">= 0.7.5"])
|
206
|
+
s.add_dependency(%q<jeweler>, [">= 0"])
|
207
|
+
s.add_dependency(%q<rspec>, [">= 0"])
|
199
208
|
end
|
200
209
|
else
|
210
|
+
s.add_dependency(%q<rake-compiler>, [">= 0.7.5"])
|
211
|
+
s.add_dependency(%q<jeweler>, [">= 0"])
|
212
|
+
s.add_dependency(%q<rspec>, [">= 0"])
|
201
213
|
end
|
202
214
|
end
|
203
215
|
|