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.
@@ -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