ncbo_resource_index_client 1.5.0 → 1.6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9108d70850cdd785013b963d0e441a98e5800e48
|
4
|
+
data.tar.gz: 476495ab77bff96fbc30d3d672e5c762aabbf8a2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 56fd2d728d3dbd76b0b649e73501406e346eab00ea1f7bb4e8a74a8017bbdfb8f8e39ddf155c39ea4b0cba20d41287a40e06abb31c13cb72c565de02eff43a18
|
7
|
+
data.tar.gz: 11d14dd1adffb9985ff51e886e1d561a169ba1919683b5c31db85325ebcea6c99cbdc89914f24823bfc8a9ca39b767405383cd9ee457181ad5f30458566077bd
|
@@ -3,8 +3,8 @@ require 'xml'
|
|
3
3
|
require 'uri'
|
4
4
|
require 'open-uri'
|
5
5
|
require 'cgi'
|
6
|
-
require_relative '
|
7
|
-
require_relative '
|
6
|
+
require_relative 'ncbo_resource_index_client/parser'
|
7
|
+
require_relative 'ncbo_resource_index_client/data'
|
8
8
|
|
9
9
|
|
10
10
|
module NCBO
|
@@ -85,7 +85,7 @@ module NCBO
|
|
85
85
|
end
|
86
86
|
|
87
87
|
def self.element_annotations(element, concepts, resource, options = {})
|
88
|
-
new(options).element_annotations(element, concepts)
|
88
|
+
new(options).element_annotations(element, concepts, resource)
|
89
89
|
end
|
90
90
|
|
91
91
|
def element_annotations(element, concepts, resource)
|
@@ -200,7 +200,7 @@ module NCBO
|
|
200
200
|
popular_concepts
|
201
201
|
end
|
202
202
|
|
203
|
-
def self.ontologies(options)
|
203
|
+
def self.ontologies(options = {})
|
204
204
|
new(options).ontologies
|
205
205
|
end
|
206
206
|
|
File without changes
|
@@ -129,7 +129,7 @@ module NCBO
|
|
129
129
|
new_element.weights = element[:weights]
|
130
130
|
new_element.ontoIds = element[:ontoIds]
|
131
131
|
new_element.text = element[:text]
|
132
|
-
new_element.resource = element[:text].first[0].split("_")[0]
|
132
|
+
new_element.resource = element[:text].first[0].split("_")[0] unless element[:text].first.nil?
|
133
133
|
new_element
|
134
134
|
end
|
135
135
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ncbo_resource_index_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Paul R Alexander
|
@@ -38,9 +38,9 @@ executables: []
|
|
38
38
|
extensions: []
|
39
39
|
extra_rdoc_files: []
|
40
40
|
files:
|
41
|
-
- lib/
|
42
|
-
- lib/
|
43
|
-
- lib/
|
41
|
+
- lib/ncbo_resource_index_client/data.rb
|
42
|
+
- lib/ncbo_resource_index_client/parser.rb
|
43
|
+
- lib/ncbo_resource_index_client.rb
|
44
44
|
homepage: http://github.com/ncbo/resource_index_ruby_client
|
45
45
|
licenses: []
|
46
46
|
metadata: {}
|