aboutsummaryrefslogtreecommitdiffhomepage
path: root/lib/sisu/v3/author_format.rb
diff options
context:
space:
mode:
authorRalph Amissah <ralph@amissah.com>2011-03-02 22:54:28 -0500
committerRalph Amissah <ralph@amissah.com>2011-03-02 22:54:28 -0500
commit0569fd776ab4ce33689ca3337acd62f2415b6348 (patch)
tree4644037b28d876d8637a610f5df1a29535a4ef9a /lib/sisu/v3/author_format.rb
parentdebian/changelog (3.0.1-1) (diff)
parentCHANGELOG_v{1,2,3}, syslink, avoid duplication (diff)
Merge branch 'upstream' into debian/sid
Diffstat (limited to 'lib/sisu/v3/author_format.rb')
-rw-r--r--lib/sisu/v3/author_format.rb18
1 files changed, 9 insertions, 9 deletions
diff --git a/lib/sisu/v3/author_format.rb b/lib/sisu/v3/author_format.rb
index d98376bf..847ea888 100644
--- a/lib/sisu/v3/author_format.rb
+++ b/lib/sisu/v3/author_format.rb
@@ -1,4 +1,4 @@
-# coding: utf-8
+# encoding: utf-8
=begin
* Name: SiSU
@@ -67,17 +67,17 @@ module FORMAT
authors.each do |a|
a.strip!
if a =~/"(.+?)"/
- @authors << { :the => $1 }
+ @authors << { the: $1 }
@author_array << $1.upcase
else #if a =~/,/
x=a.scan(/[^,]+/)
x[0].strip!
x[1].strip! if x[1]
if x.length==1
- @authors << { :the => x[0] }
+ @authors << { the: x[0] }
@author_array << x[0].upcase
elsif x.length==2
- @authors << { :the=> x[0], :others => x[1] }
+ @authors << { the: x[0], others: x[1] }
@author_array << "#{x[0].upcase}, #{x[1]}"
else #p x.length
end
@@ -101,11 +101,11 @@ module FORMAT
end
end
{
- :last_first_a => authors,
- :last_first_format_a => @author_array,
- :authors_h => @authors,
- :authors_s => authors_string,
- :authors_param => @author_param
+ last_first_a: authors,
+ last_first_format_a: @author_array,
+ authors_h: @authors,
+ authors_s: authors_string,
+ authors_param: @author_param
}
end
end