grom 0.3.2 → 0.3.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: 774144f7784dcd5eb19f5983b6bdf14297605dc9
4
- data.tar.gz: 901f70934fc461fd77a3518046851affbfdb93e6
3
+ metadata.gz: 303c77e791f9ea5e81907d0efdb93b7d57415347
4
+ data.tar.gz: 90b3b582598e15c419a9942c14321671c0ae876b
5
5
  SHA512:
6
- metadata.gz: b9f79d23522fd5fb14c4923b79fba3e3e26b1cea5b9dfeb3cbd4ec276f25c857c7b40641131747cefa5122a2510bc50626f1f22ddbebe8ccfef84d15f87395a6
7
- data.tar.gz: 80a685aafed2276691f61ce3045755e76a4e820ebdf2fb44207eb3259eca472950268c158219b20b21ce24aa2bf39717607ad27605540b6f5a15c4ec34974e7d
6
+ metadata.gz: b95b038e4d8f9f80325bf3d208230829f8ca41ddc50b71ae5df399862a2258eeda3a703fca41b2c87768792f647e730cff1fb82dd3387221984d187ee43c9762
7
+ data.tar.gz: c42a174398540daf852b05e180efe17145425dc37940e5cf183e83a2d3e2d5088ef969b72eb1913ea69b7470d96d02a97efb64128b63b8643a2b2e4e3e2ab2d3
data/lib/grom/node.rb CHANGED
@@ -5,6 +5,7 @@ module Grom
5
5
  def initialize(statements)
6
6
  @statements = statements
7
7
 
8
+ set_id
8
9
  populate
9
10
  end
10
11
 
@@ -18,6 +19,11 @@ module Grom
18
19
 
19
20
  private
20
21
 
22
+ def set_id
23
+ id = Grom::Helper.get_id(@statements.first.subject)
24
+ instance_variable_set('@id'.to_sym, id)
25
+ end
26
+
21
27
  def populate
22
28
  @statements.each do |statement|
23
29
  attribute_name = Grom::Helper.get_id(statement.predicate)
data/lib/grom/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Grom
2
- VERSION = '0.3.2'.freeze
2
+ VERSION = '0.3.4'.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.2
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rebecca Appleyard
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: exe
12
12
  cert_chain: []
13
- date: 2017-02-03 00:00:00.000000000 Z
13
+ date: 2017-02-06 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rdf
@@ -159,7 +159,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
159
159
  version: '0'
160
160
  requirements: []
161
161
  rubyforge_project:
162
- rubygems_version: 2.6.8
162
+ rubygems_version: 2.5.1
163
163
  signing_key:
164
164
  specification_version: 4
165
165
  summary: Grom is a Graph Object Mapper