nosj 0.2.0 → 0.3.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +112 -0
- data/Cargo.lock +3 -3
- data/README.md +220 -19
- data/ext/nosj/Cargo.toml +2 -2
- data/ext/nosj/fuzz/Cargo.toml +41 -0
- data/ext/nosj/fuzz/fuzz_targets/lines.rs +9 -0
- data/ext/nosj/fuzz/fuzz_targets/patch.rs +10 -0
- data/ext/nosj/fuzz/fuzz_targets/reformat.rs +10 -0
- data/ext/nosj/fuzz/src/lib.rs +48 -0
- data/ext/nosj/fuzz/src/prelude.rb +400 -0
- data/ext/nosj/src/errors.rs +171 -0
- data/ext/nosj/src/files.rs +29 -7
- data/ext/nosj/src/gen/errors.rs +2 -9
- data/ext/nosj/src/gen/mod.rs +156 -12
- data/ext/nosj/src/gen/opts.rs +88 -10
- data/ext/nosj/src/gen/ruby.rs +51 -0
- data/ext/nosj/src/gen/walker.rs +97 -59
- data/ext/nosj/src/lazy.rs +42 -22
- data/ext/nosj/src/lib.rs +30 -0
- data/ext/nosj/src/lines.rs +90 -0
- data/ext/nosj/src/parse.rs +55 -14
- data/ext/nosj/src/patch.rs +547 -0
- data/ext/nosj/src/pointer.rs +12 -5
- data/ext/nosj/src/reformat.rs +320 -0
- data/ext/nosj/src/sink.rs +11 -0
- data/ext/nosj/src/stats.rs +301 -0
- data/lib/nosj/json.rb +30 -6
- data/lib/nosj/multi_json.rb +1 -1
- data/lib/nosj/rails.rb +76 -0
- data/lib/nosj/version.rb +1 -1
- data/lib/nosj.rb +351 -5
- data/sig/nosj.rbs +66 -0
- metadata +16 -2
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: nosj
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.3.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Yaroslav Markin
|
|
@@ -28,7 +28,9 @@ description: 'gem nosj is an extremely fast, json-gem-compatible JSON parser and
|
|
|
28
28
|
with per-platform PGO, partial parsing (JSON Pointer, single and batch), lazy documents
|
|
29
29
|
that parse a value only when you touch it, file APIs that parse, generate, and query
|
|
30
30
|
files natively (memory-mapped, so unread pages never leave the disk), allocation-free
|
|
31
|
-
validation,
|
|
31
|
+
validation, document statistics from one counting pass, parse errors that carry
|
|
32
|
+
line, column, and a caret snippet, a one-line JSON module drop-in, and a Rails mode
|
|
33
|
+
that plugs into ActiveSupport''s encoder seam.'
|
|
32
34
|
email:
|
|
33
35
|
- yaroslav@markin.net
|
|
34
36
|
executables: []
|
|
@@ -44,6 +46,13 @@ files:
|
|
|
44
46
|
- README.md
|
|
45
47
|
- ext/nosj/Cargo.toml
|
|
46
48
|
- ext/nosj/extconf.rb
|
|
49
|
+
- ext/nosj/fuzz/Cargo.toml
|
|
50
|
+
- ext/nosj/fuzz/fuzz_targets/lines.rs
|
|
51
|
+
- ext/nosj/fuzz/fuzz_targets/patch.rs
|
|
52
|
+
- ext/nosj/fuzz/fuzz_targets/reformat.rs
|
|
53
|
+
- ext/nosj/fuzz/src/lib.rs
|
|
54
|
+
- ext/nosj/fuzz/src/prelude.rb
|
|
55
|
+
- ext/nosj/src/errors.rs
|
|
47
56
|
- ext/nosj/src/files.rs
|
|
48
57
|
- ext/nosj/src/gen/errors.rs
|
|
49
58
|
- ext/nosj/src/gen/hash_iter.rs
|
|
@@ -54,15 +63,20 @@ files:
|
|
|
54
63
|
- ext/nosj/src/gen/walker.rs
|
|
55
64
|
- ext/nosj/src/lazy.rs
|
|
56
65
|
- ext/nosj/src/lib.rs
|
|
66
|
+
- ext/nosj/src/lines.rs
|
|
57
67
|
- ext/nosj/src/parse.rs
|
|
68
|
+
- ext/nosj/src/patch.rs
|
|
58
69
|
- ext/nosj/src/pointer.rs
|
|
70
|
+
- ext/nosj/src/reformat.rs
|
|
59
71
|
- ext/nosj/src/sink.rs
|
|
60
72
|
- ext/nosj/src/state.rs
|
|
73
|
+
- ext/nosj/src/stats.rs
|
|
61
74
|
- lib/nosj.rb
|
|
62
75
|
- lib/nosj/json.rb
|
|
63
76
|
- lib/nosj/lazy.rb
|
|
64
77
|
- lib/nosj/multi_json.rb
|
|
65
78
|
- lib/nosj/native.rb
|
|
79
|
+
- lib/nosj/rails.rb
|
|
66
80
|
- lib/nosj/version.rb
|
|
67
81
|
- sig/nosj.rbs
|
|
68
82
|
homepage: https://github.com/yaroslav/nosj-ruby
|