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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +11 -1
  3. data/lib/dagger/vertex.rb +6 -4
  4. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 36e5f00ff3615e8c6bd8f40f41b11aa63b1c232d63b5b2c455f684dcb80da834
4
- data.tar.gz: 04b9b841666e58e50d1dc8a4b588b2a124ad58beef2074c92d62989ca84e3333
3
+ metadata.gz: 7586b96c854631033346f764842b3691de3c2ed33c6a377f01f5b33ab07b5462
4
+ data.tar.gz: e2baa9d34e252ccf63a48da79c1eec340016bd365f34b479830151b20e8f5987
5
5
  SHA512:
6
- metadata.gz: 251ae0e16a32414a9557a676958d51f346c0be4e07a659a9aa1b285428ce9940511b02e4c890abee8fdd3352fd5c166e9e8c1821f29cc9b05e2aa05a738a9f35
7
- data.tar.gz: 3ce39c02a776aafa907c9b73452e54e7ff8c9ae81fac87870280a5010ead25941c8d029089cb5bdd62360268808c42632a037a37ea101dc53d79686665de1d0c
6
+ metadata.gz: 3165df1d173b6e95bbdae043a12c718e7102e8c6accabc20a496886c678c8b51f99890a8f71b781c82875abe9c13e41cb85e19c42a1034438517a0eee5b76b72
7
+ data.tar.gz: c95d43a749cbb30a996de189f79d1a23b64c4e20bb81f8eb77944ce7de7d3dcdc64ad8194ac7ef430efafde1d36618fc91e7eb096624a08aceefb4fcac2e86d1
@@ -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.1..HEAD
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
@@ -39,16 +39,18 @@ module Dagger
39
39
 
40
40
  def [](key)
41
41
  key = key.to_key_path
42
- return @inherited[key.drop(1)] if key.prefix?('^')
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
- return @inherited.fetch(key.drop(1), *default, &block) if key.prefix?('^')
50
-
51
- @forest.fetch(key, *default, &block)
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.1
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-05 00:00:00.000000000 Z
11
+ date: 2019-07-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: key_tree