refworks 0.0.21 → 0.0.22
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/refworks/reference.rb +65 -66
- data/lib/refworks/version.rb +1 -1
- metadata +17 -8
- checksums.yaml +0 -15
data/lib/refworks/reference.rb
CHANGED
@@ -182,77 +182,76 @@ class Reference
|
|
182
182
|
@xml << "<rt>#{rt_string}</rt>" if @rt
|
183
183
|
@xml << "<sr>#{sr}</sr>" if @sr
|
184
184
|
@xml << "<id>#{id}</id>" if @id
|
185
|
-
a1.each {|a| @xml << "<a1>#{a}</a1>"} if @a1
|
186
|
-
@xml << "<t1>#{t1}</t1>" if @t1
|
187
|
-
@xml << "<jf>#{jf}</jf>" if @jf
|
188
|
-
@xml << "<jo>#{jo}</jo>" if @jo
|
189
|
-
@xml << "<yr>#{yr}</yr>" if @yr
|
190
|
-
@xml << "<fd>#{fd}</fd>" if @fd
|
191
|
-
@xml << "<vo>#{vo}</vo>" if @vo
|
192
|
-
@xml << "<is>#{is}</is>" if @is
|
193
|
-
@xml << "<sp>#{sp}</sp>" if @sp
|
194
|
-
@xml << "<op>#{op}</op>" if @op
|
195
|
-
k1.each {|k| @xml << "<k1>#{k}</k1>"} if @k1
|
196
|
-
@xml << "<ab>#{ab}</ab>" if @ab
|
197
|
-
@xml << "<no>#{no}</no>" if @no
|
198
|
-
a2.each {|a| @xml << "<a2>#{a}</a2>"} if @a2
|
199
|
-
@xml << "<t2>#{t2}</t2>" if @t2
|
200
|
-
@xml << "<ed>#{ed}</ed>" if @ed
|
201
|
-
@xml << "<pb>#{pb}</pb>" if @pb
|
202
|
-
@xml << "<pp>#{pp}</pp>" if @pp
|
203
|
-
a3.each {|a| @xml << "<a3>#{a}</a3>"} if @a3
|
204
|
-
a4.each {|a| @xml << "<a4>#{a}</a4>"} if @a4
|
205
|
-
a5.each {|a| @xml << "<a5>#{a}</a5>"} if @a5
|
206
|
-
@xml << "<t3>#{t3}</t3>" if @t3
|
207
|
-
@xml << "<sn>#{sn}</sn>" if @sn
|
208
|
-
@xml << "<av>#{av}</av>" if @av
|
209
|
-
@xml << "<ad>#{ad}</ad>" if @ad
|
210
|
-
@xml << "<an>#{an}</an>" if @an
|
211
|
-
@xml << "<la>#{la}</la>" if @la
|
212
|
-
@xml << "<cl>#{cl}</cl>" if @cl
|
213
|
-
@xml << "<sf>#{sf}</sf>" if @sf
|
214
|
-
@xml << "<ot>#{ot}</ot>" if @ot
|
215
|
-
@xml << "<lk>#{lk}</lk>" if @lk
|
216
|
-
@xml << "<do>#{@do}</do>" if @do
|
217
|
-
@xml << "<cn>#{cn}</cn>" if @cn
|
218
|
-
@xml << "<db>#{db}</db>" if @db
|
219
|
-
@xml << "<ds>#{ds}</ds>" if @ds
|
220
|
-
@xml << "<ip>#{ip}</ip>" if @ip
|
221
|
-
@xml << "<rd>#{rd}</rd>" if @rd
|
222
|
-
@xml << "<st>#{st}</st>" if @st
|
223
|
-
@xml << "<u1>#{u1}</u1>" if @u1
|
224
|
-
@xml << "<u2>#{u2}</u2>" if @u2
|
225
|
-
@xml << "<u3>#{u3}</u3>" if @u3
|
226
|
-
@xml << "<u4>#{u4}</u4>" if @u4
|
227
|
-
@xml << "<u5>#{u5}</u5>" if @u5
|
228
|
-
@xml << "<u6>#{u6}</u6>" if @u6
|
229
|
-
@xml << "<u7>#{u7}</u7>" if @u7
|
230
|
-
@xml << "<u8>#{u8}</u8>" if @u8
|
231
|
-
@xml << "<u9>#{u9}</u9>" if @u9
|
232
|
-
@xml << "<u10>#{u10}</u10>" if @u10
|
233
|
-
@xml << "<u11>#{u11}</u11>" if @u11
|
234
|
-
@xml << "<u12>#{u12}</u12>" if @u12
|
235
|
-
@xml << "<u13>#{u13}</u13>" if @u13
|
236
|
-
@xml << "<u14>#{u14}</u14>" if @u14
|
237
|
-
@xml << "<u15>#{u15}</u15>" if @u15
|
238
|
-
@xml << "<ul>#{ul}</ul>" if @ul
|
239
|
-
@xml << "<sl>#{sl}</sl>" if @sl
|
240
|
-
@xml << "<ll>#{ll}</ll>" if @ll
|
241
|
-
@xml << "<cr>#{cr}</cr>" if @cr
|
242
|
-
@xml << "<wt>#{wt}</wt>" if @wt
|
243
|
-
a6.each {|a| @xml << "<a6>#{a}</a6>"} if @a6
|
244
|
-
@xml << "<wv>#{wv}</wv>" if @wv
|
245
|
-
@xml << "<wp>#{wp}</wp>" if @wp
|
246
|
-
@xml << "<ol>#{ol}</ol>" if @ol
|
247
|
-
@xml << "<pmid>#{pmid}</pmid>" if @pmid
|
248
|
-
@xml << "<pmcid>#{pmcid}</pmcid>" if @pmcid
|
185
|
+
a1.each {|a| @xml << "<a1>#{CGI.escapeHTML(a)}</a1>"} if @a1
|
186
|
+
@xml << "<t1>#{CGI.escapeHTML(@t1)}</t1>" if @t1
|
187
|
+
@xml << "<jf>#{CGI.escapeHTML(@jf)}</jf>" if @jf
|
188
|
+
@xml << "<jo>#{CGI.escapeHTML(@jo)}</jo>" if @jo
|
189
|
+
@xml << "<yr>#{CGI.escapeHTML(@yr)}</yr>" if @yr
|
190
|
+
@xml << "<fd>#{CGI.escapeHTML(@fd)}</fd>" if @fd
|
191
|
+
@xml << "<vo>#{CGI.escapeHTML(@vo)}</vo>" if @vo
|
192
|
+
@xml << "<is>#{CGI.escapeHTML(@is)}</is>" if @is
|
193
|
+
@xml << "<sp>#{CGI.escapeHTML(@sp)}</sp>" if @sp
|
194
|
+
@xml << "<op>#{CGI.escapeHTML(@op)}</op>" if @op
|
195
|
+
k1.each {|k| @xml << "<k1>#{CGI.escapeHTML(k)}</k1>"} if @k1
|
196
|
+
@xml << "<ab>#{CGI.escapeHTML(@ab)}</ab>" if @ab
|
197
|
+
@xml << "<no>#{CGI.escapeHTML(@no)}</no>" if @no
|
198
|
+
a2.each {|a| @xml << "<a2>#{CGI.escapeHTML(a)}</a2>"} if @a2
|
199
|
+
@xml << "<t2>#{CGI.escapeHTML(@t2)}</t2>" if @t2
|
200
|
+
@xml << "<ed>#{CGI.escapeHTML(@ed)}</ed>" if @ed
|
201
|
+
@xml << "<pb>#{CGI.escapeHTML(@pb)}</pb>" if @pb
|
202
|
+
@xml << "<pp>#{CGI.escapeHTML(@pp)}</pp>" if @pp
|
203
|
+
a3.each {|a| @xml << "<a3>#{CGI.escapeHTML(a)}</a3>"} if @a3
|
204
|
+
a4.each {|a| @xml << "<a4>#{CGI.escapeHTML(a)}</a4>"} if @a4
|
205
|
+
a5.each {|a| @xml << "<a5>#{CGI.escapeHTML(a)}</a5>"} if @a5
|
206
|
+
@xml << "<t3>#{CGI.escapeHTML(@t3)}</t3>" if @t3
|
207
|
+
@xml << "<sn>#{CGI.escapeHTML(@sn)}</sn>" if @sn
|
208
|
+
@xml << "<av>#{CGI.escapeHTML(@av)}</av>" if @av
|
209
|
+
@xml << "<ad>#{CGI.escapeHTML(@ad)}</ad>" if @ad
|
210
|
+
@xml << "<an>#{CGI.escapeHTML(@an)}</an>" if @an
|
211
|
+
@xml << "<la>#{CGI.escapeHTML(@la)}</la>" if @la
|
212
|
+
@xml << "<cl>#{CGI.escapeHTML(@cl)}</cl>" if @cl
|
213
|
+
@xml << "<sf>#{CGI.escapeHTML(@sf)}</sf>" if @sf
|
214
|
+
@xml << "<ot>#{CGI.escapeHTML(@ot)}</ot>" if @ot
|
215
|
+
@xml << "<lk>#{CGI.escapeHTML(@lk)}</lk>" if @lk
|
216
|
+
@xml << "<do>#{CGI.escapeHTML(@do)}</do>" if @do
|
217
|
+
@xml << "<cn>#{CGI.escapeHTML(@cn)}</cn>" if @cn
|
218
|
+
@xml << "<db>#{CGI.escapeHTML(@db)}</db>" if @db
|
219
|
+
@xml << "<ds>#{CGI.escapeHTML(@ds)}</ds>" if @ds
|
220
|
+
@xml << "<ip>#{CGI.escapeHTML(@ip)}</ip>" if @ip
|
221
|
+
@xml << "<rd>#{CGI.escapeHTML(@rd)}</rd>" if @rd
|
222
|
+
@xml << "<st>#{CGI.escapeHTML(@st)}</st>" if @st
|
223
|
+
@xml << "<u1>#{CGI.escapeHTML(@u1)}</u1>" if @u1
|
224
|
+
@xml << "<u2>#{CGI.escapeHTML(@u2)}</u2>" if @u2
|
225
|
+
@xml << "<u3>#{CGI.escapeHTML(@u3)}</u3>" if @u3
|
226
|
+
@xml << "<u4>#{CGI.escapeHTML(@u4)}</u4>" if @u4
|
227
|
+
@xml << "<u5>#{CGI.escapeHTML(@u5)}</u5>" if @u5
|
228
|
+
@xml << "<u6>#{CGI.escapeHTML(@u6)}</u6>" if @u6
|
229
|
+
@xml << "<u7>#{CGI.escapeHTML(@u7)}</u7>" if @u7
|
230
|
+
@xml << "<u8>#{CGI.escapeHTML(@u8)}</u8>" if @u8
|
231
|
+
@xml << "<u9>#{CGI.escapeHTML(@u9)}</u9>" if @u9
|
232
|
+
@xml << "<u10>#{CGI.escapeHTML(@u10)}</u10>" if @u10
|
233
|
+
@xml << "<u11>#{CGI.escapeHTML(@u11)}</u11>" if @u11
|
234
|
+
@xml << "<u12>#{CGI.escapeHTML(@u12)}</u12>" if @u12
|
235
|
+
@xml << "<u13>#{CGI.escapeHTML(@u13)}</u13>" if @u13
|
236
|
+
@xml << "<u14>#{CGI.escapeHTML(@u14)}</u14>" if @u14
|
237
|
+
@xml << "<u15>#{CGI.escapeHTML(@u15)}</u15>" if @u15
|
238
|
+
@xml << "<ul>#{CGI.escapeHTML(@ul)}</ul>" if @ul
|
239
|
+
@xml << "<sl>#{CGI.escapeHTML(@sl)}</sl>" if @sl
|
240
|
+
@xml << "<ll>#{CGI.escapeHTML(@ll)}</ll>" if @ll
|
241
|
+
@xml << "<cr>#{CGI.escapeHTML(@cr)}</cr>" if @cr
|
242
|
+
@xml << "<wt>#{CGI.escapeHTML(@wt)}</wt>" if @wt
|
243
|
+
a6.each {|a| @xml << "<a6>#{CGI.escapeHTML(a)}</a6>"} if @a6
|
244
|
+
@xml << "<wv>#{CGI.escapeHTML(@wv)}</wv>" if @wv
|
245
|
+
@xml << "<wp>#{CGI.escapeHTML(@wp)}</wp>" if @wp
|
246
|
+
@xml << "<ol>#{CGI.escapeHTML(@ol)}</ol>" if @ol
|
247
|
+
@xml << "<pmid>#{CGI.escapeHTML(@pmid)}</pmid>" if @pmid
|
248
|
+
@xml << "<pmcid>#{CGI.escapeHTML(@pmcid)}</pmcid>" if @pmcid
|
249
249
|
# suppressing these - they are not part of the spec and RW trips if you try to add a ref with these
|
250
250
|
#@xml << "<fl>#{fl}</fl>" if @fl
|
251
251
|
#@xml << "<cd>#{cd}</cd>" if @cd
|
252
252
|
#@xml << "<md>#{md}</md>" if @md
|
253
253
|
|
254
254
|
@xml << "</reference>"
|
255
|
-
@xml
|
256
255
|
end
|
257
256
|
|
258
257
|
# setup human-readable aliases as accessors
|
@@ -841,7 +840,7 @@ class Reference
|
|
841
840
|
end
|
842
841
|
|
843
842
|
# extension
|
844
|
-
def
|
843
|
+
def modified_date
|
845
844
|
md
|
846
845
|
end
|
847
846
|
|
data/lib/refworks/version.rb
CHANGED
metadata
CHANGED
@@ -1,18 +1,20 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: refworks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.22
|
5
|
+
prerelease:
|
5
6
|
platform: ruby
|
6
7
|
authors:
|
7
8
|
- Fran Fabrizio
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date: 2014-
|
12
|
+
date: 2014-08-12 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: httparty
|
15
16
|
requirement: !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
16
18
|
requirements:
|
17
19
|
- - ! '>='
|
18
20
|
- !ruby/object:Gem::Version
|
@@ -20,6 +22,7 @@ dependencies:
|
|
20
22
|
type: :runtime
|
21
23
|
prerelease: false
|
22
24
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
23
26
|
requirements:
|
24
27
|
- - ! '>='
|
25
28
|
- !ruby/object:Gem::Version
|
@@ -27,6 +30,7 @@ dependencies:
|
|
27
30
|
- !ruby/object:Gem::Dependency
|
28
31
|
name: require_all
|
29
32
|
requirement: !ruby/object:Gem::Requirement
|
33
|
+
none: false
|
30
34
|
requirements:
|
31
35
|
- - ! '>='
|
32
36
|
- !ruby/object:Gem::Version
|
@@ -34,6 +38,7 @@ dependencies:
|
|
34
38
|
type: :runtime
|
35
39
|
prerelease: false
|
36
40
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
37
42
|
requirements:
|
38
43
|
- - ! '>='
|
39
44
|
- !ruby/object:Gem::Version
|
@@ -41,6 +46,7 @@ dependencies:
|
|
41
46
|
- !ruby/object:Gem::Dependency
|
42
47
|
name: mash
|
43
48
|
requirement: !ruby/object:Gem::Requirement
|
49
|
+
none: false
|
44
50
|
requirements:
|
45
51
|
- - ! '>='
|
46
52
|
- !ruby/object:Gem::Version
|
@@ -48,6 +54,7 @@ dependencies:
|
|
48
54
|
type: :runtime
|
49
55
|
prerelease: false
|
50
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
51
58
|
requirements:
|
52
59
|
- - ! '>='
|
53
60
|
- !ruby/object:Gem::Version
|
@@ -60,8 +67,6 @@ executables: []
|
|
60
67
|
extensions: []
|
61
68
|
extra_rdoc_files: []
|
62
69
|
files:
|
63
|
-
- README.md
|
64
|
-
- lib/refworks.rb
|
65
70
|
- lib/refworks/authentication/authentication_request.rb
|
66
71
|
- lib/refworks/authentication/authentication_response.rb
|
67
72
|
- lib/refworks/authentication/delsess/authentication_delsess_request.rb
|
@@ -151,7 +156,6 @@ files:
|
|
151
156
|
- lib/refworks/properties/typelabels/properties_typelabels_request.rb
|
152
157
|
- lib/refworks/properties/typelabels/properties_typelabels_response.rb
|
153
158
|
- lib/refworks/properties/typelabels/typelabel.rb
|
154
|
-
- lib/refworks/reference.rb
|
155
159
|
- lib/refworks/reference/add/reference_add_request.rb
|
156
160
|
- lib/refworks/reference/add/reference_add_response.rb
|
157
161
|
- lib/refworks/reference/addcomment/reference_addcomment_request.rb
|
@@ -164,6 +168,7 @@ files:
|
|
164
168
|
- lib/refworks/reference/get/reference_get_response.rb
|
165
169
|
- lib/refworks/reference/reference_request.rb
|
166
170
|
- lib/refworks/reference/reference_response.rb
|
171
|
+
- lib/refworks/reference.rb
|
167
172
|
- lib/refworks/request.rb
|
168
173
|
- lib/refworks/response.rb
|
169
174
|
- lib/refworks/retrieve/advancesearch/retrieve_advancesearch_request.rb
|
@@ -206,27 +211,31 @@ files:
|
|
206
211
|
- lib/refworks/savedsearch/savedsearch_request.rb
|
207
212
|
- lib/refworks/savedsearch/savedsearch_response.rb
|
208
213
|
- lib/refworks/version.rb
|
214
|
+
- lib/refworks.rb
|
215
|
+
- README.md
|
209
216
|
homepage: http://github.umn.edu/mpc/refworks-api-ruby
|
210
217
|
licenses: []
|
211
|
-
metadata: {}
|
212
218
|
post_install_message:
|
213
219
|
rdoc_options: []
|
214
220
|
require_paths:
|
215
221
|
- lib
|
216
222
|
required_ruby_version: !ruby/object:Gem::Requirement
|
223
|
+
none: false
|
217
224
|
requirements:
|
218
225
|
- - ! '>='
|
219
226
|
- !ruby/object:Gem::Version
|
220
227
|
version: 1.9.2
|
221
228
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
229
|
+
none: false
|
222
230
|
requirements:
|
223
231
|
- - ! '>='
|
224
232
|
- !ruby/object:Gem::Version
|
225
233
|
version: 1.3.6
|
226
234
|
requirements: []
|
227
235
|
rubyforge_project: refworks
|
228
|
-
rubygems_version:
|
236
|
+
rubygems_version: 1.8.24
|
229
237
|
signing_key:
|
230
|
-
specification_version:
|
238
|
+
specification_version: 3
|
231
239
|
summary: A Ruby interface to the RefWorks API.
|
232
240
|
test_files: []
|
241
|
+
has_rdoc:
|
checksums.yaml
DELETED
@@ -1,15 +0,0 @@
|
|
1
|
-
---
|
2
|
-
!binary "U0hBMQ==":
|
3
|
-
metadata.gz: !binary |-
|
4
|
-
M2E0MTc5OGNiYmMwMzZhMmEyZTI3MDhlY2JiOGMwNTVkNmVhMjA2Ng==
|
5
|
-
data.tar.gz: !binary |-
|
6
|
-
Yjk4YTFhYzA4ZjVlMWMzMjM0YjBhNWM4OGQ1M2QwZDc4MjlkMTBjZg==
|
7
|
-
SHA512:
|
8
|
-
metadata.gz: !binary |-
|
9
|
-
MGI5MGVlNDFjZjA5N2ZkNDllNDg5YzE4YmZiNWUxNDQwMzAzMThlMzhlNzQz
|
10
|
-
MDgzNWRhZjIwZWZiMDc0Yzc4NTNmYjQxYjM5YmIxY2M5OTJjM2VjYjYwZTQw
|
11
|
-
NDNlZmI5YmU4ZjRjOGJjOTMzM2FiNTI1NzdiMzA1ZjcxZWU1YTE=
|
12
|
-
data.tar.gz: !binary |-
|
13
|
-
NDI0NWM2YTJlNjZkNWFjZjdjNzg3YjI5NjdjY2I2NGU4ZTM0YzY4MWNjNWE0
|
14
|
-
NzBmYzg5YWZmZTlhY2RjODNjOGQ1N2RmYWFiZmViYmFjOTY5MTgzODllYTdm
|
15
|
-
ZGIwZjgyMGYyM2YwOTY4ZGVmNGI5YzE5ODFkZjBiZjJmYzJlOTM=
|