mementus 0.7.3 → 0.7.4

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
  SHA1:
3
- metadata.gz: c3744d008d33b6a5d5847301d080e59fa0b9ef55
4
- data.tar.gz: 87fc45fd14c77321b1d896f9cc4b1c84c13362f5
3
+ metadata.gz: 99a080a6068d0c13965015dcde1887d613174099
4
+ data.tar.gz: f6a21b820aa6c97607acafb8114db903b69b5f52
5
5
  SHA512:
6
- metadata.gz: d0cc23ab2d301ac4f7a8e9faae52e502d8608dd2793406785b3f2e618d2f5b5db7c6ea6cf260e22554e167d7682442ee468b87cf12c206f7e873b4a0302e2466
7
- data.tar.gz: 271081cbed545ceabddc9b7aaca73ec0f24f26a5769648def7cfe1a659dfeb82eae0e47874fa4c8c9a9cf3526e6485b71e2a1e4ad618d58ac0c185daaa6f01db
6
+ metadata.gz: 812f6244be3f811151091efbabf3f6667384c6736e60a50071611bccd201c0d600d6da2f3ceff4ac4f92b423a41e185a4c230e7827187fc924da88711494cde4
7
+ data.tar.gz: 115cb7f3452413619ec661f312af03426eddfe7c4900d2e1208809666ef30eb0f500cb46acdb27ec618e1575585480feb8f73ab3ae930fa07906342eaedafd51
@@ -9,8 +9,8 @@ module Mementus
9
9
 
10
10
  if is_mutable
11
11
  self.class.include Mutators
12
- @node_ids = IntegerId.new
13
- @edge_ids = IntegerId.new
12
+ @node_ids = IntegerId.new(builder.next_node_id)
13
+ @edge_ids = IntegerId.new(builder.next_edge_id)
14
14
  end
15
15
  end
16
16
 
@@ -8,6 +8,14 @@ module Mementus
8
8
  @edge_ids = IntegerId.new
9
9
  end
10
10
 
11
+ def next_node_id
12
+ @node_ids.next_id
13
+ end
14
+
15
+ def next_edge_id
16
+ @edge_ids.next_id
17
+ end
18
+
11
19
  def graph
12
20
  @structure
13
21
  end
@@ -1,3 +1,3 @@
1
1
  module Mementus
2
- VERSION = '0.7.3'.freeze
2
+ VERSION = '0.7.4'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mementus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.3
4
+ version: 0.7.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - maetl