hoe-manns 1.6.1 → 1.6.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -1
- data/Gemfile +2 -3
- data/Gemfile.lock +4 -10
- data/Manifest.txt +0 -21
- data/README.rdoc +6 -7
- data/Rakefile +3 -4
- data/lib/hoe/manns.rb +1 -2
- metadata +5 -40
- data/docs/de-DE/Article_Info.xml +0 -20
- data/docs/de-DE/Author_Group.xml +0 -16
- data/docs/de-DE/Rakefile +0 -193
- data/docs/de-DE/Revision_History.xml +0 -30
- data/docs/de-DE/hoe-manns.ent +0 -5
- data/docs/de-DE/hoe-manns.xml +0 -144
- data/docs/de-DE/images/icon.svg +0 -19
- data/docs/en-US/Article_Info.mo +0 -0
- data/docs/en-US/Article_Info.po +0 -24
- data/docs/en-US/Author_Group.mo +0 -0
- data/docs/en-US/Author_Group.po +0 -18
- data/docs/en-US/Revision_History.mo +0 -0
- data/docs/en-US/Revision_History.po +0 -30
- data/docs/en-US/Revision_History.xml +0 -29
- data/docs/en-US/hoe-manns.mo +0 -0
- data/docs/en-US/hoe-manns.po +0 -244
- data/docs/pot/Article_Info.pot +0 -25
- data/docs/pot/Author_Group.pot +0 -19
- data/docs/pot/Revision_History.pot +0 -31
- data/docs/pot/hoe-manns.pot +0 -148
- data/docs/publican.cfg +0 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d36c72eb1ddfcccf7565338d91ca9340c5843155
|
4
|
+
data.tar.gz: 274314955b5b19c21b957dfff3ff841c428a79f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fe7c1c8af39e6fc99b47a6ac7a71fb45774859d69c293eb2666eb4eee68d983abebca483dc7058d802a3c8fc7a1feea50ca13e9fa71366ed03251d7488feb34a
|
7
|
+
data.tar.gz: 3f5d94d855fa1485c24817f2304bdfac0555a31231b62118aa2a4afe3a237628955307b0795fc7d13a28c59259b3a0fb9b1d49286d14641f7c24a9df20fe2bcc
|
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
@@ -5,13 +5,12 @@
|
|
5
5
|
source "https://rubygems.org/"
|
6
6
|
|
7
7
|
gem "parseconfig", "~>1.0"
|
8
|
-
gem "rainbow", "~>2.
|
8
|
+
gem "rainbow", "~>2.2"
|
9
9
|
gem "bundler-audit", "~>0.5"
|
10
10
|
|
11
11
|
gem "coveralls", "~>0.8", :group => [:development, :test]
|
12
12
|
gem "hoe-bundler", "~>1.3", :group => [:development, :test]
|
13
13
|
gem "hoe-git", "~>1.6", :group => [:development, :test]
|
14
|
-
gem "hoe-manns", "~>1.6", :group => [:development, :test]
|
15
14
|
gem "hoe-rubocop", "~>1.0", :group => [:development, :test]
|
16
15
|
gem "hoe-rubygems", "~>1.0", :group => [:development, :test]
|
17
16
|
gem "hoe-seattlerb", "~>1.3", :group => [:development, :test]
|
@@ -20,6 +19,6 @@ gem "rake", "~>11.3", :group => [:development, :test]
|
|
20
19
|
gem "rspec", "~>3.5", :group => [:development, :test]
|
21
20
|
gem "simplecov", "~>0.12", :group => [:development, :test]
|
22
21
|
gem "rdoc", "~>4.0", :group => [:development, :test]
|
23
|
-
gem "hoe", "~>3.
|
22
|
+
gem "hoe", "~>3.16", :group => [:development, :test]
|
24
23
|
|
25
24
|
# vim: syntax=ruby
|
data/Gemfile.lock
CHANGED
@@ -18,14 +18,9 @@ GEM
|
|
18
18
|
hoe-bundler (1.3.0)
|
19
19
|
hoe (>= 2.2.0)
|
20
20
|
hoe-git (1.6.0)
|
21
|
-
hoe-
|
22
|
-
bundler-audit (~> 0.4)
|
23
|
-
parseconfig (~> 1.0)
|
24
|
-
rainbow (~> 2.1)
|
25
|
-
hoe-rubocop (1.0.6)
|
21
|
+
hoe-rubocop (1.0.7)
|
26
22
|
bundler (~> 1.11)
|
27
|
-
|
28
|
-
rubocop (~> 0.37)
|
23
|
+
rubocop (~> 0.42)
|
29
24
|
hoe-rubygems (1.0.0)
|
30
25
|
hoe-seattlerb (1.3.5)
|
31
26
|
hoe-version (1.2.0)
|
@@ -74,16 +69,15 @@ PLATFORMS
|
|
74
69
|
DEPENDENCIES
|
75
70
|
bundler-audit (~> 0.5)
|
76
71
|
coveralls (~> 0.8)
|
77
|
-
hoe (~> 3.
|
72
|
+
hoe (~> 3.16)
|
78
73
|
hoe-bundler (~> 1.3)
|
79
74
|
hoe-git (~> 1.6)
|
80
|
-
hoe-manns (~> 1.6)
|
81
75
|
hoe-rubocop (~> 1.0)
|
82
76
|
hoe-rubygems (~> 1.0)
|
83
77
|
hoe-seattlerb (~> 1.3)
|
84
78
|
hoe-version (~> 1.2)
|
85
79
|
parseconfig (~> 1.0)
|
86
|
-
rainbow (~> 2.
|
80
|
+
rainbow (~> 2.2)
|
87
81
|
rake (~> 11.3)
|
88
82
|
rdoc (~> 4.0)
|
89
83
|
rspec (~> 3.5)
|
data/Manifest.txt
CHANGED
@@ -16,27 +16,6 @@ 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
|
40
19
|
lib/hoe/manns.rb
|
41
20
|
spec/manns_spec.rb
|
42
21
|
spec/spec_helper.rb
|
data/README.rdoc
CHANGED
@@ -2,8 +2,8 @@
|
|
2
2
|
|
3
3
|
home :: http://saigkill.tuxfamily.org
|
4
4
|
code :: http://github.com/saigkill/hoe-manns
|
5
|
-
docu (en) :: https://saigkill.tuxfamily.org/
|
6
|
-
docu (de) :: https://saigkill.tuxfamily.org/
|
5
|
+
docu (en) :: https://saigkill.tuxfamily.org/docs/hoe-manns/en-US/html/
|
6
|
+
docu (de) :: https://saigkill.tuxfamily.org/docs/hoe-manns/de-DE/html/
|
7
7
|
apidoc :: http://www.rubydoc.info/gems/hoe-manns
|
8
8
|
bugs :: https://github.com/saigkill/hoe-manns/issues
|
9
9
|
min. rubyver :: 2.2.0
|
@@ -21,7 +21,7 @@ coverage :: {<img src="https://coveralls.io/repos/saigkill/hoe-manns/badge.svg?b
|
|
21
21
|
dependency check :: {<img src="https://gemnasium.com/saigkill/hoe-manns.svg" alt="Dependency Status" />}[https://gemnasium.com/saigkill/hoe-manns]
|
22
22
|
documentation quality :: {<img src="http://inch-ci.org/github/saigkill/hoe-manns.svg?branch=master" alt="Documentation Quality" />}[http://inch-ci.org/github/saigkill/hoe-manns]
|
23
23
|
donations :: {<img src="https://pledgie.com/campaigns/30268.png?skin_name=chrome" alt="Donations" />}[https://pledgie.com/campaigns/30268]
|
24
|
-
donations :: {<img src="
|
24
|
+
donations :: {<img src="https://saigkill.tuxfamily.org/dotclear/public/Amazon.png" alt="Donations" />}[http://www.amazon.de/registry/wishlist/D75HOEQ00BDD]
|
25
25
|
|
26
26
|
== DESCRIPTION:
|
27
27
|
|
@@ -43,7 +43,8 @@ hoe-manns is a small collection of my personal used rake tasks for using with ho
|
|
43
43
|
* Removes the old *.gemspec created in test cases
|
44
44
|
* commits the workspace before rake release
|
45
45
|
* copies your manuals to your docpath.
|
46
|
-
* runs the rake tasks before release: git:manifest, bundler:gemfile, update_gemfile_lock, remove_pre_gemspec,
|
46
|
+
* runs the rake tasks before release: git:manifest, bundler:gemfile, update_gemfile_lock, remove_pre_gemspec,
|
47
|
+
update_workspace, bundler_audit:run and copy_mirror.
|
47
48
|
* runs after release: send_email.
|
48
49
|
* Cleans up the pkg dir
|
49
50
|
* provides bundler_audit tasks
|
@@ -51,8 +52,6 @@ hoe-manns is a small collection of my personal used rake tasks for using with ho
|
|
51
52
|
This Gem was programmed and tested for Linux systems. If anyone would like to make the methods also fit for other OS,
|
52
53
|
i'm happy about Pull requests.
|
53
54
|
|
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).
|
55
|
-
|
56
55
|
If you like this piece of software don't forget to give the gitlab repo a star.
|
57
56
|
|
58
57
|
== SYNOPSIS:
|
@@ -78,7 +77,7 @@ Also add hoe-manns to your requirements and recreate your Gemfile.
|
|
78
77
|
|
79
78
|
gem install hoe-manns
|
80
79
|
|
81
|
-
Edit your .hoerc: https://saigkill.tuxfamily.org/
|
80
|
+
Edit your .hoerc: https://saigkill.tuxfamily.org/docs/hoe-manns/en-US/html/ (en) or https://saigkill.tuxfamily.org/docs/hoe-manns/de-DE/html/ (de).
|
82
81
|
|
83
82
|
== DEVELOPERS:
|
84
83
|
|
data/Rakefile
CHANGED
@@ -15,7 +15,7 @@ require 'hoe'
|
|
15
15
|
|
16
16
|
Hoe.plugin :bundler
|
17
17
|
Hoe.plugin :email
|
18
|
-
|
18
|
+
Hoe.plugin :git
|
19
19
|
Hoe.plugin :manns
|
20
20
|
Hoe.plugin :rdoc
|
21
21
|
Hoe.plugin :rubocop
|
@@ -33,13 +33,12 @@ Hoe.spec 'hoe-manns' do
|
|
33
33
|
#email_to << 'Sascha.Manns@directbox.com'
|
34
34
|
|
35
35
|
dependency 'parseconfig', '~> 1.0'
|
36
|
-
dependency 'rainbow', '~> 2.
|
36
|
+
dependency 'rainbow', '~> 2.2'
|
37
37
|
dependency 'bundler-audit', '~> 0.5'
|
38
38
|
|
39
39
|
extra_dev_deps << ['coveralls', '~> 0.8']
|
40
40
|
extra_dev_deps << ['hoe-bundler', '~> 1.3']
|
41
41
|
extra_dev_deps << ['hoe-git', '~> 1.6']
|
42
|
-
extra_dev_deps << ['hoe-manns', '~> 1.6']
|
43
42
|
extra_dev_deps << ['hoe-rubocop', '~> 1.0']
|
44
43
|
extra_dev_deps << ['hoe-rubygems', '~> 1.0']
|
45
44
|
extra_dev_deps << ['hoe-seattlerb', '~> 1.3']
|
@@ -51,7 +50,7 @@ Hoe.spec 'hoe-manns' do
|
|
51
50
|
self.history_file = 'History.rdoc'
|
52
51
|
self.readme_file = 'README.rdoc'
|
53
52
|
self.extra_rdoc_files = FileList['*.rdoc'].to_a
|
54
|
-
self.post_install_message = '*** Edit your .hoerc: https://saigkill.tuxfamily.org/
|
53
|
+
self.post_install_message = '*** Edit your .hoerc: https://saigkill.tuxfamily.org/docs/hoe-manns/en-US/html/ *** Please file bugreports and feature requests on: https://github.com/saigkill/hoe-manns/issues'
|
55
54
|
end
|
56
55
|
|
57
56
|
##################################################SETUP ZONE############################################################
|
data/lib/hoe/manns.rb
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
# encoding: UTF-8
|
2
1
|
# @encoding: utf-8
|
3
2
|
# @author: Sascha Manns
|
4
3
|
# @abstract: hoe-manns is a small collection of my personal used rake tasks for
|
@@ -13,7 +12,7 @@ require 'hoe'
|
|
13
12
|
# Main module for hoe-manns
|
14
13
|
module Hoe::Manns
|
15
14
|
# Version constant for HOE::Manns
|
16
|
-
VERSION = '1.6.
|
15
|
+
VERSION = '1.6.2'
|
17
16
|
|
18
17
|
attr_accessor :remove_pre_gemspec
|
19
18
|
attr_accessor :copy_manuals
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hoe-manns
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.6.
|
4
|
+
version: 1.6.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sascha Manns
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-02-
|
11
|
+
date: 2017-02-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: parseconfig
|
@@ -30,14 +30,14 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '2.
|
33
|
+
version: '2.2'
|
34
34
|
type: :runtime
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '2.
|
40
|
+
version: '2.2'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: bundler-audit
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -94,20 +94,6 @@ dependencies:
|
|
94
94
|
- - "~>"
|
95
95
|
- !ruby/object:Gem::Version
|
96
96
|
version: '1.6'
|
97
|
-
- !ruby/object:Gem::Dependency
|
98
|
-
name: hoe-manns
|
99
|
-
requirement: !ruby/object:Gem::Requirement
|
100
|
-
requirements:
|
101
|
-
- - "~>"
|
102
|
-
- !ruby/object:Gem::Version
|
103
|
-
version: '1.6'
|
104
|
-
type: :development
|
105
|
-
prerelease: false
|
106
|
-
version_requirements: !ruby/object:Gem::Requirement
|
107
|
-
requirements:
|
108
|
-
- - "~>"
|
109
|
-
- !ruby/object:Gem::Version
|
110
|
-
version: '1.6'
|
111
97
|
- !ruby/object:Gem::Dependency
|
112
98
|
name: hoe-rubocop
|
113
99
|
requirement: !ruby/object:Gem::Requirement
|
@@ -277,27 +263,6 @@ files:
|
|
277
263
|
- README.rdoc
|
278
264
|
- Rakefile
|
279
265
|
- config.reek
|
280
|
-
- docs/de-DE/Article_Info.xml
|
281
|
-
- docs/de-DE/Author_Group.xml
|
282
|
-
- docs/de-DE/Rakefile
|
283
|
-
- docs/de-DE/Revision_History.xml
|
284
|
-
- docs/de-DE/hoe-manns.ent
|
285
|
-
- docs/de-DE/hoe-manns.xml
|
286
|
-
- docs/de-DE/images/icon.svg
|
287
|
-
- docs/en-US/Article_Info.mo
|
288
|
-
- docs/en-US/Article_Info.po
|
289
|
-
- docs/en-US/Author_Group.mo
|
290
|
-
- docs/en-US/Author_Group.po
|
291
|
-
- docs/en-US/Revision_History.mo
|
292
|
-
- docs/en-US/Revision_History.po
|
293
|
-
- docs/en-US/Revision_History.xml
|
294
|
-
- docs/en-US/hoe-manns.mo
|
295
|
-
- docs/en-US/hoe-manns.po
|
296
|
-
- docs/pot/Article_Info.pot
|
297
|
-
- docs/pot/Author_Group.pot
|
298
|
-
- docs/pot/Revision_History.pot
|
299
|
-
- docs/pot/hoe-manns.pot
|
300
|
-
- docs/publican.cfg
|
301
266
|
- lib/hoe/manns.rb
|
302
267
|
- spec/manns_spec.rb
|
303
268
|
- spec/spec_helper.rb
|
@@ -305,7 +270,7 @@ homepage: http://saigkill.tuxfamily.org
|
|
305
270
|
licenses:
|
306
271
|
- MIT
|
307
272
|
metadata: {}
|
308
|
-
post_install_message: "*** Edit your .hoerc: https://saigkill.tuxfamily.org/
|
273
|
+
post_install_message: "*** Edit your .hoerc: https://saigkill.tuxfamily.org/docs/hoe-manns/en-US/html/
|
309
274
|
*** Please file bugreports and feature requests on: https://github.com/saigkill/hoe-manns/issues"
|
310
275
|
rdoc_options:
|
311
276
|
- "--main"
|
data/docs/de-DE/Article_Info.xml
DELETED
@@ -1,20 +0,0 @@
|
|
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>
|
data/docs/de-DE/Author_Group.xml
DELETED
@@ -1,16 +0,0 @@
|
|
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
DELETED
@@ -1,193 +0,0 @@
|
|
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
|