hoe-packaging 1.2.3 → 1.2.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b42129df7b9738892bc46a15224ec1a654ac5135a6a7034ce0f176612a4aa250
4
- data.tar.gz: 83ea298d6b0965fd1bdc8a02d72824246dadabd5bcd44518186c2c6c94575170
3
+ metadata.gz: bc6c3c0d30595b2cb02d33fd710e437831436a9ed1c8a70d840f0a6acb2c1ba5
4
+ data.tar.gz: 8e56288a0fb05f0f250aaa2d96cffe8726b7376ece6cbb21350856d6e48e5c2d
5
5
  SHA512:
6
- metadata.gz: 1a93c50735d274928d3a968838f8cc673f7ee6527ffced6124162f871bfcfe4cb0feb2676bc4dc482d632b8f86f5d545a9e7f9cd961a61daf38634f1aeb7f773
7
- data.tar.gz: b994bd55fb0a4cbc546bd29f99589185ffc37affb7ba4fc288d8784733a688046eb3262a79dea74151765e2bdf0ac6061236686e5a8c276a542ff0b1ddc2d045
6
+ metadata.gz: 447ea975cfdb62ac9bd686b7a25f166c990f49abf54aea08595a678a2d493bfdf17af68190ca4d24b8be79aa23b1383bee7bf1f5ad576a152eaab028a901304e
7
+ data.tar.gz: 94d6c88e0123c6a5ea54bccf6583ff2adf2e9a7d6735c728b1028965b1573dc599181d13fb0a9a01c2839c21fd4763e4f33991569e63a132549d9f06f59bdec4
@@ -1,8 +1,8 @@
1
- = IDEAS:
1
+ # IDEAS:
2
2
 
3
3
  * Add ideas on: https://github.com/saigkill/hoe-packaging/issues
4
4
 
5
- = COOL HACKS:
5
+ ## COOL HACKS:
6
6
 
7
7
  * Open a bugreport on https://github.com/saigkill/hoe-packaging/issues.
8
8
  * Please use the -u flag when generating the patch as it makes the patch
@@ -10,18 +10,16 @@
10
10
  * Write a good explanation of what the patch does.
11
11
  * It is better to use git format-patch command: git format-patch HEAD^
12
12
 
13
- = STRUCTURE:
13
+ # STRUCTURE:
14
14
 
15
- == BRANCHES:
15
+ ## BRANCHES:
16
16
 
17
- === `master` BRANCH:
17
+ ### `master` BRANCH:
18
18
  The master branch is the last stable version.
19
19
 
20
- === `develop` BRANCH:
20
+ ### `develop` BRANCH:
21
21
  The develop branch is the current edge of development.
22
22
 
23
- === MERGE REQUESTS:
24
- If you want to merge your branch with the trunk, join the team.
25
-
26
- Please base all Merge requests off the `master` branch. Merges to
27
- `X.X` only occur through the `master` branch.
23
+ ### PULL REQUESTS:
24
+ Please base all Pullrequests off the `develop` branch. Merges to
25
+ `X.X` only occur through the `develop` branch.
data/Gemfile CHANGED
@@ -4,7 +4,7 @@
4
4
 
5
5
  source "https://rubygems.org/"
6
6
 
7
- gem "fpm", "~>1.9"
7
+ gem "fpm", "~>1.10"
8
8
  gem "fpm-cookery", "~>0.33"
9
9
  gem "parseconfig", "~>1.0.8"
10
10
 
@@ -1,143 +1,143 @@
1
- GEM
2
- remote: https://rubygems.org/
3
- specs:
4
- addressable (2.3.8)
5
- arr-pm (0.0.10)
6
- cabin (> 0)
7
- backports (3.11.3)
8
- cabin (0.9.0)
9
- childprocess (0.9.0)
10
- ffi (~> 1.0, >= 1.0.11)
11
- clamp (1.0.1)
12
- coveralls (0.8.21)
13
- json (>= 1.8, < 3)
14
- simplecov (~> 0.14.1)
15
- term-ansicolor (~> 1.3)
16
- thor (~> 0.19.4)
17
- tins (~> 1.6)
18
- diff-lcs (1.3)
19
- docile (1.1.5)
20
- dotenv (2.4.0)
21
- facter (2.5.1)
22
- facter (2.5.1-x64-mingw32)
23
- ffi (~> 1.9.5)
24
- ffi (1.9.23)
25
- ffi (1.9.23-x64-mingw32)
26
- ffi-win32-extensions (1.0.3)
27
- ffi
28
- fpm (1.9.3)
29
- arr-pm (~> 0.0.10)
30
- backports (>= 2.6.2)
31
- cabin (>= 0.6.0)
32
- childprocess
33
- clamp (~> 1.0.0)
34
- ffi
35
- json (>= 1.7.7, < 2.0)
36
- pleaserun (~> 0.0.29)
37
- ruby-xz
38
- stud
39
- fpm-cookery (0.33.0)
40
- addressable (~> 2.3.8)
41
- facter
42
- fpm (~> 1.1)
43
- json (>= 1.7.7, < 2.0)
44
- json_pure (>= 1.7.7, < 2.0)
45
- puppet (~> 3.4)
46
- safe_yaml (~> 1.0.4)
47
- systemu
48
- hiera (1.3.4)
49
- json_pure
50
- hoe (3.17.0)
51
- rake (>= 0.8, < 13.0)
52
- hoe-bundler (1.4.0)
53
- hoe-version (1.2.0)
54
- insist (1.0.0)
55
- io-like (0.3.0)
56
- json (1.8.6)
57
- json_pure (1.8.6)
58
- minitar (0.5.4)
59
- mustache (0.99.8)
60
- parseconfig (1.0.8)
61
- pleaserun (0.0.30)
62
- cabin (> 0)
63
- clamp
64
- dotenv
65
- insist
66
- mustache (= 0.99.8)
67
- stud
68
- puppet (3.8.7)
69
- facter (> 1.6, < 3)
70
- hiera (~> 1.0)
71
- json_pure
72
- puppet (3.8.7-x64-mingw32)
73
- facter (> 1.6, < 3)
74
- ffi (~> 1.9.5)
75
- hiera (~> 1.0)
76
- json_pure
77
- minitar (~> 0.5.4)
78
- win32-dir (~> 0.4.9)
79
- win32-eventlog (~> 0.6.1)
80
- win32-process (~> 0.7.4)
81
- win32-security (~> 0.2.5)
82
- win32-service (~> 0.8.6)
83
- rake (12.3.1)
84
- rdoc (6.0.3)
85
- rspec (3.7.0)
86
- rspec-core (~> 3.7.0)
87
- rspec-expectations (~> 3.7.0)
88
- rspec-mocks (~> 3.7.0)
89
- rspec-core (3.7.1)
90
- rspec-support (~> 3.7.0)
91
- rspec-expectations (3.7.0)
92
- diff-lcs (>= 1.2.0, < 2.0)
93
- rspec-support (~> 3.7.0)
94
- rspec-mocks (3.7.0)
95
- diff-lcs (>= 1.2.0, < 2.0)
96
- rspec-support (~> 3.7.0)
97
- rspec-support (3.7.1)
98
- ruby-xz (0.2.3)
99
- ffi (~> 1.9)
100
- io-like (~> 0.3)
101
- safe_yaml (1.0.4)
102
- simplecov (0.14.1)
103
- docile (~> 1.1.0)
104
- json (>= 1.8, < 3)
105
- simplecov-html (~> 0.10.0)
106
- simplecov-html (0.10.2)
107
- stud (0.0.23)
108
- systemu (2.6.5)
109
- term-ansicolor (1.6.0)
110
- tins (~> 1.0)
111
- thor (0.19.4)
112
- tins (1.16.3)
113
- win32-dir (0.4.9)
114
- ffi (>= 1.0.0)
115
- win32-eventlog (0.6.7)
116
- ffi
117
- win32-process (0.7.5)
118
- ffi (>= 1.0.0)
119
- win32-security (0.2.5)
120
- ffi
121
- win32-service (0.8.10)
122
- ffi
123
- ffi-win32-extensions
124
-
125
- PLATFORMS
126
- ruby
127
- x64-mingw32
128
- x86_64-linux
129
-
130
- DEPENDENCIES
131
- coveralls (~> 0.8)
132
- fpm (~> 1.9)
133
- fpm-cookery (~> 0.33)
134
- hoe (~> 3.17)
135
- hoe-bundler (~> 1.4)
136
- hoe-version (~> 1.2)
137
- parseconfig (~> 1.0.8)
138
- rake (~> 12.3)
139
- rdoc (~> 6.0)
140
- rspec (~> 3.7)
141
-
142
- BUNDLED WITH
143
- 1.16.1
1
+ GEM
2
+ remote: https://rubygems.org/
3
+ specs:
4
+ addressable (2.3.8)
5
+ arr-pm (0.0.10)
6
+ cabin (> 0)
7
+ backports (3.11.3)
8
+ cabin (0.9.0)
9
+ childprocess (0.9.0)
10
+ ffi (~> 1.0, >= 1.0.11)
11
+ clamp (1.0.1)
12
+ coveralls (0.8.21)
13
+ json (>= 1.8, < 3)
14
+ simplecov (~> 0.14.1)
15
+ term-ansicolor (~> 1.3)
16
+ thor (~> 0.19.4)
17
+ tins (~> 1.6)
18
+ diff-lcs (1.3)
19
+ docile (1.1.5)
20
+ dotenv (2.5.0)
21
+ facter (2.5.1)
22
+ facter (2.5.1-x64-mingw32)
23
+ ffi (~> 1.9.5)
24
+ ffi (1.9.25)
25
+ ffi (1.9.25-x64-mingw32)
26
+ ffi-win32-extensions (1.0.3)
27
+ ffi
28
+ fpm (1.10.0)
29
+ arr-pm (~> 0.0.10)
30
+ backports (>= 2.6.2)
31
+ cabin (>= 0.6.0)
32
+ childprocess
33
+ clamp (~> 1.0.0)
34
+ ffi
35
+ json (>= 1.7.7, < 2.0)
36
+ pleaserun (~> 0.0.29)
37
+ ruby-xz (~> 0.2.3)
38
+ stud
39
+ fpm-cookery (0.33.0)
40
+ addressable (~> 2.3.8)
41
+ facter
42
+ fpm (~> 1.1)
43
+ json (>= 1.7.7, < 2.0)
44
+ json_pure (>= 1.7.7, < 2.0)
45
+ puppet (~> 3.4)
46
+ safe_yaml (~> 1.0.4)
47
+ systemu
48
+ hiera (1.3.4)
49
+ json_pure
50
+ hoe (3.17.0)
51
+ rake (>= 0.8, < 13.0)
52
+ hoe-bundler (1.4.0)
53
+ hoe-version (1.2.0)
54
+ insist (1.0.0)
55
+ io-like (0.3.0)
56
+ json (1.8.6)
57
+ json_pure (1.8.6)
58
+ minitar (0.5.4)
59
+ mustache (0.99.8)
60
+ parseconfig (1.0.8)
61
+ pleaserun (0.0.30)
62
+ cabin (> 0)
63
+ clamp
64
+ dotenv
65
+ insist
66
+ mustache (= 0.99.8)
67
+ stud
68
+ puppet (3.8.7)
69
+ facter (> 1.6, < 3)
70
+ hiera (~> 1.0)
71
+ json_pure
72
+ puppet (3.8.7-x64-mingw32)
73
+ facter (> 1.6, < 3)
74
+ ffi (~> 1.9.5)
75
+ hiera (~> 1.0)
76
+ json_pure
77
+ minitar (~> 0.5.4)
78
+ win32-dir (~> 0.4.9)
79
+ win32-eventlog (~> 0.6.1)
80
+ win32-process (~> 0.7.4)
81
+ win32-security (~> 0.2.5)
82
+ win32-service (~> 0.8.6)
83
+ rake (12.3.1)
84
+ rdoc (6.0.4)
85
+ rspec (3.7.0)
86
+ rspec-core (~> 3.7.0)
87
+ rspec-expectations (~> 3.7.0)
88
+ rspec-mocks (~> 3.7.0)
89
+ rspec-core (3.7.1)
90
+ rspec-support (~> 3.7.0)
91
+ rspec-expectations (3.7.0)
92
+ diff-lcs (>= 1.2.0, < 2.0)
93
+ rspec-support (~> 3.7.0)
94
+ rspec-mocks (3.7.0)
95
+ diff-lcs (>= 1.2.0, < 2.0)
96
+ rspec-support (~> 3.7.0)
97
+ rspec-support (3.7.1)
98
+ ruby-xz (0.2.3)
99
+ ffi (~> 1.9)
100
+ io-like (~> 0.3)
101
+ safe_yaml (1.0.4)
102
+ simplecov (0.14.1)
103
+ docile (~> 1.1.0)
104
+ json (>= 1.8, < 3)
105
+ simplecov-html (~> 0.10.0)
106
+ simplecov-html (0.10.2)
107
+ stud (0.0.23)
108
+ systemu (2.6.5)
109
+ term-ansicolor (1.6.0)
110
+ tins (~> 1.0)
111
+ thor (0.19.4)
112
+ tins (1.16.3)
113
+ win32-dir (0.4.9)
114
+ ffi (>= 1.0.0)
115
+ win32-eventlog (0.6.7)
116
+ ffi
117
+ win32-process (0.7.5)
118
+ ffi (>= 1.0.0)
119
+ win32-security (0.2.5)
120
+ ffi
121
+ win32-service (0.8.10)
122
+ ffi
123
+ ffi-win32-extensions
124
+
125
+ PLATFORMS
126
+ ruby
127
+ x64-mingw32
128
+ x86_64-linux
129
+
130
+ DEPENDENCIES
131
+ coveralls (~> 0.8)
132
+ fpm (~> 1.10)
133
+ fpm-cookery (~> 0.33)
134
+ hoe (~> 3.17)
135
+ hoe-bundler (~> 1.4)
136
+ hoe-version (~> 1.2)
137
+ parseconfig (~> 1.0.8)
138
+ rake (~> 12.3)
139
+ rdoc (~> 6.0)
140
+ rspec (~> 3.7)
141
+
142
+ BUNDLED WITH
143
+ 1.16.2
@@ -1,86 +1,92 @@
1
- === 1.2.3 / 2018-04-27
2
-
3
- * 1 misc enhancement
4
-
5
- * updated dependencies and updated documentation and bugtracker url
6
-
7
- === 1.2.2 / 2017-11-06
8
-
9
- * 1 patch enhancement
10
-
11
- * updated reek dependency
12
-
13
- === 1.2.1 / 2017-10-28
14
-
15
- * 4 minor enhancement
16
-
17
- * HP-5: Changed documentation from publican to daps
18
- * HP-6: Add more targets to travis.yml
19
- * HP-7: Add parseconfig as dependency
20
- * HP-8: Fix method colour to color (Rainbow Standard)
21
-
22
- === 1.2.0 / 2017-10-20
23
-
24
- * 4 minor enhancement
25
-
26
- * HP-1: Split README.rdoc into STATUS.rdoc
27
- * HP-2: Change License to GPL-3
28
- * HP-3: Pacify rubocop and reek
29
- * HP-4: Update Documentation
30
-
31
- === 1.1.7 / 2017-02-25
32
-
33
- * 1 minor enhancement
34
-
35
- * fixed travis
36
-
37
- === 1.1.6 / 2017-02-22
38
-
39
- * 1 minor enhancements
40
-
41
- * updated dependencies
42
-
43
- === 1.1.5 / 2016-09-01
44
-
45
- * 2 minor enhancements
46
-
47
- * updated dependencies from gemnasium
48
- * added user documentation
49
-
50
- === 1.1.4 / 2016-08-06
51
-
52
- * 1 minor enhanement
53
-
54
- * updated dependencies from gemnasium
55
-
56
- === 1.1.3 / 2016-02-08
57
-
58
- * 1 minor enhancement
59
-
60
- * updated dependencies from gemnasium
61
-
62
- === 1.1.2 / 2015-12-22
63
-
64
- * 1 minor enhancement
65
-
66
- * updated dependencies from gemnasium
67
-
68
- === 1.1.1 / 2015-10-31
69
-
70
- * 1 minor enhancement
71
-
72
- * Fixed broken scrutinizer graphics link
73
-
74
- === 1.1.0 / 2015-10-13
75
-
76
- * 1 major enhancement
77
-
78
- * fixed upload to bintray
79
-
80
- === 1.0.0 / 2015-10-08
81
-
82
- * 1 major enhancement
83
-
84
- * Birthday!
85
- * Excluded from hoe-manns
86
-
1
+ === 1.2.4 / 2018-06-27
2
+
3
+ * 1 patch enhancement
4
+
5
+ * updated dependencies
6
+
7
+ === 1.2.3 / 2018-04-27
8
+
9
+ * 1 misc enhancement
10
+
11
+ * updated dependencies and updated documentation and bugtracker url
12
+
13
+ === 1.2.2 / 2017-11-06
14
+
15
+ * 1 patch enhancement
16
+
17
+ * updated reek dependency
18
+
19
+ === 1.2.1 / 2017-10-28
20
+
21
+ * 4 minor enhancement
22
+
23
+ * HP-5: Changed documentation from publican to daps
24
+ * HP-6: Add more targets to travis.yml
25
+ * HP-7: Add parseconfig as dependency
26
+ * HP-8: Fix method colour to color (Rainbow Standard)
27
+
28
+ === 1.2.0 / 2017-10-20
29
+
30
+ * 4 minor enhancement
31
+
32
+ * HP-1: Split README.rdoc into STATUS.rdoc
33
+ * HP-2: Change License to GPL-3
34
+ * HP-3: Pacify rubocop and reek
35
+ * HP-4: Update Documentation
36
+
37
+ === 1.1.7 / 2017-02-25
38
+
39
+ * 1 minor enhancement
40
+
41
+ * fixed travis
42
+
43
+ === 1.1.6 / 2017-02-22
44
+
45
+ * 1 minor enhancements
46
+
47
+ * updated dependencies
48
+
49
+ === 1.1.5 / 2016-09-01
50
+
51
+ * 2 minor enhancements
52
+
53
+ * updated dependencies from gemnasium
54
+ * added user documentation
55
+
56
+ === 1.1.4 / 2016-08-06
57
+
58
+ * 1 minor enhanement
59
+
60
+ * updated dependencies from gemnasium
61
+
62
+ === 1.1.3 / 2016-02-08
63
+
64
+ * 1 minor enhancement
65
+
66
+ * updated dependencies from gemnasium
67
+
68
+ === 1.1.2 / 2015-12-22
69
+
70
+ * 1 minor enhancement
71
+
72
+ * updated dependencies from gemnasium
73
+
74
+ === 1.1.1 / 2015-10-31
75
+
76
+ * 1 minor enhancement
77
+
78
+ * Fixed broken scrutinizer graphics link
79
+
80
+ === 1.1.0 / 2015-10-13
81
+
82
+ * 1 major enhancement
83
+
84
+ * fixed upload to bintray
85
+
86
+ === 1.0.0 / 2015-10-08
87
+
88
+ * 1 major enhancement
89
+
90
+ * Birthday!
91
+ * Excluded from hoe-manns
92
+
@@ -1,11 +1,11 @@
1
- Gemfile
2
- Gemfile.lock
3
- History.rdoc
4
- LICENSE.rdoc
5
- Manifest.txt
6
- README.rdoc
7
- CODE_OF_CONDUCT.rdoc
8
- DEVELOPING.rdoc
9
- MAINTENANCE.rdoc
10
- Rakefile
11
- lib/hoe/packaging.rb
1
+ Gemfile
2
+ Gemfile.lock
3
+ History.rdoc
4
+ LICENSE.rdoc
5
+ Manifest.txt
6
+ README.rdoc
7
+ CODE_OF_CONDUCT.rdoc
8
+ CONTRIBUTING.md
9
+ MAINTENANCE.rdoc
10
+ Rakefile
11
+ lib/hoe/packaging.rb
@@ -1,75 +1,75 @@
1
- = hoe-packaging
2
-
3
- code :: https://github.com/saigkill/hoe-packaging
4
- docs :: http://saigkill.tuxfamily.org/documentation/hoe-packaging
5
- apidoc :: http://www.rubydoc.info/gems/hoe-packaging
6
- bugs & feature requests :: https://github.com/saigkill/hoe-packaging/issues
7
- openhub statistics :: https://www.openhub.net/p/hoe-packaging
8
- authors blog :: https://saigkill.tuxfamily.org
9
- min. rubyver :: 2.3.0
10
-
11
- last public version :: {<img src="https://badge.fury.io/rb/hoe-packaging.png" alt="Last Version" />}[http://rubygems.org/gems/hoe-packaging]
12
- downloads latest :: {<img src="https://img.shields.io/gem/dtv/hoe-packaging.svg" alt="Downloads latest version" />}[http://rubygems.org/gems/hoe-packaging]
13
- downloads all :: {<img src="https://img.shields.io/gem/dt/hoe-packaging.svg" alt="Downloads all versions" />}[http://rubygems.org/gems/hoe-packaging]
14
- code quality :: {<img src="https://scrutinizer-ci.com/g/saigkill/hoe-packaging/badges/quality-score.png?b=master" />}[https://scrutinizer-ci.com/g/saigkill/hoe-packaging/]
15
- code quality :: {<img src="https://api.codeclimate.com/v1/badges/5491c830409827e04868/maintainability" />}[https://codeclimate.com/github/saigkill/hoe-packaging/maintainability]
16
- code quality :: {<img src="https://api.codacy.com/project/badge/Grade/ddc76c674b464b4eac7a8d05a0155c24" alt="Codacy code quality" />}[https://www.codacy.com/app/samannsml/hoe-packaging?utm_source=github.com&utm_medium=referral&utm_content=saigkill/hoe-packaging&utm_campaign=Badge_Grade]
17
- security :: {<img src="https://hakiri.io/github/saigkill/hoe-packaging/master.svg" alt="security" />}[https://hakiri.io/github/saigkill/hoe-packaging/master]
18
- dependency check :: {<img src="https://gemnasium.com/saigkill/hoe-packaging.svg" alt="Dependency Status" />}[https://gemnasium.com/saigkill/hoe-packaging]
19
- documentation quality :: {<img src="http://inch-ci.org/github/saigkill/hoe-packaging.svg?branch=master" alt="Documentation Quality" />}[http://inch-ci.org/github/saigkill/hoe-packaging]
20
-
21
- == DESCRIPTION:
22
-
23
- hoe-packaging is a plugin for the hoe ruby projecthelper (https://github.com/seattlerb/hoe). It provides creation of rpm and deb packages,
24
- also a deployment to bintray.
25
-
26
- The History.rdoc contains a detailed description on what has changed.
27
-
28
- hoe-packaging is released under the GPL3 License, see the file 'License.rdoc' for more information.
29
-
30
- The official web site is:
31
-
32
- https://github.com/saigkill/hoe-packaging
33
-
34
- == FEATURES:
35
-
36
- * creating of deb & rpm packages
37
- * deploying to bintray.
38
-
39
- This Gem was programmed and tested for Linux systems. If anyone would like to make the methods also fit for other OS, i'm happy about Pull requests.
40
-
41
- See the {Tracker}[https://github.com/saigkill/hoe-packaging/issues] for checking known issues.
42
-
43
- == SYNOPSIS:
44
-
45
- Use in your Rakefile:
46
-
47
- Hoe.plugin :packaging
48
-
49
- Hoe.spec 'yourproject' do
50
- ...
51
- end
52
-
53
- Also add hoe-packaging to your requirements and recreate your Gemfile.
54
-
55
- Read the documentation at: http://saigkill.tuxfamily.org/documentation/hoe-packaging
56
-
57
- == REQUIREMENTS:
58
-
59
- * fpm
60
- * fpm-cookery
61
-
62
- == INSTALL:
63
-
64
- The installation is very easy.
65
-
66
- gem install hoe-packaging
67
-
68
- == DEVELOPERS:
69
-
70
- After checking out the source, run:
71
-
72
- $ rake newb
73
-
74
- This task will install any missing dependencies, run the tests/specs,
1
+ = hoe-packaging
2
+
3
+ code :: https://github.com/saigkill/hoe-packaging
4
+ docs :: https://github.com/saigkill/hoe-packaging/wiki
5
+ apidoc :: http://www.rubydoc.info/gems/hoe-packaging
6
+ bugs & feature requests :: https://github.com/saigkill/hoe-packaging/issues
7
+ openhub statistics :: https://www.openhub.net/p/hoe-packaging
8
+ mailing list :: https://groups.google.com/forum/#!forum/saigkills-hoe-plugins
9
+ authors blog :: https://saigkills-backtrace.de
10
+ min. rubyver :: 2.3.0
11
+
12
+ last public version :: {<img src="https://badge.fury.io/rb/hoe-packaging.png" alt="Last Version" />}[http://rubygems.org/gems/hoe-packaging]
13
+ downloads latest :: {<img src="https://img.shields.io/gem/dtv/hoe-packaging.svg" alt="Downloads latest version" />}[http://rubygems.org/gems/hoe-packaging]
14
+ downloads all :: {<img src="https://img.shields.io/gem/dt/hoe-packaging.svg" alt="Downloads all versions" />}[http://rubygems.org/gems/hoe-packaging]
15
+ code quality :: {<img src="https://scrutinizer-ci.com/g/saigkill/hoe-packaging/badges/quality-score.png?b=master" />}[https://scrutinizer-ci.com/g/saigkill/hoe-packaging/]
16
+ code quality :: {<img src="https://api.codeclimate.com/v1/badges/5491c830409827e04868/maintainability" />}[https://codeclimate.com/github/saigkill/hoe-packaging/maintainability]
17
+ code quality :: {<img src="https://api.codacy.com/project/badge/Grade/ddc76c674b464b4eac7a8d05a0155c24" alt="Codacy code quality" />}[https://www.codacy.com/app/samannsml/hoe-packaging?utm_source=github.com&utm_medium=referral&utm_content=saigkill/hoe-packaging&utm_campaign=Badge_Grade]
18
+ security :: {<img src="https://hakiri.io/github/saigkill/hoe-packaging/master.svg" alt="security" />}[https://hakiri.io/github/saigkill/hoe-packaging/master]
19
+ documentation quality :: {<img src="http://inch-ci.org/github/saigkill/hoe-packaging.svg?branch=master" alt="Documentation Quality" />}[http://inch-ci.org/github/saigkill/hoe-packaging]
20
+
21
+ == DESCRIPTION:
22
+
23
+ hoe-packaging is a plugin for the hoe ruby projecthelper (https://github.com/seattlerb/hoe). It provides creation of rpm and deb packages,
24
+ also a deployment to bintray.
25
+
26
+ The History.rdoc contains a detailed description on what has changed.
27
+
28
+ hoe-packaging is released under the GPL3 License, see the file 'License.rdoc' for more information.
29
+
30
+ The official web site is:
31
+
32
+ https://github.com/saigkill/hoe-packaging
33
+
34
+ == FEATURES:
35
+
36
+ * creating of deb & rpm packages
37
+ * deploying to bintray.
38
+
39
+ This Gem was programmed and tested for Linux systems. If anyone would like to make the methods also fit for other OS, i'm happy about Pull requests.
40
+
41
+ See the {Tracker}[https://github.com/saigkill/hoe-packaging/issues] for checking known issues.
42
+
43
+ == SYNOPSIS:
44
+
45
+ Use in your Rakefile:
46
+
47
+ Hoe.plugin :packaging
48
+
49
+ Hoe.spec 'yourproject' do
50
+ ...
51
+ end
52
+
53
+ Also add hoe-packaging to your requirements and recreate your Gemfile.
54
+
55
+ Read the documentation at: https://github.com/saigkill/hoe-packaging/wiki
56
+
57
+ == REQUIREMENTS:
58
+
59
+ * fpm
60
+ * fpm-cookery
61
+
62
+ == INSTALL:
63
+
64
+ The installation is very easy.
65
+
66
+ gem install hoe-packaging
67
+
68
+ == DEVELOPERS:
69
+
70
+ After checking out the source, run:
71
+
72
+ $ rake newb
73
+
74
+ This task will install any missing dependencies, run the tests/specs,
75
75
  and generate the RDoc.
data/Rakefile CHANGED
@@ -1,69 +1,69 @@
1
- # -*- ruby -*-
2
- # Copyright (C) 2013-2018 Sascha Manns <Sascha.Manns@mailbox.org>
3
- # Release:
4
- # Pre-release:
5
- #* update docs
6
- #* Update copyright years if needed, in the following paths:
7
- # + lib/*
8
- #* Check version in lib/hoe-manns.rb
9
- #* Update History.rdoc & NEWS
10
- #* git:manifest
11
- #* bundler:gemfile
12
- #* bundler:gemfile_lock
13
- # x64-mingw32
14
- # x64-mswin32
15
- # x86-mingw32
16
- # x86-mswin32
17
- # ruby
18
- # x86_64-linux
19
- #* bundle_audit:run
20
- #* git -a -m "Anything"
21
- #* git tag x.x.x
22
-
23
- # Release:
24
- #* Create Release in Github
25
- #* rake release
26
- #* send_email
27
- #* clean_pkg
28
-
29
- # Post-release:
30
- #* Bump version
31
- #* Add new Milestone on Github
32
-
33
- require 'rubygems'
34
- require 'hoe'
35
-
36
- Hoe.plugin :bundler
37
- Hoe.plugin :rdoc
38
- Hoe.plugin :rubygems
39
- Hoe.plugin :version
40
-
41
-
42
- ###########################################DEVELOPING ZONE##############################################################
43
- # rubocop:disable Metrics/LineLength
44
- Hoe.spec 'hoe-packaging' do
45
- developer('Sascha Manns', 'Sascha.Manns@mailbox.org')
46
- license 'GPL-3.0' # this should match the license in the README
47
- require_ruby_version '>= 2.3.0'
48
-
49
- self.history_file = 'History.rdoc'
50
- self.readme_file = 'README.rdoc'
51
- self.extra_rdoc_files = FileList['*.rdoc'].to_a
52
- self.post_install_message = '*** Please file bugreports on: https://github.com/saigkill/hoe-packaging/issues'
53
-
54
- dependency 'fpm', '~> 1.9'
55
- dependency 'fpm-cookery', '~> 0.33'
56
- dependency 'parseconfig', '~> 1.0.8'
57
-
58
- extra_dev_deps << ['hoe-bundler', '~> 1.4']
59
- extra_dev_deps << ['hoe-version', '~> 1.2']
60
- extra_dev_deps << ['rake', '~> 12.3']
61
- extra_dev_deps << ['rdoc', '~> 6.0']
62
- extra_dev_deps << ['rspec', '~> 3.7']
63
- extra_dev_deps << ['coveralls', '~> 0.8']
64
- end
65
-
66
- ##################################################SETUP ZONE############################################################
67
-
68
-
69
- # vim: syntax=ruby
1
+ # -*- ruby -*-
2
+ # Copyright (C) 2013-2018 Sascha Manns <Sascha.Manns@outlook.de>
3
+ # Release:
4
+ # Pre-release:
5
+ #* update docs
6
+ #* Update copyright years if needed, in the following paths:
7
+ # + lib/*
8
+ #* Check version in lib/hoe-manns.rb
9
+ #* Update History.rdoc & NEWS
10
+ #* git:manifest
11
+ #* bundler:gemfile
12
+ #* bundler:gemfile_lock
13
+ # x64-mingw32
14
+ # x64-mswin32
15
+ # x86-mingw32
16
+ # x86-mswin32
17
+ # ruby
18
+ # x86_64-linux
19
+ #* bundle_audit:run
20
+ #* git -a -m "Anything"
21
+ #* git tag x.x.x
22
+
23
+ # Release:
24
+ #* Create Release in Github
25
+ #* rake release
26
+ #* send_email
27
+ #* clean_pkg
28
+
29
+ # Post-release:
30
+ #* Bump version
31
+ #* Add new Milestone on Github
32
+
33
+ require 'rubygems'
34
+ require 'hoe'
35
+
36
+ Hoe.plugin :bundler
37
+ Hoe.plugin :rdoc
38
+ Hoe.plugin :rubygems
39
+ Hoe.plugin :version
40
+
41
+
42
+ ###########################################DEVELOPING ZONE##############################################################
43
+ # rubocop:disable Metrics/LineLength
44
+ Hoe.spec 'hoe-packaging' do
45
+ developer('Sascha Manns', 'Sascha.Manns@outlook.de')
46
+ license 'GPL-3.0' # this should match the license in the README
47
+ require_ruby_version '>= 2.3.0'
48
+
49
+ self.history_file = 'History.rdoc'
50
+ self.readme_file = 'README.rdoc'
51
+ self.extra_rdoc_files = FileList['*.rdoc'].to_a
52
+ self.post_install_message = '*** Please file bugreports on: https://github.com/saigkill/hoe-packaging/issues'
53
+
54
+ dependency 'fpm', '~> 1.10'
55
+ dependency 'fpm-cookery', '~> 0.33'
56
+ dependency 'parseconfig', '~> 1.0.8'
57
+
58
+ extra_dev_deps << ['hoe-bundler', '~> 1.4']
59
+ extra_dev_deps << ['hoe-version', '~> 1.2']
60
+ extra_dev_deps << ['rake', '~> 12.3']
61
+ extra_dev_deps << ['rdoc', '~> 6.0']
62
+ extra_dev_deps << ['rspec', '~> 3.7']
63
+ extra_dev_deps << ['coveralls', '~> 0.8']
64
+ end
65
+
66
+ ##################################################SETUP ZONE############################################################
67
+
68
+
69
+ # vim: syntax=ruby
@@ -1,126 +1,126 @@
1
- # Copyright (C) 2013-2018 Sascha Manns <Sascha.Manns@mailbox.org>
2
- #
3
- # This program is free software: you can redistribute it and/or modify
4
- # it under the terms of the GNU General Public License as published by
5
- # the Free Software Foundation, either version 3 of the License, or
6
- # (at your option) any later version.
7
- #
8
- # This program is distributed in the hope that it will be useful,
9
- # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
- # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
- # GNU General Public License for more details.
12
- #
13
- # You should have received a copy of the GNU General Public License
14
- # along with this program. If not, see <http://www.gnu.org/licenses/>.
15
-
16
- # Dependencies
17
-
18
- require 'hoe'
19
-
20
- # Main module for hoe-packaging
21
- # TODO: Try to fix this in future
22
- # rubocop:disable Style/ClassAndModuleChildren
23
- module Hoe::Packaging
24
- # Versionizing
25
- VERSION = '1.2.3'.freeze
26
- attr_accessor :create_packages
27
- attr_accessor :deploy_packages
28
-
29
- # Initialize plugin
30
- def initialize_packaging
31
- require 'fileutils'
32
- require 'parseconfig'
33
- require 'rainbow/ext/string'
34
- require 'fpm'
35
- require 'yaml'
36
- end
37
-
38
- def define_packaging_tasks
39
- # Rake Task for building packages
40
- desc 'Creating deb and rpm files'
41
- task :create_packages do
42
- create_packages_method
43
- end
44
-
45
- # Rake task for deploying packages
46
- desc 'Deploying packages to bintray'
47
- task :deploy_packages do
48
- deploy_bintray_method
49
- end
50
- end
51
-
52
- # Method for creating deb and rpm packages
53
- # @return [String] true or false
54
- def create_packages_method
55
- FileUtils.cd('recipes') do
56
- puts 'Creating the deb package'.color(:yellow)
57
- system('fpm-cook -t deb')
58
- puts 'deb creating done'.color(:green)
59
- puts 'Creating the rpm package'.color(:yellow)
60
- system('fpm-cook -t rpm')
61
- puts 'rpm creating done'.color(:green)
62
- end
63
- end
64
-
65
- # Method for deploying to bintray
66
- # TODO: Try to pacify rubocop and reek in future
67
- # rubocop:disable Metrics/AbcSize
68
- # rubocop:disable Metrics/LineLength
69
- # rubocop:disable Metrics/MethodLength
70
- # This method smells of :reek:TooManyStatements
71
- # @return [String] true or false
72
- def deploy_bintray_method
73
- project = projectname
74
- user, apikey = bintray_config
75
- version = version
76
- path = 'pool/main/r'
77
- debadd = ';deb_distribution=ubuntu;deb_component=main;deb_architecture=i386,amd64'
78
- publish = ';publish=1'
79
- puts 'Deploying packages to bintray'.color(:yellow)
80
-
81
- FileUtils.cd('recipes/pkg') do
82
- filerpm = Dir.glob('*.rpm')
83
- filedeb = Dir.glob('*.deb')
84
- rpm = filerpm.first.to_s
85
- deb = filedeb.first.to_s
86
-
87
- rpmup = system("curl -T #{rpm} -u#{user}:#{apikey} https://api.bintray.com/content/#{user}/rpm/#{project}/v#{version}/#{path}/#{publish}")
88
- begin
89
- rpmup['message'] == 'success'
90
- rescue NoMethodError
91
- false
92
- end
93
- debup = system("curl -T #{deb} -u#{user}:#{apikey} 'https://api.bintray.com/content/#{user}/deb/#{project}/v#{version}/#{path}/#{deb}#{debadd}#{publish}'")
94
- begin
95
- debup['message'] == 'success'
96
- rescue NoMethodError
97
- false
98
- end
99
- end
100
- puts 'Deploying succeeded'.color(:green)
101
- end
102
-
103
- # Method for getting the project name
104
- # @return [String] project Returns project name
105
- def projectname
106
- pnameraw = File.open(*Dir.glob('README.*'), &:readline)
107
- project = pnameraw.gsub(/[^0-9A-Za-z_-]/, '')
108
- return project
109
- end
110
-
111
- # Method for getting the bintray config
112
- # @return [Array] user apikey
113
- def bintray_config
114
- config = YAML.safe_load(File.read("#{Dir.home}/.hoerc"))
115
- user = config['deploy']['username'].to_s
116
- apikey = config['deploy']['apikey'].to_s
117
- [user, apikey]
118
- end
119
-
120
- # Method for getting version
121
- # @return [String] version
122
- def version
123
- version = File.open(*Dir.glob('VERSION'), &:readline)
124
- version.chomp.to_s
125
- end
126
- end
1
+ # Copyright (C) 2013-2018 Sascha Manns <Sascha.Manns@outlook.de>
2
+ #
3
+ # This program is free software: you can redistribute it and/or modify
4
+ # it under the terms of the GNU General Public License as published by
5
+ # the Free Software Foundation, either version 3 of the License, or
6
+ # (at your option) any later version.
7
+ #
8
+ # This program is distributed in the hope that it will be useful,
9
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
+ # GNU General Public License for more details.
12
+ #
13
+ # You should have received a copy of the GNU General Public License
14
+ # along with this program. If not, see <http://www.gnu.org/licenses/>.
15
+
16
+ # Dependencies
17
+
18
+ require 'hoe'
19
+
20
+ # Main module for hoe-packaging
21
+ # TODO: Try to fix this in future
22
+ # rubocop:disable Style/ClassAndModuleChildren
23
+ module Hoe::Packaging
24
+ # Versionizing
25
+ VERSION = '1.2.4'.freeze
26
+ attr_accessor :create_packages
27
+ attr_accessor :deploy_packages
28
+
29
+ # Initialize plugin
30
+ def initialize_packaging
31
+ require 'fileutils'
32
+ require 'parseconfig'
33
+ require 'rainbow/ext/string'
34
+ require 'fpm'
35
+ require 'yaml'
36
+ end
37
+
38
+ def define_packaging_tasks
39
+ # Rake Task for building packages
40
+ desc 'Creating deb and rpm files'
41
+ task :create_packages do
42
+ create_packages_method
43
+ end
44
+
45
+ # Rake task for deploying packages
46
+ desc 'Deploying packages to bintray'
47
+ task :deploy_packages do
48
+ deploy_bintray_method
49
+ end
50
+ end
51
+
52
+ # Method for creating deb and rpm packages
53
+ # @return [String] true or false
54
+ def create_packages_method
55
+ FileUtils.cd('recipes') do
56
+ puts 'Creating the deb package'.color(:yellow)
57
+ system('fpm-cook -t deb')
58
+ puts 'deb creating done'.color(:green)
59
+ puts 'Creating the rpm package'.color(:yellow)
60
+ system('fpm-cook -t rpm')
61
+ puts 'rpm creating done'.color(:green)
62
+ end
63
+ end
64
+
65
+ # Method for deploying to bintray
66
+ # TODO: Try to pacify rubocop and reek in future
67
+ # rubocop:disable Metrics/AbcSize
68
+ # rubocop:disable Metrics/LineLength
69
+ # rubocop:disable Metrics/MethodLength
70
+ # This method smells of :reek:TooManyStatements
71
+ # @return [String] true or false
72
+ def deploy_bintray_method
73
+ project = projectname
74
+ user, apikey = bintray_config
75
+ version = version
76
+ path = 'pool/main/r'
77
+ debadd = ';deb_distribution=ubuntu;deb_component=main;deb_architecture=i386,amd64'
78
+ publish = ';publish=1'
79
+ puts 'Deploying packages to bintray'.color(:yellow)
80
+
81
+ FileUtils.cd('recipes/pkg') do
82
+ filerpm = Dir.glob('*.rpm')
83
+ filedeb = Dir.glob('*.deb')
84
+ rpm = filerpm.first.to_s
85
+ deb = filedeb.first.to_s
86
+
87
+ rpmup = system("curl -T #{rpm} -u#{user}:#{apikey} https://api.bintray.com/content/#{user}/rpm/#{project}/v#{version}/#{path}/#{publish}")
88
+ begin
89
+ rpmup['message'] == 'success'
90
+ rescue NoMethodError
91
+ false
92
+ end
93
+ debup = system("curl -T #{deb} -u#{user}:#{apikey} 'https://api.bintray.com/content/#{user}/deb/#{project}/v#{version}/#{path}/#{deb}#{debadd}#{publish}'")
94
+ begin
95
+ debup['message'] == 'success'
96
+ rescue NoMethodError
97
+ false
98
+ end
99
+ end
100
+ puts 'Deploying succeeded'.color(:green)
101
+ end
102
+
103
+ # Method for getting the project name
104
+ # @return [String] project Returns project name
105
+ def projectname
106
+ pnameraw = File.open(*Dir.glob('README.*'), &:readline)
107
+ project = pnameraw.gsub(/[^0-9A-Za-z_-]/, '')
108
+ return project
109
+ end
110
+
111
+ # Method for getting the bintray config
112
+ # @return [Array] user apikey
113
+ def bintray_config
114
+ config = YAML.safe_load(File.read("#{Dir.home}/.hoerc"))
115
+ user = config['deploy']['username'].to_s
116
+ apikey = config['deploy']['apikey'].to_s
117
+ [user, apikey]
118
+ end
119
+
120
+ # Method for getting version
121
+ # @return [String] version
122
+ def version
123
+ version = File.open(*Dir.glob('VERSION'), &:readline)
124
+ version.chomp.to_s
125
+ end
126
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hoe-packaging
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.3
4
+ version: 1.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sascha Manns
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-28 00:00:00.000000000 Z
11
+ date: 2018-06-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fpm
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '1.9'
19
+ version: '1.10'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '1.9'
26
+ version: '1.10'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: fpm-cookery
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -162,12 +162,12 @@ description: |-
162
162
 
163
163
  https://github.com/saigkill/hoe-packaging
164
164
  email:
165
- - Sascha.Manns@mailbox.org
165
+ - Sascha.Manns@outlook.de
166
166
  executables: []
167
167
  extensions: []
168
168
  extra_rdoc_files:
169
169
  - CODE_OF_CONDUCT.rdoc
170
- - DEVELOPING.rdoc
170
+ - CONTRIBUTING.md
171
171
  - History.rdoc
172
172
  - LICENSE.rdoc
173
173
  - MAINTENANCE.rdoc
@@ -175,7 +175,7 @@ extra_rdoc_files:
175
175
  - README.rdoc
176
176
  files:
177
177
  - CODE_OF_CONDUCT.rdoc
178
- - DEVELOPING.rdoc
178
+ - CONTRIBUTING.md
179
179
  - Gemfile
180
180
  - Gemfile.lock
181
181
  - History.rdoc