ruby-dagger 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 +4 -4
- data/CHANGELOG.md +11 -1
- data/lib/dagger/vertex.rb +6 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7586b96c854631033346f764842b3691de3c2ed33c6a377f01f5b33ab07b5462
|
4
|
+
data.tar.gz: e2baa9d34e252ccf63a48da79c1eec340016bd365f34b479830151b20e8f5987
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3165df1d173b6e95bbdae043a12c718e7102e8c6accabc20a496886c678c8b51f99890a8f71b781c82875abe9c13e41cb85e19c42a1034438517a0eee5b76b72
|
7
|
+
data.tar.gz: c95d43a749cbb30a996de189f79d1a23b64c4e20bb81f8eb77944ce7de7d3dcdc64ad8194ac7ef430efafde1d36618fc91e7eb096624a08aceefb4fcac2e86d1
|
data/CHANGELOG.md
CHANGED
@@ -7,6 +7,15 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
7
7
|
## [Unreleased]
|
8
8
|
|
9
9
|
|
10
|
+
## [0.3.2] - 2019-07-16
|
11
|
+
|
12
|
+
### Fixed
|
13
|
+
|
14
|
+
- When using the `^.key` syntax to fetch a parent key, the prefix was
|
15
|
+
dropped using the `key_tree ~>0.5` api (inhertited from Array#drop)
|
16
|
+
instead of the proper `key_tree ~>0.6` api that takes the prefix to drop.
|
17
|
+
|
18
|
+
|
10
19
|
## [0.3.1] - 2019-07-05
|
11
20
|
|
12
21
|
### Fixed
|
@@ -41,7 +50,8 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
41
50
|
These releases have no change logs.
|
42
51
|
|
43
52
|
|
44
|
-
[Unreleased]: https://github.com/notCalle/ruby-dagger/compare/v0.3.
|
53
|
+
[Unreleased]: https://github.com/notCalle/ruby-dagger/compare/v0.3.2..HEAD
|
54
|
+
[0.3.2]: https://github.com/notCalle/ruby-dagger/compare/v0.3.1..v0.3.2
|
45
55
|
[0.3.1]: https://github.com/notCalle/ruby-dagger/compare/v0.3.0..v0.3.1
|
46
56
|
[0.3.0]: https://github.com/notCalle/ruby-dagger/compare/v0.2.1..v0.3.0
|
47
57
|
[Older]: https://github.com/notCalle/ruby-dagger/releases/tag/v0.2.1
|
data/lib/dagger/vertex.rb
CHANGED
@@ -39,16 +39,18 @@ module Dagger
|
|
39
39
|
|
40
40
|
def [](key)
|
41
41
|
key = key.to_key_path
|
42
|
-
return @inherited[key.drop(
|
42
|
+
return @inherited[key.drop('^')] if key.prefix?('^')
|
43
43
|
|
44
44
|
@forest[key]
|
45
45
|
end
|
46
46
|
|
47
47
|
def fetch(key, *default, &block)
|
48
48
|
key = key.to_key_path
|
49
|
-
|
50
|
-
|
51
|
-
|
49
|
+
if key.prefix?('^')
|
50
|
+
@inherited.fetch(key.drop('^'), *default, &block)
|
51
|
+
else
|
52
|
+
@forest.fetch(key, *default, &block)
|
53
|
+
end
|
52
54
|
end
|
53
55
|
|
54
56
|
def <<(keytree)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-dagger
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Calle Englund
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-07-
|
11
|
+
date: 2019-07-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: key_tree
|