engineyard-serverside 2.8.0 → 3.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/engineyard-serverside.rb +2 -5
- data/lib/engineyard-serverside/configuration.rb +3 -3
- data/lib/engineyard-serverside/deploy.rb +2 -1
- data/lib/engineyard-serverside/version.rb +1 -1
- metadata +46 -126
- data/features/enable_maintenance/step_definitions/enable_maintenance_steps.rb +0 -43
- data/features/step_definitions/app_steps.rb +0 -10
- data/features/step_definitions/server_steps.rb +0 -14
- data/lib/vendor/json_pure/COPYING +0 -57
- data/lib/vendor/json_pure/GPL +0 -340
- data/lib/vendor/json_pure/README.rdoc +0 -358
- data/lib/vendor/json_pure/VERSION +0 -1
- data/lib/vendor/json_pure/lib/json.rb +0 -62
- data/lib/vendor/json_pure/lib/json/add/bigdecimal.rb +0 -28
- data/lib/vendor/json_pure/lib/json/add/complex.rb +0 -22
- data/lib/vendor/json_pure/lib/json/add/core.rb +0 -11
- data/lib/vendor/json_pure/lib/json/add/date.rb +0 -34
- data/lib/vendor/json_pure/lib/json/add/date_time.rb +0 -48
- data/lib/vendor/json_pure/lib/json/add/exception.rb +0 -31
- data/lib/vendor/json_pure/lib/json/add/ostruct.rb +0 -31
- data/lib/vendor/json_pure/lib/json/add/range.rb +0 -29
- data/lib/vendor/json_pure/lib/json/add/rational.rb +0 -22
- data/lib/vendor/json_pure/lib/json/add/regexp.rb +0 -30
- data/lib/vendor/json_pure/lib/json/add/struct.rb +0 -30
- data/lib/vendor/json_pure/lib/json/add/symbol.rb +0 -25
- data/lib/vendor/json_pure/lib/json/add/time.rb +0 -38
- data/lib/vendor/json_pure/lib/json/common.rb +0 -484
- data/lib/vendor/json_pure/lib/json/ext.rb +0 -21
- data/lib/vendor/json_pure/lib/json/generic_object.rb +0 -70
- data/lib/vendor/json_pure/lib/json/pure.rb +0 -21
- data/lib/vendor/json_pure/lib/json/pure/generator.rb +0 -522
- data/lib/vendor/json_pure/lib/json/pure/parser.rb +0 -359
- data/lib/vendor/json_pure/lib/json/version.rb +0 -8
- data/lib/vendor/multi_json/CHANGELOG.md +0 -121
- data/lib/vendor/multi_json/CONTRIBUTING.md +0 -46
- data/lib/vendor/multi_json/Gemfile +0 -31
- data/lib/vendor/multi_json/LICENSE.md +0 -20
- data/lib/vendor/multi_json/README.md +0 -105
- data/lib/vendor/multi_json/Rakefile +0 -12
- data/lib/vendor/multi_json/lib/multi_json.rb +0 -137
- data/lib/vendor/multi_json/lib/multi_json/adapters/gson.rb +0 -20
- data/lib/vendor/multi_json/lib/multi_json/adapters/json_common.rb +0 -35
- data/lib/vendor/multi_json/lib/multi_json/adapters/json_gem.rb +0 -12
- data/lib/vendor/multi_json/lib/multi_json/adapters/json_pure.rb +0 -12
- data/lib/vendor/multi_json/lib/multi_json/adapters/nsjsonserialization.rb +0 -35
- data/lib/vendor/multi_json/lib/multi_json/adapters/oj.rb +0 -29
- data/lib/vendor/multi_json/lib/multi_json/adapters/ok_json.rb +0 -58
- data/lib/vendor/multi_json/lib/multi_json/adapters/yajl.rb +0 -20
- data/lib/vendor/multi_json/lib/multi_json/vendor/okjson.rb +0 -602
- data/lib/vendor/multi_json/lib/multi_json/version.rb +0 -3
- data/lib/vendor/multi_json/spec/adapter_shared_example.rb +0 -162
- data/lib/vendor/multi_json/spec/helper.rb +0 -45
- data/lib/vendor/multi_json/spec/json_common_shared_example.rb +0 -36
- data/lib/vendor/multi_json/spec/multi_json_spec.rb +0 -151
@@ -1,359 +0,0 @@
|
|
1
|
-
require 'strscan'
|
2
|
-
|
3
|
-
module JSON
|
4
|
-
module Pure
|
5
|
-
# This class implements the JSON parser that is used to parse a JSON string
|
6
|
-
# into a Ruby data structure.
|
7
|
-
class Parser < StringScanner
|
8
|
-
STRING = /" ((?:[^\x0-\x1f"\\] |
|
9
|
-
# escaped special characters:
|
10
|
-
\\["\\\/bfnrt] |
|
11
|
-
\\u[0-9a-fA-F]{4} |
|
12
|
-
# match all but escaped special characters:
|
13
|
-
\\[\x20-\x21\x23-\x2e\x30-\x5b\x5d-\x61\x63-\x65\x67-\x6d\x6f-\x71\x73\x75-\xff])*)
|
14
|
-
"/nx
|
15
|
-
INTEGER = /(-?0|-?[1-9]\d*)/
|
16
|
-
FLOAT = /(-?
|
17
|
-
(?:0|[1-9]\d*)
|
18
|
-
(?:
|
19
|
-
\.\d+(?i:e[+-]?\d+) |
|
20
|
-
\.\d+ |
|
21
|
-
(?i:e[+-]?\d+)
|
22
|
-
)
|
23
|
-
)/x
|
24
|
-
NAN = /NaN/
|
25
|
-
INFINITY = /Infinity/
|
26
|
-
MINUS_INFINITY = /-Infinity/
|
27
|
-
OBJECT_OPEN = /\{/
|
28
|
-
OBJECT_CLOSE = /\}/
|
29
|
-
ARRAY_OPEN = /\[/
|
30
|
-
ARRAY_CLOSE = /\]/
|
31
|
-
PAIR_DELIMITER = /:/
|
32
|
-
COLLECTION_DELIMITER = /,/
|
33
|
-
TRUE = /true/
|
34
|
-
FALSE = /false/
|
35
|
-
NULL = /null/
|
36
|
-
IGNORE = %r(
|
37
|
-
(?:
|
38
|
-
//[^\n\r]*[\n\r]| # line comments
|
39
|
-
/\* # c-style comments
|
40
|
-
(?:
|
41
|
-
[^*/]| # normal chars
|
42
|
-
/[^*]| # slashes that do not start a nested comment
|
43
|
-
\*[^/]| # asterisks that do not end this comment
|
44
|
-
/(?=\*/) # single slash before this comment's end
|
45
|
-
)*
|
46
|
-
\*/ # the End of this comment
|
47
|
-
|[ \t\r\n]+ # whitespaces: space, horicontal tab, lf, cr
|
48
|
-
)+
|
49
|
-
)mx
|
50
|
-
|
51
|
-
UNPARSED = Object.new
|
52
|
-
|
53
|
-
# Creates a new JSON::Pure::Parser instance for the string _source_.
|
54
|
-
#
|
55
|
-
# It will be configured by the _opts_ hash. _opts_ can have the following
|
56
|
-
# keys:
|
57
|
-
# * *max_nesting*: The maximum depth of nesting allowed in the parsed data
|
58
|
-
# structures. Disable depth checking with :max_nesting => false|nil|0,
|
59
|
-
# it defaults to 100.
|
60
|
-
# * *allow_nan*: If set to true, allow NaN, Infinity and -Infinity in
|
61
|
-
# defiance of RFC 4627 to be parsed by the Parser. This option defaults
|
62
|
-
# to false.
|
63
|
-
# * *symbolize_names*: If set to true, returns symbols for the names
|
64
|
-
# (keys) in a JSON object. Otherwise strings are returned, which is also
|
65
|
-
# the default.
|
66
|
-
# * *create_additions*: If set to true, the Parser creates
|
67
|
-
# additions when if a matching class and create_id was found. This
|
68
|
-
# option defaults to false.
|
69
|
-
# * *object_class*: Defaults to Hash
|
70
|
-
# * *array_class*: Defaults to Array
|
71
|
-
# * *quirks_mode*: Enables quirks_mode for parser, that is for example
|
72
|
-
# parsing single JSON values instead of documents is possible.
|
73
|
-
def initialize(source, opts = {})
|
74
|
-
opts ||= {}
|
75
|
-
unless @quirks_mode = opts[:quirks_mode]
|
76
|
-
source = convert_encoding source
|
77
|
-
end
|
78
|
-
super source
|
79
|
-
if !opts.key?(:max_nesting) # defaults to 100
|
80
|
-
@max_nesting = 100
|
81
|
-
elsif opts[:max_nesting]
|
82
|
-
@max_nesting = opts[:max_nesting]
|
83
|
-
else
|
84
|
-
@max_nesting = 0
|
85
|
-
end
|
86
|
-
@allow_nan = !!opts[:allow_nan]
|
87
|
-
@symbolize_names = !!opts[:symbolize_names]
|
88
|
-
if opts.key?(:create_additions)
|
89
|
-
@create_additions = !!opts[:create_additions]
|
90
|
-
else
|
91
|
-
@create_additions = false
|
92
|
-
end
|
93
|
-
@create_id = @create_additions ? JSON.create_id : nil
|
94
|
-
@object_class = opts[:object_class] || Hash
|
95
|
-
@array_class = opts[:array_class] || Array
|
96
|
-
@match_string = opts[:match_string]
|
97
|
-
end
|
98
|
-
|
99
|
-
alias source string
|
100
|
-
|
101
|
-
def quirks_mode?
|
102
|
-
!!@quirks_mode
|
103
|
-
end
|
104
|
-
|
105
|
-
def reset
|
106
|
-
super
|
107
|
-
@current_nesting = 0
|
108
|
-
end
|
109
|
-
|
110
|
-
# Parses the current JSON string _source_ and returns the complete data
|
111
|
-
# structure as a result.
|
112
|
-
def parse
|
113
|
-
reset
|
114
|
-
obj = nil
|
115
|
-
if @quirks_mode
|
116
|
-
while !eos? && skip(IGNORE)
|
117
|
-
end
|
118
|
-
if eos?
|
119
|
-
raise ParserError, "source did not contain any JSON!"
|
120
|
-
else
|
121
|
-
obj = parse_value
|
122
|
-
obj == UNPARSED and raise ParserError, "source did not contain any JSON!"
|
123
|
-
end
|
124
|
-
else
|
125
|
-
until eos?
|
126
|
-
case
|
127
|
-
when scan(OBJECT_OPEN)
|
128
|
-
obj and raise ParserError, "source '#{peek(20)}' not in JSON!"
|
129
|
-
@current_nesting = 1
|
130
|
-
obj = parse_object
|
131
|
-
when scan(ARRAY_OPEN)
|
132
|
-
obj and raise ParserError, "source '#{peek(20)}' not in JSON!"
|
133
|
-
@current_nesting = 1
|
134
|
-
obj = parse_array
|
135
|
-
when skip(IGNORE)
|
136
|
-
;
|
137
|
-
else
|
138
|
-
raise ParserError, "source '#{peek(20)}' not in JSON!"
|
139
|
-
end
|
140
|
-
end
|
141
|
-
obj or raise ParserError, "source did not contain any JSON!"
|
142
|
-
end
|
143
|
-
obj
|
144
|
-
end
|
145
|
-
|
146
|
-
private
|
147
|
-
|
148
|
-
def convert_encoding(source)
|
149
|
-
if source.respond_to?(:to_str)
|
150
|
-
source = source.to_str
|
151
|
-
else
|
152
|
-
raise TypeError, "#{source.inspect} is not like a string"
|
153
|
-
end
|
154
|
-
if defined?(::Encoding)
|
155
|
-
if source.encoding == ::Encoding::ASCII_8BIT
|
156
|
-
b = source[0, 4].bytes.to_a
|
157
|
-
source =
|
158
|
-
case
|
159
|
-
when b.size >= 4 && b[0] == 0 && b[1] == 0 && b[2] == 0
|
160
|
-
source.dup.force_encoding(::Encoding::UTF_32BE).encode!(::Encoding::UTF_8)
|
161
|
-
when b.size >= 4 && b[0] == 0 && b[2] == 0
|
162
|
-
source.dup.force_encoding(::Encoding::UTF_16BE).encode!(::Encoding::UTF_8)
|
163
|
-
when b.size >= 4 && b[1] == 0 && b[2] == 0 && b[3] == 0
|
164
|
-
source.dup.force_encoding(::Encoding::UTF_32LE).encode!(::Encoding::UTF_8)
|
165
|
-
when b.size >= 4 && b[1] == 0 && b[3] == 0
|
166
|
-
source.dup.force_encoding(::Encoding::UTF_16LE).encode!(::Encoding::UTF_8)
|
167
|
-
else
|
168
|
-
source.dup
|
169
|
-
end
|
170
|
-
else
|
171
|
-
source = source.encode(::Encoding::UTF_8)
|
172
|
-
end
|
173
|
-
source.force_encoding(::Encoding::ASCII_8BIT)
|
174
|
-
else
|
175
|
-
b = source
|
176
|
-
source =
|
177
|
-
case
|
178
|
-
when b.size >= 4 && b[0] == 0 && b[1] == 0 && b[2] == 0
|
179
|
-
JSON.iconv('utf-8', 'utf-32be', b)
|
180
|
-
when b.size >= 4 && b[0] == 0 && b[2] == 0
|
181
|
-
JSON.iconv('utf-8', 'utf-16be', b)
|
182
|
-
when b.size >= 4 && b[1] == 0 && b[2] == 0 && b[3] == 0
|
183
|
-
JSON.iconv('utf-8', 'utf-32le', b)
|
184
|
-
when b.size >= 4 && b[1] == 0 && b[3] == 0
|
185
|
-
JSON.iconv('utf-8', 'utf-16le', b)
|
186
|
-
else
|
187
|
-
b
|
188
|
-
end
|
189
|
-
end
|
190
|
-
source
|
191
|
-
end
|
192
|
-
|
193
|
-
# Unescape characters in strings.
|
194
|
-
UNESCAPE_MAP = Hash.new { |h, k| h[k] = k.chr }
|
195
|
-
UNESCAPE_MAP.update({
|
196
|
-
?" => '"',
|
197
|
-
?\\ => '\\',
|
198
|
-
?/ => '/',
|
199
|
-
?b => "\b",
|
200
|
-
?f => "\f",
|
201
|
-
?n => "\n",
|
202
|
-
?r => "\r",
|
203
|
-
?t => "\t",
|
204
|
-
?u => nil,
|
205
|
-
})
|
206
|
-
|
207
|
-
EMPTY_8BIT_STRING = ''
|
208
|
-
if ::String.method_defined?(:encode)
|
209
|
-
EMPTY_8BIT_STRING.force_encoding Encoding::ASCII_8BIT
|
210
|
-
end
|
211
|
-
|
212
|
-
def parse_string
|
213
|
-
if scan(STRING)
|
214
|
-
return '' if self[1].empty?
|
215
|
-
string = self[1].gsub(%r((?:\\[\\bfnrt"/]|(?:\\u(?:[A-Fa-f\d]{4}))+|\\[\x20-\xff]))n) do |c|
|
216
|
-
if u = UNESCAPE_MAP[$&[1]]
|
217
|
-
u
|
218
|
-
else # \uXXXX
|
219
|
-
bytes = EMPTY_8BIT_STRING.dup
|
220
|
-
i = 0
|
221
|
-
while c[6 * i] == ?\\ && c[6 * i + 1] == ?u
|
222
|
-
bytes << c[6 * i + 2, 2].to_i(16) << c[6 * i + 4, 2].to_i(16)
|
223
|
-
i += 1
|
224
|
-
end
|
225
|
-
JSON.iconv('utf-8', 'utf-16be', bytes)
|
226
|
-
end
|
227
|
-
end
|
228
|
-
if string.respond_to?(:force_encoding)
|
229
|
-
string.force_encoding(::Encoding::UTF_8)
|
230
|
-
end
|
231
|
-
if @create_additions and @match_string
|
232
|
-
for (regexp, klass) in @match_string
|
233
|
-
klass.json_creatable? or next
|
234
|
-
string =~ regexp and return klass.json_create(string)
|
235
|
-
end
|
236
|
-
end
|
237
|
-
string
|
238
|
-
else
|
239
|
-
UNPARSED
|
240
|
-
end
|
241
|
-
rescue => e
|
242
|
-
raise ParserError, "Caught #{e.class} at '#{peek(20)}': #{e}"
|
243
|
-
end
|
244
|
-
|
245
|
-
def parse_value
|
246
|
-
case
|
247
|
-
when scan(FLOAT)
|
248
|
-
Float(self[1])
|
249
|
-
when scan(INTEGER)
|
250
|
-
Integer(self[1])
|
251
|
-
when scan(TRUE)
|
252
|
-
true
|
253
|
-
when scan(FALSE)
|
254
|
-
false
|
255
|
-
when scan(NULL)
|
256
|
-
nil
|
257
|
-
when (string = parse_string) != UNPARSED
|
258
|
-
string
|
259
|
-
when scan(ARRAY_OPEN)
|
260
|
-
@current_nesting += 1
|
261
|
-
ary = parse_array
|
262
|
-
@current_nesting -= 1
|
263
|
-
ary
|
264
|
-
when scan(OBJECT_OPEN)
|
265
|
-
@current_nesting += 1
|
266
|
-
obj = parse_object
|
267
|
-
@current_nesting -= 1
|
268
|
-
obj
|
269
|
-
when @allow_nan && scan(NAN)
|
270
|
-
NaN
|
271
|
-
when @allow_nan && scan(INFINITY)
|
272
|
-
Infinity
|
273
|
-
when @allow_nan && scan(MINUS_INFINITY)
|
274
|
-
MinusInfinity
|
275
|
-
else
|
276
|
-
UNPARSED
|
277
|
-
end
|
278
|
-
end
|
279
|
-
|
280
|
-
def parse_array
|
281
|
-
raise NestingError, "nesting of #@current_nesting is too deep" if
|
282
|
-
@max_nesting.nonzero? && @current_nesting > @max_nesting
|
283
|
-
result = @array_class.new
|
284
|
-
delim = false
|
285
|
-
until eos?
|
286
|
-
case
|
287
|
-
when (value = parse_value) != UNPARSED
|
288
|
-
delim = false
|
289
|
-
result << value
|
290
|
-
skip(IGNORE)
|
291
|
-
if scan(COLLECTION_DELIMITER)
|
292
|
-
delim = true
|
293
|
-
elsif match?(ARRAY_CLOSE)
|
294
|
-
;
|
295
|
-
else
|
296
|
-
raise ParserError, "expected ',' or ']' in array at '#{peek(20)}'!"
|
297
|
-
end
|
298
|
-
when scan(ARRAY_CLOSE)
|
299
|
-
if delim
|
300
|
-
raise ParserError, "expected next element in array at '#{peek(20)}'!"
|
301
|
-
end
|
302
|
-
break
|
303
|
-
when skip(IGNORE)
|
304
|
-
;
|
305
|
-
else
|
306
|
-
raise ParserError, "unexpected token in array at '#{peek(20)}'!"
|
307
|
-
end
|
308
|
-
end
|
309
|
-
result
|
310
|
-
end
|
311
|
-
|
312
|
-
def parse_object
|
313
|
-
raise NestingError, "nesting of #@current_nesting is too deep" if
|
314
|
-
@max_nesting.nonzero? && @current_nesting > @max_nesting
|
315
|
-
result = @object_class.new
|
316
|
-
delim = false
|
317
|
-
until eos?
|
318
|
-
case
|
319
|
-
when (string = parse_string) != UNPARSED
|
320
|
-
skip(IGNORE)
|
321
|
-
unless scan(PAIR_DELIMITER)
|
322
|
-
raise ParserError, "expected ':' in object at '#{peek(20)}'!"
|
323
|
-
end
|
324
|
-
skip(IGNORE)
|
325
|
-
unless (value = parse_value).equal? UNPARSED
|
326
|
-
result[@symbolize_names ? string.to_sym : string] = value
|
327
|
-
delim = false
|
328
|
-
skip(IGNORE)
|
329
|
-
if scan(COLLECTION_DELIMITER)
|
330
|
-
delim = true
|
331
|
-
elsif match?(OBJECT_CLOSE)
|
332
|
-
;
|
333
|
-
else
|
334
|
-
raise ParserError, "expected ',' or '}' in object at '#{peek(20)}'!"
|
335
|
-
end
|
336
|
-
else
|
337
|
-
raise ParserError, "expected value in object at '#{peek(20)}'!"
|
338
|
-
end
|
339
|
-
when scan(OBJECT_CLOSE)
|
340
|
-
if delim
|
341
|
-
raise ParserError, "expected next name, value pair in object at '#{peek(20)}'!"
|
342
|
-
end
|
343
|
-
if @create_additions and klassname = result[@create_id]
|
344
|
-
klass = JSON.deep_const_get klassname
|
345
|
-
break unless klass and klass.json_creatable?
|
346
|
-
result = klass.json_create(result)
|
347
|
-
end
|
348
|
-
break
|
349
|
-
when skip(IGNORE)
|
350
|
-
;
|
351
|
-
else
|
352
|
-
raise ParserError, "unexpected token in object at '#{peek(20)}'!"
|
353
|
-
end
|
354
|
-
end
|
355
|
-
result
|
356
|
-
end
|
357
|
-
end
|
358
|
-
end
|
359
|
-
end
|
@@ -1,121 +0,0 @@
|
|
1
|
-
1.6.1
|
2
|
-
-----
|
3
|
-
* [Revert "Use JSON.generate instead of #to_json"](https://github.com/intridea/multi_json/issues/86)
|
4
|
-
|
5
|
-
1.6.0
|
6
|
-
-----
|
7
|
-
* [Add gson.rb support](https://github.com/intridea/multi_json/pull/71)
|
8
|
-
* [Add MultiJson.default_options](https://github.com/intridea/multi_json/pull/70)
|
9
|
-
* [Add MultiJson.with_adapter](https://github.com/intridea/multi_json/pull/67)
|
10
|
-
* [Stringify all possible keys for ok_json](https://github.com/intridea/multi_json/pull/66)
|
11
|
-
* [Use JSON.generate instead of #to_json](https://github.com/intridea/multi_json/issues/73)
|
12
|
-
* [Alias `MultiJson::DecodeError` to `MultiJson::LoadError`](https://github.com/intridea/multi_json/pull/79)
|
13
|
-
|
14
|
-
1.5.1
|
15
|
-
-----
|
16
|
-
* [Do not allow Oj or JSON to create symbols by searching for classes](https://github.com/intridea/multi_json/commit/193e28cf4dc61b6e7b7b7d80f06f74c76df65c41)
|
17
|
-
|
18
|
-
1.5.0
|
19
|
-
-----
|
20
|
-
* [Add `MultiJson.with_adapter` method](https://github.com/intridea/multi_json/commit/d14c5d28cae96557a0421298621b9499e1f28104)
|
21
|
-
* [Stringify all possible keys for `ok_json`](https://github.com/intridea/multi_json/commit/73998074058e1e58c557ffa7b9541d486d6041fa)
|
22
|
-
|
23
|
-
1.4.0
|
24
|
-
-----
|
25
|
-
* [Allow `load`/`dump` of JSON fragments](https://github.com/intridea/multi_json/commit/707aae7d48d39c85b38febbd2c210ba87f6e4a36)
|
26
|
-
|
27
|
-
1.3.7
|
28
|
-
-----
|
29
|
-
* [Fix rescue clause for MagLev](https://github.com/intridea/multi_json/commit/39abdf50199828c50e85b2ce8f8ba31fcbbc9332)
|
30
|
-
* [Remove unnecessary check for string version of options key](https://github.com/intridea/multi_json/commit/660101b70e962b3c007d0b90d45944fa47d13ec4)
|
31
|
-
* [Explicitly set default adapter when adapter is set to `nil` or `false`](https://github.com/intridea/multi_json/commit/a9e587d5a63eafb4baee9fb211265e4dd96a26bc)
|
32
|
-
* [Fix Oj `ParseError` mapping for Oj 1.4.0](https://github.com/intridea/multi_json/commit/7d9045338cc9029401c16f3c409d54ce97f275e2)
|
33
|
-
|
34
|
-
1.3.6
|
35
|
-
-----
|
36
|
-
* [Allow adapter-specific options to be passed through to Oj](https://github.com/intridea/multi_json/commit/d0e5feeebcba0bc69400dd203a295f5c30971223)
|
37
|
-
|
38
|
-
1.3.5
|
39
|
-
-----
|
40
|
-
* [Add pretty support to Oj adapter](https://github.com/intridea/multi_json/commit/0c8f75f03020c53bcf4c6be258faf433d24b2c2b)
|
41
|
-
|
42
|
-
1.3.4
|
43
|
-
-----
|
44
|
-
* [Use `class << self` instead of `module_function` to create aliases](https://github.com/intridea/multi_json/commit/ba1451c4c48baa297e049889be241a424cb05980)
|
45
|
-
|
46
|
-
1.3.3
|
47
|
-
-----
|
48
|
-
* [Remove deprecation warnings](https://github.com/intridea/multi_json/commit/36b524e71544eb0186826a891bcc03b2820a008f)
|
49
|
-
|
50
|
-
1.3.2
|
51
|
-
-----
|
52
|
-
* [Add ability to use adapter per call](https://github.com/intridea/multi_json/commit/106bbec469d5d0a832bfa31fffcb8c0f0cdc9bd3)
|
53
|
-
* [Add and deprecate `default_engine` method](https://github.com/intridea/multi_json/commit/fc3df0c7a3e2ab9ce0c2c7e7617a4da97dd13f6e)
|
54
|
-
|
55
|
-
1.3.1
|
56
|
-
-----
|
57
|
-
* [Only warn once for each instance a deprecated method is called](https://github.com/intridea/multi_json/commit/e21d6eb7da74b3f283995c1d27d5880e75f0ae84)
|
58
|
-
|
59
|
-
1.3.0
|
60
|
-
-----
|
61
|
-
* [Implement `load`/`dump`; deprecate `decode`/`encode`](https://github.com/intridea/multi_json/commit/e90fd6cb1b0293eb0c73c2f4eb0f7a1764370216)
|
62
|
-
* [Rename engines to adapters](https://github.com/intridea/multi_json/commit/ae7fd144a7949a9c221dcaa446196ec23db908df)
|
63
|
-
|
64
|
-
1.2.0
|
65
|
-
-----
|
66
|
-
* [Add support for Oj](https://github.com/intridea/multi_json/commit/acd06b233edabe6c44f226873db7b49dab560c60)
|
67
|
-
|
68
|
-
1.1.0
|
69
|
-
-----
|
70
|
-
* [`NSJSONSerialization` support for MacRuby](https://github.com/intridea/multi_json/commit/f862e2fc966cac8867fe7da3997fc76e8a6cf5d4)
|
71
|
-
|
72
|
-
1.0.4
|
73
|
-
-----
|
74
|
-
* [Set data context to `DecodeError` exception](https://github.com/intridea/multi_json/commit/19ddafd44029c6681f66fae2a0f6eabfd0f85176)
|
75
|
-
* [Allow `ok_json` to fallback to `to_json`](https://github.com/intridea/multi_json/commit/c157240b1193b283d06d1bd4d4b5b06bcf3761f8)
|
76
|
-
* [Add warning when using `ok_json`](https://github.com/intridea/multi_json/commit/dd4b68810c84f826fb98f9713bfb29ab96888d57)
|
77
|
-
* [Options can be passed to an engine on encode](https://github.com/intridea/multi_json/commit/e0a7ff5d5ff621ffccc61617ed8aeec5816e81f7)
|
78
|
-
|
79
|
-
1.0.3
|
80
|
-
-----
|
81
|
-
* [`Array` support for `stringify_keys`](https://github.com/intridea/multi_json/commit/644d1c5c7c7f6a27663b11668527b346094e38b9)
|
82
|
-
* [`Array` support for `symbolize_keys`](https://github.com/intridea/multi_json/commit/c885377d47a2aa39cb0d971fea78db2d2fa479a7)
|
83
|
-
|
84
|
-
1.0.2
|
85
|
-
-----
|
86
|
-
* [Allow encoding of rootless JSON when `ok_json` is used](https://github.com/intridea/multi_json/commit/d1cde7de97cb0f6152aef8daf14037521cdce8c6)
|
87
|
-
|
88
|
-
1.0.1
|
89
|
-
-----
|
90
|
-
* [Correct an issue with `ok_json` not being returned as the default engine](https://github.com/intridea/multi_json/commit/d33c141619c54cccd770199694da8fd1bd8f449d)
|
91
|
-
|
92
|
-
1.0.0
|
93
|
-
-----
|
94
|
-
* [Remove `ActiveSupport::JSON` support](https://github.com/intridea/multi_json/commit/c2f4140141d785a24b3f56e58811b0e561b37f6a)
|
95
|
-
* [Fix `@engine` ivar warning](https://github.com/intridea/multi_json/commit/3b978a8995721a8dffedc3b75a7f49e5494ec553)
|
96
|
-
* [Only `rescue` from parsing errors during decoding, not any `StandardError`](https://github.com/intridea/multi_json/commit/391d00b5e85294d42d41347605d8d46b4a7f66cc)
|
97
|
-
* [Rename `okjson` engine and vendored lib to `ok_json`](https://github.com/intridea/multi_json/commit/5bd1afc977a8208ddb0443e1d57cb79665c019f1)
|
98
|
-
* [Add `StringIO` support to `json` gem and `ok_json`](https://github.com/intridea/multi_json/commit/1706b11568db7f50af451fce5f4d679aeb3bbe8f)
|
99
|
-
|
100
|
-
0.0.5
|
101
|
-
-----
|
102
|
-
* [Trap all JSON decoding errors; raise `MultiJson::DecodeError`](https://github.com/intridea/multi_json/commit/dea9a1aef6dd1212aa1e5a37ab1669f9b045b732)
|
103
|
-
|
104
|
-
0.0.4
|
105
|
-
-----
|
106
|
-
* [Fix default_engine check for `json` gem](https://github.com/intridea/multi_json/commit/caced0c4e8c795922a109ebc00c3c4fa8635bed8)
|
107
|
-
* [Make requirement mapper an `Array` to preserve order in Ruby versions < 1.9](https://github.com/intridea/multi_json/commit/526f5f29a42131574a088ad9bbb43d7f48439b2c)
|
108
|
-
|
109
|
-
0.0.3
|
110
|
-
-----
|
111
|
-
* [Improved defaulting and documentation](https://github.com/sferik/twitter/commit/3a0e41b9e4b0909201045fa47704b78c9d949b73)
|
112
|
-
|
113
|
-
0.0.2
|
114
|
-
-----
|
115
|
-
|
116
|
-
* [Rename to `multi_json`](https://github.com/sferik/twitter/commit/461ab89ce071c8c9fabfc183581e0ec523788b62)
|
117
|
-
|
118
|
-
0.0.1
|
119
|
-
-----
|
120
|
-
|
121
|
-
* [Initial commit](https://github.com/sferik/twitter/commit/518c21ab299c500527491e6c049ab2229e22a805)
|