RFC8259 8259

Sign up to get free protection for your applications and to get access to all the features.
Files changed (183) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +61 -0
  3. data/.rspec +4 -0
  4. data/.yardopts +2 -0
  5. data/Gemfile +58 -0
  6. data/LICENSE.txt +40 -0
  7. data/README.txt +1 -0
  8. data/RFC8259 +899 -0
  9. data/RFC8259.gemspec +89 -0
  10. data/Rakefile +86 -0
  11. data/lib/RFC8259.rb +94 -0
  12. data/lib/RFC8259/array.rb +136 -0
  13. data/lib/RFC8259/dumper.rb +255 -0
  14. data/lib/RFC8259/false.rb +79 -0
  15. data/lib/RFC8259/null.rb +79 -0
  16. data/lib/RFC8259/number.rb +149 -0
  17. data/lib/RFC8259/object.rb +137 -0
  18. data/lib/RFC8259/parser.ry +275 -0
  19. data/lib/RFC8259/string.rb +226 -0
  20. data/lib/RFC8259/true.rb +79 -0
  21. data/lib/RFC8259/value.rb +96 -0
  22. data/lib/RFC8259/version.rb +46 -0
  23. data/spec/RFC8259_spec.rb +305 -0
  24. data/spec/acceptance/README.txt +66 -0
  25. data/spec/acceptance/invalid/0001-ws/0001-verical-tab.txt +1 -0
  26. data/spec/acceptance/invalid/0001-ws/0002-null.txt +0 -0
  27. data/spec/acceptance/invalid/0001-ws/0003-space-in-number-1.txt +1 -0
  28. data/spec/acceptance/invalid/0001-ws/0004-space-in-number-2.txt +1 -0
  29. data/spec/acceptance/invalid/0001-ws/0005-space-in-number-3.txt +1 -0
  30. data/spec/acceptance/invalid/0001-ws/0006-space-in-number-4.txt +1 -0
  31. data/spec/acceptance/invalid/0001-ws/0007-space-in-number-5.txt +1 -0
  32. data/spec/acceptance/invalid/0001-ws/0008-space-in-number-6.txt +1 -0
  33. data/spec/acceptance/invalid/0001-ws/0009-space-in-literal.txt +1 -0
  34. data/spec/acceptance/invalid/0001-ws/0010-Unicode-LINE_SEPARATOR.txt +1 -0
  35. data/spec/acceptance/invalid/0002-comments/0001-C-style.txt +1 -0
  36. data/spec/acceptance/invalid/0002-comments/0002-C-plusplus-style.txt +2 -0
  37. data/spec/acceptance/invalid/0002-comments/0003-sh-style.txt +2 -0
  38. data/spec/acceptance/invalid/0002-comments/0004-python-docstring.txt +3 -0
  39. data/spec/acceptance/invalid/0002-comments/0005-SQL-style.txt +2 -0
  40. data/spec/acceptance/invalid/0002-comments/0006-BASIC-style.txt +2 -0
  41. data/spec/acceptance/invalid/0003-literals/0001-FALSE.txt +1 -0
  42. data/spec/acceptance/invalid/0003-literals/0002-NULL.txt +1 -0
  43. data/spec/acceptance/invalid/0003-literals/0003-TRUE.txt +1 -0
  44. data/spec/acceptance/invalid/0003-literals/0004-NUL.txt +1 -0
  45. data/spec/acceptance/invalid/0003-literals/0005-nil.txt +1 -0
  46. data/spec/acceptance/invalid/0003-literals/0006-undef.txt +1 -0
  47. data/spec/acceptance/invalid/0003-literals/0007-modifier.txt +1 -0
  48. data/spec/acceptance/invalid/0003-literals/0008-undefined.txt +1 -0
  49. data/spec/acceptance/invalid/0004-numbers/0001-omit-zero.txt +1 -0
  50. data/spec/acceptance/invalid/0004-numbers/0002-minus-dot.txt +1 -0
  51. data/spec/acceptance/invalid/0004-numbers/0003-missing-frac.txt +1 -0
  52. data/spec/acceptance/invalid/0004-numbers/0004-missing-exp.txt +1 -0
  53. data/spec/acceptance/invalid/0004-numbers/0005-octal.txt +1 -0
  54. data/spec/acceptance/invalid/0004-numbers/0006-hexadecimal.txt +1 -0
  55. data/spec/acceptance/invalid/0004-numbers/0007-comma.txt +1 -0
  56. data/spec/acceptance/invalid/0004-numbers/0008-perl-underscore.txt +1 -0
  57. data/spec/acceptance/invalid/0004-numbers/0009-NaN.txt +1 -0
  58. data/spec/acceptance/invalid/0004-numbers/0010-Inf.txt +1 -0
  59. data/spec/acceptance/invalid/0004-numbers/0011-Infinity.txt +1 -0
  60. data/spec/acceptance/invalid/0005-strings/0000-NUL.txt +0 -0
  61. data/spec/acceptance/invalid/0005-strings/0001-not-terminated.txt +1 -0
  62. data/spec/acceptance/invalid/0005-strings/0002-single-quote.txt +1 -0
  63. data/spec/acceptance/invalid/0005-strings/0003-back-quote.txt +1 -0
  64. data/spec/acceptance/invalid/0005-strings/0004-carriage-return.txt +1 -0
  65. data/spec/acceptance/invalid/0005-strings/0005-line-feed.txt +2 -0
  66. data/spec/acceptance/invalid/0005-strings/0006-unknown-escape-a.txt +1 -0
  67. data/spec/acceptance/invalid/0005-strings/0007-unknown-escape-perl-style.txt +1 -0
  68. data/spec/acceptance/invalid/0005-strings/0008-unknown-escape-C-style.txt +1 -0
  69. data/spec/acceptance/invalid/0005-strings/0009-unknown-escape-ruby-style.txt +1 -0
  70. data/spec/acceptance/invalid/0005-strings/0010-escape-too-short.txt +1 -0
  71. data/spec/acceptance/invalid/0005-strings/0011-C-string-concat.txt +1 -0
  72. data/spec/acceptance/invalid/0005-strings/0012-perl-string-concat.txt +1 -0
  73. data/spec/acceptance/invalid/0005-strings/0013-Java-string-concat.txt +1 -0
  74. data/spec/acceptance/invalid/0006-encodings/0001-CESU-8.txt +1 -0
  75. data/spec/acceptance/invalid/0006-encodings/0002-Windows-31J.txt +1 -0
  76. data/spec/acceptance/invalid/0006-encodings/0003-EBCDIC.txt +1 -0
  77. data/spec/acceptance/invalid/0006-encodings/0004-overlong-utf8.txt +1 -0
  78. data/spec/acceptance/invalid/0007-arrays/0001-lacks-open.txt +1 -0
  79. data/spec/acceptance/invalid/0007-arrays/0002-lacks-close.txt +1 -0
  80. data/spec/acceptance/invalid/0007-arrays/0003-interleaving-parens.txt +1 -0
  81. data/spec/acceptance/invalid/0007-arrays/0004-dangling-comma.txt +1 -0
  82. data/spec/acceptance/invalid/0007-arrays/0005-missing-comma.txt +1 -0
  83. data/spec/acceptance/invalid/0007-arrays/0006-colon-instead-of-comma.txt +1 -0
  84. data/spec/acceptance/invalid/0008-hashes/0001-key-missing.txt +1 -0
  85. data/spec/acceptance/invalid/0008-hashes/0002-value-missing.txt +1 -0
  86. data/spec/acceptance/invalid/0008-hashes/0003-true-key.txt +1 -0
  87. data/spec/acceptance/invalid/0008-hashes/0004-false-key.txt +1 -0
  88. data/spec/acceptance/invalid/0008-hashes/0005-null-key.txt +1 -0
  89. data/spec/acceptance/invalid/0008-hashes/0006-numeric-key.txt +1 -0
  90. data/spec/acceptance/invalid/0008-hashes/0007-array-key.txt +1 -0
  91. data/spec/acceptance/invalid/0008-hashes/0008-hash-key.txt +1 -0
  92. data/spec/acceptance/invalid/0008-hashes/0009-key-not-escaped.txt +4 -0
  93. data/spec/acceptance/invalid/0009-javascriptisms/0001-JSONP.txt +1 -0
  94. data/spec/acceptance/invalid/0009-javascriptisms/0002-new-Array.txt +3 -0
  95. data/spec/acceptance/invalid/0009-javascriptisms/0003-new-Date.txt +1 -0
  96. data/spec/acceptance/invalid/0009-javascriptisms/0004-new-Error.txt +1 -0
  97. data/spec/acceptance/invalid/0009-javascriptisms/0005-Math.txt +1 -0
  98. data/spec/acceptance/invalid/0009-javascriptisms/0006-regular-expression.txt +1 -0
  99. data/spec/acceptance/invalid/0009-javascriptisms/0007-function.txt +7 -0
  100. data/spec/acceptance/invalid/0009-javascriptisms/0008-this.txt +1 -0
  101. data/spec/acceptance/invalid/0009-javascriptisms/0009-plusplus.txt +3 -0
  102. data/spec/acceptance/invalid/0009-javascriptisms/0010-ternary-operator.txt +1 -0
  103. data/spec/acceptance/valid/0001-ws/0001-space.json +1 -0
  104. data/spec/acceptance/valid/0001-ws/0002-tab.json +1 -0
  105. data/spec/acceptance/valid/0001-ws/0003-lf.json +1 -0
  106. data/spec/acceptance/valid/0001-ws/0004-cr.json +1 -0
  107. data/spec/acceptance/valid/0001-ws/0005-before.json +1 -0
  108. data/spec/acceptance/valid/0001-ws/0006-after.json +1 -0
  109. data/spec/acceptance/valid/0001-ws/0007-around-comma.json +3 -0
  110. data/spec/acceptance/valid/0001-ws/0008-around-colon.json +3 -0
  111. data/spec/acceptance/valid/0002-bare-values/0001-false.json +1 -0
  112. data/spec/acceptance/valid/0002-bare-values/0002-null.json +1 -0
  113. data/spec/acceptance/valid/0002-bare-values/0003-true.json +1 -0
  114. data/spec/acceptance/valid/0002-bare-values/0004-number.json +1 -0
  115. data/spec/acceptance/valid/0002-bare-values/0005-string.json +1 -0
  116. data/spec/acceptance/valid/0003-literals/0001-false.json +1 -0
  117. data/spec/acceptance/valid/0003-literals/0002-null.json +1 -0
  118. data/spec/acceptance/valid/0003-literals/0003-true.json +1 -0
  119. data/spec/acceptance/valid/0004-numbers/0000-zero.json +1 -0
  120. data/spec/acceptance/valid/0004-numbers/0001-one.json +1 -0
  121. data/spec/acceptance/valid/0004-numbers/0002-two.json +1 -0
  122. data/spec/acceptance/valid/0004-numbers/0003-three.json +1 -0
  123. data/spec/acceptance/valid/0004-numbers/0004-four.json +1 -0
  124. data/spec/acceptance/valid/0004-numbers/0005-five.json +1 -0
  125. data/spec/acceptance/valid/0004-numbers/0006-six.json +1 -0
  126. data/spec/acceptance/valid/0004-numbers/0007-seven.json +1 -0
  127. data/spec/acceptance/valid/0004-numbers/0008-eight.json +1 -0
  128. data/spec/acceptance/valid/0004-numbers/0009-nine.json +1 -0
  129. data/spec/acceptance/valid/0004-numbers/0010-ten.json +1 -0
  130. data/spec/acceptance/valid/0004-numbers/0011-minus.json +1 -0
  131. data/spec/acceptance/valid/0004-numbers/0012-fraction.json +1 -0
  132. data/spec/acceptance/valid/0004-numbers/0013-exponent.json +1 -0
  133. data/spec/acceptance/valid/0004-numbers/0014-exponent-minus.json +1 -0
  134. data/spec/acceptance/valid/0004-numbers/0015-exponent-plus.json +1 -0
  135. data/spec/acceptance/valid/0004-numbers/0016-complex.json +1 -0
  136. data/spec/acceptance/valid/0004-numbers/0017-DBL_MAX.json +1 -0
  137. data/spec/acceptance/valid/0004-numbers/0018-DBL_MIN.json +1 -0
  138. data/spec/acceptance/valid/0004-numbers/0019-subnormal-number.json +1 -0
  139. data/spec/acceptance/valid/0004-numbers/0020-1E400.json +1 -0
  140. data/spec/acceptance/valid/0004-numbers/0021-pi.json +1 -0
  141. data/spec/acceptance/valid/0004-numbers/0022-UINT32_MAX.json +1 -0
  142. data/spec/acceptance/valid/0004-numbers/0023-UINT64_MAX.json +1 -0
  143. data/spec/acceptance/valid/0004-numbers/0024-INT64_MIN.json +1 -0
  144. data/spec/acceptance/valid/0004-numbers/0025-high-resolution-zero.json +1 -0
  145. data/spec/acceptance/valid/0004-numbers/0026-high-resolution-100.json +1 -0
  146. data/spec/acceptance/valid/0005-strings/0001-empty.json +1 -0
  147. data/spec/acceptance/valid/0005-strings/0002-basic-latin.json +1 -0
  148. data/spec/acceptance/valid/0005-strings/0003-escapes.json +1 -0
  149. data/spec/acceptance/valid/0005-strings/0004-raw-unicode.json +1 -0
  150. data/spec/acceptance/valid/0005-strings/0005-escaped-unicode.json +1 -0
  151. data/spec/acceptance/valid/0005-strings/0006-escaped-NUL.json +1 -0
  152. data/spec/acceptance/valid/0005-strings/0007-escaped-invalid-unicode-still-valid-as-json.json +1 -0
  153. data/spec/acceptance/valid/0005-strings/0008-ruby-json-gem-cant-handle-this.json +1 -0
  154. data/spec/acceptance/valid/0005-strings/0009-unescaped-invalid-javascript-still-valid-as-json.json +1 -0
  155. data/spec/acceptance/valid/0005-strings/0010-escaped-separated-surrogate.json +1 -0
  156. data/spec/acceptance/valid/0005-strings/0011-escaped-surrogate-then-normal.json +1 -0
  157. data/spec/acceptance/valid/0006-m17n/0001-genesis.json +6 -0
  158. data/spec/acceptance/valid/0006-m17n/0002-heart-sutra.json +5 -0
  159. data/spec/acceptance/valid/0006-m17n/0003-escaped-valid-surrogate-pair.json +1 -0
  160. data/spec/acceptance/valid/0006-m17n/0004-unescaped-valid-supplementary-multilingual-plane.json +1 -0
  161. data/spec/acceptance/valid/0007-arrays/0000-empty.json +1 -0
  162. data/spec/acceptance/valid/0007-arrays/0001-one-element.json +1 -0
  163. data/spec/acceptance/valid/0007-arrays/0002-multiple-elements.json +33 -0
  164. data/spec/acceptance/valid/0007-arrays/0003-various-types.json +1 -0
  165. data/spec/acceptance/valid/0007-arrays/0004-nested.json +17 -0
  166. data/spec/acceptance/valid/0008-hashes/0000-empty.json +1 -0
  167. data/spec/acceptance/valid/0008-hashes/0001-onekey.json +1 -0
  168. data/spec/acceptance/valid/0008-hashes/0002-many-keys.json +5 -0
  169. data/spec/acceptance/valid/0008-hashes/0003-empty-key.json +3 -0
  170. data/spec/acceptance/valid/0008-hashes/0004-true-value.json +3 -0
  171. data/spec/acceptance/valid/0008-hashes/0005-false-value.json +3 -0
  172. data/spec/acceptance/valid/0008-hashes/0006-null-value.json +3 -0
  173. data/spec/acceptance/valid/0008-hashes/0007-string-value.json +3 -0
  174. data/spec/acceptance/valid/0008-hashes/0008-numeric-value.json +3 -0
  175. data/spec/acceptance/valid/0008-hashes/0009-array-value.json +8 -0
  176. data/spec/acceptance/valid/0008-hashes/0010-hash-value.json +20 -0
  177. data/spec/acceptance/valid/0008-hashes/0011-duplicate-key.json +4 -0
  178. data/spec/acceptance/valid/0008-hashes/0012-duplicate-key-in-different-representations.json +4 -0
  179. data/spec/acceptance/valid/0009-complicated/0001-jsonschema.json +46 -0
  180. data/spec/acceptance/valid/0009-complicated/0002-example-in-RFC7159-section-13.json +14 -0
  181. data/spec/acceptance/valid/0009-complicated/0003-example-in-RFC7159-section-13.json +22 -0
  182. data/spec/spec_helper.rb +60 -0
  183. metadata +530 -0
@@ -0,0 +1,3 @@
1
+ {
2
+ "falsy": false
3
+ }
@@ -0,0 +1,3 @@
1
+ {
2
+ "pi": 3.14159265358979323846264338327950288419716939937510582097494459230781640628620899862803482534211706798214808651328230664709384460955058223172535940812848111745028410270193852110555964462294895493038196442881097566593344612847564823378678316527120190914564856692346034861045432664821339360726024914127372458700660631558817488152092096282925409171536436789259036001133053054882046652138414695194151160943305727036575959195309218611738193261179310511854807446237996274956735188575272489122793818301194912983367336244065664308602139494639522473719070217986094370277053921717629317675238467481846766940513200056812714526356082778577134275778960917363717872146844090122495343014654958537105079227968925892354201995611212902196086403441815981362977477130996051870721134999999837297804995105973173281609631859502445945534690830264252230825334468503526193118817101000313783875288658753320838142061717766914730359825349042875546873115956286388235378759375195778185778053217122680661300192787661119590921642019893809525720106548586327886593615338182796823030195203530185296899577362259941389124972177528347913151557485724245415069595082953311686172785588907509838175463746493931925506040092770167113900984882401285836160356370766010471018194295559619894676783744944825537977472684710404753464620804668425906949129331367702898915210475216205696602405803815019351125338243003558764024749647326391419927260426992279678235478163600934172164121992458631503028618297455570674983850549458858692699569092721079750930295532116534498720275596023648066549911988183479775356636980742654252786255181841757467289097777279380008164706001614524919217321721477235014144197356854816136115735255213347574184946843852332390739414333454776241686251898356948556209921922218427255025425688767179049460165346680498862723279178608578438382796797668145410095388378636095068006422512520511739298489608412848862694560424196528502221066118630674427862203919494504712371378696095636437191728746776465757396241389086583264599581339047802759009946576407895126946839835259570982582262052248940772671947826848260147699090264013639443745530506820349625245174939965143142980919065925093722169646151570985838741059788595977297549893016175392846813826868386894277415599185592524595395943104997252468084598727364469584865383673622262609912460805124388439045124413654976278079771569143599770012961608944169486855584840635342207222582848864815845602850601684273945226746767889525213852254995466672782398645659611635488623057745649803559363456817432411251507606947945109659609402522887971089314566913686722874894056010150330861792868092087476091782493858900971490967598526136554978189312978482168299894872265880485756401427047755513237964145152374623436454285844479526586782105114135473573952311342716610213596953623144295248493718711014576540359027993440374200731057853906219838744780847848968332144571386875194350643021845319104848100537061468067491927819119793995206141966342875444064374512371819217999839101591956181467514269123974894090718649423196156794520809514655022523160388193014209376213785595663893778708303906979207734672218256259966150142150306803844773454920260541466592520149744285073251866600213243408819071048633173464965145390579626856100550810665879699816357473638405257145910289706414011097120628043903975951567715770042033786993600723055876317635942187312514712053292819182618612586732157919841484882916447060957527069572209175671167229109816909152801735067127485832228718352093539657251210835791513698820914442100675103346711031412
3
+ }
@@ -0,0 +1,8 @@
1
+ {
2
+ "四天王" : [
3
+ "持国天",
4
+ "増長天",
5
+ "広目天",
6
+ "多聞天"
7
+ ]
8
+ }
@@ -0,0 +1,20 @@
1
+ {
2
+ "帝釈天" : {
3
+ "持国天" : [
4
+ "乾闥婆",
5
+ "毘舎遮"
6
+ ],
7
+ "増長天" : [
8
+ "鳩槃荼",
9
+ "薜茘多"
10
+ ],
11
+ "広目天" : [
12
+ "龍神",
13
+ "毘舎闍"
14
+ ],
15
+ "多聞天" : [
16
+ "夜叉",
17
+ "羅刹"
18
+ ]
19
+ }
20
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "foo" : "bar",
3
+ "foo" : "baz"
4
+ }
@@ -0,0 +1,4 @@
1
+ {
2
+ "a\\b" : "backslash-backslash",
3
+ "a\u005Cb" : "U+005C"
4
+ }
@@ -0,0 +1,46 @@
1
+ {
2
+ "$schema" : "http://json-schema.org/draft-04/hyper-schema#",
3
+ "id" : "https://github.com/shyouhei/RFC7159/blob/master/spec/acceptance/valid/0009-complicated/0001-jsonschema.json",
4
+ "title" : "Sample blog post",
5
+ "description": "This is a JSON Schema, see http://json-schema.org",
6
+ "type" : "object",
7
+ "definitions": {
8
+ "uint64_t": {
9
+ "type" : "integer",
10
+ "mininum": 0,
11
+ "maximum": 18446744073709551615
12
+ },
13
+ "post": {
14
+ "type" : "object",
15
+ "properties": {
16
+ "userId": { "$ref": "#/definitions/uint64_t" },
17
+ "title" : {
18
+ "type" : "string",
19
+ "minLength": 1,
20
+ "maxLength": 64
21
+ },
22
+ "body": {
23
+ "type" : "string",
24
+ "minLength": 1,
25
+ "maxLength": 32768
26
+ },
27
+ "tags": {
28
+ "type" : "object"
29
+ },
30
+ "createdAt" : { "$ref": "#/definitions/uint64_t" },
31
+ "updatedAt" : { "$ref": "#/definitions/uint64_t" },
32
+ "publishedAt": {
33
+ "oneOf": [
34
+ { "$ref": "#/definitions/uint64_t" },
35
+ { "enum": [ null ] }
36
+ ]
37
+ }
38
+ },
39
+ "additionalProperties": false,
40
+ "required": [ "userId", "title", "body" ]
41
+ }
42
+ },
43
+ "oneOf": [
44
+ { "$ref": "#/definitions/post" }
45
+ ]
46
+ }
@@ -0,0 +1,14 @@
1
+ {
2
+ "Image": {
3
+ "Width": 800,
4
+ "Height": 600,
5
+ "Title": "View from 15th Floor",
6
+ "Thumbnail": {
7
+ "Url": "http://www.example.com/image/481989943",
8
+ "Height": 125,
9
+ "Width": 100
10
+ },
11
+ "Animated" : false,
12
+ "IDs": [116, 943, 234, 38793]
13
+ }
14
+ }
@@ -0,0 +1,22 @@
1
+ [
2
+ {
3
+ "precision": "zip",
4
+ "Latitude": 37.7668,
5
+ "Longitude": -122.3959,
6
+ "Address": "",
7
+ "City": "SAN FRANCISCO",
8
+ "State": "CA",
9
+ "Zip": "94107",
10
+ "Country": "US"
11
+ },
12
+ {
13
+ "precision": "zip",
14
+ "Latitude": 37.371991,
15
+ "Longitude": -122.026020,
16
+ "Address": "",
17
+ "City": "SUNNYVALE",
18
+ "State": "CA",
19
+ "Zip": "94085",
20
+ "Country": "US"
21
+ }
22
+ ]
@@ -0,0 +1,60 @@
1
+ #! /your/favourite/path/to/rspec
2
+ # -*- coding: utf-8 -*-
3
+
4
+ # Copyright (c) 2014 Urabe, Shyouhei. All rights reserved.
5
+ #
6
+ # Redistribution and use in source and binary forms, with or without
7
+ # modification, are permitted provided that the following conditions are met:
8
+ #
9
+ # - Redistributions of source code must retain the above copyright
10
+ # notice, this list of conditions and the following disclaimer.
11
+ #
12
+ # - Redistributions in binary form must reproduce the above copyright
13
+ # notice, this list of conditions and the following disclaimer in
14
+ # the documentation and/or other materials provided with the
15
+ # distribution.
16
+ #
17
+ # - Neither the name of Internet Society, IETF or IETF Trust, nor the
18
+ # names of specific contributors, may be used to endorse or promote
19
+ # products derived from this software without specific prior written
20
+ # permission.
21
+ #
22
+ # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS”
23
+ # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24
+ # IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25
+ # ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
26
+ # LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
27
+ # CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
28
+ # SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
29
+ # INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
30
+ # CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
31
+ # ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
32
+ # POSSIBILITY OF SUCH DAMAGE.
33
+
34
+ ENV['RACK_ENV'] = 'test'
35
+ require 'bundler/setup'
36
+ require 'rspec'
37
+ require 'simplecov'
38
+
39
+ RSpec.configure do |c|
40
+ c.filter_run_excluding skip: true
41
+ end
42
+
43
+ SimpleCov.start do
44
+ add_filter 'lib/RFC8259/parser.rb'
45
+ add_filter 'vendor/'
46
+ add_filter 'spec/'
47
+ end
48
+
49
+ require_relative '../lib/RFC8259' # <- need this *after* simplecov
50
+
51
+ #
52
+ # Local Variables:
53
+ # mode: ruby
54
+ # coding: utf-8-unix
55
+ # indent-tabs-mode: t
56
+ # tab-width: 3
57
+ # ruby-indent-level: 3
58
+ # fill-column: 79
59
+ # default-justification: full
60
+ # End:
metadata ADDED
@@ -0,0 +1,530 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: RFC8259
3
+ version: !ruby/object:Gem::Version
4
+ version: '8259'
5
+ platform: ruby
6
+ authors:
7
+ - Urabe,
8
+ - Shyouhei
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2017-12-20 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: bundler
16
+ requirement: !ruby/object:Gem::Requirement
17
+ requirements:
18
+ - - "~>"
19
+ - !ruby/object:Gem::Version
20
+ version: '1.5'
21
+ type: :development
22
+ prerelease: false
23
+ version_requirements: !ruby/object:Gem::Requirement
24
+ requirements:
25
+ - - "~>"
26
+ - !ruby/object:Gem::Version
27
+ version: '1.5'
28
+ - !ruby/object:Gem::Dependency
29
+ name: rake
30
+ requirement: !ruby/object:Gem::Requirement
31
+ requirements:
32
+ - - "~>"
33
+ - !ruby/object:Gem::Version
34
+ version: '10.1'
35
+ type: :development
36
+ prerelease: false
37
+ version_requirements: !ruby/object:Gem::Requirement
38
+ requirements:
39
+ - - "~>"
40
+ - !ruby/object:Gem::Version
41
+ version: '10.1'
42
+ - !ruby/object:Gem::Dependency
43
+ name: rdoc
44
+ requirement: !ruby/object:Gem::Requirement
45
+ requirements:
46
+ - - "~>"
47
+ - !ruby/object:Gem::Version
48
+ version: '4.0'
49
+ type: :development
50
+ prerelease: false
51
+ version_requirements: !ruby/object:Gem::Requirement
52
+ requirements:
53
+ - - "~>"
54
+ - !ruby/object:Gem::Version
55
+ version: '4.0'
56
+ - !ruby/object:Gem::Dependency
57
+ name: yard
58
+ requirement: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - "~>"
61
+ - !ruby/object:Gem::Version
62
+ version: '0.8'
63
+ type: :development
64
+ prerelease: false
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - "~>"
68
+ - !ruby/object:Gem::Version
69
+ version: '0.8'
70
+ - !ruby/object:Gem::Dependency
71
+ name: rspec
72
+ requirement: !ruby/object:Gem::Requirement
73
+ requirements:
74
+ - - "~>"
75
+ - !ruby/object:Gem::Version
76
+ version: '2.14'
77
+ type: :development
78
+ prerelease: false
79
+ version_requirements: !ruby/object:Gem::Requirement
80
+ requirements:
81
+ - - "~>"
82
+ - !ruby/object:Gem::Version
83
+ version: '2.14'
84
+ - !ruby/object:Gem::Dependency
85
+ name: simplecov
86
+ requirement: !ruby/object:Gem::Requirement
87
+ requirements:
88
+ - - ">="
89
+ - !ruby/object:Gem::Version
90
+ version: '0'
91
+ type: :development
92
+ prerelease: false
93
+ version_requirements: !ruby/object:Gem::Requirement
94
+ requirements:
95
+ - - ">="
96
+ - !ruby/object:Gem::Version
97
+ version: '0'
98
+ - !ruby/object:Gem::Dependency
99
+ name: racc
100
+ requirement: !ruby/object:Gem::Requirement
101
+ requirements:
102
+ - - "~>"
103
+ - !ruby/object:Gem::Version
104
+ version: 1.4.11
105
+ type: :development
106
+ prerelease: false
107
+ version_requirements: !ruby/object:Gem::Requirement
108
+ requirements:
109
+ - - "~>"
110
+ - !ruby/object:Gem::Version
111
+ version: 1.4.11
112
+ - !ruby/object:Gem::Dependency
113
+ name: json
114
+ requirement: !ruby/object:Gem::Requirement
115
+ requirements:
116
+ - - ">="
117
+ - !ruby/object:Gem::Version
118
+ version: '0'
119
+ type: :development
120
+ prerelease: false
121
+ version_requirements: !ruby/object:Gem::Requirement
122
+ requirements:
123
+ - - ">="
124
+ - !ruby/object:Gem::Version
125
+ version: '0'
126
+ - !ruby/object:Gem::Dependency
127
+ name: yajl-ruby
128
+ requirement: !ruby/object:Gem::Requirement
129
+ requirements:
130
+ - - ">="
131
+ - !ruby/object:Gem::Version
132
+ version: '0'
133
+ type: :development
134
+ prerelease: false
135
+ version_requirements: !ruby/object:Gem::Requirement
136
+ requirements:
137
+ - - ">="
138
+ - !ruby/object:Gem::Version
139
+ version: '0'
140
+ - !ruby/object:Gem::Dependency
141
+ name: oj
142
+ requirement: !ruby/object:Gem::Requirement
143
+ requirements:
144
+ - - ">="
145
+ - !ruby/object:Gem::Version
146
+ version: '0'
147
+ type: :development
148
+ prerelease: false
149
+ version_requirements: !ruby/object:Gem::Requirement
150
+ requirements:
151
+ - - ">="
152
+ - !ruby/object:Gem::Version
153
+ version: '0'
154
+ description: A JSON parser/generator that conforms (I believe) to RFC8259 "The JavaScript
155
+ Object Notation (JSON) Data Interchange Format". This gem honors the syntax as possible.
156
+ The generator guarantees that a parsed valid properly rounds-trip to identical valid
157
+ JSON representation.
158
+ email:
159
+ - shyouhei@ruby-lang.org
160
+ executables: []
161
+ extensions: []
162
+ extra_rdoc_files: []
163
+ files:
164
+ - ".gitignore"
165
+ - ".rspec"
166
+ - ".yardopts"
167
+ - Gemfile
168
+ - LICENSE.txt
169
+ - README.txt
170
+ - RFC8259
171
+ - RFC8259.gemspec
172
+ - Rakefile
173
+ - lib/RFC8259.rb
174
+ - lib/RFC8259/array.rb
175
+ - lib/RFC8259/dumper.rb
176
+ - lib/RFC8259/false.rb
177
+ - lib/RFC8259/null.rb
178
+ - lib/RFC8259/number.rb
179
+ - lib/RFC8259/object.rb
180
+ - lib/RFC8259/parser.rb
181
+ - lib/RFC8259/parser.ry
182
+ - lib/RFC8259/string.rb
183
+ - lib/RFC8259/true.rb
184
+ - lib/RFC8259/value.rb
185
+ - lib/RFC8259/version.rb
186
+ - spec/RFC8259_spec.rb
187
+ - spec/acceptance/README.txt
188
+ - spec/acceptance/invalid/0001-ws/0001-verical-tab.txt
189
+ - spec/acceptance/invalid/0001-ws/0002-null.txt
190
+ - spec/acceptance/invalid/0001-ws/0003-space-in-number-1.txt
191
+ - spec/acceptance/invalid/0001-ws/0004-space-in-number-2.txt
192
+ - spec/acceptance/invalid/0001-ws/0005-space-in-number-3.txt
193
+ - spec/acceptance/invalid/0001-ws/0006-space-in-number-4.txt
194
+ - spec/acceptance/invalid/0001-ws/0007-space-in-number-5.txt
195
+ - spec/acceptance/invalid/0001-ws/0008-space-in-number-6.txt
196
+ - spec/acceptance/invalid/0001-ws/0009-space-in-literal.txt
197
+ - spec/acceptance/invalid/0001-ws/0010-Unicode-LINE_SEPARATOR.txt
198
+ - spec/acceptance/invalid/0002-comments/0001-C-style.txt
199
+ - spec/acceptance/invalid/0002-comments/0002-C-plusplus-style.txt
200
+ - spec/acceptance/invalid/0002-comments/0003-sh-style.txt
201
+ - spec/acceptance/invalid/0002-comments/0004-python-docstring.txt
202
+ - spec/acceptance/invalid/0002-comments/0005-SQL-style.txt
203
+ - spec/acceptance/invalid/0002-comments/0006-BASIC-style.txt
204
+ - spec/acceptance/invalid/0003-literals/0001-FALSE.txt
205
+ - spec/acceptance/invalid/0003-literals/0002-NULL.txt
206
+ - spec/acceptance/invalid/0003-literals/0003-TRUE.txt
207
+ - spec/acceptance/invalid/0003-literals/0004-NUL.txt
208
+ - spec/acceptance/invalid/0003-literals/0005-nil.txt
209
+ - spec/acceptance/invalid/0003-literals/0006-undef.txt
210
+ - spec/acceptance/invalid/0003-literals/0007-modifier.txt
211
+ - spec/acceptance/invalid/0003-literals/0008-undefined.txt
212
+ - spec/acceptance/invalid/0004-numbers/0001-omit-zero.txt
213
+ - spec/acceptance/invalid/0004-numbers/0002-minus-dot.txt
214
+ - spec/acceptance/invalid/0004-numbers/0003-missing-frac.txt
215
+ - spec/acceptance/invalid/0004-numbers/0004-missing-exp.txt
216
+ - spec/acceptance/invalid/0004-numbers/0005-octal.txt
217
+ - spec/acceptance/invalid/0004-numbers/0006-hexadecimal.txt
218
+ - spec/acceptance/invalid/0004-numbers/0007-comma.txt
219
+ - spec/acceptance/invalid/0004-numbers/0008-perl-underscore.txt
220
+ - spec/acceptance/invalid/0004-numbers/0009-NaN.txt
221
+ - spec/acceptance/invalid/0004-numbers/0010-Inf.txt
222
+ - spec/acceptance/invalid/0004-numbers/0011-Infinity.txt
223
+ - spec/acceptance/invalid/0005-strings/0000-NUL.txt
224
+ - spec/acceptance/invalid/0005-strings/0001-not-terminated.txt
225
+ - spec/acceptance/invalid/0005-strings/0002-single-quote.txt
226
+ - spec/acceptance/invalid/0005-strings/0003-back-quote.txt
227
+ - spec/acceptance/invalid/0005-strings/0004-carriage-return.txt
228
+ - spec/acceptance/invalid/0005-strings/0005-line-feed.txt
229
+ - spec/acceptance/invalid/0005-strings/0006-unknown-escape-a.txt
230
+ - spec/acceptance/invalid/0005-strings/0007-unknown-escape-perl-style.txt
231
+ - spec/acceptance/invalid/0005-strings/0008-unknown-escape-C-style.txt
232
+ - spec/acceptance/invalid/0005-strings/0009-unknown-escape-ruby-style.txt
233
+ - spec/acceptance/invalid/0005-strings/0010-escape-too-short.txt
234
+ - spec/acceptance/invalid/0005-strings/0011-C-string-concat.txt
235
+ - spec/acceptance/invalid/0005-strings/0012-perl-string-concat.txt
236
+ - spec/acceptance/invalid/0005-strings/0013-Java-string-concat.txt
237
+ - spec/acceptance/invalid/0006-encodings/0001-CESU-8.txt
238
+ - spec/acceptance/invalid/0006-encodings/0002-Windows-31J.txt
239
+ - spec/acceptance/invalid/0006-encodings/0003-EBCDIC.txt
240
+ - spec/acceptance/invalid/0006-encodings/0004-overlong-utf8.txt
241
+ - spec/acceptance/invalid/0007-arrays/0001-lacks-open.txt
242
+ - spec/acceptance/invalid/0007-arrays/0002-lacks-close.txt
243
+ - spec/acceptance/invalid/0007-arrays/0003-interleaving-parens.txt
244
+ - spec/acceptance/invalid/0007-arrays/0004-dangling-comma.txt
245
+ - spec/acceptance/invalid/0007-arrays/0005-missing-comma.txt
246
+ - spec/acceptance/invalid/0007-arrays/0006-colon-instead-of-comma.txt
247
+ - spec/acceptance/invalid/0008-hashes/0001-key-missing.txt
248
+ - spec/acceptance/invalid/0008-hashes/0002-value-missing.txt
249
+ - spec/acceptance/invalid/0008-hashes/0003-true-key.txt
250
+ - spec/acceptance/invalid/0008-hashes/0004-false-key.txt
251
+ - spec/acceptance/invalid/0008-hashes/0005-null-key.txt
252
+ - spec/acceptance/invalid/0008-hashes/0006-numeric-key.txt
253
+ - spec/acceptance/invalid/0008-hashes/0007-array-key.txt
254
+ - spec/acceptance/invalid/0008-hashes/0008-hash-key.txt
255
+ - spec/acceptance/invalid/0008-hashes/0009-key-not-escaped.txt
256
+ - spec/acceptance/invalid/0009-javascriptisms/0001-JSONP.txt
257
+ - spec/acceptance/invalid/0009-javascriptisms/0002-new-Array.txt
258
+ - spec/acceptance/invalid/0009-javascriptisms/0003-new-Date.txt
259
+ - spec/acceptance/invalid/0009-javascriptisms/0004-new-Error.txt
260
+ - spec/acceptance/invalid/0009-javascriptisms/0005-Math.txt
261
+ - spec/acceptance/invalid/0009-javascriptisms/0006-regular-expression.txt
262
+ - spec/acceptance/invalid/0009-javascriptisms/0007-function.txt
263
+ - spec/acceptance/invalid/0009-javascriptisms/0008-this.txt
264
+ - spec/acceptance/invalid/0009-javascriptisms/0009-plusplus.txt
265
+ - spec/acceptance/invalid/0009-javascriptisms/0010-ternary-operator.txt
266
+ - spec/acceptance/valid/0001-ws/0001-space.json
267
+ - spec/acceptance/valid/0001-ws/0002-tab.json
268
+ - spec/acceptance/valid/0001-ws/0003-lf.json
269
+ - spec/acceptance/valid/0001-ws/0004-cr.json
270
+ - spec/acceptance/valid/0001-ws/0005-before.json
271
+ - spec/acceptance/valid/0001-ws/0006-after.json
272
+ - spec/acceptance/valid/0001-ws/0007-around-comma.json
273
+ - spec/acceptance/valid/0001-ws/0008-around-colon.json
274
+ - spec/acceptance/valid/0002-bare-values/0001-false.json
275
+ - spec/acceptance/valid/0002-bare-values/0002-null.json
276
+ - spec/acceptance/valid/0002-bare-values/0003-true.json
277
+ - spec/acceptance/valid/0002-bare-values/0004-number.json
278
+ - spec/acceptance/valid/0002-bare-values/0005-string.json
279
+ - spec/acceptance/valid/0003-literals/0001-false.json
280
+ - spec/acceptance/valid/0003-literals/0002-null.json
281
+ - spec/acceptance/valid/0003-literals/0003-true.json
282
+ - spec/acceptance/valid/0004-numbers/0000-zero.json
283
+ - spec/acceptance/valid/0004-numbers/0001-one.json
284
+ - spec/acceptance/valid/0004-numbers/0002-two.json
285
+ - spec/acceptance/valid/0004-numbers/0003-three.json
286
+ - spec/acceptance/valid/0004-numbers/0004-four.json
287
+ - spec/acceptance/valid/0004-numbers/0005-five.json
288
+ - spec/acceptance/valid/0004-numbers/0006-six.json
289
+ - spec/acceptance/valid/0004-numbers/0007-seven.json
290
+ - spec/acceptance/valid/0004-numbers/0008-eight.json
291
+ - spec/acceptance/valid/0004-numbers/0009-nine.json
292
+ - spec/acceptance/valid/0004-numbers/0010-ten.json
293
+ - spec/acceptance/valid/0004-numbers/0011-minus.json
294
+ - spec/acceptance/valid/0004-numbers/0012-fraction.json
295
+ - spec/acceptance/valid/0004-numbers/0013-exponent.json
296
+ - spec/acceptance/valid/0004-numbers/0014-exponent-minus.json
297
+ - spec/acceptance/valid/0004-numbers/0015-exponent-plus.json
298
+ - spec/acceptance/valid/0004-numbers/0016-complex.json
299
+ - spec/acceptance/valid/0004-numbers/0017-DBL_MAX.json
300
+ - spec/acceptance/valid/0004-numbers/0018-DBL_MIN.json
301
+ - spec/acceptance/valid/0004-numbers/0019-subnormal-number.json
302
+ - spec/acceptance/valid/0004-numbers/0020-1E400.json
303
+ - spec/acceptance/valid/0004-numbers/0021-pi.json
304
+ - spec/acceptance/valid/0004-numbers/0022-UINT32_MAX.json
305
+ - spec/acceptance/valid/0004-numbers/0023-UINT64_MAX.json
306
+ - spec/acceptance/valid/0004-numbers/0024-INT64_MIN.json
307
+ - spec/acceptance/valid/0004-numbers/0025-high-resolution-zero.json
308
+ - spec/acceptance/valid/0004-numbers/0026-high-resolution-100.json
309
+ - spec/acceptance/valid/0005-strings/0001-empty.json
310
+ - spec/acceptance/valid/0005-strings/0002-basic-latin.json
311
+ - spec/acceptance/valid/0005-strings/0003-escapes.json
312
+ - spec/acceptance/valid/0005-strings/0004-raw-unicode.json
313
+ - spec/acceptance/valid/0005-strings/0005-escaped-unicode.json
314
+ - spec/acceptance/valid/0005-strings/0006-escaped-NUL.json
315
+ - spec/acceptance/valid/0005-strings/0007-escaped-invalid-unicode-still-valid-as-json.json
316
+ - spec/acceptance/valid/0005-strings/0008-ruby-json-gem-cant-handle-this.json
317
+ - spec/acceptance/valid/0005-strings/0009-unescaped-invalid-javascript-still-valid-as-json.json
318
+ - spec/acceptance/valid/0005-strings/0010-escaped-separated-surrogate.json
319
+ - spec/acceptance/valid/0005-strings/0011-escaped-surrogate-then-normal.json
320
+ - spec/acceptance/valid/0006-m17n/0001-genesis.json
321
+ - spec/acceptance/valid/0006-m17n/0002-heart-sutra.json
322
+ - spec/acceptance/valid/0006-m17n/0003-escaped-valid-surrogate-pair.json
323
+ - spec/acceptance/valid/0006-m17n/0004-unescaped-valid-supplementary-multilingual-plane.json
324
+ - spec/acceptance/valid/0007-arrays/0000-empty.json
325
+ - spec/acceptance/valid/0007-arrays/0001-one-element.json
326
+ - spec/acceptance/valid/0007-arrays/0002-multiple-elements.json
327
+ - spec/acceptance/valid/0007-arrays/0003-various-types.json
328
+ - spec/acceptance/valid/0007-arrays/0004-nested.json
329
+ - spec/acceptance/valid/0008-hashes/0000-empty.json
330
+ - spec/acceptance/valid/0008-hashes/0001-onekey.json
331
+ - spec/acceptance/valid/0008-hashes/0002-many-keys.json
332
+ - spec/acceptance/valid/0008-hashes/0003-empty-key.json
333
+ - spec/acceptance/valid/0008-hashes/0004-true-value.json
334
+ - spec/acceptance/valid/0008-hashes/0005-false-value.json
335
+ - spec/acceptance/valid/0008-hashes/0006-null-value.json
336
+ - spec/acceptance/valid/0008-hashes/0007-string-value.json
337
+ - spec/acceptance/valid/0008-hashes/0008-numeric-value.json
338
+ - spec/acceptance/valid/0008-hashes/0009-array-value.json
339
+ - spec/acceptance/valid/0008-hashes/0010-hash-value.json
340
+ - spec/acceptance/valid/0008-hashes/0011-duplicate-key.json
341
+ - spec/acceptance/valid/0008-hashes/0012-duplicate-key-in-different-representations.json
342
+ - spec/acceptance/valid/0009-complicated/0001-jsonschema.json
343
+ - spec/acceptance/valid/0009-complicated/0002-example-in-RFC7159-section-13.json
344
+ - spec/acceptance/valid/0009-complicated/0003-example-in-RFC7159-section-13.json
345
+ - spec/spec_helper.rb
346
+ homepage: http://github.com/shyouhei/RFC8259
347
+ licenses:
348
+ - Simplified BSD License
349
+ metadata: {}
350
+ post_install_message:
351
+ rdoc_options: []
352
+ require_paths:
353
+ - lib
354
+ required_ruby_version: !ruby/object:Gem::Requirement
355
+ requirements:
356
+ - - "~>"
357
+ - !ruby/object:Gem::Version
358
+ version: '2.0'
359
+ required_rubygems_version: !ruby/object:Gem::Requirement
360
+ requirements:
361
+ - - ">="
362
+ - !ruby/object:Gem::Version
363
+ version: '0'
364
+ requirements: []
365
+ rubyforge_project:
366
+ rubygems_version: 2.7.3
367
+ signing_key:
368
+ specification_version: 4
369
+ summary: RFC8259 parser / generator
370
+ test_files:
371
+ - spec/RFC8259_spec.rb
372
+ - spec/acceptance/README.txt
373
+ - spec/acceptance/invalid/0001-ws/0001-verical-tab.txt
374
+ - spec/acceptance/invalid/0001-ws/0002-null.txt
375
+ - spec/acceptance/invalid/0001-ws/0003-space-in-number-1.txt
376
+ - spec/acceptance/invalid/0001-ws/0004-space-in-number-2.txt
377
+ - spec/acceptance/invalid/0001-ws/0005-space-in-number-3.txt
378
+ - spec/acceptance/invalid/0001-ws/0006-space-in-number-4.txt
379
+ - spec/acceptance/invalid/0001-ws/0007-space-in-number-5.txt
380
+ - spec/acceptance/invalid/0001-ws/0008-space-in-number-6.txt
381
+ - spec/acceptance/invalid/0001-ws/0009-space-in-literal.txt
382
+ - spec/acceptance/invalid/0001-ws/0010-Unicode-LINE_SEPARATOR.txt
383
+ - spec/acceptance/invalid/0002-comments/0001-C-style.txt
384
+ - spec/acceptance/invalid/0002-comments/0002-C-plusplus-style.txt
385
+ - spec/acceptance/invalid/0002-comments/0003-sh-style.txt
386
+ - spec/acceptance/invalid/0002-comments/0004-python-docstring.txt
387
+ - spec/acceptance/invalid/0002-comments/0005-SQL-style.txt
388
+ - spec/acceptance/invalid/0002-comments/0006-BASIC-style.txt
389
+ - spec/acceptance/invalid/0003-literals/0001-FALSE.txt
390
+ - spec/acceptance/invalid/0003-literals/0002-NULL.txt
391
+ - spec/acceptance/invalid/0003-literals/0003-TRUE.txt
392
+ - spec/acceptance/invalid/0003-literals/0004-NUL.txt
393
+ - spec/acceptance/invalid/0003-literals/0005-nil.txt
394
+ - spec/acceptance/invalid/0003-literals/0006-undef.txt
395
+ - spec/acceptance/invalid/0003-literals/0007-modifier.txt
396
+ - spec/acceptance/invalid/0003-literals/0008-undefined.txt
397
+ - spec/acceptance/invalid/0004-numbers/0001-omit-zero.txt
398
+ - spec/acceptance/invalid/0004-numbers/0002-minus-dot.txt
399
+ - spec/acceptance/invalid/0004-numbers/0003-missing-frac.txt
400
+ - spec/acceptance/invalid/0004-numbers/0004-missing-exp.txt
401
+ - spec/acceptance/invalid/0004-numbers/0005-octal.txt
402
+ - spec/acceptance/invalid/0004-numbers/0006-hexadecimal.txt
403
+ - spec/acceptance/invalid/0004-numbers/0007-comma.txt
404
+ - spec/acceptance/invalid/0004-numbers/0008-perl-underscore.txt
405
+ - spec/acceptance/invalid/0004-numbers/0009-NaN.txt
406
+ - spec/acceptance/invalid/0004-numbers/0010-Inf.txt
407
+ - spec/acceptance/invalid/0004-numbers/0011-Infinity.txt
408
+ - spec/acceptance/invalid/0005-strings/0000-NUL.txt
409
+ - spec/acceptance/invalid/0005-strings/0001-not-terminated.txt
410
+ - spec/acceptance/invalid/0005-strings/0002-single-quote.txt
411
+ - spec/acceptance/invalid/0005-strings/0003-back-quote.txt
412
+ - spec/acceptance/invalid/0005-strings/0004-carriage-return.txt
413
+ - spec/acceptance/invalid/0005-strings/0005-line-feed.txt
414
+ - spec/acceptance/invalid/0005-strings/0006-unknown-escape-a.txt
415
+ - spec/acceptance/invalid/0005-strings/0007-unknown-escape-perl-style.txt
416
+ - spec/acceptance/invalid/0005-strings/0008-unknown-escape-C-style.txt
417
+ - spec/acceptance/invalid/0005-strings/0009-unknown-escape-ruby-style.txt
418
+ - spec/acceptance/invalid/0005-strings/0010-escape-too-short.txt
419
+ - spec/acceptance/invalid/0005-strings/0011-C-string-concat.txt
420
+ - spec/acceptance/invalid/0005-strings/0012-perl-string-concat.txt
421
+ - spec/acceptance/invalid/0005-strings/0013-Java-string-concat.txt
422
+ - spec/acceptance/invalid/0006-encodings/0001-CESU-8.txt
423
+ - spec/acceptance/invalid/0006-encodings/0002-Windows-31J.txt
424
+ - spec/acceptance/invalid/0006-encodings/0003-EBCDIC.txt
425
+ - spec/acceptance/invalid/0006-encodings/0004-overlong-utf8.txt
426
+ - spec/acceptance/invalid/0007-arrays/0001-lacks-open.txt
427
+ - spec/acceptance/invalid/0007-arrays/0002-lacks-close.txt
428
+ - spec/acceptance/invalid/0007-arrays/0003-interleaving-parens.txt
429
+ - spec/acceptance/invalid/0007-arrays/0004-dangling-comma.txt
430
+ - spec/acceptance/invalid/0007-arrays/0005-missing-comma.txt
431
+ - spec/acceptance/invalid/0007-arrays/0006-colon-instead-of-comma.txt
432
+ - spec/acceptance/invalid/0008-hashes/0001-key-missing.txt
433
+ - spec/acceptance/invalid/0008-hashes/0002-value-missing.txt
434
+ - spec/acceptance/invalid/0008-hashes/0003-true-key.txt
435
+ - spec/acceptance/invalid/0008-hashes/0004-false-key.txt
436
+ - spec/acceptance/invalid/0008-hashes/0005-null-key.txt
437
+ - spec/acceptance/invalid/0008-hashes/0006-numeric-key.txt
438
+ - spec/acceptance/invalid/0008-hashes/0007-array-key.txt
439
+ - spec/acceptance/invalid/0008-hashes/0008-hash-key.txt
440
+ - spec/acceptance/invalid/0008-hashes/0009-key-not-escaped.txt
441
+ - spec/acceptance/invalid/0009-javascriptisms/0001-JSONP.txt
442
+ - spec/acceptance/invalid/0009-javascriptisms/0002-new-Array.txt
443
+ - spec/acceptance/invalid/0009-javascriptisms/0003-new-Date.txt
444
+ - spec/acceptance/invalid/0009-javascriptisms/0004-new-Error.txt
445
+ - spec/acceptance/invalid/0009-javascriptisms/0005-Math.txt
446
+ - spec/acceptance/invalid/0009-javascriptisms/0006-regular-expression.txt
447
+ - spec/acceptance/invalid/0009-javascriptisms/0007-function.txt
448
+ - spec/acceptance/invalid/0009-javascriptisms/0008-this.txt
449
+ - spec/acceptance/invalid/0009-javascriptisms/0009-plusplus.txt
450
+ - spec/acceptance/invalid/0009-javascriptisms/0010-ternary-operator.txt
451
+ - spec/acceptance/valid/0001-ws/0001-space.json
452
+ - spec/acceptance/valid/0001-ws/0002-tab.json
453
+ - spec/acceptance/valid/0001-ws/0003-lf.json
454
+ - spec/acceptance/valid/0001-ws/0004-cr.json
455
+ - spec/acceptance/valid/0001-ws/0005-before.json
456
+ - spec/acceptance/valid/0001-ws/0006-after.json
457
+ - spec/acceptance/valid/0001-ws/0007-around-comma.json
458
+ - spec/acceptance/valid/0001-ws/0008-around-colon.json
459
+ - spec/acceptance/valid/0002-bare-values/0001-false.json
460
+ - spec/acceptance/valid/0002-bare-values/0002-null.json
461
+ - spec/acceptance/valid/0002-bare-values/0003-true.json
462
+ - spec/acceptance/valid/0002-bare-values/0004-number.json
463
+ - spec/acceptance/valid/0002-bare-values/0005-string.json
464
+ - spec/acceptance/valid/0003-literals/0001-false.json
465
+ - spec/acceptance/valid/0003-literals/0002-null.json
466
+ - spec/acceptance/valid/0003-literals/0003-true.json
467
+ - spec/acceptance/valid/0004-numbers/0000-zero.json
468
+ - spec/acceptance/valid/0004-numbers/0001-one.json
469
+ - spec/acceptance/valid/0004-numbers/0002-two.json
470
+ - spec/acceptance/valid/0004-numbers/0003-three.json
471
+ - spec/acceptance/valid/0004-numbers/0004-four.json
472
+ - spec/acceptance/valid/0004-numbers/0005-five.json
473
+ - spec/acceptance/valid/0004-numbers/0006-six.json
474
+ - spec/acceptance/valid/0004-numbers/0007-seven.json
475
+ - spec/acceptance/valid/0004-numbers/0008-eight.json
476
+ - spec/acceptance/valid/0004-numbers/0009-nine.json
477
+ - spec/acceptance/valid/0004-numbers/0010-ten.json
478
+ - spec/acceptance/valid/0004-numbers/0011-minus.json
479
+ - spec/acceptance/valid/0004-numbers/0012-fraction.json
480
+ - spec/acceptance/valid/0004-numbers/0013-exponent.json
481
+ - spec/acceptance/valid/0004-numbers/0014-exponent-minus.json
482
+ - spec/acceptance/valid/0004-numbers/0015-exponent-plus.json
483
+ - spec/acceptance/valid/0004-numbers/0016-complex.json
484
+ - spec/acceptance/valid/0004-numbers/0017-DBL_MAX.json
485
+ - spec/acceptance/valid/0004-numbers/0018-DBL_MIN.json
486
+ - spec/acceptance/valid/0004-numbers/0019-subnormal-number.json
487
+ - spec/acceptance/valid/0004-numbers/0020-1E400.json
488
+ - spec/acceptance/valid/0004-numbers/0021-pi.json
489
+ - spec/acceptance/valid/0004-numbers/0022-UINT32_MAX.json
490
+ - spec/acceptance/valid/0004-numbers/0023-UINT64_MAX.json
491
+ - spec/acceptance/valid/0004-numbers/0024-INT64_MIN.json
492
+ - spec/acceptance/valid/0004-numbers/0025-high-resolution-zero.json
493
+ - spec/acceptance/valid/0004-numbers/0026-high-resolution-100.json
494
+ - spec/acceptance/valid/0005-strings/0001-empty.json
495
+ - spec/acceptance/valid/0005-strings/0002-basic-latin.json
496
+ - spec/acceptance/valid/0005-strings/0003-escapes.json
497
+ - spec/acceptance/valid/0005-strings/0004-raw-unicode.json
498
+ - spec/acceptance/valid/0005-strings/0005-escaped-unicode.json
499
+ - spec/acceptance/valid/0005-strings/0006-escaped-NUL.json
500
+ - spec/acceptance/valid/0005-strings/0007-escaped-invalid-unicode-still-valid-as-json.json
501
+ - spec/acceptance/valid/0005-strings/0008-ruby-json-gem-cant-handle-this.json
502
+ - spec/acceptance/valid/0005-strings/0009-unescaped-invalid-javascript-still-valid-as-json.json
503
+ - spec/acceptance/valid/0005-strings/0010-escaped-separated-surrogate.json
504
+ - spec/acceptance/valid/0005-strings/0011-escaped-surrogate-then-normal.json
505
+ - spec/acceptance/valid/0006-m17n/0001-genesis.json
506
+ - spec/acceptance/valid/0006-m17n/0002-heart-sutra.json
507
+ - spec/acceptance/valid/0006-m17n/0003-escaped-valid-surrogate-pair.json
508
+ - spec/acceptance/valid/0006-m17n/0004-unescaped-valid-supplementary-multilingual-plane.json
509
+ - spec/acceptance/valid/0007-arrays/0000-empty.json
510
+ - spec/acceptance/valid/0007-arrays/0001-one-element.json
511
+ - spec/acceptance/valid/0007-arrays/0002-multiple-elements.json
512
+ - spec/acceptance/valid/0007-arrays/0003-various-types.json
513
+ - spec/acceptance/valid/0007-arrays/0004-nested.json
514
+ - spec/acceptance/valid/0008-hashes/0000-empty.json
515
+ - spec/acceptance/valid/0008-hashes/0001-onekey.json
516
+ - spec/acceptance/valid/0008-hashes/0002-many-keys.json
517
+ - spec/acceptance/valid/0008-hashes/0003-empty-key.json
518
+ - spec/acceptance/valid/0008-hashes/0004-true-value.json
519
+ - spec/acceptance/valid/0008-hashes/0005-false-value.json
520
+ - spec/acceptance/valid/0008-hashes/0006-null-value.json
521
+ - spec/acceptance/valid/0008-hashes/0007-string-value.json
522
+ - spec/acceptance/valid/0008-hashes/0008-numeric-value.json
523
+ - spec/acceptance/valid/0008-hashes/0009-array-value.json
524
+ - spec/acceptance/valid/0008-hashes/0010-hash-value.json
525
+ - spec/acceptance/valid/0008-hashes/0011-duplicate-key.json
526
+ - spec/acceptance/valid/0008-hashes/0012-duplicate-key-in-different-representations.json
527
+ - spec/acceptance/valid/0009-complicated/0001-jsonschema.json
528
+ - spec/acceptance/valid/0009-complicated/0002-example-in-RFC7159-section-13.json
529
+ - spec/acceptance/valid/0009-complicated/0003-example-in-RFC7159-section-13.json
530
+ - spec/spec_helper.rb