lazy_graph 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 29043baea3639e83c226d8e157af818466d50d4e3c125853dac64ae411aa0c0a
4
- data.tar.gz: f137caa57317cd9046bc16384bf657ca7c43d10b12701f30be6bc7a31580c6db
3
+ metadata.gz: 161365560b253072239da129afecb0d43a9f1aa0072a8a81668a25d4013a33ce
4
+ data.tar.gz: 3d8835baa0e9ae05e3ed0a8438c7b18a0e2c7f5b55e3ab4569bc0f17c30bce0c
5
5
  SHA512:
6
- metadata.gz: b1c5107a005882da016caa1fd54afa5131f296637fd6a7b18810d3b2c1f18893ae11938e63fc42ceec05def4ceba76afbe016b152d1c107225af148b06f6db52
7
- data.tar.gz: b5a2126ac97b38e1e0d4ce23a1d46859a89979b0b09a2d3ad3e3676b763d6277745310ee08a0c49fbbc85bcd930d246362bd79793899726c2f763b0aa1f6fe44
6
+ metadata.gz: 12e62d31f1aa8d45d61b1de31e5d890ecb56be3ddfac5977431592723079ebe46ae120d489ddacb4eea1b458ab5efb8f68ff0b4e3ac38085a69caa78db6f29b3
7
+ data.tar.gz: af1ad4be372659110fae0299f84247f48f76b37ce4a1344d2543ebd093ce93525fe50e76bc0f4866dc4357184cceb1c9bac650cccbe8e2dd4443ce1840552cfc
@@ -31,9 +31,7 @@ module LazyGraph
31
31
  define_method(:each_key, &members.method(:each))
32
32
 
33
33
  def dup
34
- duplicate = self.class.new
35
- members.each { duplicate[_1] = self[_1].dup }
36
- duplicate
34
+ self.class.new(members.each_with_object({}) { _2[_1] = _2[_1].dup })
37
35
  end
38
36
 
39
37
  def get_first_of(*props)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module LazyGraph
4
- VERSION = '0.1.2'
4
+ VERSION = '0.1.3'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lazy_graph
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Wouter Coppieters