indoctrinatr-tools 0.10.0 → 0.11.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/.rubocop.yml +1 -1
- data/.travis.yml +3 -7
- data/features/demo.feature +1 -1
- data/features/version.feature +1 -1
- data/lib/indoctrinatr/tools/configuration_extractor.rb +1 -1
- data/lib/indoctrinatr/tools/version.rb +1 -1
- data/lib/redcloth_latex_formatter_patch/patch.rb +8 -2
- data/spec/indoctrinatr/tools/version_spec.rb +1 -1
- data/spec/redcloth_latex_formatter_patch/patch_spec.rb +9 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b0fe5d601575b7ece3e77dc6b7dde2b31a291c46
|
4
|
+
data.tar.gz: 80e84638993fb7a8a771d3fa2c7c7bfad4317242
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ddff4b9e60e6b0ae25345c6365268966942ff1461949b306b1db036cb30cbefd74e4cf62ef2f8aaaf0b167def2963b038c7df57f2a382e7b1b87d8dcd994901c
|
7
|
+
data.tar.gz: 45a39be9f0bf9d8b4e743944317b45fa56e621b6cd35c9bcc07588aae5a51949a2b35c11b4f2b9524e0c8fd002c4d5ace58759abc37ef7dfb3e3ad069017078c
|
data/.rubocop.yml
CHANGED
data/.travis.yml
CHANGED
@@ -8,12 +8,8 @@ cache:
|
|
8
8
|
- bundler
|
9
9
|
- apt
|
10
10
|
before_install:
|
11
|
-
- sudo apt-get
|
11
|
+
- sudo apt-get update && sudo wget https://github.com/scottkosty/install-tl-ubuntu/raw/master/install-tl-ubuntu && sudo chmod +x ./install-tl-ubuntu && sudo ./install-tl-ubuntu
|
12
12
|
- gem install bundler -v 1.10.6
|
13
13
|
script:
|
14
|
-
- bundle exec
|
15
|
-
- bundle exec rake test_with_coveralls
|
16
|
-
addons:
|
17
|
-
apt:
|
18
|
-
packages:
|
19
|
-
- texlive-full
|
14
|
+
- bundle exec indoctrinatr demo
|
15
|
+
- bundle exec rake test_with_coveralls
|
data/features/demo.feature
CHANGED
data/features/version.feature
CHANGED
@@ -18,7 +18,7 @@ module Indoctrinatr
|
|
18
18
|
configuration.default_file_name = "#{template_pack_name}_with_default_values.pdf"
|
19
19
|
configuration.output_file_name = config_file.fetch('output_file_name', "#{template_pack_name}_with_default_values.pdf")
|
20
20
|
configuration.template_name = config_file.fetch 'template_name'
|
21
|
-
configuration.textual_description = config_file.fetch
|
21
|
+
configuration.textual_description = config_file.fetch('textual_description'), ''
|
22
22
|
configuration.attributes_as_hashes_in_array = config_file.fetch 'fields', []
|
23
23
|
configuration
|
24
24
|
end
|
@@ -22,12 +22,18 @@ module RedCloth
|
|
22
22
|
end
|
23
23
|
end
|
24
24
|
|
25
|
+
def del opts
|
26
|
+
"\\st{#{opts[:text]}}"
|
27
|
+
end
|
28
|
+
|
25
29
|
def table_close _opts
|
26
30
|
output = "\\begin{tabu}{ #{'l ' * @table[0].size}}\n"
|
27
|
-
@table.
|
31
|
+
output << " #{@table[0].join(' & ')} \\\\\n"
|
32
|
+
output << " \\tabletoprule\n"
|
33
|
+
@table[1..-1].each do |row|
|
28
34
|
output << " #{row.join(' & ')} \\\\\n"
|
29
35
|
end
|
30
|
-
output << "\\end{tabu}\n"
|
36
|
+
output << " \\tablebottomrule\n\\end{tabu}\n"
|
31
37
|
output
|
32
38
|
end
|
33
39
|
end
|
@@ -24,7 +24,15 @@ describe 'patches for RedCloth::LATEX::Formatter' do
|
|
24
24
|
|
25
25
|
it 'transforms a table to LaTeX tabu notation' do
|
26
26
|
input = "|_.Headerspalte 1|_.Headerspalte 2|\n|Feld 1,1 |Feld 2,1 |\n|Feld 1,2 |Feld 2,2 |"
|
27
|
-
expected_result = "\\begin{tabu}{ l l }\n Headerspalte 1 & Headerspalte 2 \\\\\n Feld 1,1 & Feld 2,1 \\\\\n Feld 1,2 & Feld 2,2 \\\\\n\\end{tabu}\n"
|
27
|
+
expected_result = "\\begin{tabu}{ l l }\n Headerspalte 1 & Headerspalte 2 \\\\\n \\tabletoprule\n Feld 1,1 & Feld 2,1 \\\\\n Feld 1,2 & Feld 2,2 \\\\\n \\tablebottomrule\n\\end{tabu}\n"
|
28
28
|
expect(RedCloth.new(input).to_latex).to eq expected_result
|
29
29
|
end
|
30
|
+
|
31
|
+
it 'transforms -text- to to LaTeX \st{}' do
|
32
|
+
expect(RedCloth.new('-no no no-').to_latex).to eq "\\st{no no no}\n\n"
|
33
|
+
end
|
34
|
+
|
35
|
+
it 'transforms *text* to to LaTeX \st{}' do
|
36
|
+
expect(RedCloth.new('-no no no-').to_latex).to eq "\\st{no no no}\n\n"
|
37
|
+
end
|
30
38
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: indoctrinatr-tools
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.11.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nicolai Reuschling
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-08-
|
11
|
+
date: 2015-08-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|