csl 1.4.5 → 1.6.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 +5 -5
- data/.github/workflows/ci.yml +26 -0
- data/BSDL +1 -1
- data/Gemfile +9 -30
- data/README.md +1 -5
- data/Rakefile +0 -8
- data/csl.gemspec +10 -13
- data/cucumber.yml +1 -1
- data/lib/csl/locale.rb +4 -4
- data/lib/csl/locale/term.rb +1 -1
- data/lib/csl/node.rb +2 -2
- data/lib/csl/treelike.rb +11 -7
- data/lib/csl/version.rb +1 -1
- metadata +30 -92
- data/.rspec +0 -3
- data/.simplecov +0 -4
- data/Guardfile +0 -15
- data/features/locales/loading.feature +0 -57
- data/features/locales/ordinalize.feature +0 -713
- data/features/parser/choose.feature +0 -16
- data/features/parser/info.feature +0 -27
- data/features/parser/localized_dates.feature +0 -35
- data/features/parser/terms.feature +0 -28
- data/features/step_definitions/locale_steps.rb +0 -36
- data/features/step_definitions/parser_steps.rb +0 -40
- data/features/step_definitions/style_steps.rb +0 -16
- data/features/style/loading.feature +0 -53
- data/features/support/env.rb +0 -24
- data/spec/csl/info_spec.rb +0 -278
- data/spec/csl/locale/date_spec.rb +0 -63
- data/spec/csl/locale/style_options_spec.rb +0 -19
- data/spec/csl/locale/term_spec.rb +0 -255
- data/spec/csl/locale_spec.rb +0 -245
- data/spec/csl/node_spec.rb +0 -273
- data/spec/csl/parser_spec.rb +0 -112
- data/spec/csl/schema_spec.rb +0 -112
- data/spec/csl/style/bibliography_spec.rb +0 -7
- data/spec/csl/style/choose_spec.rb +0 -66
- data/spec/csl/style/citation_spec.rb +0 -7
- data/spec/csl/style/date_spec.rb +0 -21
- data/spec/csl/style/group_spec.rb +0 -7
- data/spec/csl/style/label_spec.rb +0 -44
- data/spec/csl/style/layout_spec.rb +0 -7
- data/spec/csl/style/macro_spec.rb +0 -7
- data/spec/csl/style/names_spec.rb +0 -36
- data/spec/csl/style/number_spec.rb +0 -85
- data/spec/csl/style/sort_spec.rb +0 -11
- data/spec/csl/style/text_spec.rb +0 -7
- data/spec/csl/style_spec.rb +0 -137
- data/spec/csl/treelike_spec.rb +0 -151
- data/spec/fixtures/locales/locales-de-DE.xml +0 -298
- data/spec/fixtures/locales/locales-en-GB.xml +0 -304
- data/spec/fixtures/locales/locales-en-US.xml +0 -304
- data/spec/fixtures/styles/apa.csl +0 -443
- data/spec/spec_helper.rb +0 -57
data/spec/spec_helper.rb
DELETED
@@ -1,57 +0,0 @@
|
|
1
|
-
begin
|
2
|
-
require 'simplecov'
|
3
|
-
require 'coveralls' if ENV['CI']
|
4
|
-
rescue LoadError
|
5
|
-
# ignore
|
6
|
-
end
|
7
|
-
|
8
|
-
begin
|
9
|
-
case
|
10
|
-
when RUBY_PLATFORM < 'java'
|
11
|
-
require 'debug'
|
12
|
-
Debugger.start
|
13
|
-
when defined?(RUBY_ENGINE) && RUBY_ENGINE == 'rbx'
|
14
|
-
require 'rubinius/debugger'
|
15
|
-
when defined?(RUBY_VERSION) && RUBY_VERSION < '2.0'
|
16
|
-
require 'debugger'
|
17
|
-
else
|
18
|
-
require 'byebug'
|
19
|
-
end
|
20
|
-
rescue LoadError
|
21
|
-
# ignore
|
22
|
-
end
|
23
|
-
|
24
|
-
require 'rexml/document'
|
25
|
-
require 'nokogiri'
|
26
|
-
|
27
|
-
require 'csl'
|
28
|
-
|
29
|
-
module SilentWarnings
|
30
|
-
require 'stringio'
|
31
|
-
#
|
32
|
-
# Adapted form silent_warnings gist by @avdi
|
33
|
-
# https://gist.github.com/1170926
|
34
|
-
#
|
35
|
-
def silent_warnings
|
36
|
-
original_stderr = $stderr
|
37
|
-
$stderr = StringIO.new
|
38
|
-
yield
|
39
|
-
ensure
|
40
|
-
$stderr = original_stderr
|
41
|
-
end
|
42
|
-
end
|
43
|
-
|
44
|
-
RSpec.configure do |config|
|
45
|
-
config.include(SilentWarnings)
|
46
|
-
|
47
|
-
config.before :all do
|
48
|
-
@style_root, @locale_root = CSL::Style.root, CSL::Locale.root
|
49
|
-
|
50
|
-
CSL::Style.root = File.expand_path('../fixtures/styles', __FILE__)
|
51
|
-
CSL::Locale.root = File.expand_path('../fixtures/locales', __FILE__)
|
52
|
-
end
|
53
|
-
|
54
|
-
config.after :all do
|
55
|
-
CSL::Style.root, CSL::Locale.root = @style_root, @locale_root
|
56
|
-
end
|
57
|
-
end
|