refworks 0.0.19 → 0.0.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/refworks/reference.rb +17 -14
- data/lib/refworks/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
ZWIxYmY5NjgzYTAwYTkxNDUzOGVlNDAyMWEzZGYwMDNjYTczYTFjYg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
YjExYTk0NmMyY2VmZTRhMTg0ZWIwMzc2MDVmMDQ1MzU4MTRiZGEwNA==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
OGFkNzBkNmY5OTI1ZTAxN2Y3NTE3NTNlODM2ZDA3NGEyNDM2ZTI2ZjUxMThm
|
10
|
+
MDBkNTQ3ZjlhYWI4N2FiZmQ2MDMyYjQ0NmFjZWRmYzBlMjMwYTgyNGZlYTdi
|
11
|
+
MmRmMzhhYTIxZmFkZDdhNmVjYTEyODQyYTE3ZTM0YzZiZjgwYzE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
M2I2NmM3MGQ1MzIwZDg0NTA3OGI3NTMzNzBmOWI2OWE5ZmNkMDVhZDllYzNj
|
14
|
+
Nzk3ZmE5Nzc4NDg4MTVkYjJhYjE0NTZlZmUxNTIzYWVmYjE1NGQwNmE0ZmNl
|
15
|
+
MmQ5NjcxMTczZDNhMThmY2UyNThkNTE0NTZjN2QyOWY5M2VlYWY=
|
data/lib/refworks/reference.rb
CHANGED
@@ -148,31 +148,31 @@ class Reference
|
|
148
148
|
# this probably could be cleaned up with some sort of metaprogramming hack, but it's only seven of 'em
|
149
149
|
|
150
150
|
def k1=(val)
|
151
|
-
@k1 = val.is_a?(Array) ? val : val.lines.to_a
|
151
|
+
@k1 = (val.is_a?(Array) || val.nil?) ? val : val.lines.to_a
|
152
152
|
end
|
153
153
|
|
154
154
|
def a1=(val)
|
155
|
-
@a1 = val.is_a?(Array) ? val : val.lines.to_a
|
155
|
+
@a1 = (val.is_a?(Array) || val.nil?) ? val : val.lines.to_a
|
156
156
|
end
|
157
157
|
|
158
158
|
def a2=(val)
|
159
|
-
@a2 = val.is_a?(Array) ? val : val.lines.to_a
|
159
|
+
@a2 = (val.is_a?(Array) || val.nil?) ? val : val.lines.to_a
|
160
160
|
end
|
161
161
|
|
162
162
|
def a3=(val)
|
163
|
-
@a3 = val.is_a?(Array) ? val : val.lines.to_a
|
163
|
+
@a3 = (val.is_a?(Array) || val.nil?) ? val : val.lines.to_a
|
164
164
|
end
|
165
165
|
|
166
166
|
def a4=(val)
|
167
|
-
@a4 = val.is_a?(Array) ? val : val.lines.to_a
|
167
|
+
@a4 = (val.is_a?(Array) || val.nil?) ? val : val.lines.to_a
|
168
168
|
end
|
169
169
|
|
170
170
|
def a5=(val)
|
171
|
-
@a5 = val.is_a?(Array) ? val : val.lines.to_a
|
171
|
+
@a5 = (val.is_a?(Array) || val.nil?) ? val : val.lines.to_a
|
172
172
|
end
|
173
173
|
|
174
174
|
def a6=(val)
|
175
|
-
@a6 = val.is_a?(Array) ? val : val.lines.to_a
|
175
|
+
@a6 = (val.is_a?(Array) || val.nil?) ? val : val.lines.to_a
|
176
176
|
end
|
177
177
|
|
178
178
|
# method to produce RefWorks XML format
|
@@ -294,15 +294,18 @@ class Reference
|
|
294
294
|
self.a1 = val
|
295
295
|
end
|
296
296
|
|
297
|
-
|
298
|
-
|
299
|
-
a1
|
300
|
-
end
|
297
|
+
alias :authors :primary_authors
|
298
|
+
alias :authors= :primary_authors=
|
301
299
|
|
302
300
|
# alias
|
303
|
-
def authors
|
304
|
-
|
305
|
-
end
|
301
|
+
# def authors
|
302
|
+
# a1
|
303
|
+
# end
|
304
|
+
|
305
|
+
# # alias
|
306
|
+
# def authors=(val)
|
307
|
+
# self.a1
|
308
|
+
# end
|
306
309
|
|
307
310
|
def primary_title
|
308
311
|
t1
|
data/lib/refworks/version.rb
CHANGED