edn 1.0.5 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/edn/parser.rb +1 -2
- data/lib/edn/type/list.rb +0 -2
- data/lib/edn/version.rb +1 -1
- data/spec/edn_spec.rb +3 -0
- data/spec/spec_helper.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 82a4b6feced4636e4f6b91748475a2ee8f57d247
|
4
|
+
data.tar.gz: c9b4f97c275c87ec4b854a8b5e7159b7087d2ec0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d0cb76b6de3b2a8cdde99a32e7f611bfed757427e1933d7f17e61386294a3006830c8b4b57c2cc77d1174ba21d1e01a42265d88e601fe353dc804aeae9216c3d
|
7
|
+
data.tar.gz: 2fb3d91ec4e7f93a65ceb07188c38d3a820688a8c47b1f62a531d2dd09c2e816ff492cc4762c34f3e4c80ea78fa8fde1f21df677b8793338b0df2b069aa5803b
|
data/lib/edn/parser.rb
CHANGED
@@ -1,6 +1,5 @@
|
|
1
1
|
require 'stringio'
|
2
2
|
require 'set'
|
3
|
-
require 'pry'
|
4
3
|
|
5
4
|
|
6
5
|
module EDN
|
@@ -233,7 +232,7 @@ module EDN
|
|
233
232
|
@s.skip_ws
|
234
233
|
ch = @s.current
|
235
234
|
result = call_reader(READERS[ch])
|
236
|
-
while result
|
235
|
+
while NOTHING.equal?(result)
|
237
236
|
@s.skip_ws
|
238
237
|
result = call_reader(READERS[@s.current])
|
239
238
|
end
|
data/lib/edn/type/list.rb
CHANGED
data/lib/edn/version.rb
CHANGED
data/spec/edn_spec.rb
CHANGED
@@ -40,9 +40,12 @@ describe EDN do
|
|
40
40
|
EDN.read("3.14").should == 3.14
|
41
41
|
EDN.read("3.14M").should == BigDecimal("3.14")
|
42
42
|
EDN.read('"hello\nworld"').should == "hello\nworld"
|
43
|
+
EDN.read('"øhi utf8"').should == "øhi utf8"
|
43
44
|
EDN.read(':hello').should == :hello
|
44
45
|
EDN.read(':hello/world').should == :"hello/world"
|
45
46
|
EDN.read('hello').should == EDN::Type::Symbol.new('hello')
|
47
|
+
EDN.read('<').should == EDN::Type::Symbol.new('<')
|
48
|
+
EDN.read('>').should == EDN::Type::Symbol.new('>')
|
46
49
|
EDN.read('hello/world').should == EDN::Type::Symbol.new('hello/world')
|
47
50
|
EDN.read('true').should == true
|
48
51
|
EDN.read('false').should == false
|
data/spec/spec_helper.rb
CHANGED
@@ -33,7 +33,7 @@ module RantlyHelpers
|
|
33
33
|
|
34
34
|
PLAIN_SYMBOL = lambda { |_|
|
35
35
|
sized(range(1, 100)) {
|
36
|
-
s = string(/[[:alnum:]]|[\.\*\+\!\-\?\$_
|
36
|
+
s = string(/[[:alnum:]]|[\.\*\+\!\-\?\$_%<>&=:#]/)
|
37
37
|
guard s !~ /^[0-9]/
|
38
38
|
guard s !~ /^[\+\-\.][0-9]/
|
39
39
|
guard s !~ /^[\:\#]/
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: edn
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Clinton N. Dreisbach & Russ Olsen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-06-
|
11
|
+
date: 2014-06-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|