scout 5.6.7 → 5.6.8.pre
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG.markdown +4 -0
- data/lib/scout/version.rb +1 -1
- data/vendor/json_pure/.gitignore +12 -0
- data/vendor/json_pure/.travis.yml +20 -0
- data/vendor/json_pure/CHANGES +120 -0
- data/vendor/json_pure/COPYING-json-jruby +57 -0
- data/vendor/json_pure/Gemfile +11 -0
- data/vendor/json_pure/README-json-jruby.markdown +33 -0
- data/vendor/json_pure/{README → README.rdoc} +7 -7
- data/vendor/json_pure/Rakefile +305 -185
- data/vendor/json_pure/VERSION +1 -1
- data/vendor/json_pure/diagrams/.keep +0 -0
- data/vendor/json_pure/ext/json/ext/fbuffer/fbuffer.h +181 -0
- data/vendor/json_pure/ext/json/ext/generator/depend +1 -0
- data/vendor/json_pure/ext/json/ext/generator/extconf.rb +4 -6
- data/vendor/json_pure/ext/json/ext/generator/generator.c +463 -369
- data/vendor/json_pure/ext/json/ext/generator/generator.h +44 -66
- data/vendor/json_pure/ext/json/ext/parser/depend +1 -0
- data/vendor/json_pure/ext/json/ext/parser/extconf.rb +3 -5
- data/vendor/json_pure/ext/json/ext/parser/parser.c +580 -311
- data/vendor/json_pure/ext/json/ext/parser/parser.h +14 -8
- data/vendor/json_pure/ext/json/ext/parser/parser.rl +242 -107
- data/vendor/json_pure/install.rb +8 -11
- data/vendor/json_pure/java/src/json/ext/ByteListTranscoder.java +167 -0
- data/vendor/json_pure/java/src/json/ext/Generator.java +444 -0
- data/vendor/json_pure/java/src/json/ext/GeneratorMethods.java +232 -0
- data/vendor/json_pure/java/src/json/ext/GeneratorService.java +43 -0
- data/vendor/json_pure/java/src/json/ext/GeneratorState.java +543 -0
- data/vendor/json_pure/java/src/json/ext/OptionsReader.java +114 -0
- data/vendor/json_pure/java/src/json/ext/Parser.java +2644 -0
- data/vendor/json_pure/java/src/json/ext/Parser.rl +968 -0
- data/vendor/json_pure/java/src/json/ext/ParserService.java +35 -0
- data/vendor/json_pure/java/src/json/ext/RuntimeInfo.java +121 -0
- data/vendor/json_pure/java/src/json/ext/StringDecoder.java +167 -0
- data/vendor/json_pure/java/src/json/ext/StringEncoder.java +106 -0
- data/vendor/json_pure/java/src/json/ext/Utils.java +89 -0
- data/vendor/json_pure/json-java.gemspec +23 -0
- data/vendor/json_pure/json.gemspec +37 -0
- data/vendor/json_pure/json_pure.gemspec +39 -0
- data/vendor/json_pure/lib/json.rb +52 -0
- data/vendor/json_pure/lib/json/add/bigdecimal.rb +28 -0
- data/vendor/json_pure/lib/json/add/complex.rb +22 -0
- data/vendor/json_pure/lib/json/add/core.rb +9 -146
- data/vendor/json_pure/lib/json/add/date.rb +34 -0
- data/vendor/json_pure/lib/json/add/date_time.rb +50 -0
- data/vendor/json_pure/lib/json/add/exception.rb +31 -0
- data/vendor/json_pure/lib/json/add/ostruct.rb +31 -0
- data/vendor/json_pure/lib/json/add/range.rb +29 -0
- data/vendor/json_pure/lib/json/add/rational.rb +22 -0
- data/vendor/json_pure/lib/json/add/regexp.rb +30 -0
- data/vendor/json_pure/lib/json/add/struct.rb +30 -0
- data/vendor/json_pure/lib/json/add/symbol.rb +25 -0
- data/vendor/json_pure/lib/json/add/time.rb +38 -0
- data/vendor/json_pure/lib/json/common.rb +157 -67
- data/vendor/json_pure/lib/json/ext.rb +8 -2
- data/vendor/json_pure/lib/json/ext/.keep +0 -0
- data/vendor/json_pure/lib/json/generic_object.rb +70 -0
- data/vendor/json_pure/lib/json/pure.rb +8 -64
- data/vendor/json_pure/lib/json/pure/generator.rb +183 -113
- data/vendor/json_pure/lib/json/pure/parser.rb +118 -66
- data/vendor/json_pure/lib/json/version.rb +1 -1
- data/vendor/json_pure/tests/fixtures/fail18.json +1 -1
- data/vendor/json_pure/tests/setup_variant.rb +11 -0
- data/vendor/json_pure/tests/test_json.rb +233 -28
- data/vendor/json_pure/tests/test_json_addition.rb +68 -34
- data/vendor/json_pure/tests/test_json_encoding.rb +11 -14
- data/vendor/json_pure/tests/test_json_fixtures.rb +11 -10
- data/vendor/json_pure/tests/test_json_generate.rb +207 -7
- data/vendor/json_pure/tests/test_json_generic_object.rb +75 -0
- data/vendor/json_pure/tests/test_json_string_matching.rb +39 -0
- data/vendor/json_pure/tests/test_json_unicode.rb +3 -7
- data/vendor/json_pure/tools/fuzz.rb +1 -1
- data/vendor/json_pure/tools/server.rb +1 -0
- metadata +87 -94
- data/vendor/json_pure/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkComparison.log +0 -52
- data/vendor/json_pure/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_fast-autocorrelation.dat +0 -1000
- data/vendor/json_pure/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_fast.dat +0 -1001
- data/vendor/json_pure/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_pretty-autocorrelation.dat +0 -900
- data/vendor/json_pure/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_pretty.dat +0 -901
- data/vendor/json_pure/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_safe-autocorrelation.dat +0 -1000
- data/vendor/json_pure/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt#generator_safe.dat +0 -1001
- data/vendor/json_pure/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkExt.log +0 -261
- data/vendor/json_pure/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_fast-autocorrelation.dat +0 -1000
- data/vendor/json_pure/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_fast.dat +0 -1001
- data/vendor/json_pure/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_pretty-autocorrelation.dat +0 -1000
- data/vendor/json_pure/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_pretty.dat +0 -1001
- data/vendor/json_pure/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_safe-autocorrelation.dat +0 -1000
- data/vendor/json_pure/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure#generator_safe.dat +0 -1001
- data/vendor/json_pure/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkPure.log +0 -262
- data/vendor/json_pure/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkRails#generator-autocorrelation.dat +0 -1000
- data/vendor/json_pure/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkRails#generator.dat +0 -1001
- data/vendor/json_pure/benchmarks/data-p4-3GHz-ruby18/GeneratorBenchmarkRails.log +0 -82
- data/vendor/json_pure/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkComparison.log +0 -34
- data/vendor/json_pure/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkExt#parser-autocorrelation.dat +0 -900
- data/vendor/json_pure/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkExt#parser.dat +0 -901
- data/vendor/json_pure/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkExt.log +0 -81
- data/vendor/json_pure/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkPure#parser-autocorrelation.dat +0 -1000
- data/vendor/json_pure/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkPure#parser.dat +0 -1001
- data/vendor/json_pure/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkPure.log +0 -82
- data/vendor/json_pure/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkRails#parser-autocorrelation.dat +0 -1000
- data/vendor/json_pure/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkRails#parser.dat +0 -1001
- data/vendor/json_pure/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkRails.log +0 -82
- data/vendor/json_pure/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkYAML#parser-autocorrelation.dat +0 -1000
- data/vendor/json_pure/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkYAML#parser.dat +0 -1001
- data/vendor/json_pure/benchmarks/data-p4-3GHz-ruby18/ParserBenchmarkYAML.log +0 -82
- data/vendor/json_pure/benchmarks/generator2_benchmark.rb +0 -222
- data/vendor/json_pure/benchmarks/generator_benchmark.rb +0 -224
- data/vendor/json_pure/benchmarks/ohai.json +0 -1216
- data/vendor/json_pure/benchmarks/ohai.ruby +0 -1
- data/vendor/json_pure/benchmarks/parser2_benchmark.rb +0 -251
- data/vendor/json_pure/benchmarks/parser_benchmark.rb +0 -259
- data/vendor/json_pure/bin/edit_json.rb +0 -9
- data/vendor/json_pure/bin/prettify_json.rb +0 -75
- data/vendor/json_pure/lib/json/Array.xpm +0 -21
- data/vendor/json_pure/lib/json/FalseClass.xpm +0 -21
- data/vendor/json_pure/lib/json/Hash.xpm +0 -21
- data/vendor/json_pure/lib/json/Key.xpm +0 -73
- data/vendor/json_pure/lib/json/NilClass.xpm +0 -21
- data/vendor/json_pure/lib/json/Numeric.xpm +0 -28
- data/vendor/json_pure/lib/json/String.xpm +0 -96
- data/vendor/json_pure/lib/json/TrueClass.xpm +0 -21
- data/vendor/json_pure/lib/json/add/rails.rb +0 -58
- data/vendor/json_pure/lib/json/editor.rb +0 -1371
- data/vendor/json_pure/lib/json/json.xpm +0 -1499
- data/vendor/json_pure/tests/test_json_rails.rb +0 -144
@@ -1,75 +0,0 @@
|
|
1
|
-
#!/usr/bin/env ruby
|
2
|
-
|
3
|
-
require 'json'
|
4
|
-
require 'fileutils'
|
5
|
-
include FileUtils
|
6
|
-
|
7
|
-
# Parses the argument array _args_, according to the pattern _s_, to
|
8
|
-
# retrieve the single character command line options from it. If _s_ is
|
9
|
-
# 'xy:' an option '-x' without an option argument is searched, and an
|
10
|
-
# option '-y foo' with an option argument ('foo').
|
11
|
-
#
|
12
|
-
# An option hash is returned with all found options set to true or the
|
13
|
-
# found option argument.
|
14
|
-
def go(s, args = ARGV)
|
15
|
-
b, v = s.scan(/(.)(:?)/).inject([{},{}]) { |t,(o,a)|
|
16
|
-
t[a.empty? ? 0 : 1][o] = a.empty? ? false : nil
|
17
|
-
t
|
18
|
-
}
|
19
|
-
while a = args.shift
|
20
|
-
a !~ /\A-(.+)/ and args.unshift a and break
|
21
|
-
p = $1
|
22
|
-
until p == ''
|
23
|
-
o = p.slice!(0, 1)
|
24
|
-
if v.key?(o)
|
25
|
-
v[o] = if p == '' then args.shift or break 1 else p end
|
26
|
-
break
|
27
|
-
elsif b.key?(o)
|
28
|
-
b[o] = true
|
29
|
-
else
|
30
|
-
args.unshift a
|
31
|
-
break 1
|
32
|
-
end
|
33
|
-
end and break
|
34
|
-
end
|
35
|
-
b.merge(v)
|
36
|
-
end
|
37
|
-
|
38
|
-
opts = go 'slhi:', args = ARGV.dup
|
39
|
-
if opts['h'] || opts['l'] && opts['s']
|
40
|
-
puts <<EOT
|
41
|
-
Usage: #{File.basename($0)} [OPTION] [FILE]
|
42
|
-
|
43
|
-
If FILE is skipped, this scripts waits for input from STDIN. Otherwise
|
44
|
-
FILE is opened, read, and used as input for the prettifier.
|
45
|
-
|
46
|
-
OPTION can be
|
47
|
-
-s to output the shortest possible JSON (precludes -l)
|
48
|
-
-l to output a longer, better formatted JSON (precludes -s)
|
49
|
-
-i EXT prettifies FILE in place, saving a backup to FILE.EXT
|
50
|
-
-h this help
|
51
|
-
EOT
|
52
|
-
exit 0
|
53
|
-
end
|
54
|
-
|
55
|
-
filename = nil
|
56
|
-
json = JSON[
|
57
|
-
if args.empty?
|
58
|
-
STDIN.read
|
59
|
-
else
|
60
|
-
File.read filename = args.first
|
61
|
-
end
|
62
|
-
]
|
63
|
-
|
64
|
-
output = if opts['s']
|
65
|
-
JSON.fast_generate json
|
66
|
-
else # default is -l
|
67
|
-
JSON.pretty_generate json
|
68
|
-
end
|
69
|
-
|
70
|
-
if opts['i'] && filename
|
71
|
-
cp filename, "#{filename}.#{opts['i']}"
|
72
|
-
File.open(filename, 'w') { |f| f.puts output }
|
73
|
-
else
|
74
|
-
puts output
|
75
|
-
end
|
@@ -1,21 +0,0 @@
|
|
1
|
-
/* XPM */
|
2
|
-
static char * Array_xpm[] = {
|
3
|
-
"16 16 2 1",
|
4
|
-
" c None",
|
5
|
-
". c #000000",
|
6
|
-
" ",
|
7
|
-
" ",
|
8
|
-
" ",
|
9
|
-
" .......... ",
|
10
|
-
" . . ",
|
11
|
-
" . . ",
|
12
|
-
" . . ",
|
13
|
-
" . . ",
|
14
|
-
" . . ",
|
15
|
-
" . . ",
|
16
|
-
" . . ",
|
17
|
-
" . . ",
|
18
|
-
" .......... ",
|
19
|
-
" ",
|
20
|
-
" ",
|
21
|
-
" "};
|
@@ -1,21 +0,0 @@
|
|
1
|
-
/* XPM */
|
2
|
-
static char * False_xpm[] = {
|
3
|
-
"16 16 2 1",
|
4
|
-
" c None",
|
5
|
-
". c #FF0000",
|
6
|
-
" ",
|
7
|
-
" ",
|
8
|
-
" ",
|
9
|
-
" ...... ",
|
10
|
-
" . ",
|
11
|
-
" . ",
|
12
|
-
" . ",
|
13
|
-
" ...... ",
|
14
|
-
" . ",
|
15
|
-
" . ",
|
16
|
-
" . ",
|
17
|
-
" . ",
|
18
|
-
" . ",
|
19
|
-
" ",
|
20
|
-
" ",
|
21
|
-
" "};
|
@@ -1,21 +0,0 @@
|
|
1
|
-
/* XPM */
|
2
|
-
static char * Hash_xpm[] = {
|
3
|
-
"16 16 2 1",
|
4
|
-
" c None",
|
5
|
-
". c #000000",
|
6
|
-
" ",
|
7
|
-
" ",
|
8
|
-
" ",
|
9
|
-
" . . ",
|
10
|
-
" . . ",
|
11
|
-
" . . ",
|
12
|
-
" ......... ",
|
13
|
-
" . . ",
|
14
|
-
" . . ",
|
15
|
-
" ......... ",
|
16
|
-
" . . ",
|
17
|
-
" . . ",
|
18
|
-
" . . ",
|
19
|
-
" ",
|
20
|
-
" ",
|
21
|
-
" "};
|
@@ -1,73 +0,0 @@
|
|
1
|
-
/* XPM */
|
2
|
-
static char * Key_xpm[] = {
|
3
|
-
"16 16 54 1",
|
4
|
-
" c None",
|
5
|
-
". c #110007",
|
6
|
-
"+ c #0E0900",
|
7
|
-
"@ c #000013",
|
8
|
-
"# c #070600",
|
9
|
-
"$ c #F6F006",
|
10
|
-
"% c #ECE711",
|
11
|
-
"& c #E5EE00",
|
12
|
-
"* c #16021E",
|
13
|
-
"= c #120900",
|
14
|
-
"- c #EDF12B",
|
15
|
-
"; c #000033",
|
16
|
-
"> c #0F0000",
|
17
|
-
", c #FFFE03",
|
18
|
-
"' c #E6E500",
|
19
|
-
") c #16021B",
|
20
|
-
"! c #F7F502",
|
21
|
-
"~ c #000E00",
|
22
|
-
"{ c #130000",
|
23
|
-
"] c #FFF000",
|
24
|
-
"^ c #FFE711",
|
25
|
-
"/ c #140005",
|
26
|
-
"( c #190025",
|
27
|
-
"_ c #E9DD27",
|
28
|
-
": c #E7DC04",
|
29
|
-
"< c #FFEC09",
|
30
|
-
"[ c #FFE707",
|
31
|
-
"} c #FFDE10",
|
32
|
-
"| c #150021",
|
33
|
-
"1 c #160700",
|
34
|
-
"2 c #FAF60E",
|
35
|
-
"3 c #EFE301",
|
36
|
-
"4 c #FEF300",
|
37
|
-
"5 c #E7E000",
|
38
|
-
"6 c #FFFF08",
|
39
|
-
"7 c #0E0206",
|
40
|
-
"8 c #040000",
|
41
|
-
"9 c #03052E",
|
42
|
-
"0 c #041212",
|
43
|
-
"a c #070300",
|
44
|
-
"b c #F2E713",
|
45
|
-
"c c #F9DE13",
|
46
|
-
"d c #36091E",
|
47
|
-
"e c #00001C",
|
48
|
-
"f c #1F0010",
|
49
|
-
"g c #FFF500",
|
50
|
-
"h c #DEDE00",
|
51
|
-
"i c #050A00",
|
52
|
-
"j c #FAF14A",
|
53
|
-
"k c #F5F200",
|
54
|
-
"l c #040404",
|
55
|
-
"m c #1A0D00",
|
56
|
-
"n c #EDE43D",
|
57
|
-
"o c #ECE007",
|
58
|
-
" ",
|
59
|
-
" ",
|
60
|
-
" .+@ ",
|
61
|
-
" #$%&* ",
|
62
|
-
" =-;>,') ",
|
63
|
-
" >!~{]^/ ",
|
64
|
-
" (_:<[}| ",
|
65
|
-
" 1234567 ",
|
66
|
-
" 890abcd ",
|
67
|
-
" efghi ",
|
68
|
-
" >jkl ",
|
69
|
-
" mnol ",
|
70
|
-
" >kl ",
|
71
|
-
" ll ",
|
72
|
-
" ",
|
73
|
-
" "};
|
@@ -1,21 +0,0 @@
|
|
1
|
-
/* XPM */
|
2
|
-
static char * False_xpm[] = {
|
3
|
-
"16 16 2 1",
|
4
|
-
" c None",
|
5
|
-
". c #000000",
|
6
|
-
" ",
|
7
|
-
" ",
|
8
|
-
" ",
|
9
|
-
" ... ",
|
10
|
-
" . . ",
|
11
|
-
" . . ",
|
12
|
-
" . . ",
|
13
|
-
" . . ",
|
14
|
-
" . . ",
|
15
|
-
" . . ",
|
16
|
-
" . . ",
|
17
|
-
" . . ",
|
18
|
-
" ... ",
|
19
|
-
" ",
|
20
|
-
" ",
|
21
|
-
" "};
|
@@ -1,28 +0,0 @@
|
|
1
|
-
/* XPM */
|
2
|
-
static char * Numeric_xpm[] = {
|
3
|
-
"16 16 9 1",
|
4
|
-
" c None",
|
5
|
-
". c #FF0000",
|
6
|
-
"+ c #0000FF",
|
7
|
-
"@ c #0023DB",
|
8
|
-
"# c #00EA14",
|
9
|
-
"$ c #00FF00",
|
10
|
-
"% c #004FAF",
|
11
|
-
"& c #0028D6",
|
12
|
-
"* c #00F20C",
|
13
|
-
" ",
|
14
|
-
" ",
|
15
|
-
" ",
|
16
|
-
" ... +++@#$$$$ ",
|
17
|
-
" .+ %& $$ ",
|
18
|
-
" . + $ ",
|
19
|
-
" . + $$ ",
|
20
|
-
" . ++$$$$ ",
|
21
|
-
" . + $$ ",
|
22
|
-
" . + $ ",
|
23
|
-
" . + $ ",
|
24
|
-
" . + $ $$ ",
|
25
|
-
" .....++++*$$ ",
|
26
|
-
" ",
|
27
|
-
" ",
|
28
|
-
" "};
|
@@ -1,96 +0,0 @@
|
|
1
|
-
/* XPM */
|
2
|
-
static char * String_xpm[] = {
|
3
|
-
"16 16 77 1",
|
4
|
-
" c None",
|
5
|
-
". c #000000",
|
6
|
-
"+ c #040404",
|
7
|
-
"@ c #080806",
|
8
|
-
"# c #090606",
|
9
|
-
"$ c #EEEAE1",
|
10
|
-
"% c #E7E3DA",
|
11
|
-
"& c #E0DBD1",
|
12
|
-
"* c #D4B46F",
|
13
|
-
"= c #0C0906",
|
14
|
-
"- c #E3C072",
|
15
|
-
"; c #E4C072",
|
16
|
-
"> c #060505",
|
17
|
-
", c #0B0A08",
|
18
|
-
"' c #D5B264",
|
19
|
-
") c #D3AF5A",
|
20
|
-
"! c #080602",
|
21
|
-
"~ c #E1B863",
|
22
|
-
"{ c #DDB151",
|
23
|
-
"] c #DBAE4A",
|
24
|
-
"^ c #DDB152",
|
25
|
-
"/ c #DDB252",
|
26
|
-
"( c #070705",
|
27
|
-
"_ c #0C0A07",
|
28
|
-
": c #D3A33B",
|
29
|
-
"< c #020201",
|
30
|
-
"[ c #DAAA41",
|
31
|
-
"} c #040302",
|
32
|
-
"| c #E4D9BF",
|
33
|
-
"1 c #0B0907",
|
34
|
-
"2 c #030201",
|
35
|
-
"3 c #020200",
|
36
|
-
"4 c #C99115",
|
37
|
-
"5 c #080704",
|
38
|
-
"6 c #DBC8A2",
|
39
|
-
"7 c #E7D7B4",
|
40
|
-
"8 c #E0CD9E",
|
41
|
-
"9 c #080601",
|
42
|
-
"0 c #040400",
|
43
|
-
"a c #010100",
|
44
|
-
"b c #0B0B08",
|
45
|
-
"c c #DCBF83",
|
46
|
-
"d c #DCBC75",
|
47
|
-
"e c #DEB559",
|
48
|
-
"f c #040301",
|
49
|
-
"g c #BC8815",
|
50
|
-
"h c #120E07",
|
51
|
-
"i c #060402",
|
52
|
-
"j c #0A0804",
|
53
|
-
"k c #D4A747",
|
54
|
-
"l c #D6A12F",
|
55
|
-
"m c #0E0C05",
|
56
|
-
"n c #C8C1B0",
|
57
|
-
"o c #1D1B15",
|
58
|
-
"p c #D7AD51",
|
59
|
-
"q c #070502",
|
60
|
-
"r c #080804",
|
61
|
-
"s c #BC953B",
|
62
|
-
"t c #C4BDAD",
|
63
|
-
"u c #0B0807",
|
64
|
-
"v c #DBAC47",
|
65
|
-
"w c #1B150A",
|
66
|
-
"x c #B78A2C",
|
67
|
-
"y c #D8A83C",
|
68
|
-
"z c #D4A338",
|
69
|
-
"A c #0F0B03",
|
70
|
-
"B c #181105",
|
71
|
-
"C c #C59325",
|
72
|
-
"D c #C18E1F",
|
73
|
-
"E c #060600",
|
74
|
-
"F c #CC992D",
|
75
|
-
"G c #B98B25",
|
76
|
-
"H c #B3831F",
|
77
|
-
"I c #C08C1C",
|
78
|
-
"J c #060500",
|
79
|
-
"K c #0E0C03",
|
80
|
-
"L c #0D0A00",
|
81
|
-
" ",
|
82
|
-
" .+@# ",
|
83
|
-
" .$%&*= ",
|
84
|
-
" .-;>,')! ",
|
85
|
-
" .~. .{]. ",
|
86
|
-
" .^/. (_:< ",
|
87
|
-
" .[.}|$12 ",
|
88
|
-
" 345678}90 ",
|
89
|
-
" a2bcdefgh ",
|
90
|
-
" ijkl.mno ",
|
91
|
-
" <pq. rstu ",
|
92
|
-
" .]v. wx= ",
|
93
|
-
" .yzABCDE ",
|
94
|
-
" .FGHIJ ",
|
95
|
-
" 0KL0 ",
|
96
|
-
" "};
|
@@ -1,21 +0,0 @@
|
|
1
|
-
/* XPM */
|
2
|
-
static char * TrueClass_xpm[] = {
|
3
|
-
"16 16 2 1",
|
4
|
-
" c None",
|
5
|
-
". c #0BF311",
|
6
|
-
" ",
|
7
|
-
" ",
|
8
|
-
" ",
|
9
|
-
" ......... ",
|
10
|
-
" . ",
|
11
|
-
" . ",
|
12
|
-
" . ",
|
13
|
-
" . ",
|
14
|
-
" . ",
|
15
|
-
" . ",
|
16
|
-
" . ",
|
17
|
-
" . ",
|
18
|
-
" . ",
|
19
|
-
" ",
|
20
|
-
" ",
|
21
|
-
" "};
|
@@ -1,58 +0,0 @@
|
|
1
|
-
# This file contains implementations of rails custom objects for
|
2
|
-
# serialisation/deserialisation.
|
3
|
-
|
4
|
-
unless Object.const_defined?(:JSON) and ::JSON.const_defined?(:JSON_LOADED) and
|
5
|
-
::JSON::JSON_LOADED
|
6
|
-
require 'json'
|
7
|
-
end
|
8
|
-
|
9
|
-
class Object
|
10
|
-
def self.json_create(object)
|
11
|
-
obj = new
|
12
|
-
for key, value in object
|
13
|
-
next if key == JSON.create_id
|
14
|
-
instance_variable_set "@#{key}", value
|
15
|
-
end
|
16
|
-
obj
|
17
|
-
end
|
18
|
-
|
19
|
-
def to_json(*a)
|
20
|
-
result = {
|
21
|
-
JSON.create_id => self.class.name
|
22
|
-
}
|
23
|
-
instance_variables.inject(result) do |r, name|
|
24
|
-
r[name[1..-1]] = instance_variable_get name
|
25
|
-
r
|
26
|
-
end
|
27
|
-
result.to_json(*a)
|
28
|
-
end
|
29
|
-
end
|
30
|
-
|
31
|
-
class Symbol
|
32
|
-
def to_json(*a)
|
33
|
-
to_s.to_json(*a)
|
34
|
-
end
|
35
|
-
end
|
36
|
-
|
37
|
-
module Enumerable
|
38
|
-
def to_json(*a)
|
39
|
-
to_a.to_json(*a)
|
40
|
-
end
|
41
|
-
end
|
42
|
-
|
43
|
-
# class Regexp
|
44
|
-
# def to_json(*)
|
45
|
-
# inspect
|
46
|
-
# end
|
47
|
-
# end
|
48
|
-
#
|
49
|
-
# The above rails definition has some problems:
|
50
|
-
#
|
51
|
-
# 1. { 'foo' => /bar/ }.to_json # => "{foo: /bar/}"
|
52
|
-
# This isn't valid JSON, because the regular expression syntax is not
|
53
|
-
# defined in RFC 4627. (And unquoted strings are disallowed there, too.)
|
54
|
-
# Though it is valid Javascript.
|
55
|
-
#
|
56
|
-
# 2. { 'foo' => /bar/mix }.to_json # => "{foo: /bar/mix}"
|
57
|
-
# This isn't even valid Javascript.
|
58
|
-
|