grom 0.3.4 → 0.3.5

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: 303c77e791f9ea5e81907d0efdb93b7d57415347
4
- data.tar.gz: 90b3b582598e15c419a9942c14321671c0ae876b
3
+ metadata.gz: 9833c1d5114eb808c5f60023b2fe62547b132b73
4
+ data.tar.gz: 4ee263710c46ce0a5c2ad86b240f1d788bbc7f95
5
5
  SHA512:
6
- metadata.gz: b95b038e4d8f9f80325bf3d208230829f8ca41ddc50b71ae5df399862a2258eeda3a703fca41b2c87768792f647e730cff1fb82dd3387221984d187ee43c9762
7
- data.tar.gz: c42a174398540daf852b05e180efe17145425dc37940e5cf183e83a2d3e2d5088ef969b72eb1913ea69b7470d96d02a97efb64128b63b8643a2b2e4e3e2ab2d3
6
+ metadata.gz: 40aefc68a2222bdd48c1aee64365973d4a856d97d06f1b2633017839f1499a9aa7a8ec600fba7b283aee866db3a6758eaf0430313099342d61e11382be74e907
7
+ data.tar.gz: def6fb6667d607503b40566cef8d64406790017552a30fb576460c14706908df57fff9c86b70af4d4b82dbd15cf8166c1f869bc808cb486418c545d965ba8880
@@ -5,7 +5,6 @@ module Grom
5
5
  def initialize(statements)
6
6
  @statements = statements
7
7
 
8
- set_id
9
8
  populate
10
9
  end
11
10
 
@@ -19,12 +18,13 @@ module Grom
19
18
 
20
19
  private
21
20
 
22
- def set_id
23
- id = Grom::Helper.get_id(@statements.first.subject)
24
- instance_variable_set('@id'.to_sym, id)
21
+ def set_graph_id
22
+ graph_id = Grom::Helper.get_id(@statements.first.subject)
23
+ instance_variable_set('@graph_id'.to_sym, graph_id)
25
24
  end
26
25
 
27
26
  def populate
27
+ set_graph_id
28
28
  @statements.each do |statement|
29
29
  attribute_name = Grom::Helper.get_id(statement.predicate)
30
30
  attribute_value = statement.object.to_s
@@ -1,3 +1,3 @@
1
1
  module Grom
2
- VERSION = '0.3.4'.freeze
2
+ VERSION = '0.3.5'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: grom
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.4
4
+ version: 0.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rebecca Appleyard