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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- YjhkNWIxNzNlZGVlNjk5OWI2NjA5NjE5YzM0ZWJhMTBjZGE3N2YyZQ==
4
+ ZWIxYmY5NjgzYTAwYTkxNDUzOGVlNDAyMWEzZGYwMDNjYTczYTFjYg==
5
5
  data.tar.gz: !binary |-
6
- MjM0MjhkYzAzODJmMWI1MTRlZDZjZjE2MzY4YzM3Y2VhZWY0ZjQyMw==
6
+ YjExYTk0NmMyY2VmZTRhMTg0ZWIwMzc2MDVmMDQ1MzU4MTRiZGEwNA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MTVkZWEwODBhZGQ3N2VkNDFiMDFmZDc0MjNiYzliOTk5MWRmZTBkZTY1MmVm
10
- N2YxMTdiMDVjMzk2Y2YwMDNhOWYyZDQ3NjViMDRkNGFlMjcxNDU4NTZkNGVl
11
- Yzg1OTMyY2Y0MWJlOTlkZGI0MzMzOWIzYmM1NWUwYzIyODBlYmE=
9
+ OGFkNzBkNmY5OTI1ZTAxN2Y3NTE3NTNlODM2ZDA3NGEyNDM2ZTI2ZjUxMThm
10
+ MDBkNTQ3ZjlhYWI4N2FiZmQ2MDMyYjQ0NmFjZWRmYzBlMjMwYTgyNGZlYTdi
11
+ MmRmMzhhYTIxZmFkZDdhNmVjYTEyODQyYTE3ZTM0YzZiZjgwYzE=
12
12
  data.tar.gz: !binary |-
13
- YWFiMWVlY2E0NWNjYmIxODMzMjk2NmU4Njg3NjU0YjY1NWIzMDZlNWMzZGM3
14
- Nzg4OGRjYWRkMTA5YTU3ODI3YzU4ZDZlOTZhOTFkZjZjOWQ2ZjI4N2Y3M2Ez
15
- ZWI4NjEzOGZjY2QzZWRlYTQ0MmRlZjIwYzdlZTZlNDY1YmMwMjA=
13
+ M2I2NmM3MGQ1MzIwZDg0NTA3OGI3NTMzNzBmOWI2OWE5ZmNkMDVhZDllYzNj
14
+ Nzk3ZmE5Nzc4NDg4MTVkYjJhYjE0NTZlZmUxNTIzYWVmYjE1NGQwNmE0ZmNl
15
+ MmQ5NjcxMTczZDNhMThmY2UyNThkNTE0NTZjN2QyOWY5M2VlYWY=
@@ -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
- # alias
298
- def authors
299
- a1
300
- end
297
+ alias :authors :primary_authors
298
+ alias :authors= :primary_authors=
301
299
 
302
300
  # alias
303
- def authors=(val)
304
- self.a1
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
@@ -1,3 +1,3 @@
1
1
  class Refworks
2
- VERSION = '0.0.19'
2
+ VERSION = '0.0.20'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: refworks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.19
4
+ version: 0.0.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fran Fabrizio