bibtex-ruby 4.4.2 → 4.4.3
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/Gemfile +9 -6
- data/Rakefile +7 -3
- data/lib/bibtex/elements.rb +3 -3
- data/lib/bibtex/version.rb +1 -1
- data/test/bibtex/test_elements.rb +3 -3
- metadata +2 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 74b75d945fd5cc6a81ac55dba7f717ad3c16eb58
|
|
4
|
+
data.tar.gz: 5f43b3ed36babe9cabf85374f27130efe0fa766b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ae7e865b7d481e8e33d8f8c1a0f63bed70dd9e158ecef303f97f7880e71eac0e91a64ad66ddf981fbdbe414a0d3073c538e328fffaac69fa4cfa9c6315f6803b
|
|
7
|
+
data.tar.gz: 200101b5f803bc061a28b90d2193632ab0eeb2fb59cb30bbfd6cc97b29aaf5fe3349507af88ada4107eae3d52ec27e54a0af4674b9b4772534c133e097000fa3
|
data/Gemfile
CHANGED
|
@@ -4,8 +4,8 @@ gemspec
|
|
|
4
4
|
gem 'json', '~>1.8', :platforms => [:mri_18, :jruby, :rbx]
|
|
5
5
|
|
|
6
6
|
if RUBY_VERSION >= '2.0'
|
|
7
|
-
gem 'rdf', '~>2.0'
|
|
8
|
-
gem 'rdf-vocab', '~>2.0'
|
|
7
|
+
gem 'rdf', '~>2.0.0'
|
|
8
|
+
gem 'rdf-vocab', '~>2.0.0'
|
|
9
9
|
else
|
|
10
10
|
gem 'rdf', '~>1.1'
|
|
11
11
|
end
|
|
@@ -31,9 +31,6 @@ group :test do
|
|
|
31
31
|
gem 'minitest-ansi'
|
|
32
32
|
gem 'cucumber', '~>1.3'
|
|
33
33
|
gem 'unicode', '~>0.4', :platforms => [:rbx, :mswin, :mingw, :mri]
|
|
34
|
-
gem 'simplecov', '~>0.8', :require => false, :platforms => [:ruby]
|
|
35
|
-
gem 'rubinius-coverage', :require => false, :platforms => :rbx
|
|
36
|
-
gem 'coveralls', '~>0.7', :require => false
|
|
37
34
|
end
|
|
38
35
|
|
|
39
36
|
group :extra do
|
|
@@ -51,6 +48,12 @@ group :profile do
|
|
|
51
48
|
gem 'gnuplot', '~>2.4', :platforms => [:mri]
|
|
52
49
|
end
|
|
53
50
|
|
|
51
|
+
group :coverage do
|
|
52
|
+
gem 'simplecov', '~>0.8', :require => false, :platforms => [:ruby]
|
|
53
|
+
gem 'rubinius-coverage', :require => false, :platforms => :rbx
|
|
54
|
+
gem 'coveralls', '~>0.7', :require => false
|
|
55
|
+
end
|
|
56
|
+
|
|
54
57
|
group :development do
|
|
55
58
|
gem 'rake'
|
|
56
59
|
gem 'yard'
|
|
@@ -59,5 +62,5 @@ end
|
|
|
59
62
|
|
|
60
63
|
group :travis do
|
|
61
64
|
# Gem is required at runtime for RBX!
|
|
62
|
-
gem 'racc', :platforms => [:
|
|
65
|
+
gem 'racc', :platforms => [:rbx]
|
|
63
66
|
end
|
data/Rakefile
CHANGED
|
@@ -38,9 +38,13 @@ rescue LoadError
|
|
|
38
38
|
end
|
|
39
39
|
end
|
|
40
40
|
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
41
|
+
begin
|
|
42
|
+
require 'coveralls/rake/task'
|
|
43
|
+
Coveralls::RakeTask.new
|
|
44
|
+
task :test_with_coveralls => [:test, :features, 'coveralls:push']
|
|
45
|
+
rescue LoadError
|
|
46
|
+
# ignore
|
|
47
|
+
end
|
|
44
48
|
|
|
45
49
|
task :default => [:test, :features]
|
|
46
50
|
|
data/lib/bibtex/elements.rb
CHANGED
|
@@ -294,7 +294,7 @@ module BibTeX
|
|
|
294
294
|
|
|
295
295
|
# Returns a string representation of the @string object.
|
|
296
296
|
def to_s(options = {})
|
|
297
|
-
"@string{ #{content} }"
|
|
297
|
+
"@string{ #{content} }\n"
|
|
298
298
|
end
|
|
299
299
|
|
|
300
300
|
def to_hash(options = {})
|
|
@@ -338,7 +338,7 @@ module BibTeX
|
|
|
338
338
|
|
|
339
339
|
# Returns a string representation of the @preamble object
|
|
340
340
|
def to_s(options = {})
|
|
341
|
-
"@preamble{ #{content} }"
|
|
341
|
+
"@preamble{ #{content} }\n"
|
|
342
342
|
end
|
|
343
343
|
end
|
|
344
344
|
|
|
@@ -351,7 +351,7 @@ module BibTeX
|
|
|
351
351
|
end
|
|
352
352
|
|
|
353
353
|
def to_s(options = {})
|
|
354
|
-
"@comment{ #@content }"
|
|
354
|
+
"@comment{ #@content }\n"
|
|
355
355
|
end
|
|
356
356
|
end
|
|
357
357
|
|
data/lib/bibtex/version.rb
CHANGED
|
@@ -45,9 +45,9 @@ module BibTeX
|
|
|
45
45
|
end
|
|
46
46
|
|
|
47
47
|
it 'should support round-trips of all parsed preambles' do
|
|
48
|
-
assert_equal %
|
|
49
|
-
assert_equal %
|
|
50
|
-
assert_equal %
|
|
48
|
+
assert_equal %[@preamble{ "This bibliography was created \\today" }\n], @preambles[0].to_s
|
|
49
|
+
assert_equal %[@preamble{ "Bib\\TeX" }\n], @preambles[1].to_s
|
|
50
|
+
assert_equal %[@preamble{ "Maintained by " # maintainer }\n], @preambles[2].to_s
|
|
51
51
|
end
|
|
52
52
|
|
|
53
53
|
it 'should support string replacement of preamble contents' do
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: bibtex-ruby
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 4.4.
|
|
4
|
+
version: 4.4.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Sylvester Keil
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2016-
|
|
11
|
+
date: 2016-10-30 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: latex-decode
|
|
@@ -164,4 +164,3 @@ test_files:
|
|
|
164
164
|
- test/bibtex/entry/test_rdf_converter.rb
|
|
165
165
|
- test/test_bibtex.rb
|
|
166
166
|
- test/test_export.rb
|
|
167
|
-
has_rdoc: yard
|