publican_creators 1.0.2
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 +7 -0
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/.autotest +25 -0
- data/.codeclimate.yml +8 -0
- data/.coveralls.yml +1 -0
- data/.gemnasium.yml +5 -0
- data/.gemrelease +4 -0
- data/.gemtest +0 -0
- data/.index +121 -0
- data/.rspec +2 -0
- data/.rubocop.yml +40 -0
- data/.scrutinizer.yml +17 -0
- data/.travis.yml +36 -0
- data/.yardopts +9 -0
- data/CODE_OF_CONDUCT.md +17 -0
- data/CONTRIBUTING.md +25 -0
- data/Gemfile +35 -0
- data/Gemfile.lock +139 -0
- data/History.rdoc +166 -0
- data/Index.yml +60 -0
- data/LICENSE.rdoc +24 -0
- data/Manifest.txt +41 -0
- data/README.rdoc +108 -0
- data/Rakefile +139 -0
- data/VERSION +1 -0
- data/bin/publican_creators.rb +6 -0
- data/bin/revision_creator.rb +9 -0
- data/config.reek +111 -0
- data/data/publican_creators/publican-revision.png +0 -0
- data/data/publican_creators/publican.png +0 -0
- data/etc/publicancreators.cfg +85 -0
- data/lib/PublicanCreators.rb +233 -0
- data/lib/publican_creators/change.rb +309 -0
- data/lib/publican_creators/checker.rb +48 -0
- data/lib/publican_creators/create.rb +125 -0
- data/lib/publican_creators/export.rb +230 -0
- data/lib/publican_creators/get.rb +66 -0
- data/lib/publican_creators/notifier.rb +26 -0
- data/lib/publican_creators/prepare.rb +82 -0
- data/lib/publican_creators/revision.rb +61 -0
- data/lib/publican_creators/testlib.rb +30 -0
- data/spec/lib_spec.rb +401 -0
- data/spec/spec_helper.rb +16 -0
- metadata +489 -0
- metadata.gz.sig +0 -0
data/History.rdoc
ADDED
@@ -0,0 +1,166 @@
|
|
1
|
+
=== 1.0.2 / 2016-01-27
|
2
|
+
|
3
|
+
* 1 minor enhancement
|
4
|
+
|
5
|
+
* updated dependencies by gemnasium
|
6
|
+
|
7
|
+
=== 1.0.1 / 2015-12-23
|
8
|
+
|
9
|
+
* 1 minor enhancement
|
10
|
+
|
11
|
+
* updated dependencies
|
12
|
+
|
13
|
+
=== 0.4.14 / 2015-12-07
|
14
|
+
|
15
|
+
* 1 minor enhancement
|
16
|
+
|
17
|
+
* fixed URL for openHUB and Openhatch
|
18
|
+
|
19
|
+
=== 0.4.13 / 2015-09-08
|
20
|
+
|
21
|
+
* 3 minor enhancements
|
22
|
+
|
23
|
+
* fixed PC23 (usage of setup.rb instead of native code).
|
24
|
+
* New structure: etc contains the publicancreators.cfg which will installed to HOME/.publican_creators/publicancreators.cfg. Also share/publican_creators contains the pictures for the launchers.
|
25
|
+
* Added .index and MANIFEST for packagers
|
26
|
+
|
27
|
+
=== 0.4.12 / 2015-09-07
|
28
|
+
|
29
|
+
* 1 minor enhancement
|
30
|
+
|
31
|
+
* Added bintray deployment
|
32
|
+
|
33
|
+
=== 0.4.9 / 2015-06-27
|
34
|
+
|
35
|
+
* 1 minor enhancement
|
36
|
+
|
37
|
+
* Fixed link creater for bins. The old code removes the old link, but doesn't creates a new one.
|
38
|
+
|
39
|
+
=== 0.4.8.1 / 2015-05-26
|
40
|
+
|
41
|
+
* 2 minor enhancements
|
42
|
+
|
43
|
+
* Improved and extended testcases for continuous integration
|
44
|
+
* Improved code to pacify rubocop.
|
45
|
+
|
46
|
+
=== 0.4.8 / 2015-05-26
|
47
|
+
|
48
|
+
* 1 bug fix
|
49
|
+
|
50
|
+
* fixed PC-18 Can't use RevisionCreator anymore
|
51
|
+
|
52
|
+
=== 0.4.7 / 2015-05-25
|
53
|
+
|
54
|
+
* 1 bug fix
|
55
|
+
|
56
|
+
* fixed PC-17 Fix buildscript (Rakefile)
|
57
|
+
|
58
|
+
* 1 cosmetics
|
59
|
+
|
60
|
+
* fixed PC-16 Refactor prepare
|
61
|
+
|
62
|
+
=== 0.4.6 / 2015-05-23
|
63
|
+
|
64
|
+
* 4 bug fixes
|
65
|
+
|
66
|
+
* fixed PC-15 Cleanup and simplify the codebase
|
67
|
+
* fixed Inch CI: revision/f0acc2fd/code_object/1107530
|
68
|
+
* fixed Inch CI: revision/f0acc2fd/code_object/1104611
|
69
|
+
* fixed Inch CI: revision/f0acc2fd/code_object/1107517
|
70
|
+
|
71
|
+
=== 0.4.5 / 2015-05-21
|
72
|
+
|
73
|
+
* 2 bug fixes
|
74
|
+
|
75
|
+
* fixed PC-13 Hardcoded language in fix_authorgroup_work
|
76
|
+
* fixed PC-14 Refactor fix_authorgroup_work
|
77
|
+
|
78
|
+
=== 0.4.4 / 2015-05-20
|
79
|
+
|
80
|
+
* 2 bug fixes
|
81
|
+
|
82
|
+
* fixed PC-12 Extend RevisionCreator for changing the version number in Article_Info or Book_Info
|
83
|
+
* Updated documentation after fixing PC-12
|
84
|
+
|
85
|
+
=== 0.4.3 / 2015-05-18
|
86
|
+
|
87
|
+
* 1 cosmetic
|
88
|
+
|
89
|
+
* Updated and improved documentation
|
90
|
+
|
91
|
+
=== 0.4.2 / 2015-05-16
|
92
|
+
|
93
|
+
* 3 bug fixes
|
94
|
+
|
95
|
+
* Removed require PublicanCreators from RevisonCreator, because otherwise starts PublicanCreators.
|
96
|
+
* Fixed get class. Now it's possible to use blanks instead of underscores.
|
97
|
+
* Also possible to use blanks instead of underscores in RevisionCreator.
|
98
|
+
|
99
|
+
=== 0.4.0 / 2015-05-16
|
100
|
+
|
101
|
+
* 1 bug fix
|
102
|
+
|
103
|
+
* Both desktop files from PublicanCreators and RevisionCreators having just the name PublicanCreators. Now PublicanCreators uses its name and RevisionCreators its name.
|
104
|
+
|
105
|
+
* 3 cosmetic
|
106
|
+
|
107
|
+
* Made the shell output more colorful. Used yellow as standard color, red for fails, green for successes and blue for to check things.
|
108
|
+
* Extended Rakefile for preparing, building and publishing this gems docs.
|
109
|
+
|
110
|
+
=== 0.3.6 / 2015-05-15
|
111
|
+
|
112
|
+
* 1 bug fix
|
113
|
+
|
114
|
+
* Fixed Rakefile buildscript issue
|
115
|
+
|
116
|
+
=== 0.3.5 / 2015-05-15
|
117
|
+
|
118
|
+
* 1 bug fix
|
119
|
+
|
120
|
+
* fixed link_binary_rev (The variable for checker aren't resolved
|
121
|
+
|
122
|
+
* 1 minor enhancement
|
123
|
+
|
124
|
+
* Changed the buildscript from shellscript to Rakefile. A little bit more comfortable.
|
125
|
+
|
126
|
+
=== 0.3.2 / 2015-05-15
|
127
|
+
|
128
|
+
* 2 bug fixes
|
129
|
+
|
130
|
+
* Readded IRB to binary. Otherwise it doesn't start from /usr/bin (Hotfix)
|
131
|
+
* Hotfix for test file
|
132
|
+
|
133
|
+
=== 0.3.0 / 2015-05-09
|
134
|
+
|
135
|
+
* 3 bug fixes
|
136
|
+
|
137
|
+
* PC-1: Create UI for add_revision
|
138
|
+
* PC-4: Create UI (Task)
|
139
|
+
* PC-5: Create/Update Documentation (Task)
|
140
|
+
|
141
|
+
=== 0.2.0 / 2015-05-07
|
142
|
+
|
143
|
+
* 5 bug fixes
|
144
|
+
|
145
|
+
* PC-6: Create rules for setup Fedora
|
146
|
+
* PC-7: Fix setup.sh
|
147
|
+
* PC-8: Add URL to Bugtracker into UI
|
148
|
+
* PC-9: Split methods from module PublicanCreatorsChange
|
149
|
+
* PC-10: Config versioning
|
150
|
+
|
151
|
+
=== 0.1.1 / 2015-05-06
|
152
|
+
|
153
|
+
* 2 minor enhancements
|
154
|
+
|
155
|
+
* Fetches the titlename, type and environment from a yad dialogbox
|
156
|
+
* Creates the initial documentation by using publican with using your titlename, your chosen type and environment
|
157
|
+
|
158
|
+
* 2 bug fixes
|
159
|
+
|
160
|
+
* PC-2: Extend documentation A-Type
|
161
|
+
* PC-3: Extend documentation B-Type
|
162
|
+
|
163
|
+
=== 0.1.0 / 2015-04-25
|
164
|
+
|
165
|
+
* 1 major enhancement
|
166
|
+
* Build the base functions
|
data/Index.yml
ADDED
@@ -0,0 +1,60 @@
|
|
1
|
+
---
|
2
|
+
name: latex_curriculum_vitae
|
3
|
+
title: Latex_curriculum_vitae
|
4
|
+
summary: A program for creating an application
|
5
|
+
|
6
|
+
description:
|
7
|
+
PublicanCreators are a small tool for daily DocBook writers who are using the Redhat publican tool https://fedorahosted.org/publican/. PublicanCreators asks after
|
8
|
+
launching which title, type and environment should be used. Then it starts publican with that settings and works then with the produced files.
|
9
|
+
It will work inside the Article_Info.xml, Book_Info.xml, TITLE.ent, Author_Group.xml and Revision_History.xml and
|
10
|
+
will replace the default values with your name, your company, your company_divison and your private or your business
|
11
|
+
email address, depending on your chosen environment. Also you can set inside your config file that you want to remove
|
12
|
+
the Title Logo or the Legal Notice. As a feature it ships a build script for each project.
|
13
|
+
|
14
|
+
authors:
|
15
|
+
- Sascha Manns <samannsml@directbox.com>
|
16
|
+
|
17
|
+
requirements:
|
18
|
+
- setup
|
19
|
+
- notifier
|
20
|
+
- nokogiri
|
21
|
+
- parseconfig
|
22
|
+
- rainbow
|
23
|
+
- manns_shared
|
24
|
+
- bundler (build)
|
25
|
+
- hoe (build)
|
26
|
+
- hoe-bundler (build
|
27
|
+
- hoe-gemspec (build)
|
28
|
+
- hoe-git (build)
|
29
|
+
- hoe-rubygems (build)
|
30
|
+
- hoe-manns (build)
|
31
|
+
- hoe-reek (build)
|
32
|
+
- hoe-rubocop (build)
|
33
|
+
- hoe-seattlerb (build)
|
34
|
+
- coveralls (build)
|
35
|
+
- indexer (build)
|
36
|
+
- rdoc (build)
|
37
|
+
- gem-release (build)
|
38
|
+
- rspec (build)
|
39
|
+
- simplecov (build)
|
40
|
+
- rake (build)
|
41
|
+
- test (test)
|
42
|
+
- rubocp (test)
|
43
|
+
|
44
|
+
repositories:
|
45
|
+
upstream: https://gitlab.com/saigkill/publican_creators.git
|
46
|
+
|
47
|
+
resources:
|
48
|
+
home: http://saigkill.github.io
|
49
|
+
code: https://gitlab.com/saigkill/publican_creators
|
50
|
+
bugs: https://gitlab.com/saigkill/publican_creators/issues
|
51
|
+
|
52
|
+
categories:
|
53
|
+
- docbook
|
54
|
+
- linux
|
55
|
+
- ruby
|
56
|
+
- publican
|
57
|
+
|
58
|
+
copyrights:
|
59
|
+
- 2015 Sascha Manns (MIT)
|
60
|
+
|
data/LICENSE.rdoc
ADDED
@@ -0,0 +1,24 @@
|
|
1
|
+
= LICENSE:
|
2
|
+
|
3
|
+
(The MIT License)
|
4
|
+
|
5
|
+
Copyright (c) 2015 Sascha Manns <samannsml@directbox.com>
|
6
|
+
|
7
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
8
|
+
a copy of this software and associated documentation files (the
|
9
|
+
'Software'), to deal in the Software without restriction, including
|
10
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
11
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
12
|
+
permit persons to whom the Software is furnished to do so, subject to
|
13
|
+
the following conditions:
|
14
|
+
|
15
|
+
The above copyright notice and this permission notice shall be
|
16
|
+
included in all copies or substantial portions of the Software.
|
17
|
+
|
18
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
19
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
20
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
21
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
22
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
23
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
24
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/Manifest.txt
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
.autotest
|
2
|
+
.codeclimate.yml
|
3
|
+
.coveralls.yml
|
4
|
+
.gemnasium.yml
|
5
|
+
.gemrelease
|
6
|
+
.gemtest
|
7
|
+
.index
|
8
|
+
.rspec
|
9
|
+
.rubocop.yml
|
10
|
+
.scrutinizer.yml
|
11
|
+
.travis.yml
|
12
|
+
.yardopts
|
13
|
+
CODE_OF_CONDUCT.md
|
14
|
+
CONTRIBUTING.md
|
15
|
+
Gemfile
|
16
|
+
Gemfile.lock
|
17
|
+
History.rdoc
|
18
|
+
Index.yml
|
19
|
+
LICENSE.rdoc
|
20
|
+
Manifest.txt
|
21
|
+
README.rdoc
|
22
|
+
Rakefile
|
23
|
+
VERSION
|
24
|
+
bin/publican_creators.rb
|
25
|
+
bin/revision_creator.rb
|
26
|
+
config.reek
|
27
|
+
data/publican_creators/publican-revision.png
|
28
|
+
data/publican_creators/publican.png
|
29
|
+
etc/publicancreators.cfg
|
30
|
+
lib/PublicanCreators.rb
|
31
|
+
lib/publican_creators/change.rb
|
32
|
+
lib/publican_creators/checker.rb
|
33
|
+
lib/publican_creators/create.rb
|
34
|
+
lib/publican_creators/export.rb
|
35
|
+
lib/publican_creators/get.rb
|
36
|
+
lib/publican_creators/notifier.rb
|
37
|
+
lib/publican_creators/prepare.rb
|
38
|
+
lib/publican_creators/revision.rb
|
39
|
+
lib/publican_creators/testlib.rb
|
40
|
+
spec/lib_spec.rb
|
41
|
+
spec/spec_helper.rb
|
data/README.rdoc
ADDED
@@ -0,0 +1,108 @@
|
|
1
|
+
= publican_creators
|
2
|
+
|
3
|
+
home :: http://saigkill.github.io
|
4
|
+
code :: https://gitlab.com/saigkill/publican_creators
|
5
|
+
docs :: https://gitlab.com/saigkill/publican_creators/wikis/home
|
6
|
+
bugs :: https://gitlab.com/saigkill/publican_creators/issues
|
7
|
+
mailinglist :: https://groups.google.com/forum/#!forum/publicancreators
|
8
|
+
openhub statistics :: https://www.openhub.net/p/publican_creators
|
9
|
+
openhatch :: http://openhatch.org/projects/publicancreators
|
10
|
+
mailinglist :: https://groups.google.com/forum/#!forum/publicancreators
|
11
|
+
license :: {<img src="http://img.shields.io/:license-mit-blue.svg" />}[https://gitlab.com/saigkill/publican_creators/blob/master/LICENSE.rdoc]
|
12
|
+
last public version :: {<img src="https://badge.fury.io/rb/publican_creators.png" alt="Build Status" />}[http://rubygems.org/gems/publican_creators]
|
13
|
+
downloads latest :: {<img src="https://img.shields.io/gem/dtv/publican_creators.svg" alt="Build Status" />}[http://rubygems.org/gems/publican_creators]
|
14
|
+
downloads all :: {<img src="https://img.shields.io/gem/dt/publican_creators.svg" alt="Build Status" />}[http://rubygems.org/gems/publican_creators]
|
15
|
+
continuous integration :: {<img src="https://secure.travis-ci.org/saigkill/publican_creators.png?branch=master" alt="Build Status" />}[https://secure.travis-ci.org/saigkill/publican_creators]
|
16
|
+
continuous integration :: {<img src="https://scrutinizer-ci.com/g/saigkill/publican_creators/badges/build.png?b=master" />}[https://scrutinizer-ci.com/g/saigkill/publican_creators/]
|
17
|
+
code quality :: {<img src="https://scrutinizer-ci.com/g/saigkill/publican_creators/badges/quality-score.png?b=master" />}[https://scrutinizer-ci.com/g/saigkill/publican_creators/]
|
18
|
+
code quality :: {<img src="https://codeclimate.com/github/saigkill/PublicanCreators/badges/gpa.svg" alt="Code Quality" />}[https://codeclimate.com/github/saigkill/PublicanCreators]
|
19
|
+
security :: {<img src="https://hakiri.io/github/saigkill/publican_creators/master.svg" alt="security" />}[https://hakiri.io/github/saigkill/publican_creators/master]
|
20
|
+
test coverage :: {<img src="https://coveralls.io/repos/saigkill/PublicanCreators/badge.svg?branch=master&service=github" alt="Test Coverage" />}[https://coveralls.io/github/saigkill/PublicanCreators]
|
21
|
+
dependency check :: {<img src="https://gemnasium.com/saigkill/publican_creators.svg" alt="Dependency Status" />}[https://gemnasium.com/saigkill/publican_creators]
|
22
|
+
documentation quality :: {<img src="http://inch-ci.org/github/saigkill/PublicanCreators.svg?branch=master" alt="Documentation Quality" />}[http://inch-ci.org/github/saigkill/PublicanCreators]
|
23
|
+
donations :: {<img src="https://pledgie.com/campaigns/29306.png?skin_name=chrome" alt="Build Status" />}[https://pledgie.com/campaigns/29306]
|
24
|
+
donations :: {<img src="http://tsv-neuss.de/cms/upload/News-Bilder/amazon1.png" alt="Build Status" />}[http://www.amazon.de/registry/wishlist/D75HOEQ00BDD]
|
25
|
+
|
26
|
+
== DESCRIPTION:
|
27
|
+
|
28
|
+
PublicanCreators are a small tool for daily DocBook writers who are using the Redhat publican tool https://fedorahosted.org/publican/. PublicanCreators asks after
|
29
|
+
launching which title, type and environment should be used. Then it starts publican with that settings and works then with the produced files.
|
30
|
+
It will work inside the Article_Info.xml, Book_Info.xml, TITLE.ent, Author_Group.xml and Revision_History.xml and
|
31
|
+
will replace the default values with your name, your company, your company_divison and your private or your business
|
32
|
+
email address, depending on your chosen environment. Also you can set inside your config file that you want to remove
|
33
|
+
the Title Logo or the Legal Notice. As a feature it ships a build script for each project.
|
34
|
+
|
35
|
+
== FEATURES/PROBLEMS:
|
36
|
+
|
37
|
+
* GUI to control publican
|
38
|
+
|
39
|
+
== SYNOPSIS:
|
40
|
+
|
41
|
+
publican_creators.rb (Main program)
|
42
|
+
revision_creator.rb (The revision updater)
|
43
|
+
|
44
|
+
Or just use the Launcher.
|
45
|
+
|
46
|
+
== REQUIREMENTS:
|
47
|
+
|
48
|
+
* nokogiri
|
49
|
+
* parseconfig
|
50
|
+
* rainbow
|
51
|
+
* manns_shared
|
52
|
+
* setup
|
53
|
+
* notifier
|
54
|
+
|
55
|
+
== REQUIREMENTS (hard)
|
56
|
+
|
57
|
+
* yad
|
58
|
+
* publican (a 4.x version is needed). If you use Ubuntu you can use the ppa ppa:sascha-manns-h/publican.
|
59
|
+
|
60
|
+
== INSTALL:
|
61
|
+
|
62
|
+
The installation is very easy.
|
63
|
+
|
64
|
+
gem install publican_creators
|
65
|
+
cd /path/to/gem (In case of using RVM ~/.rvm/gems/ruby-2.2.1/gems/publican_creators)
|
66
|
+
rake
|
67
|
+
|
68
|
+
Read the documentation at: https://gitlab.com/saigkill/publican_creators/wikis/home
|
69
|
+
|
70
|
+
You have to run the setup after each gem update.
|
71
|
+
|
72
|
+
If you like this gem, don't forget to give the GitLab repo a start :-)
|
73
|
+
|
74
|
+
== DEVELOPERS:
|
75
|
+
|
76
|
+
After checking out the source, run:
|
77
|
+
|
78
|
+
$ rake newb
|
79
|
+
|
80
|
+
This task will install any missing dependencies, run the tests/specs,
|
81
|
+
and generate the RDoc.
|
82
|
+
|
83
|
+
Read https://gitlab.com/saigkill/publican_creators/blob/master/CONTRIBUTING.md
|
84
|
+
|
85
|
+
== LICENSE:
|
86
|
+
|
87
|
+
(The MIT License)
|
88
|
+
|
89
|
+
Copyright (c) 2015 Sascha Manns <samannsml@directbox.com>
|
90
|
+
|
91
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
92
|
+
a copy of this software and associated documentation files (the
|
93
|
+
'Software'), to deal in the Software without restriction, including
|
94
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
95
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
96
|
+
permit persons to whom the Software is furnished to do so, subject to
|
97
|
+
the following conditions:
|
98
|
+
|
99
|
+
The above copyright notice and this permission notice shall be
|
100
|
+
included in all copies or substantial portions of the Software.
|
101
|
+
|
102
|
+
THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
|
103
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
104
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
|
105
|
+
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
|
106
|
+
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
|
107
|
+
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
|
108
|
+
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/Rakefile
ADDED
@@ -0,0 +1,139 @@
|
|
1
|
+
# -*- ruby -*-
|
2
|
+
# Release:
|
3
|
+
# * update *.wiki markdown documentation for GitLab
|
4
|
+
# * enable :git
|
5
|
+
# * rake run_before_release
|
6
|
+
# * disable :git
|
7
|
+
# * Checkin
|
8
|
+
# * rake release
|
9
|
+
# * rake run_after_release
|
10
|
+
|
11
|
+
require 'rubygems'
|
12
|
+
require 'hoe'
|
13
|
+
|
14
|
+
# rubocop:disable Metrics/LineLength
|
15
|
+
############################################# DEVELOPING ZONE #########################################################
|
16
|
+
Hoe.plugin :bundler
|
17
|
+
Hoe.plugin :doofus
|
18
|
+
Hoe.plugin :email
|
19
|
+
#Hoe.plugin :gemspec
|
20
|
+
# Hoe.plugin :gem_prelude_sucks
|
21
|
+
Hoe.plugins.delete :git
|
22
|
+
#Hoe.plugin :git
|
23
|
+
Hoe.plugin :highline
|
24
|
+
#Hoe.plugin :inline
|
25
|
+
Hoe.plugin :manns
|
26
|
+
Hoe.plugin :rubocop
|
27
|
+
Hoe.plugin :rubygems
|
28
|
+
# Hoe.plugin :seattlerb
|
29
|
+
Hoe.plugin :travis
|
30
|
+
Hoe.plugin :version
|
31
|
+
Hoe.plugin :website
|
32
|
+
|
33
|
+
Hoe.spec 'publican_creators' do
|
34
|
+
developer('Sascha Manns', 'samannsml@directbox.com')
|
35
|
+
license 'MIT' # this should match the license in the README
|
36
|
+
require_ruby_version '>= 2.2.0'
|
37
|
+
|
38
|
+
email_to << 'ruby-talk@ruby-lang.org'
|
39
|
+
#email_to << 'Sascha.Manns@bdvb.de
|
40
|
+
|
41
|
+
self.history_file = 'History.rdoc'
|
42
|
+
self.readme_file = 'README.rdoc'
|
43
|
+
self.extra_rdoc_files = FileList['*.rdoc'].to_a
|
44
|
+
self.post_install_message = '*** Run rake setup to finish the installation *** Please file bugreports and feature requests on: https://gitlab.com/saigkill/publican_creators/issue'
|
45
|
+
|
46
|
+
dependency 'setup', '~> 5.2'
|
47
|
+
dependency 'nokogiri', '~> 1.6.7'
|
48
|
+
dependency 'parseconfig', '~> 1.0'
|
49
|
+
dependency 'rainbow', '~> 2.1'
|
50
|
+
dependency 'notifier', '~> 0.5'
|
51
|
+
|
52
|
+
extra_dev_deps << ['coveralls', '~> 0.8']
|
53
|
+
extra_dev_deps << ['hoe-bundler', '~> 1.2']
|
54
|
+
extra_dev_deps << ['hoe-gemspec', '~> 1.0']
|
55
|
+
extra_dev_deps << ['hoe-git', '~> 1.6']
|
56
|
+
extra_dev_deps << ['hoe-rubygems', '~> 1.0']
|
57
|
+
extra_dev_deps << ['hoe-manns', '~> 1.4']
|
58
|
+
extra_dev_deps << ['hoe-reek', '~> 1.1']
|
59
|
+
extra_dev_deps << ['hoe-rubocop', '~> 1.0']
|
60
|
+
extra_dev_deps << ['hoe-version', '~> 1.2']
|
61
|
+
extra_dev_deps << ['hoe-seattlerb', '~> 1.3']
|
62
|
+
extra_dev_deps << ['hoe', '~> 3.14']
|
63
|
+
extra_dev_deps << ['rake', '~> 10.5']
|
64
|
+
extra_dev_deps << ['gem-release', '~> 0.7']
|
65
|
+
extra_dev_deps << ['indexer', '~> 0.3']
|
66
|
+
extra_dev_deps << ['manns_shared', '~> 1.0']
|
67
|
+
extra_dev_deps << ['bundler', '~> 1.11']
|
68
|
+
extra_dev_deps << ['rspec', '~> 3.4']
|
69
|
+
extra_dev_deps << ['rubocop', '~> 0.36']
|
70
|
+
extra_dev_deps << ['simplecov', '~> 0.11']
|
71
|
+
end
|
72
|
+
|
73
|
+
###################################### SETUP ZONE #####################################################################
|
74
|
+
|
75
|
+
require 'etc'
|
76
|
+
require 'fileutils'
|
77
|
+
desc 'Create Desktop files'
|
78
|
+
task :create_desktop_cre do
|
79
|
+
home = Dir.home
|
80
|
+
prefix = "#{home}/.rvm/rubies/default"
|
81
|
+
datadir = "#{prefix}/share"
|
82
|
+
publicancre = "#{home}/.local/share/applications/publicancreators.desktop"
|
83
|
+
publicancreico = "#{datadir}/publican_creators/publican.png"
|
84
|
+
system("sudo rm #{publicancre}") if File.exists?(publicancre)
|
85
|
+
puts 'Creating Desktop file for PublicanCreators'.color(:yellow)
|
86
|
+
FileUtils.touch "#{publicancre}"
|
87
|
+
File.write "#{publicancre}", <<EOF
|
88
|
+
[Desktop Entry]
|
89
|
+
Version=1.0
|
90
|
+
Type=Application
|
91
|
+
Name=PublicanCreators
|
92
|
+
Exec=publican_creators.rb
|
93
|
+
Icon=#{publicancreico}
|
94
|
+
EOF
|
95
|
+
end
|
96
|
+
|
97
|
+
require 'etc'
|
98
|
+
require 'fileutils'
|
99
|
+
desc 'Create publicancreators-rev.desktop'
|
100
|
+
task :create_desktop_rev do
|
101
|
+
home = Dir.home
|
102
|
+
prefix = "#{home}/.rvm/rubies/default"
|
103
|
+
datadir = "#{prefix}/share"
|
104
|
+
publicanrev = "#{home}/.local/share/applications/publicancreators-rev.desktop"
|
105
|
+
publicanrevico = "#{datadir}/publican_creators/publican-revision.png"
|
106
|
+
system("sudo rm #{publicanrev}") if File.exist?(publicanrev)
|
107
|
+
puts 'Creating Desktop file for PublicanCreatorsRevision'.color(:yellow)
|
108
|
+
FileUtils.touch "#{publicanrev}"
|
109
|
+
File.write "#{publicanrev}", <<EOF
|
110
|
+
[Desktop Entry]
|
111
|
+
Version=1.0
|
112
|
+
Type=Application
|
113
|
+
Name=PublicanCreatorsRevision
|
114
|
+
Exec=revision_creator.rb
|
115
|
+
Icon=#{publicanrevico}
|
116
|
+
EOF
|
117
|
+
end
|
118
|
+
|
119
|
+
require 'fileutils'
|
120
|
+
desc 'Backup config file'
|
121
|
+
task :backup_config do
|
122
|
+
home = Dir.home
|
123
|
+
prefix = "#{home}/.publican_creators"
|
124
|
+
from = 'publicancreators.cfg'
|
125
|
+
to = 'publicancreators.bak'
|
126
|
+
if File.exist?("#{prefix}/#{from}")
|
127
|
+
FileUtils.cd(prefix) do
|
128
|
+
FileUtils.cp(from, to)
|
129
|
+
end
|
130
|
+
end
|
131
|
+
end
|
132
|
+
|
133
|
+
desc 'Run setup'
|
134
|
+
task :setup => [:setup_start, :create_desktop_cre, :create_desktop_rev, :backup_config] do
|
135
|
+
system('setup.rb uninstall --force')
|
136
|
+
system('setup.rb config --sysconfdir=$HOME/.manns_shared')
|
137
|
+
system('setup.rb install')
|
138
|
+
end
|
139
|
+
# vim: syntax=ruby
|