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 +4 -4
- data/lib/grom/node.rb +6 -0
- data/lib/grom/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 303c77e791f9ea5e81907d0efdb93b7d57415347
|
4
|
+
data.tar.gz: 90b3b582598e15c419a9942c14321671c0ae876b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
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
|
+
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-
|
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.
|
162
|
+
rubygems_version: 2.5.1
|
163
163
|
signing_key:
|
164
164
|
specification_version: 4
|
165
165
|
summary: Grom is a Graph Object Mapper
|