hoe-manns 1.6.0 → 1.6.1
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/.scrutinizer.yml +4 -0
- data/.travis.yml +1 -0
- data/Gemfile +3 -3
- data/Gemfile.lock +20 -21
- data/History.rdoc +6 -0
- data/LICENSE.rdoc +1 -1
- data/Manifest.txt +21 -0
- data/README.rdoc +9 -10
- data/Rakefile +4 -7
- data/docs/de-DE/Article_Info.xml +20 -0
- data/docs/de-DE/Author_Group.xml +16 -0
- data/docs/de-DE/Rakefile +193 -0
- data/docs/de-DE/Revision_History.xml +30 -0
- data/docs/de-DE/hoe-manns.ent +5 -0
- data/docs/de-DE/hoe-manns.xml +144 -0
- data/docs/de-DE/images/icon.svg +19 -0
- data/docs/en-US/Article_Info.mo +0 -0
- data/docs/en-US/Article_Info.po +24 -0
- data/docs/en-US/Author_Group.mo +0 -0
- data/docs/en-US/Author_Group.po +18 -0
- data/docs/en-US/Revision_History.mo +0 -0
- data/docs/en-US/Revision_History.po +30 -0
- data/docs/en-US/Revision_History.xml +29 -0
- data/docs/en-US/hoe-manns.mo +0 -0
- data/docs/en-US/hoe-manns.po +244 -0
- data/docs/pot/Article_Info.pot +25 -0
- data/docs/pot/Author_Group.pot +19 -0
- data/docs/pot/Revision_History.pot +31 -0
- data/docs/pot/hoe-manns.pot +148 -0
- data/docs/publican.cfg +8 -0
- data/lib/hoe/manns.rb +2 -2
- metadata +47 -28
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5789308047acf3f444a8b4186c0c43b08b9aa414
|
4
|
+
data.tar.gz: 7f6f531f3bfb9c97f41ea4e241b13dc86739cbf9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b74ce7f64c95ce7cd952b6d558fb10cf963f48e00436c8cfe176fd88e163166dae8989231d99f5085dd39cc5914a854a6ae65c420558e52a506e8ed96748672b
|
7
|
+
data.tar.gz: cee7eef0bdfe0358c89685ff9dad0215ec0f01551c6febdffef9c830f1cb2dc5704f52980a8a161377bf3b2ec4a08360b7369f7a23af991deefc2fdc9cf5ad9d
|
data/.scrutinizer.yml
CHANGED
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
@@ -6,9 +6,8 @@ source "https://rubygems.org/"
|
|
6
6
|
|
7
7
|
gem "parseconfig", "~>1.0"
|
8
8
|
gem "rainbow", "~>2.1"
|
9
|
-
gem "bundler-audit", "~>0.
|
9
|
+
gem "bundler-audit", "~>0.5"
|
10
10
|
|
11
|
-
gem "rdoc", "~>4.0", :group => [:development, :test]
|
12
11
|
gem "coveralls", "~>0.8", :group => [:development, :test]
|
13
12
|
gem "hoe-bundler", "~>1.3", :group => [:development, :test]
|
14
13
|
gem "hoe-git", "~>1.6", :group => [:development, :test]
|
@@ -17,9 +16,10 @@ gem "hoe-rubocop", "~>1.0", :group => [:development, :test]
|
|
17
16
|
gem "hoe-rubygems", "~>1.0", :group => [:development, :test]
|
18
17
|
gem "hoe-seattlerb", "~>1.3", :group => [:development, :test]
|
19
18
|
gem "hoe-version", "~>1.2", :group => [:development, :test]
|
20
|
-
gem "rake", "~>11.
|
19
|
+
gem "rake", "~>11.3", :group => [:development, :test]
|
21
20
|
gem "rspec", "~>3.5", :group => [:development, :test]
|
22
21
|
gem "simplecov", "~>0.12", :group => [:development, :test]
|
22
|
+
gem "rdoc", "~>4.0", :group => [:development, :test]
|
23
23
|
gem "hoe", "~>3.15", :group => [:development, :test]
|
24
24
|
|
25
25
|
# vim: syntax=ruby
|
data/Gemfile.lock
CHANGED
@@ -5,16 +5,16 @@ GEM
|
|
5
5
|
bundler-audit (0.5.0)
|
6
6
|
bundler (~> 1.2)
|
7
7
|
thor (~> 0.18)
|
8
|
-
coveralls (0.8.
|
8
|
+
coveralls (0.8.19)
|
9
9
|
json (>= 1.8, < 3)
|
10
10
|
simplecov (~> 0.12.0)
|
11
11
|
term-ansicolor (~> 1.3)
|
12
12
|
thor (~> 0.19.1)
|
13
|
-
tins (
|
14
|
-
diff-lcs (1.
|
13
|
+
tins (~> 1.6)
|
14
|
+
diff-lcs (1.3)
|
15
15
|
docile (1.1.5)
|
16
|
-
hoe (3.
|
17
|
-
rake (>= 0.8, <
|
16
|
+
hoe (3.16.0)
|
17
|
+
rake (>= 0.8, < 13.0)
|
18
18
|
hoe-bundler (1.3.0)
|
19
19
|
hoe (>= 2.2.0)
|
20
20
|
hoe-git (1.6.0)
|
@@ -29,20 +29,19 @@ GEM
|
|
29
29
|
hoe-rubygems (1.0.0)
|
30
30
|
hoe-seattlerb (1.3.5)
|
31
31
|
hoe-version (1.2.0)
|
32
|
-
json (
|
32
|
+
json (2.0.3)
|
33
33
|
parseconfig (1.0.8)
|
34
|
-
parser (2.
|
34
|
+
parser (2.4.0.0)
|
35
35
|
ast (~> 2.2)
|
36
36
|
powerpack (0.1.1)
|
37
|
-
rainbow (2.1
|
38
|
-
rake (11.
|
39
|
-
rdoc (4.
|
40
|
-
json (~> 1.4)
|
37
|
+
rainbow (2.2.1)
|
38
|
+
rake (11.3.0)
|
39
|
+
rdoc (4.3.0)
|
41
40
|
rspec (3.5.0)
|
42
41
|
rspec-core (~> 3.5.0)
|
43
42
|
rspec-expectations (~> 3.5.0)
|
44
43
|
rspec-mocks (~> 3.5.0)
|
45
|
-
rspec-core (3.5.
|
44
|
+
rspec-core (3.5.4)
|
46
45
|
rspec-support (~> 3.5.0)
|
47
46
|
rspec-expectations (3.5.0)
|
48
47
|
diff-lcs (>= 1.2.0, < 2.0)
|
@@ -51,8 +50,8 @@ GEM
|
|
51
50
|
diff-lcs (>= 1.2.0, < 2.0)
|
52
51
|
rspec-support (~> 3.5.0)
|
53
52
|
rspec-support (3.5.0)
|
54
|
-
rubocop (0.
|
55
|
-
parser (>= 2.3.
|
53
|
+
rubocop (0.47.1)
|
54
|
+
parser (>= 2.3.3.1, < 3.0)
|
56
55
|
powerpack (~> 0.1)
|
57
56
|
rainbow (>= 1.99.1, < 3.0)
|
58
57
|
ruby-progressbar (~> 1.7)
|
@@ -63,17 +62,17 @@ GEM
|
|
63
62
|
json (>= 1.8, < 3)
|
64
63
|
simplecov-html (~> 0.10.0)
|
65
64
|
simplecov-html (0.10.0)
|
66
|
-
term-ansicolor (1.
|
65
|
+
term-ansicolor (1.4.0)
|
67
66
|
tins (~> 1.0)
|
68
|
-
thor (0.19.
|
69
|
-
tins (1.
|
70
|
-
unicode-display_width (1.1.
|
67
|
+
thor (0.19.4)
|
68
|
+
tins (1.13.2)
|
69
|
+
unicode-display_width (1.1.3)
|
71
70
|
|
72
71
|
PLATFORMS
|
73
72
|
ruby
|
74
73
|
|
75
74
|
DEPENDENCIES
|
76
|
-
bundler-audit (~> 0.
|
75
|
+
bundler-audit (~> 0.5)
|
77
76
|
coveralls (~> 0.8)
|
78
77
|
hoe (~> 3.15)
|
79
78
|
hoe-bundler (~> 1.3)
|
@@ -85,10 +84,10 @@ DEPENDENCIES
|
|
85
84
|
hoe-version (~> 1.2)
|
86
85
|
parseconfig (~> 1.0)
|
87
86
|
rainbow (~> 2.1)
|
88
|
-
rake (~> 11.
|
87
|
+
rake (~> 11.3)
|
89
88
|
rdoc (~> 4.0)
|
90
89
|
rspec (~> 3.5)
|
91
90
|
simplecov (~> 0.12)
|
92
91
|
|
93
92
|
BUNDLED WITH
|
94
|
-
1.
|
93
|
+
1.13.6
|
data/History.rdoc
CHANGED
data/LICENSE.rdoc
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
(The MIT License)
|
4
4
|
|
5
|
-
Copyright (c) 2015-
|
5
|
+
Copyright (c) 2015-2017 Sascha Manns <Sascha.Manns@mailbox.org>
|
6
6
|
|
7
7
|
Permission is hereby granted, free of charge, to any person obtaining
|
8
8
|
a copy of this software and associated documentation files (the
|
data/Manifest.txt
CHANGED
@@ -16,6 +16,27 @@ Manifest.txt
|
|
16
16
|
README.rdoc
|
17
17
|
Rakefile
|
18
18
|
config.reek
|
19
|
+
docs/de-DE/Article_Info.xml
|
20
|
+
docs/de-DE/Author_Group.xml
|
21
|
+
docs/de-DE/Rakefile
|
22
|
+
docs/de-DE/Revision_History.xml
|
23
|
+
docs/de-DE/hoe-manns.ent
|
24
|
+
docs/de-DE/hoe-manns.xml
|
25
|
+
docs/de-DE/images/icon.svg
|
26
|
+
docs/en-US/Article_Info.mo
|
27
|
+
docs/en-US/Article_Info.po
|
28
|
+
docs/en-US/Author_Group.mo
|
29
|
+
docs/en-US/Author_Group.po
|
30
|
+
docs/en-US/Revision_History.mo
|
31
|
+
docs/en-US/Revision_History.po
|
32
|
+
docs/en-US/Revision_History.xml
|
33
|
+
docs/en-US/hoe-manns.mo
|
34
|
+
docs/en-US/hoe-manns.po
|
35
|
+
docs/pot/Article_Info.pot
|
36
|
+
docs/pot/Author_Group.pot
|
37
|
+
docs/pot/Revision_History.pot
|
38
|
+
docs/pot/hoe-manns.pot
|
39
|
+
docs/publican.cfg
|
19
40
|
lib/hoe/manns.rb
|
20
41
|
spec/manns_spec.rb
|
21
42
|
spec/spec_helper.rb
|
data/README.rdoc
CHANGED
@@ -1,16 +1,18 @@
|
|
1
1
|
= hoe-manns
|
2
2
|
|
3
|
-
home :: http://saigkill.
|
3
|
+
home :: http://saigkill.tuxfamily.org
|
4
4
|
code :: http://github.com/saigkill/hoe-manns
|
5
|
-
docu :: https://saigkill.
|
5
|
+
docu (en) :: https://saigkill.tuxfamily.org/dotclear/docs/hoe-manns/tmp/en-US/html/index.html
|
6
|
+
docu (de) :: https://saigkill.tuxfamily.org/dotclear/docs/hoe-manns/tmp/en-US/html/index.html
|
6
7
|
apidoc :: http://www.rubydoc.info/gems/hoe-manns
|
7
|
-
bugs :: https://
|
8
|
+
bugs :: https://github.com/saigkill/hoe-manns/issues
|
9
|
+
min. rubyver :: 2.2.0
|
8
10
|
license :: {<img src="http://img.shields.io/:license-mit-blue.svg" />}[https://github.com/saigkill/hoe-manns/blob/master/LICENSE.rdoc]
|
9
11
|
last public version :: {<img src="https://badge.fury.io/rb/hoe-manns.png" alt="Last Version" />}[http://rubygems.org/gems/hoe-manns]
|
10
12
|
downloads latest :: {<img src="https://img.shields.io/gem/dtv/hoe-manns.svg" alt="Downloads latest version" />}[http://rubygems.org/gems/hoe-manns]
|
11
13
|
downloads all :: {<img src="https://img.shields.io/gem/dt/hoe-manns.svg" alt="Downloads all versions" />}[http://rubygems.org/gems/hoe-manns]
|
12
14
|
continuous integration :: {<img src="https://travis-ci.org/saigkill/hoe-manns.svg" />}[https://travis-ci.org/saigkill/hoe-manns]
|
13
|
-
continuous integration :: {<img src="https://scrutinizer-ci.com/g/saigkill/hoe-manns/badges/build.png?b=master" />}[https://scrutinizer-ci.com/g/saigkill/hoe-manns]
|
15
|
+
continuous integration master :: {<img src="https://scrutinizer-ci.com/g/saigkill/hoe-manns/badges/build.png?b=master" />}[https://scrutinizer-ci.com/g/saigkill/hoe-manns]
|
14
16
|
code quality :: {<img src="https://scrutinizer-ci.com/g/saigkill/hoe-manns/badges/quality-score.png?b=master" />}[https://scrutinizer-ci.com/g/saigkill/hoe-manns]
|
15
17
|
code quality :: {<img src="https://d3s6mut3hikguw.cloudfront.net/github/saigkill/hoe-manns/badges/gpa.svg" alt="Code Quality" />}[https://codeclimate.com/github/saigkill/hoe-manns]
|
16
18
|
code quality :: {<img src="https://api.codacy.com/project/badge/Grade/59c5e250bebd4116b39a7577f361f061" alt="Codacy code quality" />}[https://www.codacy.com/app/samannsml/hoe-manns?utm_source=github.com&utm_medium=referral&utm_content=saigkill/hoe-manns&utm_campaign=Badge_Grade]
|
@@ -30,12 +32,10 @@ hoe-manns is a small collection of my personal used rake tasks for using with ho
|
|
30
32
|
* clean_pkg
|
31
33
|
* copy_manuals
|
32
34
|
* copy_master
|
33
|
-
* copy_wiki
|
34
35
|
* remove_pre_gemspec
|
35
36
|
* run_before_release
|
36
37
|
* run_after_release
|
37
38
|
* update_workspace
|
38
|
-
* update_index
|
39
39
|
|
40
40
|
== FEATURES/PROBLEMS:
|
41
41
|
|
@@ -47,12 +47,11 @@ hoe-manns is a small collection of my personal used rake tasks for using with ho
|
|
47
47
|
* runs after release: send_email.
|
48
48
|
* Cleans up the pkg dir
|
49
49
|
* provides bundler_audit tasks
|
50
|
-
* copies the current stuff to a mirror repository
|
51
50
|
|
52
51
|
This Gem was programmed and tested for Linux systems. If anyone would like to make the methods also fit for other OS,
|
53
52
|
i'm happy about Pull requests.
|
54
53
|
|
55
|
-
For a detailed information please visit: https://saigkill.
|
54
|
+
For a detailed information please visit: https://saigkill.tuxfamily.org/dotclear/docs/hoe-manns/tmp/en-US/html/index.html (en) or https://saigkill.tuxfamily.org/dotclear/docs/hoe-manns/tmp/en-US/html/index.html (de).
|
56
55
|
|
57
56
|
If you like this piece of software don't forget to give the gitlab repo a star.
|
58
57
|
|
@@ -79,7 +78,7 @@ Also add hoe-manns to your requirements and recreate your Gemfile.
|
|
79
78
|
|
80
79
|
gem install hoe-manns
|
81
80
|
|
82
|
-
Edit your .hoerc: https://saigkill.
|
81
|
+
Edit your .hoerc: https://saigkill.tuxfamily.org/dotclear/docs/hoe-manns/tmp/en-US/html/index.html (en) or https://saigkill.tuxfamily.org/dotclear/docs/hoe-manns/tmp/en-US/html/index.html (de).
|
83
82
|
|
84
83
|
== DEVELOPERS:
|
85
84
|
|
@@ -98,7 +97,7 @@ Read https://github.com/saigkill/hoe-manns/blob/master/CONTRIBUTING.md
|
|
98
97
|
|
99
98
|
(The MIT License)
|
100
99
|
|
101
|
-
Copyright (c) 2015-
|
100
|
+
Copyright (c) 2015-2017 Sascha Manns <Sascha.Manns@mailbox.org>
|
102
101
|
|
103
102
|
Permission is hereby granted, free of charge, to any person obtaining
|
104
103
|
a copy of this software and associated documentation files (the
|
data/Rakefile
CHANGED
@@ -15,20 +15,17 @@ require 'hoe'
|
|
15
15
|
|
16
16
|
Hoe.plugin :bundler
|
17
17
|
Hoe.plugin :email
|
18
|
-
# Hoe.plugin :gem_prelude_sucks
|
19
|
-
#Hoe.plugins.delete :git
|
20
18
|
#Hoe.plugin :git
|
21
19
|
Hoe.plugin :manns
|
22
20
|
Hoe.plugin :rdoc
|
23
21
|
Hoe.plugin :rubocop
|
24
22
|
Hoe.plugin :rubygems
|
25
|
-
#Hoe.plugin :seattlerb
|
26
23
|
Hoe.plugin :version
|
27
24
|
|
28
25
|
###########################################DEVELOPING ZONE##############################################################
|
29
26
|
# rubocop:disable Metrics/LineLength
|
30
27
|
Hoe.spec 'hoe-manns' do
|
31
|
-
developer('Sascha Manns', '
|
28
|
+
developer('Sascha Manns', 'Sascha.Manns@mailbox.org')
|
32
29
|
license 'MIT' # this should match the license in the README
|
33
30
|
require_ruby_version '>= 2.2.0'
|
34
31
|
|
@@ -37,7 +34,7 @@ Hoe.spec 'hoe-manns' do
|
|
37
34
|
|
38
35
|
dependency 'parseconfig', '~> 1.0'
|
39
36
|
dependency 'rainbow', '~> 2.1'
|
40
|
-
dependency 'bundler-audit', '~> 0.
|
37
|
+
dependency 'bundler-audit', '~> 0.5'
|
41
38
|
|
42
39
|
extra_dev_deps << ['coveralls', '~> 0.8']
|
43
40
|
extra_dev_deps << ['hoe-bundler', '~> 1.3']
|
@@ -47,14 +44,14 @@ Hoe.spec 'hoe-manns' do
|
|
47
44
|
extra_dev_deps << ['hoe-rubygems', '~> 1.0']
|
48
45
|
extra_dev_deps << ['hoe-seattlerb', '~> 1.3']
|
49
46
|
extra_dev_deps << ['hoe-version', '~> 1.2']
|
50
|
-
extra_dev_deps << ['rake', '~> 11.
|
47
|
+
extra_dev_deps << ['rake', '~> 11.3']
|
51
48
|
extra_dev_deps << ['rspec', '~> 3.5']
|
52
49
|
extra_dev_deps << ['simplecov', '~> 0.12']
|
53
50
|
|
54
51
|
self.history_file = 'History.rdoc'
|
55
52
|
self.readme_file = 'README.rdoc'
|
56
53
|
self.extra_rdoc_files = FileList['*.rdoc'].to_a
|
57
|
-
self.post_install_message = '*** Edit your .hoerc: https://saigkill.
|
54
|
+
self.post_install_message = '*** Edit your .hoerc: https://saigkill.tuxfamily.org/dotclear/docs/hoe-manns/tmp/en-US/html/index.html *** Please file bugreports and feature requests on: https://github.com/saigkill/hoe-manns/issues'
|
58
55
|
end
|
59
56
|
|
60
57
|
##################################################SETUP ZONE############################################################
|
@@ -0,0 +1,20 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<!DOCTYPE info [
|
3
|
+
<!ENTITY % sgml.features "IGNORE">
|
4
|
+
<!ENTITY % xml.features "INCLUDE">
|
5
|
+
<!ENTITY % DOCBOOK_ENTS PUBLIC "-//OASIS//ENTITIES DocBook Character Entities V4.5//EN" "/usr/share/xml/docbook/schema/dtd/4.5/dbcentx.mod">
|
6
|
+
<!ENTITY % entities SYSTEM "hoe-manns.ent">
|
7
|
+
%entities;
|
8
|
+
]>
|
9
|
+
<info>
|
10
|
+
<title>hoe-manns</title>
|
11
|
+
<subtitle>Integration nützlicher Rake-Tasks in hoe</subtitle>
|
12
|
+
<productname>Documentation</productname>
|
13
|
+
<productnumber>&VERSION;</productnumber>
|
14
|
+
<edition>0</edition>
|
15
|
+
<abstract>
|
16
|
+
<para>hoe-manns erweitert den Umfang der Ruby Software hoe um einige nützliche Rake-Tasks.</para>
|
17
|
+
</abstract>
|
18
|
+
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="Common_Content/Legal_Notice.xml"/>
|
19
|
+
<xi:include xmlns:xi="http://www.w3.org/2001/XInclude" href="Author_Group.xml"/>
|
20
|
+
</info>
|
@@ -0,0 +1,16 @@
|
|
1
|
+
<?xml version='1.0' encoding='utf-8' ?>
|
2
|
+
<!DOCTYPE authorgroup [
|
3
|
+
<!ENTITY % sgml.features "IGNORE">
|
4
|
+
<!ENTITY % xml.features "INCLUDE">
|
5
|
+
<!ENTITY % DOCBOOK_ENTS PUBLIC "-//OASIS//ENTITIES DocBook Character Entities V4.5//EN" "/usr/share/xml/docbook/schema/dtd/4.5/dbcentx.mod">
|
6
|
+
%DOCBOOK_ENTS;
|
7
|
+
]>
|
8
|
+
<authorgroup>
|
9
|
+
<author>
|
10
|
+
<personname>
|
11
|
+
<firstname>Sascha</firstname>
|
12
|
+
<surname>Manns</surname>
|
13
|
+
</personname>
|
14
|
+
<email>samannsml@directbox.com</email>
|
15
|
+
</author>
|
16
|
+
</authorgroup>
|
data/docs/de-DE/Rakefile
ADDED
@@ -0,0 +1,193 @@
|
|
1
|
+
# -*- ruby -*-
|
2
|
+
# encoding: utf-8
|
3
|
+
require 'fileutils'
|
4
|
+
|
5
|
+
task :default do
|
6
|
+
puts 'usage: rake [export_docx] [export_odt] [export_rtf] [export_wml] [export_pdf] [export_html] [export_man] [export_txt] [export_txt] [export_epub]'
|
7
|
+
puts
|
8
|
+
puts 'Options:'
|
9
|
+
puts 'export_docx : Export DocBook source to DOCX'
|
10
|
+
puts ' Example: rake export_docx'
|
11
|
+
puts 'export_odt : Export DocBook source to ODT'
|
12
|
+
puts ' Example: rake export_odt'
|
13
|
+
puts 'export_rtf : Export DocBook source to RTF'
|
14
|
+
puts ' Example: rake export_rtf'
|
15
|
+
puts 'export_wml: Export DocBook source to WML'
|
16
|
+
puts ' Example: rake export_wml'
|
17
|
+
puts 'export_pdf: Export Docbook source to PDF'
|
18
|
+
puts ' Example: rake export_pdf'
|
19
|
+
puts 'export_html: Export DocBook source to HTML'
|
20
|
+
puts ' Example: rake export_html'
|
21
|
+
puts 'export_man: Export DocBook source to MAN'
|
22
|
+
puts ' Example: rake export_man'
|
23
|
+
puts 'export_txt: Export DocBook source to TXT'
|
24
|
+
puts ' Example: rake export_txt'
|
25
|
+
puts 'export_epub: Export DocBook source to EPUB'
|
26
|
+
puts ' Example: rake export_epub'
|
27
|
+
puts 'export_eclipse: Export DocBook source to Eclipse Help'
|
28
|
+
puts ' Example: rake export_eclipse'
|
29
|
+
end
|
30
|
+
|
31
|
+
require 'dir'
|
32
|
+
require 'fileutils'
|
33
|
+
desc 'Checks if temp dir is available. Otherwise it creates it'
|
34
|
+
task :checker do
|
35
|
+
todos = "../tmp/de-DE/docx"
|
36
|
+
if Dir.exist?(todos)
|
37
|
+
puts 'Found directory. Im using it.'
|
38
|
+
else
|
39
|
+
puts 'No directory found. Im creating it.'
|
40
|
+
FileUtils.mkdir_p(todos)
|
41
|
+
end
|
42
|
+
todos = "../tmp/de-DE/odt"
|
43
|
+
if Dir.exist?(todos)
|
44
|
+
puts 'Found directory. Im using it.'
|
45
|
+
else
|
46
|
+
puts 'No directory found. Im creating it.'
|
47
|
+
FileUtils.mkdir_p(todos)
|
48
|
+
end
|
49
|
+
todos = "../tmp/de-DE/rtf"
|
50
|
+
if Dir.exist?(todos)
|
51
|
+
puts 'Found directory. Im using it.'
|
52
|
+
else
|
53
|
+
puts 'No directory found. Im creating it.'
|
54
|
+
FileUtils.mkdir_p(todos)
|
55
|
+
end
|
56
|
+
todos = "../tmp/de-DE/wml"
|
57
|
+
if Dir.exist?(todos)
|
58
|
+
puts 'Found directory. Im using it.'
|
59
|
+
else
|
60
|
+
puts 'No directory found. Im creating it.'
|
61
|
+
FileUtils.mkdir_p(todos)
|
62
|
+
end
|
63
|
+
end
|
64
|
+
|
65
|
+
desc 'Convert to DOCX'
|
66
|
+
task :export_docx => [:checker] do
|
67
|
+
puts 'Resolving all XML-Entities and XI-Includes'
|
68
|
+
system("xmllint --noent --dropdtd --xinclude hoe-manns.xml -o hoe-manns-resolved.xml")
|
69
|
+
puts 'Formatting XML to XSL-FO'
|
70
|
+
system("saxon-xslt -o hoe-manns.fo hoe-manns-resolved.xml /opt/XMLmind/xfc-xcom-stylesheet/xsl/fo/docbook.xsl")
|
71
|
+
puts 'Removing temporary resolved file'
|
72
|
+
FileUtils.rm('hoe-manns-resolved.xml')
|
73
|
+
puts 'Transforming to DOCX'
|
74
|
+
system("fo2docx hoe-manns.fo > ../tmp/de-DE/docx/hoe-manns.docx")
|
75
|
+
puts 'Launching LibreOffice Writer for Preview'
|
76
|
+
system("lowriter ../tmp/de-DE/docx/hoe-manns.docx &")
|
77
|
+
end
|
78
|
+
|
79
|
+
desc 'Convert to ODT'
|
80
|
+
task :export_odt => [:checker] do
|
81
|
+
puts 'Resolving all XML-Entities and XI-Includes'
|
82
|
+
system("xmllint --noent --dropdtd --xinclude hoe-manns.xml -o hoe-manns-resolved.xml")
|
83
|
+
puts 'Formatting XML to XSL-FO'
|
84
|
+
system("saxon-xslt -o hoe-manns.fo hoe-manns-resolved.xml /opt/XMLmind/xfc-xcom-stylesheet/xsl/fo/docbook.xsl")
|
85
|
+
puts 'Removing temporary resolved file'
|
86
|
+
FileUtils.rm('hoe-manns-resolved.xml')
|
87
|
+
puts 'Transforming to ODT'
|
88
|
+
system("fo2odt hoe-manns.fo > ../tmp/de-DE/odt/hoe-manns.odt")
|
89
|
+
puts 'Launching LibreOffice Writer for Preview'
|
90
|
+
system("lowriter ../tmp/de-DE/odt/hoe-manns.odt &")
|
91
|
+
end
|
92
|
+
|
93
|
+
desc 'Convert to RTF'
|
94
|
+
task :export_rtf => [:checker] do
|
95
|
+
puts 'Resolving all XML-Entities and XI-Includes'
|
96
|
+
system("xmllint --noent --dropdtd --xinclude hoe-manns.xml -o hoe-manns-resolved.xml")
|
97
|
+
puts 'Formatting XML to XSL-FO'
|
98
|
+
system("saxon-xslt -o hoe-manns.fo hoe-manns-resolved.xml /opt/XMLmind/xfc-xcom-stylesheet/xsl/fo/docbook.xsl")
|
99
|
+
puts 'Removing temporary resolved file'
|
100
|
+
FileUtils.rm('hoe-manns-resolved.xml')
|
101
|
+
puts 'Transforming to RTF'
|
102
|
+
system("fo2rtf hoe-manns.fo > ../tmp/de-DE/rtf/hoe-manns.rtf")
|
103
|
+
puts 'Launching LibreOffice Writer for Preview'
|
104
|
+
system("lowriter ../tmp/de-DE/rtf/hoe-manns.rtf &")
|
105
|
+
end
|
106
|
+
|
107
|
+
desc 'Convert to WML'
|
108
|
+
task :export_wml => [:checker] do
|
109
|
+
puts 'Resolving all XML-Entities and XI-Includes'
|
110
|
+
system("xmllint --noent --dropdtd --xinclude hoe-manns.xml -o hoe-manns-resolved.xml")
|
111
|
+
puts 'Formatting XML to XSL-FO'
|
112
|
+
system("saxon-xslt -o hoe-manns.fo hoe-manns-resolved.xml /opt/XMLmind/xfc-xcom-stylesheet/xsl/fo/docbook.xsl")
|
113
|
+
puts 'Removing temporary resolved file'
|
114
|
+
FileUtils.rm('hoe-manns-resolved.xml')
|
115
|
+
puts 'Transforming to WML'
|
116
|
+
system("fo2wml hoe-manns.fo > ../tmp/de-DE/wml/hoe-manns.wml")
|
117
|
+
end
|
118
|
+
|
119
|
+
desc 'Convert to PDF'
|
120
|
+
task :export_pdf do
|
121
|
+
FileUtils.cd('..')
|
122
|
+
puts 'Cleaning up temp directory'
|
123
|
+
system('publican clean')
|
124
|
+
puts 'Formatting to PDF'
|
125
|
+
system('publican build --langs=de-DE --formats=pdf --allow_network')
|
126
|
+
puts 'Launching PDF-Viewer'
|
127
|
+
system('/opt/cxoffice/bin/wine --bottle "PDF-XChange Viewer 2.x" --cx-app PDFXCview.exe tmp/de-DE/pdf/*.pdf &')
|
128
|
+
end
|
129
|
+
|
130
|
+
desc 'Convert to HTML'
|
131
|
+
task :export_html do
|
132
|
+
FileUtils.cd('..')
|
133
|
+
puts 'Cleaning up temp directory'
|
134
|
+
system('publican clean')
|
135
|
+
puts 'Formatting to PDF'
|
136
|
+
system('publican build --langs=de-DE --formats=html --allow_network')
|
137
|
+
puts 'Launching Browser'
|
138
|
+
system('firefox tmp/de-DE/html/index.html &')
|
139
|
+
end
|
140
|
+
|
141
|
+
desc 'Convert to MAN'
|
142
|
+
task :export_man do
|
143
|
+
FileUtils.cd('..')
|
144
|
+
puts 'Cleaning up temp directory'
|
145
|
+
system('publican clean')
|
146
|
+
puts 'Formatting to MAN'
|
147
|
+
system('publican build --langs=de-DE --formats=man --allow_network')
|
148
|
+
end
|
149
|
+
|
150
|
+
desc 'Convert to TXT'
|
151
|
+
task :export_txt do
|
152
|
+
FileUtils.cd('..')
|
153
|
+
puts 'Cleaning up temp directory'
|
154
|
+
system('publican clean')
|
155
|
+
puts 'Formatting to TXT'
|
156
|
+
system('publican build --langs=de-DE --formats=txt --allow_network')
|
157
|
+
puts 'Launching Texteditor'
|
158
|
+
system('gedit tmp/de-DE/txt/*.txt &')
|
159
|
+
end
|
160
|
+
|
161
|
+
desc 'Convert to EPUB'
|
162
|
+
task :export_epub do
|
163
|
+
FileUtils.cd('..')
|
164
|
+
puts 'Cleaning up temp directory'
|
165
|
+
system('publican clean')
|
166
|
+
puts 'Formatting to EPUB'
|
167
|
+
system('publican build --langs=de-DE --formats=epub --allow_network')
|
168
|
+
if File.exist?('/usr/bin/ebook-viewer')
|
169
|
+
puts 'Launching EPUB-Viewer'
|
170
|
+
system('ebook-viewer /tmp/de-DE/*.epub &')
|
171
|
+
else
|
172
|
+
puts 'You have to install calibre for using ebook-viewer for preview'
|
173
|
+
end
|
174
|
+
end
|
175
|
+
|
176
|
+
desc 'Convert to ECLIPSE'
|
177
|
+
task :export_eclipse do
|
178
|
+
FileUtils.cd('..')
|
179
|
+
puts 'Cleaning up temp directory'
|
180
|
+
system('publican clean')
|
181
|
+
puts 'Formatting to ECLIPSE'
|
182
|
+
system('publican build --langs=de-DE --formats=eclipse --allow_network')
|
183
|
+
end
|
184
|
+
|
185
|
+
desc 'Run convert to most used formats'
|
186
|
+
task :export_most => [:export_docx, :export_odt, :export_rtf, :export_html, :export_pdf] do
|
187
|
+
puts 'Successful exported to DOCX, ODT, RTF, HTML and PDF'
|
188
|
+
end
|
189
|
+
|
190
|
+
desc 'Run convert to all formats'
|
191
|
+
task :export_all => [:export_most, :export_wml, :export_man, :export_txt, :export_epub, :export_eclipse] do
|
192
|
+
puts 'Successfull exported to all formats'
|
193
|
+
end
|