citero-jruby 2.1.0 → 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/citero-jruby/base.rb +5 -1
- data/lib/citero-jruby/version.rb +1 -1
- metadata +1 -1
data/lib/citero-jruby/base.rb
CHANGED
@@ -68,7 +68,11 @@ module Citero
|
|
68
68
|
# return value as a string.
|
69
69
|
def to format
|
70
70
|
#Formats are enums in java, so they are all uppercase
|
71
|
-
|
71
|
+
if to_formats.include? format
|
72
|
+
@citero::to(Formats::valueOf(format.upcase))
|
73
|
+
else
|
74
|
+
@citero::to(CitationStyles::valueOf(format.upcase))
|
75
|
+
end
|
72
76
|
#rescue any exceptions, if the error is not caught in JAR, most likely a
|
73
77
|
#problem with the source format
|
74
78
|
rescue Exception => e
|
data/lib/citero-jruby/version.rb
CHANGED