grom 0.3.6 → 0.3.7

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: 6142d087bf21472d8a4b38d1dd2579dfe1d7e0cc
4
- data.tar.gz: 238b550001a0f4dbe14c1e8e3686260a9d6d3e2a
3
+ metadata.gz: d7a585bd4a657c6d3747c88833fd4859bfdf3007
4
+ data.tar.gz: d72ca4ca778b4c19720be1f0cfe1bb35054e3f54
5
5
  SHA512:
6
- metadata.gz: 4b0cae2d8c1210ad7b6a3afcf4659d8afd27d242593a8d034234f440f4006405eb65062d749e644c3f833867f33544d5bc4957449ce805063e50342829cfc4ac
7
- data.tar.gz: 32fe3f4c9c93289584393edb4a042a8a6be1331fd8a52b72d714afc70013bbd90396c2ae522069f75716d9a9989daf18da3697ab31bf1cac78393f7b09fdda6c
6
+ metadata.gz: d5e8debd4e7da0f2377a2ea163cfff5700b61e46f162cd11ef1c31474dbfdd982c3a2ce6df51db00fb39a7103fe90327893f948ac233e65f3be613b80ad84f69
7
+ data.tar.gz: 1f2ff02000b8b281fb0ca7ce2d61fa06cb97da2c2cf4a4657b4b88dbe02f078ae813a5affac5a0377bf459baa20575519f740b89b2b40ae65867648b8bcce4e9
data/lib/grom/helper.rb CHANGED
@@ -40,7 +40,14 @@ module Grom
40
40
  def self.get_id(uri)
41
41
  return nil if uri.to_s['/'].nil?
42
42
 
43
- uri == RDF.type.to_s ? 'type' : uri.to_s.split('/').last
43
+ if uri == RDF::RDFS.label.to_s
44
+ return 'label'
45
+ elsif uri == RDF.type.to_s
46
+ return 'type'
47
+ else
48
+ uri.to_s.split('/').last
49
+ end
50
+
44
51
  end
45
52
  end
46
53
  end
data/lib/grom/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Grom
2
- VERSION = '0.3.6'.freeze
2
+ VERSION = '0.3.7'.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.6
4
+ version: 0.3.7
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-03-29 00:00:00.000000000 Z
13
+ date: 2017-06-09 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rdf
@@ -160,7 +160,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
160
160
  version: '0'
161
161
  requirements: []
162
162
  rubyforge_project:
163
- rubygems_version: 2.6.6
163
+ rubygems_version: 2.6.10
164
164
  signing_key:
165
165
  specification_version: 4
166
166
  summary: Grom is a Graph Object Mapper