citero-jruby 2.1.0 → 2.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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