edn_turbo 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 30d991ed7b0f1d538557b651a4e5d04eccf1b54b
4
- data.tar.gz: 046f2b1f3f66814897e1ead26d5404737f2dc00f
3
+ metadata.gz: 40150e3db9c9690a44858cbbaeb1354cf455fae0
4
+ data.tar.gz: cbd2dcb30ea31f014a50f390e988c1a0b499f7f0
5
5
  SHA512:
6
- metadata.gz: e8467a5aa1f6ae26b4ee414627ce49dddff1df50135bd48184972d93c334fb7a0f636cef089c759b524b2d30b04e3f2b517746e02cc65aa2c9f905e1594730d8
7
- data.tar.gz: c1eea11deb70ce83ee4d322aaa424d288dcc272ec5097e284d8b2418c58630f907295b3437822ef28eb1b82ff7fe9c0c2cd2d211c4c530a3c1286fceb92cec8e
6
+ metadata.gz: e00749730b5ac6e6ed30ac7875c0cb2420011fbd0a6a0aeb3e2fa816ab165ae2b6327dc0c532ebe6c907548737728aae54e22317450338228b99c2996c0e038d
7
+ data.tar.gz: 76eb4c11b06efd7c36055402f2317cc7d8ce0f8c5e14217bf759b2a1cfe60511d22ee04e97bd8ecad5969638885e11bf5cecf526f74e736a794f69eef1cfecab
data/README.md CHANGED
@@ -63,6 +63,11 @@ Simlar to `edn-ruby`:
63
63
  # also accepts a string
64
64
  pp EDNT.read("[ 1 2 3 abc ]")
65
65
 
66
+ # metadata
67
+ e = EDNT.read('^String ^:foo ^{:foo false :tag Boolean :bar 2} [1 2]')
68
+ pp e # -> [1, 2]
69
+ pp e.metadata # -> {:foo=>true, :tag=>#<EDN::Type::Symbol:0x007fdbea8a29b0 @symbol=:String>, :bar=>2}
70
+
66
71
  ```
67
72
 
68
73
  Or instantiate and reuse an instance of a parser:
@@ -96,8 +101,8 @@ Or instantiate and reuse an instance of a parser:
96
101
 
97
102
  Known problems
98
103
  ==============
99
- v0.3.0:
104
+ v0.3.1:
100
105
 
101
- - No checks for valid characters in #uuid or #inst are performed by
102
- the parser. However, DateTime will throw an error if the date can't
103
- be parsed and this is reported.
106
+ - Some unhandled corner cases with operators and spacing
107
+ remain. `edn_turbo` handles things like `1 / 12` and `1/ 12` but
108
+ parse errors occur with `1/12` and `1 /12`.
data/bin/ppedn CHANGED
@@ -45,7 +45,9 @@ p = EDNT::Parser.new
45
45
  File.open(filename) do |file|
46
46
 
47
47
  if options[:use_parse]
48
- pp p.parse(file.read)
48
+ output = p.parse(file.read)
49
+
50
+ pp output if output != EDNT::EOF
49
51
  else
50
52
  p.set_input(file.read)
51
53