json 1.6.4 → 1.6.5

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of json might be problematic. Click here for more details.

data/CHANGES CHANGED
@@ -1,3 +1,8 @@
1
+ 2012-01-15 (1.6.5)
2
+ * Vit Ondruch <v.ondruch@tiscali.cz> reported a bug that shows up when using
3
+ optimisation under GCC 4.7. Thx to him, Bohuslav Kabrda
4
+ <bkabrda@redhat.com> and Yui NARUSE <naruse@airemix.jp> for debugging and
5
+ developing a patch fix.
1
6
  2011-12-24 (1.6.4)
2
7
  * Patches that improve speed on JRuby contributed by Charles Oliver Nutter
3
8
  <headius@headius.com>.
data/Gemfile CHANGED
@@ -9,3 +9,7 @@ gemspec :name => 'json-java'
9
9
  group :development do
10
10
  gem 'simplecov', :platform => :mri_19
11
11
  end
12
+
13
+ group :test do
14
+ gem 'test-unit', :platform => :mri_19
15
+ end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.6.4
1
+ 1.6.5
@@ -1305,6 +1305,7 @@ static VALUE json_string_unescape(VALUE result, char *string, char *stringEnd)
1305
1305
  {
1306
1306
  char *p = string, *pe = string, *unescape;
1307
1307
  int unescape_len;
1308
+ char buf[4];
1308
1309
 
1309
1310
  while (pe < stringEnd) {
1310
1311
  if (*pe == '\\') {
@@ -1337,7 +1338,6 @@ static VALUE json_string_unescape(VALUE result, char *string, char *stringEnd)
1337
1338
  if (pe > stringEnd - 4) {
1338
1339
  return Qnil;
1339
1340
  } else {
1340
- char buf[4];
1341
1341
  UTF32 ch = unescape_unicode((unsigned char *) ++pe);
1342
1342
  pe += 3;
1343
1343
  if (UNI_SUR_HIGH_START == (ch & 0xFC00)) {
@@ -405,6 +405,7 @@ static VALUE json_string_unescape(VALUE result, char *string, char *stringEnd)
405
405
  {
406
406
  char *p = string, *pe = string, *unescape;
407
407
  int unescape_len;
408
+ char buf[4];
408
409
 
409
410
  while (pe < stringEnd) {
410
411
  if (*pe == '\\') {
@@ -437,7 +438,6 @@ static VALUE json_string_unescape(VALUE result, char *string, char *stringEnd)
437
438
  if (pe > stringEnd - 4) {
438
439
  return Qnil;
439
440
  } else {
440
- char buf[4];
441
441
  UTF32 ch = unescape_unicode((unsigned char *) ++pe);
442
442
  pe += 3;
443
443
  if (UNI_SUR_HIGH_START == (ch & 0xFC00)) {
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "json"
5
- s.version = "1.6.4"
5
+ s.version = "1.6.5"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Florian Frank"]
9
- s.date = "2011-12-24"
9
+ s.date = "2012-01-15"
10
10
  s.description = "This is a JSON implementation as a Ruby extension in C."
11
11
  s.email = "flori@ping.de"
12
12
  s.extensions = ["ext/json/ext/parser/extconf.rb", "ext/json/ext/generator/extconf.rb"]
@@ -16,7 +16,7 @@ Gem::Specification.new do |s|
16
16
  s.rdoc_options = ["--title", "JSON implemention for Ruby", "--main", "README.rdoc"]
17
17
  s.require_paths = ["ext/json/ext", "ext", "lib"]
18
18
  s.rubyforge_project = "json"
19
- s.rubygems_version = "1.8.13"
19
+ s.rubygems_version = "1.8.15"
20
20
  s.summary = "JSON Implementation for Ruby"
21
21
  s.test_files = ["./tests/test_json_string_matching.rb", "./tests/test_json_fixtures.rb", "./tests/test_json_unicode.rb", "./tests/test_json_addition.rb", "./tests/test_json_generate.rb", "./tests/test_json_encoding.rb", "./tests/test_json.rb"]
22
22
 
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "json_pure"
5
- s.version = "1.6.4"
5
+ s.version = "1.6.5"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Florian Frank"]
9
- s.date = "2011-12-24"
9
+ s.date = "2012-01-15"
10
10
  s.description = "This is a JSON implementation in pure Ruby."
11
11
  s.email = "flori@ping.de"
12
12
  s.extra_rdoc_files = ["README.rdoc"]
@@ -15,7 +15,7 @@ Gem::Specification.new do |s|
15
15
  s.rdoc_options = ["--title", "JSON implemention for ruby", "--main", "README.rdoc"]
16
16
  s.require_paths = ["lib"]
17
17
  s.rubyforge_project = "json"
18
- s.rubygems_version = "1.8.13"
18
+ s.rubygems_version = "1.8.15"
19
19
  s.summary = "JSON Implementation for Ruby"
20
20
  s.test_files = ["./tests/test_json_string_matching.rb", "./tests/test_json_fixtures.rb", "./tests/test_json_unicode.rb", "./tests/test_json_addition.rb", "./tests/test_json_generate.rb", "./tests/test_json_encoding.rb", "./tests/test_json.rb"]
21
21
 
@@ -1,6 +1,6 @@
1
1
  module JSON
2
2
  # JSON version
3
- VERSION = '1.6.4'
3
+ VERSION = '1.6.5'
4
4
  VERSION_ARRAY = VERSION.split(/\./).map { |x| x.to_i } # :nodoc:
5
5
  VERSION_MAJOR = VERSION_ARRAY[0] # :nodoc:
6
6
  VERSION_MINOR = VERSION_ARRAY[1] # :nodoc:
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: json
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.4
4
+ version: 1.6.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-12-24 00:00:00.000000000 Z
12
+ date: 2012-01-15 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: permutation
16
- requirement: &71845010 !ruby/object:Gem::Requirement
16
+ requirement: &79254260 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :development
23
23
  prerelease: false
24
- version_requirements: *71845010
24
+ version_requirements: *79254260
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: bullshit
27
- requirement: &72253980 !ruby/object:Gem::Requirement
27
+ requirement: &79253840 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *72253980
35
+ version_requirements: *79253840
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: sdoc
38
- requirement: &72252490 !ruby/object:Gem::Requirement
38
+ requirement: &79253190 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,7 +43,7 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *72252490
46
+ version_requirements: *79253190
47
47
  description: This is a JSON implementation as a Ruby extension in C.
48
48
  email: flori@ping.de
49
49
  executables: []
@@ -228,7 +228,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
228
228
  version: '0'
229
229
  requirements: []
230
230
  rubyforge_project: json
231
- rubygems_version: 1.8.13
231
+ rubygems_version: 1.8.15
232
232
  signing_key:
233
233
  specification_version: 3
234
234
  summary: JSON Implementation for Ruby