psych 2.0.11 → 2.0.12
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.rdoc +8 -0
- data/lib/psych.rb +1 -1
- data/lib/psych/visitors/to_ruby.rb +1 -0
- data/test/psych/test_hash.rb +7 -0
- 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: 38ed899f0b22c57d8a653dfb84f54a92d9c51ccd
|
|
4
|
+
data.tar.gz: b9fe79097035b8594dff79dacb4c85e55451be5f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 705e8c7667b4a841aab3a868a3a77cb5e55eb0e6a3d76c1169eba8244ab8b5307c83f85d5fa546f4fdbbdf62ee1a82d2336a30a17443556875ffa8b29fd60bfc
|
|
7
|
+
data.tar.gz: 76f6c273cd9a0570fc64c1f0e789f907cb3ceeeabe6764549713a59fbbf06d83953afa4fcb53b6ca9527c724778b459b4bfac3310eb6e8ebe342b15e8589678e
|
data/CHANGELOG.rdoc
CHANGED
|
@@ -1,3 +1,11 @@
|
|
|
1
|
+
Thu Jan 29 02:34:27 2015 Aaron Patterson <aaron@tenderlovemaking.com>
|
|
2
|
+
|
|
3
|
+
* ext/psych/lib/psych/visitors/to_ruby.rb: fix parsing hashes with
|
|
4
|
+
instance variables when it is referenced multiple times.
|
|
5
|
+
* ext/psych/lib/psych.rb: bump version
|
|
6
|
+
* ext/psych/psych.gemspec: bump version
|
|
7
|
+
* test/psych/test_hash.rb: test for fix
|
|
8
|
+
|
|
1
9
|
Fri Jan 9 07:13:55 2015 Aaron Patterson <aaron@tenderlovemaking.com>
|
|
2
10
|
|
|
3
11
|
* ext/psych/lib/psych/visitors/to_ruby.rb: call `allocate` on hash
|
data/lib/psych.rb
CHANGED
data/test/psych/test_hash.rb
CHANGED
|
@@ -23,6 +23,13 @@ module Psych
|
|
|
23
23
|
@hash = { :a => 'b' }
|
|
24
24
|
end
|
|
25
25
|
|
|
26
|
+
def test_referenced_hash_with_ivar
|
|
27
|
+
a = [1,2,3,4,5]
|
|
28
|
+
t1 = [HashWithCustomInit.new(a)]
|
|
29
|
+
t1 << t1.first
|
|
30
|
+
assert_cycle t1
|
|
31
|
+
end
|
|
32
|
+
|
|
26
33
|
def test_custom_initialized
|
|
27
34
|
a = [1,2,3,4,5]
|
|
28
35
|
t1 = HashWithCustomInit.new(a)
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: psych
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 2.0.
|
|
4
|
+
version: 2.0.12
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Aaron Patterson
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-01-
|
|
11
|
+
date: 2015-01-28 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rdoc
|