citeproc 1.0.5 → 1.0.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/citeproc/compatibility.rb +30 -21
- data/lib/citeproc/variable.rb +1 -1
- data/lib/citeproc/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 293e1953976b7574acaa7e77ab7600ddf50e416c
|
4
|
+
data.tar.gz: cfb1629d9c932d45b197326c62fa82a92a3ab843
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cbac4a3a6f3b72e210f1a4d50c4b3859193f3ce07771600daa084398b250c396e23c6d4c45a8943f95f87af65e01510bf67e5e337fa07dced5eb002a515c585b
|
7
|
+
data.tar.gz: '0481c34692b1c0dcd5ce885e1e072f11088d327d1bb7f7ab67f69e6ca01402b581afdc74620852f13fab6f1a70e683b4ccc39fb49cc8ca65845bc23c3e895cc5'
|
@@ -23,47 +23,56 @@ if RUBY_PLATFORM =~ /java/i
|
|
23
23
|
else
|
24
24
|
|
25
25
|
module CiteProc
|
26
|
-
|
27
|
-
begin
|
28
|
-
require 'unicode'
|
29
|
-
|
26
|
+
if RUBY_VERSION >= '2.3'
|
30
27
|
def upcase(string)
|
31
|
-
|
28
|
+
string.upcase
|
32
29
|
end
|
33
30
|
|
34
31
|
def downcase(string)
|
35
|
-
|
32
|
+
string.downcase
|
36
33
|
end
|
37
|
-
|
34
|
+
else
|
38
35
|
begin
|
39
|
-
require '
|
36
|
+
require 'unicode'
|
40
37
|
|
41
38
|
def upcase(string)
|
42
|
-
|
39
|
+
Unicode.upcase(string)
|
43
40
|
end
|
44
41
|
|
45
42
|
def downcase(string)
|
46
|
-
|
43
|
+
Unicode.downcase(string)
|
47
44
|
end
|
48
45
|
rescue LoadError
|
49
46
|
begin
|
50
|
-
require '
|
47
|
+
require 'unicode_utils'
|
51
48
|
|
52
49
|
def upcase(string)
|
53
|
-
|
50
|
+
UnicodeUtils.upcase(string)
|
54
51
|
end
|
55
52
|
|
56
53
|
def downcase(string)
|
57
|
-
|
54
|
+
UnicodeUtils.downcase(string)
|
58
55
|
end
|
59
|
-
rescue
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
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
|
67
76
|
end
|
68
77
|
end
|
69
78
|
end
|
data/lib/citeproc/variable.rb
CHANGED
@@ -35,7 +35,7 @@ module CiteProc
|
|
35
35
|
first-reference-note-number genre ISBN ISSN jurisdiction keyword
|
36
36
|
locator medium note original-publisher original-publisher-place
|
37
37
|
original-title page page-first PMID PMCID publisher publisher-place
|
38
|
-
references reviewed-
|
38
|
+
references reviewed-title scale section source status
|
39
39
|
title title-short URL version year-suffix
|
40
40
|
}
|
41
41
|
})
|
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.6
|
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: 2017-11-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: namae
|
@@ -881,7 +881,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
881
881
|
version: '0'
|
882
882
|
requirements: []
|
883
883
|
rubyforge_project:
|
884
|
-
rubygems_version: 2.6.
|
884
|
+
rubygems_version: 2.6.13
|
885
885
|
signing_key:
|
886
886
|
specification_version: 4
|
887
887
|
summary: A cite processor interface.
|