citeproc 1.1.0 → 1.3.0
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 +4 -4
- data/README.md +67 -66
- data/lib/citeproc/attributes.rb +2 -2
- data/lib/citeproc/bibliography.rb +1 -1
- data/lib/citeproc/citation_data.rb +89 -5
- data/lib/citeproc/compatibility.rb +5 -34
- data/lib/citeproc/date.rb +89 -49
- data/lib/citeproc/names.rb +42 -46
- data/lib/citeproc/number.rb +14 -9
- data/lib/citeproc/selector.rb +5 -4
- data/lib/citeproc/utilities.rb +11 -0
- data/lib/citeproc/variable.rb +24 -7
- data/lib/citeproc/version.rb +1 -1
- metadata +4 -13
- data/.document +0 -5
- data/.github/workflows/ci.yml +0 -33
- data/.yardopts +0 -2
- data/AGPL +0 -662
- data/Gemfile +0 -34
- data/Rakefile +0 -64
data/Gemfile
DELETED
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
source 'https://rubygems.org'
|
|
2
|
-
gemspec
|
|
3
|
-
|
|
4
|
-
group :debug do
|
|
5
|
-
gem 'debug', '>= 1.0.0', require: false, platforms: :mri
|
|
6
|
-
gem 'ruby-debug', require: false, platforms: :jruby
|
|
7
|
-
end
|
|
8
|
-
|
|
9
|
-
group :optional do
|
|
10
|
-
gem 'nokogiri'
|
|
11
|
-
gem 'chronic', require: false
|
|
12
|
-
gem 'edtf'
|
|
13
|
-
gem 'bibtex-ruby', require: 'bibtex'
|
|
14
|
-
gem 'citeproc-ruby' #, github: 'inukshuk/citeproc-ruby'
|
|
15
|
-
#gem 'csl', github: 'inukshuk/csl-ruby'
|
|
16
|
-
end
|
|
17
|
-
|
|
18
|
-
group :development do
|
|
19
|
-
gem 'rake'
|
|
20
|
-
gem 'cucumber'
|
|
21
|
-
gem 'rspec'
|
|
22
|
-
gem 'unicode_utils', require: false unless RUBY_VERSION >= '2.4'
|
|
23
|
-
gem 'csl-styles', '~>2.0', require: false
|
|
24
|
-
end
|
|
25
|
-
|
|
26
|
-
group :coverage do
|
|
27
|
-
gem 'simplecov', require: false
|
|
28
|
-
gem 'simplecov-lcov', require: false
|
|
29
|
-
end
|
|
30
|
-
|
|
31
|
-
group :extra do
|
|
32
|
-
gem 'yard'
|
|
33
|
-
gem 'redcarpet', platform: :mri
|
|
34
|
-
end
|
data/Rakefile
DELETED
|
@@ -1,64 +0,0 @@
|
|
|
1
|
-
# encoding: utf-8
|
|
2
|
-
|
|
3
|
-
require 'bundler'
|
|
4
|
-
begin
|
|
5
|
-
Bundler.setup
|
|
6
|
-
rescue Bundler::BundlerError => e
|
|
7
|
-
$stderr.puts e.message
|
|
8
|
-
$stderr.puts "Run `bundle install` to install missing gems"
|
|
9
|
-
exit e.status_code
|
|
10
|
-
end
|
|
11
|
-
|
|
12
|
-
$:.unshift(File.join(File.dirname(__FILE__), './lib'))
|
|
13
|
-
require 'citeproc/version'
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
desc 'Run an IRB session with CiteProc loaded'
|
|
17
|
-
task :console do
|
|
18
|
-
require 'pry'
|
|
19
|
-
require 'citeproc'
|
|
20
|
-
|
|
21
|
-
Pry.start
|
|
22
|
-
end
|
|
23
|
-
|
|
24
|
-
task :check_warnings do
|
|
25
|
-
$VERBOSE = true
|
|
26
|
-
require 'citeproc'
|
|
27
|
-
|
|
28
|
-
puts CiteProc::VERSION
|
|
29
|
-
end
|
|
30
|
-
|
|
31
|
-
require 'rspec/core'
|
|
32
|
-
require 'rspec/core/rake_task'
|
|
33
|
-
RSpec::Core::RakeTask.new(:spec) do |spec|
|
|
34
|
-
spec.pattern = FileList['spec/**/*_spec.rb']
|
|
35
|
-
end
|
|
36
|
-
|
|
37
|
-
require 'cucumber/rake/task'
|
|
38
|
-
Cucumber::Rake::Task.new(:cucumber)
|
|
39
|
-
|
|
40
|
-
begin
|
|
41
|
-
require 'coveralls/rake/task'
|
|
42
|
-
Coveralls::RakeTask.new
|
|
43
|
-
task :test_with_coveralls => [:spec, 'coveralls:push']
|
|
44
|
-
rescue LoadError => e
|
|
45
|
-
# ignore
|
|
46
|
-
end
|
|
47
|
-
|
|
48
|
-
task :release do |t|
|
|
49
|
-
system "gem build citeproc.gemspec"
|
|
50
|
-
system "git tag #{CiteProc::VERSION}"
|
|
51
|
-
system "git push --tags"
|
|
52
|
-
system "gem push citeproc-#{CiteProc::VERSION}.gem"
|
|
53
|
-
end
|
|
54
|
-
|
|
55
|
-
task :default => :spec
|
|
56
|
-
|
|
57
|
-
begin
|
|
58
|
-
require 'yard'
|
|
59
|
-
YARD::Rake::YardocTask.new
|
|
60
|
-
rescue LoadError => e
|
|
61
|
-
# ignore
|
|
62
|
-
end
|
|
63
|
-
|
|
64
|
-
require './tasks/testsuite'
|