csl 1.0.0.pre3 → 1.0.0.pre4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/csl/info.rb +145 -30
- data/lib/csl/node.rb +55 -48
- data/lib/csl/style.rb +91 -35
- data/lib/csl/treelike.rb +83 -84
- data/lib/csl/version.rb +1 -1
- data/spec/csl/info_spec.rb +2 -2
- data/spec/csl/style_spec.rb +56 -13
- data/spec/fixtures/locales/locales-de-DE.xml +304 -0
- data/spec/fixtures/locales/locales-en-GB.xml +304 -0
- data/spec/fixtures/locales/locales-en-US.xml +304 -0
- data/spec/fixtures/styles/apa.csl +443 -0
- data/spec/spec_helper.rb +11 -0
- metadata +16 -8
data/spec/spec_helper.rb
CHANGED
@@ -27,4 +27,15 @@ end
|
|
27
27
|
|
28
28
|
RSpec.configure do |config|
|
29
29
|
config.include(SilentWarnings)
|
30
|
+
|
31
|
+
config.before :all do
|
32
|
+
@style_root, @locale_root = CSL::Style.root, CSL::Locale.root
|
33
|
+
|
34
|
+
CSL::Style.root = File.expand_path('../fixtures/styles', __FILE__)
|
35
|
+
CSL::Locale.root = File.expand_path('../fixtures/locales', __FILE__)
|
36
|
+
end
|
37
|
+
|
38
|
+
config.after :all do
|
39
|
+
CSL::Style.root, CSL::Locale.root = @style_root, @locale_root
|
40
|
+
end
|
30
41
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: csl
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.0.
|
4
|
+
version: 1.0.0.pre4
|
5
5
|
prerelease: 6
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,11 +9,11 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-07-
|
12
|
+
date: 2012-07-14 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: cucumber
|
16
|
-
requirement: &
|
16
|
+
requirement: &70119260445480 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ~>
|
@@ -21,10 +21,10 @@ dependencies:
|
|
21
21
|
version: '1.1'
|
22
22
|
type: :development
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *70119260445480
|
25
25
|
- !ruby/object:Gem::Dependency
|
26
26
|
name: rspec
|
27
|
-
requirement: &
|
27
|
+
requirement: &70119260460240 !ruby/object:Gem::Requirement
|
28
28
|
none: false
|
29
29
|
requirements:
|
30
30
|
- - ~>
|
@@ -32,10 +32,10 @@ dependencies:
|
|
32
32
|
version: '2.7'
|
33
33
|
type: :development
|
34
34
|
prerelease: false
|
35
|
-
version_requirements: *
|
35
|
+
version_requirements: *70119260460240
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: rake
|
38
|
-
requirement: &
|
38
|
+
requirement: &70119260458480 !ruby/object:Gem::Requirement
|
39
39
|
none: false
|
40
40
|
requirements:
|
41
41
|
- - ~>
|
@@ -43,7 +43,7 @@ dependencies:
|
|
43
43
|
version: '0.9'
|
44
44
|
type: :development
|
45
45
|
prerelease: false
|
46
|
-
version_requirements: *
|
46
|
+
version_requirements: *70119260458480
|
47
47
|
description: ! "\n\t\tA Ruby parser and library for the Citation Style Language (CSL),
|
48
48
|
an open\n\t\tXML-based language to describe the formatting of citations and\n\t\tbibliographies.\n\t\t"
|
49
49
|
email:
|
@@ -127,6 +127,10 @@ files:
|
|
127
127
|
- spec/csl/style/text_spec.rb
|
128
128
|
- spec/csl/style_spec.rb
|
129
129
|
- spec/csl/treelike_spec.rb
|
130
|
+
- spec/fixtures/locales/locales-de-DE.xml
|
131
|
+
- spec/fixtures/locales/locales-en-GB.xml
|
132
|
+
- spec/fixtures/locales/locales-en-US.xml
|
133
|
+
- spec/fixtures/styles/apa.csl
|
130
134
|
- spec/spec_helper.rb
|
131
135
|
- vendor/schema/csl-categories.rng
|
132
136
|
- vendor/schema/csl-terms.rng
|
@@ -190,5 +194,9 @@ test_files:
|
|
190
194
|
- spec/csl/style/text_spec.rb
|
191
195
|
- spec/csl/style_spec.rb
|
192
196
|
- spec/csl/treelike_spec.rb
|
197
|
+
- spec/fixtures/locales/locales-de-DE.xml
|
198
|
+
- spec/fixtures/locales/locales-en-GB.xml
|
199
|
+
- spec/fixtures/locales/locales-en-US.xml
|
200
|
+
- spec/fixtures/styles/apa.csl
|
193
201
|
- spec/spec_helper.rb
|
194
202
|
has_rdoc: yard
|