refworks 0.0.13 → 0.0.14

Sign up to get free protection for your applications and to get access to all the features.
@@ -45,9 +45,8 @@ class Reference
45
45
  # to a Ruby data structure. Which one it produces depends upon how
46
46
  # many authors there are. All values are converted to Arrays, even one item
47
47
  # values, for consistency. I do this for any field which can have more than one value.
48
- # To accomplish this, I use the "friendly name" setters (e.g. self.authors) so that I don't
49
- # have to override the auto-generated setters that are created via attr_accessor. This affects
50
- # the a1-a6 fields plus the k1 field.
48
+ # To accomplish this, I provide custom setters instead of the auto-generated setters
49
+ # that are created via attr_accessor. This affects a1-a6 plus k1 attributes.
51
50
  @a1 = self.a1=(ref[:a1])
52
51
 
53
52
  @t1 = ref[:t1]
@@ -193,7 +192,7 @@ class Reference
193
192
  @xml << "<is>#{is}</is>" if @is
194
193
  @xml << "<sp>#{sp}</sp>" if @sp
195
194
  @xml << "<op>#{op}</op>" if @op
196
- k1.each {|k| @xml << "<k1>#{k1}</k1>"} if @k1
195
+ k1.each {|k| @xml << "<k1>#{k}</k1>"} if @k1
197
196
  @xml << "<ab>#{ab}</ab>" if @ab
198
197
  @xml << "<no>#{no}</no>" if @no
199
198
  a2.each {|a| @xml << "<a2>#{a}</a2>"} if @a2
@@ -1,3 +1,3 @@
1
1
  class Refworks
2
- VERSION = '0.0.13'
2
+ VERSION = '0.0.14'
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.13
4
+ version: 0.0.14
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: