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.
@@ -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
- @citero::to(Formats::valueOf(format.upcase))
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
@@ -1,4 +1,4 @@
1
1
  module Citero
2
2
  # Citeros current version
3
- VERSION = "2.1.0"
3
+ VERSION = "2.1.1"
4
4
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: citero-jruby
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 2.1.0
5
+ version: 2.1.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - hab278