nesstar-api 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/nesstar-api.rb +7 -6
- data/lib/nesstar-api/version.rb +1 -1
- metadata +5 -31
data/lib/nesstar-api.rb
CHANGED
@@ -190,8 +190,9 @@ module Nesstar
|
|
190
190
|
abstracts = studynodes[0].find('//abstract')
|
191
191
|
abstract = ""
|
192
192
|
abstracts.each do |ab|
|
193
|
-
abstract << ab.
|
193
|
+
abstract << ab.content.strip
|
194
194
|
end
|
195
|
+
abstract.strip!
|
195
196
|
study.abstract = abstract
|
196
197
|
study.title = studynodes[0].find('//stdyDscr/citation/titlStmt/titl')[0].first.content.strip
|
197
198
|
study.id = studynodes[0].find('//IDNo')[0].first.content.strip
|
@@ -356,13 +357,13 @@ module Nesstar
|
|
356
357
|
else
|
357
358
|
category.label = 'N/A'
|
358
359
|
end
|
359
|
-
|
360
|
+
catstats = cat.find('./catStat')
|
360
361
|
category_statistics = []
|
361
|
-
|
362
|
+
catstats.each do |catstat|
|
362
363
|
category_statistic = Nesstar::CategoryStatistic.new
|
363
|
-
a =
|
364
|
-
if a != nil
|
365
|
-
category_statistic.type = a.get_attribute('type').strip
|
364
|
+
a = catstat.attributes
|
365
|
+
if a != nil && a.get_attribute('type') != nil
|
366
|
+
category_statistic.type = a.get_attribute('type').value.strip
|
366
367
|
category_statistic.value = catstat.first.content.strip unless catstat.first == nil
|
367
368
|
category_statistics.push(category_statistic)
|
368
369
|
end
|
data/lib/nesstar-api/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,8 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nesstar-api
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
5
|
-
|
6
|
-
segments:
|
7
|
-
- 0
|
8
|
-
- 0
|
9
|
-
- 2
|
10
|
-
version: 0.0.2
|
4
|
+
prerelease:
|
5
|
+
version: 0.0.3
|
11
6
|
platform: ruby
|
12
7
|
authors:
|
13
8
|
- Ian Dunlop
|
@@ -15,7 +10,7 @@ autorequire:
|
|
15
10
|
bindir: bin
|
16
11
|
cert_chain: []
|
17
12
|
|
18
|
-
date: 2011-03-
|
13
|
+
date: 2011-03-11 00:00:00 +00:00
|
19
14
|
default_executable:
|
20
15
|
dependencies:
|
21
16
|
- !ruby/object:Gem::Dependency
|
@@ -26,11 +21,6 @@ dependencies:
|
|
26
21
|
requirements:
|
27
22
|
- - "="
|
28
23
|
- !ruby/object:Gem::Version
|
29
|
-
hash: 15
|
30
|
-
segments:
|
31
|
-
- 1
|
32
|
-
- 4
|
33
|
-
- 4
|
34
24
|
version: 1.4.4
|
35
25
|
type: :runtime
|
36
26
|
version_requirements: *id001
|
@@ -42,11 +32,6 @@ dependencies:
|
|
42
32
|
requirements:
|
43
33
|
- - "="
|
44
34
|
- !ruby/object:Gem::Version
|
45
|
-
hash: 61
|
46
|
-
segments:
|
47
|
-
- 0
|
48
|
-
- 8
|
49
|
-
- 1
|
50
35
|
version: 0.8.1
|
51
36
|
type: :runtime
|
52
37
|
version_requirements: *id002
|
@@ -58,11 +43,6 @@ dependencies:
|
|
58
43
|
requirements:
|
59
44
|
- - "="
|
60
45
|
- !ruby/object:Gem::Version
|
61
|
-
hash: 27
|
62
|
-
segments:
|
63
|
-
- 1
|
64
|
-
- 1
|
65
|
-
- 4
|
66
46
|
version: 1.1.4
|
67
47
|
type: :runtime
|
68
48
|
version_requirements: *id003
|
@@ -86,7 +66,7 @@ files:
|
|
86
66
|
- lib/nesstar-api/version.rb
|
87
67
|
- lib/nesstar-api.rb
|
88
68
|
has_rdoc: true
|
89
|
-
homepage: http://github.com/mygrid/
|
69
|
+
homepage: http://github.com/mygrid/nesstar-api
|
90
70
|
licenses: []
|
91
71
|
|
92
72
|
post_install_message:
|
@@ -99,23 +79,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
99
79
|
requirements:
|
100
80
|
- - ">="
|
101
81
|
- !ruby/object:Gem::Version
|
102
|
-
hash: 3
|
103
|
-
segments:
|
104
|
-
- 0
|
105
82
|
version: "0"
|
106
83
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
107
84
|
none: false
|
108
85
|
requirements:
|
109
86
|
- - ">="
|
110
87
|
- !ruby/object:Gem::Version
|
111
|
-
hash: 3
|
112
|
-
segments:
|
113
|
-
- 0
|
114
88
|
version: "0"
|
115
89
|
requirements: []
|
116
90
|
|
117
91
|
rubyforge_project: nesstar-api
|
118
|
-
rubygems_version: 1.
|
92
|
+
rubygems_version: 1.5.2
|
119
93
|
signing_key:
|
120
94
|
specification_version: 3
|
121
95
|
summary: Simple API for calling NESSTAR API and returning results
|