json 1.1.0-mswin32 → 1.1.1-mswin32

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.

@@ -40,13 +40,16 @@ class TC_JSONUnicode < Test::Unit::TestCase
40
40
  def test_chars
41
41
  (0..0x7f).each do |i|
42
42
  json = '["\u%04x"]' % i
43
+ if RUBY_VERSION >= "1.9."
44
+ i = i.chr
45
+ end
43
46
  assert_equal i, JSON.parse(json).first[0]
44
47
  if i == ?\b
45
48
  generated = JSON.generate(["" << i])
46
49
  assert '["\b"]' == generated || '["\10"]' == generated
47
50
  elsif [?\n, ?\r, ?\t, ?\f].include?(i)
48
51
  assert_equal '[' << ('' << i).dump << ']', JSON.generate(["" << i])
49
- elsif i < 0x20
52
+ elsif i.chr < 0x20.chr
50
53
  assert_equal json, JSON.generate(["" << i])
51
54
  end
52
55
  end
@@ -84,7 +84,8 @@ class MyState < JSON.state
84
84
  :space => make_spaces,
85
85
  :space_before => make_spaces,
86
86
  :object_nl => make_spaces,
87
- :array_nl => make_spaces
87
+ :array_nl => make_spaces,
88
+ :max_nesting => false
88
89
  )
89
90
  end
90
91
 
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.2
3
3
  specification_version: 1
4
4
  name: json
5
5
  version: !ruby/object:Gem::Version
6
- version: 1.1.0
7
- date: 2007-06-04 00:00:00 +02:00
6
+ version: 1.1.1
7
+ date: 2007-07-06 00:00:00 +02:00
8
8
  summary: A JSON implementation as a Ruby extension
9
9
  require_paths:
10
10
  - ext/json/ext
@@ -107,6 +107,9 @@ files:
107
107
  - lib/json
108
108
  - lib/json/FalseClass.xpm
109
109
  - lib/json/TrueClass.xpm
110
+ - lib/json/add
111
+ - lib/json/add/core.rb
112
+ - lib/json/add/rails.rb
110
113
  - lib/json/ext.rb
111
114
  - lib/json/common.rb
112
115
  - lib/json/Hash.xpm