citeproc 1.0.8 → 1.0.9
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.
- checksums.yaml +5 -5
- data/Gemfile +1 -0
- data/lib/citeproc/compatibility.rb +10 -31
- data/lib/citeproc/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 20a2ab14fd3b94de5314f42db4bd136c846439ec469536c1f81eff599d47773f
|
4
|
+
data.tar.gz: b6a2ddded0041d6ae7ca23f93de114adad73398a277905f6e0b4c9699c2c3d90
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 54b1fd589e6d2c789857b0a62587998b5545a4fb81f22ef3b31e85c688f4320ade9c883414858fa12cf7b57352970ddf8135792964bdd626e07332ed2cfdf955
|
7
|
+
data.tar.gz: 7b7252e7a1a0687f0921e8d3b3570f9d7977a170ab2942c4646f0781344840d32520f251aa54fb42bd36bdd84f3d32cd4ddcd6a41895f8ec64d0fc0d03fadef1
|
data/Gemfile
CHANGED
@@ -10,7 +10,6 @@ if RUBY_PLATFORM =~ /java/i
|
|
10
10
|
puts java.lang.System.getProperty('file.encoding')
|
11
11
|
|
12
12
|
module CiteProc
|
13
|
-
|
14
13
|
def upcase(string)
|
15
14
|
java.lang.String.new(string).to_upper_case(java.util.Locale::ENGLISH).to_s
|
16
15
|
end
|
@@ -23,7 +22,7 @@ if RUBY_PLATFORM =~ /java/i
|
|
23
22
|
else
|
24
23
|
|
25
24
|
module CiteProc
|
26
|
-
if RUBY_VERSION >= '2.
|
25
|
+
if RUBY_VERSION >= '2.4'
|
27
26
|
def upcase(string)
|
28
27
|
string.upcase
|
29
28
|
end
|
@@ -32,48 +31,28 @@ else
|
|
32
31
|
string.downcase
|
33
32
|
end
|
34
33
|
else
|
34
|
+
# Ruby 2.3 and older require extra Gems
|
35
35
|
begin
|
36
|
-
require '
|
37
|
-
|
36
|
+
require 'unicode_utils'
|
38
37
|
def upcase(string)
|
39
|
-
|
38
|
+
UnicodeUtils.upcase(string)
|
40
39
|
end
|
41
40
|
|
42
41
|
def downcase(string)
|
43
|
-
|
42
|
+
UnicodeUtils.downcase(string)
|
44
43
|
end
|
45
44
|
rescue LoadError
|
46
45
|
begin
|
47
|
-
require '
|
48
|
-
|
46
|
+
require 'unicode'
|
49
47
|
def upcase(string)
|
50
|
-
|
48
|
+
Unicode.upcase(string)
|
51
49
|
end
|
52
50
|
|
53
51
|
def downcase(string)
|
54
|
-
|
55
|
-
end
|
56
|
-
rescue
|
57
|
-
begin
|
58
|
-
require 'active_support/multibyte/chars'
|
59
|
-
|
60
|
-
def upcase(string)
|
61
|
-
ActiveSupport::Multibyte::Chars.new(string).upcase.to_s
|
62
|
-
end
|
63
|
-
|
64
|
-
def downcase(string)
|
65
|
-
ActiveSupport::Multibyte::Chars.new(string).downcase.to_s
|
66
|
-
end
|
67
|
-
rescue
|
68
|
-
|
69
|
-
def upcase(string)
|
70
|
-
string.upcase
|
71
|
-
end
|
72
|
-
|
73
|
-
def downcase(string)
|
74
|
-
string.downcase
|
75
|
-
end
|
52
|
+
Unicode.downcase(string)
|
76
53
|
end
|
54
|
+
rescue LoadError
|
55
|
+
warn "CiteProc requires the `unicode_utils` or `unicode` Gem on Ruby 2.3"
|
77
56
|
end
|
78
57
|
end
|
79
58
|
end
|
data/lib/citeproc/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: citeproc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sylvester Keil
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-03-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: namae
|
@@ -77,7 +77,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
77
77
|
version: '0'
|
78
78
|
requirements: []
|
79
79
|
rubyforge_project:
|
80
|
-
rubygems_version: 2.
|
80
|
+
rubygems_version: 2.7.4
|
81
81
|
signing_key:
|
82
82
|
specification_version: 4
|
83
83
|
summary: A cite processor interface.
|