edn 1.0.5 → 1.0.6

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 972dc5d81c03165a6a51a6e3ea561f63dc38afaa
4
- data.tar.gz: 8e55935d4bd465c787920bddd99083db37ab5d07
3
+ metadata.gz: 82a4b6feced4636e4f6b91748475a2ee8f57d247
4
+ data.tar.gz: c9b4f97c275c87ec4b854a8b5e7159b7087d2ec0
5
5
  SHA512:
6
- metadata.gz: f7902d652632b1553a746a62a54e6d602281f6f1d6f45f50e9234ba9e2c04321fa8a86d5e587f141ddd8ad0f90cb2b54604adfa11aac9c174716a45d3f061d56
7
- data.tar.gz: 247a8609a0d39f19165640e659351444fedbeebfdb518e7c9eeb055c9225f59aac309d1441736cea7bbf2a509bde5684a997a2e0624c56e669d1ce1454132397
6
+ metadata.gz: d0cb76b6de3b2a8cdde99a32e7f611bfed757427e1933d7f17e61386294a3006830c8b4b57c2cc77d1174ba21d1e01a42265d88e601fe353dc804aeae9216c3d
7
+ data.tar.gz: 2fb3d91ec4e7f93a65ceb07188c38d3a820688a8c47b1f62a531d2dd09c2e816ff492cc4762c34f3e4c80ea78fa8fde1f21df677b8793338b0df2b069aa5803b
@@ -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 == NOTHING
235
+ while NOTHING.equal?(result)
237
236
  @s.skip_ws
238
237
  result = call_reader(READERS[@s.current])
239
238
  end
@@ -1,7 +1,5 @@
1
1
  module EDN
2
2
  module Type
3
- include EDN::CoreExt::AllowsMetadata
4
-
5
3
  class List < ::Array
6
4
  def self.new(*values)
7
5
  self.[](*values)
@@ -1,3 +1,3 @@
1
1
  module EDN
2
- VERSION = "1.0.5"
2
+ VERSION = "1.0.6"
3
3
  end
@@ -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
@@ -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.5
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-20 00:00:00.000000000 Z
11
+ date: 2014-06-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pry