csl 2.2.1 → 2.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 +58 -44
- data/lib/csl/compatibility.rb +7 -30
- data/lib/csl/info.rb +0 -12
- data/lib/csl/loader.rb +11 -2
- data/lib/csl/locale.rb +21 -4
- data/lib/csl/node.rb +1 -2
- data/lib/csl/parser.rb +1 -2
- data/lib/csl/pretty_printer.rb +1 -1
- data/lib/csl/style/label.rb +1 -1
- data/lib/csl/style.rb +4 -4
- data/lib/csl/treelike.rb +1 -2
- data/lib/csl/version.rb +1 -1
- data/lib/csl.rb +0 -1
- metadata +4 -13
- data/.document +0 -5
- data/.github/workflows/ci.yml +0 -33
- data/.gitignore +0 -13
- data/.yardopts +0 -2
- data/AGPL +0 -662
- data/Gemfile +0 -32
- data/Rakefile +0 -61
- data/csl.gemspec +0 -45
- data/cucumber.yml +0 -1
data/Gemfile
DELETED
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
source 'https://rubygems.org'
|
|
2
|
-
gemspec
|
|
3
|
-
|
|
4
|
-
group :development, :test do
|
|
5
|
-
gem 'rake'
|
|
6
|
-
gem 'rspec'
|
|
7
|
-
gem 'stringio'
|
|
8
|
-
gem 'cucumber'
|
|
9
|
-
end
|
|
10
|
-
|
|
11
|
-
group :debug do
|
|
12
|
-
gem 'debug', '>= 1.0.0', require: false, platforms: :mri
|
|
13
|
-
gem 'ruby-debug', require: false, platforms: :jruby
|
|
14
|
-
end
|
|
15
|
-
|
|
16
|
-
group :optional do
|
|
17
|
-
gem 'nokogiri'
|
|
18
|
-
end
|
|
19
|
-
|
|
20
|
-
group :extra do
|
|
21
|
-
gem 'diff-lcs'
|
|
22
|
-
gem 'pry'
|
|
23
|
-
gem 'yard', platforms: :mri
|
|
24
|
-
gem 'redcarpet', platforms: :mri
|
|
25
|
-
end
|
|
26
|
-
|
|
27
|
-
group :coverage do
|
|
28
|
-
gem 'simplecov', require: false
|
|
29
|
-
gem 'simplecov-lcov', require: false
|
|
30
|
-
end
|
|
31
|
-
|
|
32
|
-
# vim: syntax=ruby
|
data/Rakefile
DELETED
|
@@ -1,61 +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 'csl/version'
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
desc 'Run a Pry session with CSL loaded'
|
|
17
|
-
task :console do
|
|
18
|
-
ARGV.clear
|
|
19
|
-
|
|
20
|
-
require 'pry'
|
|
21
|
-
require 'csl'
|
|
22
|
-
|
|
23
|
-
Pry.start
|
|
24
|
-
end
|
|
25
|
-
|
|
26
|
-
require 'rspec/core'
|
|
27
|
-
require 'rspec/core/rake_task'
|
|
28
|
-
RSpec::Core::RakeTask.new(:spec) do |spec|
|
|
29
|
-
spec.pattern = FileList['spec/**/*_spec.rb']
|
|
30
|
-
end
|
|
31
|
-
|
|
32
|
-
require 'cucumber/rake/task'
|
|
33
|
-
Cucumber::Rake::Task.new(:cucumber) do |t|
|
|
34
|
-
t.profile = 'default'
|
|
35
|
-
end
|
|
36
|
-
|
|
37
|
-
task :release do |t|
|
|
38
|
-
system "gem build csl.gemspec"
|
|
39
|
-
system "git tag #{CSL::VERSION}"
|
|
40
|
-
system "git push --tags"
|
|
41
|
-
system "gem push csl-#{CSL::VERSION}.gem"
|
|
42
|
-
end
|
|
43
|
-
|
|
44
|
-
task :default => [:spec, :cucumber]
|
|
45
|
-
|
|
46
|
-
task :check_warnings do
|
|
47
|
-
$VERBOSE = true
|
|
48
|
-
require 'csl'
|
|
49
|
-
|
|
50
|
-
CSL::Style.new
|
|
51
|
-
CSL::Locale.new
|
|
52
|
-
|
|
53
|
-
puts CSL::VERSION
|
|
54
|
-
end
|
|
55
|
-
|
|
56
|
-
begin
|
|
57
|
-
require 'yard'
|
|
58
|
-
YARD::Rake::YardocTask.new
|
|
59
|
-
rescue LoadError => e
|
|
60
|
-
# ignore
|
|
61
|
-
end
|
data/csl.gemspec
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
# -*- encoding: utf-8 -*-
|
|
2
|
-
lib = File.expand_path('../lib/', __FILE__)
|
|
3
|
-
$:.unshift lib unless $:.include?(lib)
|
|
4
|
-
|
|
5
|
-
require 'csl/version'
|
|
6
|
-
|
|
7
|
-
EXCLUDES = %w{
|
|
8
|
-
.coveralls.yml
|
|
9
|
-
.travis.yml
|
|
10
|
-
.csl.gemspec
|
|
11
|
-
.simplecov
|
|
12
|
-
.rspec
|
|
13
|
-
} | `git ls-files -- {spec,features}/*`.split("\n")
|
|
14
|
-
|
|
15
|
-
Gem::Specification.new do |s|
|
|
16
|
-
s.name = 'csl'
|
|
17
|
-
s.version = CSL::VERSION.dup
|
|
18
|
-
s.platform = Gem::Platform::RUBY
|
|
19
|
-
s.authors = ['Sylvester Keil']
|
|
20
|
-
s.email = ['http://sylvester.keil.or.at']
|
|
21
|
-
s.homepage = 'https://github.com/inukshuk/csl-ruby'
|
|
22
|
-
s.licenses = ['BSD-2-Clause']
|
|
23
|
-
s.date = Time.now.strftime('%Y-%m-%d')
|
|
24
|
-
s.summary = 'A Ruby CSL parser and library'
|
|
25
|
-
s.description = <<~EOS
|
|
26
|
-
A Ruby parser and full API for the Citation Style Language (CSL),
|
|
27
|
-
an open XML-based language to describe the formatting of citations
|
|
28
|
-
and bibliographies.
|
|
29
|
-
EOS
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
s.required_ruby_version = '>= 2.2'
|
|
33
|
-
s.add_dependency('namae', ['~> 1.2'])
|
|
34
|
-
s.add_dependency('rexml', '~> 3.0')
|
|
35
|
-
s.add_dependency('forwardable', '~> 1.3')
|
|
36
|
-
s.add_dependency('open-uri', '< 1.0')
|
|
37
|
-
s.add_dependency('singleton', '< 1.0')
|
|
38
|
-
s.add_dependency('set', '~> 1.1')
|
|
39
|
-
s.add_dependency('time', '< 1.0')
|
|
40
|
-
|
|
41
|
-
s.files = `git ls-files`.split("\n") - EXCLUDES
|
|
42
|
-
s.require_path = 'lib'
|
|
43
|
-
end
|
|
44
|
-
|
|
45
|
-
# vim: syntax=ruby
|
data/cucumber.yml
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
default: --format progress --require features --color --publish-quiet
|