hoe-manns 1.4.2 → 1.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data/.index +2 -2
- data/Gemfile +4 -6
- data/Gemfile.lock +15 -31
- data/History.rdoc +8 -0
- data/Manifest.txt +0 -2
- data/README.rdoc +0 -1
- data/Rakefile +5 -6
- data/VERSION +1 -1
- data/lib/hoe/manns.rb +32 -8
- data/recipes/recipe.rb +1 -1
- data.tar.gz.sig +0 -0
- metadata +26 -58
- metadata.gz.sig +0 -0
- data/docs/behind-the-scene.md +0 -214
- data/docs/index.md +0 -24
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3e623a7cee54cee243441848ace65e5f80311dc0
|
4
|
+
data.tar.gz: 361d4c8fd81a6a760326ad7efce412a33f77e148
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1f76712568cbf2b2c516e78a77395b38bcb11b4669425effc8a8a5915bd95631f4c1781b57d14a56c9cfce753f51d2415a13f926602dbd08c4e02e341a69a1e2
|
7
|
+
data.tar.gz: 13293a576835a706b7941bd1cc92db4a60f33a1c13197a7358890828c2d643538e5be9fbafc0182625c99e82195736e6fea08fc60d6bb91aef0d716796ee050a
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/.index
CHANGED
@@ -151,11 +151,11 @@ customs: []
|
|
151
151
|
paths:
|
152
152
|
lib:
|
153
153
|
- lib
|
154
|
-
version: 1.4.
|
154
|
+
version: 1.4.3
|
155
155
|
name: hoe-manns
|
156
156
|
title: hoe-manns
|
157
157
|
summary: hoe-manns is a small collection of my personal used rake tasks for using
|
158
158
|
with hoe.
|
159
159
|
description: hoe-manns is a small collection of my personal used rake tasks for using
|
160
160
|
with hoe.
|
161
|
-
date: '2015-10-
|
161
|
+
date: '2015-10-31'
|
data/Gemfile
CHANGED
@@ -8,33 +8,31 @@ gem "parseconfig", "~>1.0"
|
|
8
8
|
gem "rainbow", "~>2.0"
|
9
9
|
gem "indexer", "~>0.3"
|
10
10
|
gem "bundler-audit", "~>0.4.0"
|
11
|
+
gem "pandoc-ruby", "~>1.0.0"
|
11
12
|
|
12
13
|
gem "hoe-highline", "~>0.2", :group => [:development, :test]
|
13
14
|
gem "hoe-yard", ">=0.1.2", :group => [:development, :test]
|
14
15
|
gem "coveralls", "~>0.8.3", :group => [:development, :test]
|
15
16
|
gem "digest", "~>0.0.1", :group => [:development, :test]
|
16
17
|
gem "gem-release", "~>0.7", :group => [:development, :test]
|
18
|
+
gem "hoe", "~>3.14.2", :group => [:development, :test]
|
17
19
|
gem "hoe-bundler", "~>1.2", :group => [:development, :test]
|
18
|
-
gem "hoe-bundler_audit", "~>1.0", :group => [:development, :test]
|
19
|
-
gem "hoe-deveiate", "~>0.7", :group => [:development, :test]
|
20
20
|
gem "hoe-doofus", "~>1.0", :group => [:development, :test]
|
21
21
|
gem "hoe-gemspec", "~>1.0", :group => [:development, :test]
|
22
22
|
gem "hoe-git", "~>1.6", :group => [:development, :test]
|
23
|
-
gem "hoe-manns", "~>1.4.
|
23
|
+
gem "hoe-manns", "~>1.4.3", :group => [:development, :test]
|
24
24
|
gem "hoe-packaging", "~>1.1", :group => [:development, :test]
|
25
25
|
gem "hoe-reek", "~>1.0", :group => [:development, :test]
|
26
26
|
gem "hoe-rubocop", "~>0.1", :group => [:development, :test]
|
27
27
|
gem "hoe-rubygems", "~>1.0", :group => [:development, :test]
|
28
|
-
gem "hoe-seattlerb", "~>1.3", :group => [:development, :test]
|
29
28
|
gem "hoe-travis", "~>1.2", :group => [:development, :test]
|
30
29
|
gem "hoe-version", "~>1.2", :group => [:development, :test]
|
31
30
|
gem "minitest", "~>5.8", :group => [:development, :test]
|
32
31
|
gem "rake", "~>10.0", :group => [:development, :test]
|
33
|
-
gem "reek", "~>3.
|
32
|
+
gem "reek", "~>3.6", :group => [:development, :test]
|
34
33
|
gem "rspec", "~>3.3", :group => [:development, :test]
|
35
34
|
gem "rubocop", "~>0.34", :group => [:development, :test]
|
36
35
|
gem "simplecov", "~>0.10", :group => [:development, :test]
|
37
36
|
gem "ZenTest", "~>4.11", :group => [:development, :test]
|
38
|
-
gem "hoe", "~>3.14", :group => [:development, :test]
|
39
37
|
|
40
38
|
# vim: syntax=ruby
|
data/Gemfile.lock
CHANGED
@@ -19,8 +19,8 @@ GEM
|
|
19
19
|
bundler-audit (0.4.0)
|
20
20
|
bundler (~> 1.2)
|
21
21
|
thor (~> 0.18)
|
22
|
-
cabin (0.7.
|
23
|
-
childprocess (0.5.
|
22
|
+
cabin (0.7.2)
|
23
|
+
childprocess (0.5.7)
|
24
24
|
ffi (~> 1.0, >= 1.0.11)
|
25
25
|
clamp (0.6.5)
|
26
26
|
concord (0.1.5)
|
@@ -64,16 +64,6 @@ GEM
|
|
64
64
|
rake (>= 0.8, < 11.0)
|
65
65
|
hoe-bundler (1.2.0)
|
66
66
|
hoe (>= 2.2.0)
|
67
|
-
hoe-bundler_audit (1.0.0)
|
68
|
-
bundler (~> 1.10)
|
69
|
-
bundler-audit (~> 0.4.0)
|
70
|
-
hoe-deveiate (0.7.0)
|
71
|
-
hoe (~> 3.13)
|
72
|
-
hoe-highline (~> 0.2)
|
73
|
-
hoe-mercurial (~> 1.4)
|
74
|
-
mail (~> 2.6)
|
75
|
-
rdoc (~> 4.2)
|
76
|
-
rspec (~> 3.2)
|
77
67
|
hoe-doofus (1.0.0)
|
78
68
|
hoe-gemspec (1.0.0)
|
79
69
|
hoe (>= 2.2.0)
|
@@ -81,13 +71,12 @@ GEM
|
|
81
71
|
hoe-highline (0.2.1)
|
82
72
|
highline (~> 1.6)
|
83
73
|
hoe (~> 3.11)
|
84
|
-
hoe-manns (1.4.
|
74
|
+
hoe-manns (1.4.3)
|
85
75
|
bundler-audit (~> 0.4.0)
|
86
76
|
indexer (~> 0.3)
|
77
|
+
pandoc-ruby (~> 1.0.0)
|
87
78
|
parseconfig (~> 1.0)
|
88
79
|
rainbow (~> 2.0)
|
89
|
-
hoe-mercurial (1.4.1)
|
90
|
-
hoe (~> 3.9)
|
91
80
|
hoe-packaging (1.1.0)
|
92
81
|
bundler (~> 1.10)
|
93
82
|
fpm (~> 1.4)
|
@@ -99,7 +88,6 @@ GEM
|
|
99
88
|
RubyInline (~> 3.9)
|
100
89
|
setup (~> 5.2)
|
101
90
|
hoe-rubygems (1.0.0)
|
102
|
-
hoe-seattlerb (1.3.4)
|
103
91
|
hoe-travis (1.2)
|
104
92
|
hoe (~> 3.0)
|
105
93
|
travis-lint (~> 1.2)
|
@@ -111,16 +99,15 @@ GEM
|
|
111
99
|
ice_nine (0.11.1)
|
112
100
|
indexer (0.3.1)
|
113
101
|
json (1.8.3)
|
114
|
-
json_pure (1.8.
|
115
|
-
mail (2.6.3)
|
116
|
-
mime-types (>= 1.16, < 3)
|
102
|
+
json_pure (1.8.3)
|
117
103
|
memoizable (0.4.2)
|
118
104
|
thread_safe (~> 0.3, >= 0.3.1)
|
119
105
|
mime-types (2.6.2)
|
120
|
-
minitest (5.8.
|
121
|
-
netrc (0.
|
106
|
+
minitest (5.8.2)
|
107
|
+
netrc (0.11.0)
|
108
|
+
pandoc-ruby (1.0.0)
|
122
109
|
parseconfig (1.0.6)
|
123
|
-
parser (2.2.
|
110
|
+
parser (2.2.3.0)
|
124
111
|
ast (>= 1.1, < 3.0)
|
125
112
|
powerpack (0.1.1)
|
126
113
|
private_attr (1.1.0)
|
@@ -131,9 +118,8 @@ GEM
|
|
131
118
|
json_pure
|
132
119
|
rainbow (2.0.0)
|
133
120
|
rake (10.4.2)
|
134
|
-
|
135
|
-
|
136
|
-
parser (~> 2.2.2.5)
|
121
|
+
reek (3.6.0)
|
122
|
+
parser (~> 2.2, >= 2.2.2.5)
|
137
123
|
private_attr (~> 1.1)
|
138
124
|
rainbow (~> 2.0)
|
139
125
|
unparser (~> 0.2.2)
|
@@ -199,29 +185,27 @@ DEPENDENCIES
|
|
199
185
|
coveralls (~> 0.8.3)
|
200
186
|
digest (~> 0.0.1)
|
201
187
|
gem-release (~> 0.7)
|
202
|
-
hoe (~> 3.14)
|
188
|
+
hoe (~> 3.14.2)
|
203
189
|
hoe-bundler (~> 1.2)
|
204
|
-
hoe-bundler_audit (~> 1.0)
|
205
|
-
hoe-deveiate (~> 0.7)
|
206
190
|
hoe-doofus (~> 1.0)
|
207
191
|
hoe-gemspec (~> 1.0)
|
208
192
|
hoe-git (~> 1.6)
|
209
193
|
hoe-highline (~> 0.2)
|
210
|
-
hoe-manns (~> 1.4.
|
194
|
+
hoe-manns (~> 1.4.3)
|
211
195
|
hoe-packaging (~> 1.1)
|
212
196
|
hoe-reek (~> 1.0)
|
213
197
|
hoe-rubocop (~> 0.1)
|
214
198
|
hoe-rubygems (~> 1.0)
|
215
|
-
hoe-seattlerb (~> 1.3)
|
216
199
|
hoe-travis (~> 1.2)
|
217
200
|
hoe-version (~> 1.2)
|
218
201
|
hoe-yard (>= 0.1.2)
|
219
202
|
indexer (~> 0.3)
|
220
203
|
minitest (~> 5.8)
|
204
|
+
pandoc-ruby (~> 1.0.0)
|
221
205
|
parseconfig (~> 1.0)
|
222
206
|
rainbow (~> 2.0)
|
223
207
|
rake (~> 10.0)
|
224
|
-
reek (~> 3.
|
208
|
+
reek (~> 3.6)
|
225
209
|
rspec (~> 3.3)
|
226
210
|
rubocop (~> 0.34)
|
227
211
|
simplecov (~> 0.10)
|
data/History.rdoc
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
=== 1.4.3 / 2015-10-31
|
2
|
+
|
3
|
+
* 2 minor enhancement
|
4
|
+
|
5
|
+
* Added procedure to convert markdown to rst inside ./docs
|
6
|
+
* Created new methods copy_mirror_create_dirs and copy_mirror_copy_files to reduce the copmplexity of
|
7
|
+
the copy_mirror_method
|
8
|
+
|
1
9
|
=== 1.4.2 / 2015-10-19
|
2
10
|
|
3
11
|
* 1 minor enhancement
|
data/Manifest.txt
CHANGED
data/README.rdoc
CHANGED
@@ -17,7 +17,6 @@ code quality :: {<img src="https://d3s6mut3hikguw.cloudfront.net/github/saigkill
|
|
17
17
|
code quality :: {<img src="https://api.codacy.com/project/badge/35e9e27255e8477e96f33b5016720b30" />}[https://www.codacy.com/app/saigkill/hoe-manns]
|
18
18
|
dependency check :: {<img src="https://gemnasium.com/b83a1c275ea3fd0f5a9a93efbb1ea6d9.svg" alt="Build Status" />}[https://gemnasium.com/2a56a3d68e779b8be5caf118ab2700d8]
|
19
19
|
still maintained? :: {<img src="http://stillmaintained.com/saigkill/hoe-manns.png" alt="Still maintained?" />}[http://stillmaintained.com/saigkill/hoe-manns]
|
20
|
-
docs (pdf, epub) :: {<img src="https://readthedocs.org/projects/hoe-manns/badge/?version=latest" />}[http://hoe-manns.readthedocs.org/en/latest/?badge=latest]
|
21
20
|
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]
|
22
21
|
donations :: {<img src="https://pledgie.com/campaigns/30268.png?skin_name=chrome" alt="Donations" />}[https://pledgie.com/campaigns/30268]
|
23
22
|
donations :: {<img src="http://img.shields.io/gratipay/saigkill.svg" alt="Donations" />}[https://gratipay.com/~saigkill/]
|
data/Rakefile
CHANGED
@@ -45,36 +45,35 @@ Hoe.spec 'hoe-manns' do
|
|
45
45
|
license 'MIT' # this should match the license in the README
|
46
46
|
require_ruby_version '>= 2.2.0'
|
47
47
|
|
48
|
-
email_to << 'ruby-talk@ruby-lang.org'
|
48
|
+
#email_to << 'ruby-talk@ruby-lang.org'
|
49
49
|
#email_to << 'Sascha.Manns@directbox.com'
|
50
50
|
|
51
51
|
dependency 'parseconfig', '~> 1.0'
|
52
52
|
dependency 'rainbow', '~> 2.0'
|
53
53
|
dependency 'indexer', '~> 0.3'
|
54
54
|
dependency 'bundler-audit', '~> 0.4.0'
|
55
|
+
dependency 'pandoc-ruby', '~> 1.0.0'
|
55
56
|
|
56
57
|
extra_dev_deps << ['coveralls', '~> 0.8.3']
|
57
58
|
extra_dev_deps << ['digest', '~> 0.0.1']
|
58
59
|
extra_dev_deps << ['gem-release', '~> 0.7']
|
60
|
+
extra_dev_deps << ['hoe', '~> 3.14.2']
|
59
61
|
extra_dev_deps << ['hoe-bundler', '~> 1.2']
|
60
|
-
extra_dev_deps << ['hoe-bundler_audit', '~> 1.0']
|
61
|
-
extra_dev_deps << ['hoe-deveiate', '~> 0.7']
|
62
62
|
extra_dev_deps << ['hoe-doofus', '~> 1.0']
|
63
63
|
extra_dev_deps << ['hoe-gemspec', '~> 1.0']
|
64
64
|
extra_dev_deps << ['hoe-git', '~> 1.6']
|
65
65
|
extra_dev_deps << ['hoe-highline', '~> 0.2']
|
66
|
-
extra_dev_deps << ['hoe-manns', '~> 1.4.
|
66
|
+
extra_dev_deps << ['hoe-manns', '~> 1.4.3']
|
67
67
|
extra_dev_deps << ['hoe-packaging', '~> 1.1']
|
68
68
|
extra_dev_deps << ['hoe-reek', '~> 1.0']
|
69
69
|
extra_dev_deps << ['hoe-rubocop', '~> 0.1']
|
70
70
|
extra_dev_deps << ['hoe-rubygems', '~> 1.0']
|
71
|
-
extra_dev_deps << ['hoe-seattlerb', '~> 1.3']
|
72
71
|
extra_dev_deps << ['hoe-travis', '~> 1.2']
|
73
72
|
extra_dev_deps << ['hoe-version', '~> 1.2']
|
74
73
|
extra_dev_deps << ['hoe-yard', '~> 0.1']
|
75
74
|
extra_dev_deps << ['minitest', '~> 5.8']
|
76
75
|
extra_dev_deps << ['rake', '~> 10.0']
|
77
|
-
extra_dev_deps << ['reek', '~> 3.
|
76
|
+
extra_dev_deps << ['reek', '~> 3.6']
|
78
77
|
extra_dev_deps << ['rspec', '~> 3.3']
|
79
78
|
extra_dev_deps << ['rubocop', '~> 0.34']
|
80
79
|
extra_dev_deps << ['simplecov', '~> 0.10']
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.4.
|
1
|
+
1.4.3
|
data/lib/hoe/manns.rb
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
# Main module for hoe-manns
|
12
12
|
module Hoe::Manns
|
13
13
|
# Version constant for HOE::Manns
|
14
|
-
VERSION = '1.4.
|
14
|
+
VERSION = '1.4.3'
|
15
15
|
|
16
16
|
attr_accessor :remove_pre_gemspec
|
17
17
|
attr_accessor :update_index
|
@@ -31,6 +31,7 @@ module Hoe::Manns
|
|
31
31
|
require 'parseconfig'
|
32
32
|
require 'rainbow/ext/string'
|
33
33
|
require 'bundler/audit/cli'
|
34
|
+
require 'pandoc-ruby'
|
34
35
|
end
|
35
36
|
|
36
37
|
# Definitions of the Rake task
|
@@ -85,6 +86,9 @@ module Hoe::Manns
|
|
85
86
|
Hoe::Manns.copy_master
|
86
87
|
end
|
87
88
|
|
89
|
+
# Rake Task for converting markdown docs to rst
|
90
|
+
desc ''
|
91
|
+
|
88
92
|
# Rake Task for running needed Rake Tasks before running rake release
|
89
93
|
desc 'Run all tasks before rake release'
|
90
94
|
task :run_before_release => %w(git:manifest bundler:gemfile bundler:gemfile_lock update_index gem:spec_remove
|
@@ -184,13 +188,23 @@ README.rdoc VERSION recipes/recipe.rb).each do |i|
|
|
184
188
|
source = "#{develpath}/#{project}"
|
185
189
|
destination = "#{develpath}/#{project}-mirror"
|
186
190
|
puts 'Copying to mirror'.colour(:yellow)
|
191
|
+
Hoe::Manns.copy_mirror_create_dirs(source, destination)
|
192
|
+
FileUtils.cp_r "#{source}/recipes/recipe.rb", "#{destination}/recipes/recipe.rb", verbose: true if File.exist?("#{source}/recipes/recipe.rb")
|
193
|
+
Hoe::Manns.copy_mirror_copy_files(source, destination)
|
194
|
+
system('git status')
|
195
|
+
puts 'Copying to mirror succeeded'.colour(:green)
|
196
|
+
end
|
197
|
+
|
198
|
+
def self.copy_mirror_create_dirs(source, destination)
|
187
199
|
%w(bin etc data docs lib test recipes).each do |d|
|
188
|
-
|
189
|
-
|
200
|
+
unless File.exist?("#{destination}/#{d}") # if d isn't available in destination
|
201
|
+
FileUtils.mkdir("#{destination}/#{d}") if File.exist?("#{source}/#{d}") # and exist in source then create them
|
190
202
|
end
|
191
203
|
FileUtils.cp_r "#{source}/#{d}/.", "#{destination}/#{d}/.", verbose: true if File.exist?("#{source}/#{d}") # copy the content of the dirs
|
192
204
|
end
|
193
|
-
|
205
|
+
end
|
206
|
+
|
207
|
+
def self.copy_mirror_copy_files(source, destination)
|
194
208
|
FileUtils.cd(destination) do
|
195
209
|
%w(Rakefile Gemfile Gemfile.lock .autotest .codeclimate.yml .coveralls.yml .gemnasium.yml .gitignore .index .rspec .rubocop.yml
|
196
210
|
.scrutinizer.yml .travis.yml CODE_OF_CONDUCT.md config.reek CONTRIBUTING.md History.rdoc Index.yml LICENSE.rdoc MAINTENANCE.md Manifest.txt
|
@@ -203,23 +217,33 @@ README.rdoc VERSION).each do |i|
|
|
203
217
|
end
|
204
218
|
system('git commit -m "Sync mirror" && git push')
|
205
219
|
end
|
206
|
-
system('git status')
|
207
|
-
puts 'Copying to mirror succeeded'.colour(:green)
|
208
220
|
end
|
209
221
|
|
210
|
-
# Copies the actual wiki entries to ./
|
222
|
+
# Copies the actual wiki entries to ./docs
|
211
223
|
def self.copy_wiki_method
|
212
224
|
puts 'Copying wiki content to docs'.colour(:yellow)
|
213
225
|
project = Hoe::Manns.get_projectname
|
214
226
|
develpath = Hoe::Manns.get_develpath
|
215
227
|
wikipath = "#{develpath}/#{project}.wiki"
|
216
|
-
FileUtils.mkdir_p 'docs', verbose: true
|
228
|
+
FileUtils.mkdir_p 'docs', verbose: true unless File.exist?('docs')
|
217
229
|
FileUtils.cd(wikipath) do
|
218
230
|
system('git pull')
|
219
231
|
end
|
220
232
|
files = Dir.glob("#{wikipath}/*.md")
|
221
233
|
FileUtils.cp files, 'docs', verbose: true
|
222
234
|
FileUtils.mv 'docs/home.md', 'docs/index.md', verbose: true
|
235
|
+
FileUtils.cd('docs') do
|
236
|
+
Dir['*.md'].each do |f|
|
237
|
+
PandocRuby.allow_file_paths = true
|
238
|
+
@converter = PandocRuby.new(f, :from => :markdown, :to => :rst)
|
239
|
+
File.open(f, 'w') do |file1|
|
240
|
+
file1.puts @converter.convert
|
241
|
+
end
|
242
|
+
extn = File.extname f # => ".mp4"
|
243
|
+
name = File.basename f, extn # => "xyz"
|
244
|
+
FileUtils.mv "#{name}.md", "#{name}.rst"
|
245
|
+
end
|
246
|
+
end
|
223
247
|
puts 'Copied wiki content'.colour(:green)
|
224
248
|
end
|
225
249
|
|
data/recipes/recipe.rb
CHANGED
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hoe-manns
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sascha Manns
|
@@ -30,7 +30,7 @@ cert_chain:
|
|
30
30
|
cEuJ8AWKUjdkdt1Nba7qmareRtc2+pEiITV5ANv24b8vsmq9/8nbxQckdO7+NQRP
|
31
31
|
pTQZhJ4mX28Qe1F9IE4F4UDeo8gQSPHJOttZA33sRLC19sH67dLq4pM=
|
32
32
|
-----END CERTIFICATE-----
|
33
|
-
date: 2015-10-
|
33
|
+
date: 2015-10-31 00:00:00.000000000 Z
|
34
34
|
dependencies:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: parseconfig
|
@@ -88,6 +88,20 @@ dependencies:
|
|
88
88
|
- - "~>"
|
89
89
|
- !ruby/object:Gem::Version
|
90
90
|
version: 0.4.0
|
91
|
+
- !ruby/object:Gem::Dependency
|
92
|
+
name: pandoc-ruby
|
93
|
+
requirement: !ruby/object:Gem::Requirement
|
94
|
+
requirements:
|
95
|
+
- - "~>"
|
96
|
+
- !ruby/object:Gem::Version
|
97
|
+
version: 1.0.0
|
98
|
+
type: :runtime
|
99
|
+
prerelease: false
|
100
|
+
version_requirements: !ruby/object:Gem::Requirement
|
101
|
+
requirements:
|
102
|
+
- - "~>"
|
103
|
+
- !ruby/object:Gem::Version
|
104
|
+
version: 1.0.0
|
91
105
|
- !ruby/object:Gem::Dependency
|
92
106
|
name: hoe-highline
|
93
107
|
requirement: !ruby/object:Gem::Requirement
|
@@ -159,47 +173,33 @@ dependencies:
|
|
159
173
|
- !ruby/object:Gem::Version
|
160
174
|
version: '0.7'
|
161
175
|
- !ruby/object:Gem::Dependency
|
162
|
-
name: hoe
|
163
|
-
requirement: !ruby/object:Gem::Requirement
|
164
|
-
requirements:
|
165
|
-
- - "~>"
|
166
|
-
- !ruby/object:Gem::Version
|
167
|
-
version: '1.2'
|
168
|
-
type: :development
|
169
|
-
prerelease: false
|
170
|
-
version_requirements: !ruby/object:Gem::Requirement
|
171
|
-
requirements:
|
172
|
-
- - "~>"
|
173
|
-
- !ruby/object:Gem::Version
|
174
|
-
version: '1.2'
|
175
|
-
- !ruby/object:Gem::Dependency
|
176
|
-
name: hoe-bundler_audit
|
176
|
+
name: hoe
|
177
177
|
requirement: !ruby/object:Gem::Requirement
|
178
178
|
requirements:
|
179
179
|
- - "~>"
|
180
180
|
- !ruby/object:Gem::Version
|
181
|
-
version:
|
181
|
+
version: 3.14.2
|
182
182
|
type: :development
|
183
183
|
prerelease: false
|
184
184
|
version_requirements: !ruby/object:Gem::Requirement
|
185
185
|
requirements:
|
186
186
|
- - "~>"
|
187
187
|
- !ruby/object:Gem::Version
|
188
|
-
version:
|
188
|
+
version: 3.14.2
|
189
189
|
- !ruby/object:Gem::Dependency
|
190
|
-
name: hoe-
|
190
|
+
name: hoe-bundler
|
191
191
|
requirement: !ruby/object:Gem::Requirement
|
192
192
|
requirements:
|
193
193
|
- - "~>"
|
194
194
|
- !ruby/object:Gem::Version
|
195
|
-
version: '
|
195
|
+
version: '1.2'
|
196
196
|
type: :development
|
197
197
|
prerelease: false
|
198
198
|
version_requirements: !ruby/object:Gem::Requirement
|
199
199
|
requirements:
|
200
200
|
- - "~>"
|
201
201
|
- !ruby/object:Gem::Version
|
202
|
-
version: '
|
202
|
+
version: '1.2'
|
203
203
|
- !ruby/object:Gem::Dependency
|
204
204
|
name: hoe-doofus
|
205
205
|
requirement: !ruby/object:Gem::Requirement
|
@@ -248,14 +248,14 @@ dependencies:
|
|
248
248
|
requirements:
|
249
249
|
- - "~>"
|
250
250
|
- !ruby/object:Gem::Version
|
251
|
-
version: 1.4.
|
251
|
+
version: 1.4.3
|
252
252
|
type: :development
|
253
253
|
prerelease: false
|
254
254
|
version_requirements: !ruby/object:Gem::Requirement
|
255
255
|
requirements:
|
256
256
|
- - "~>"
|
257
257
|
- !ruby/object:Gem::Version
|
258
|
-
version: 1.4.
|
258
|
+
version: 1.4.3
|
259
259
|
- !ruby/object:Gem::Dependency
|
260
260
|
name: hoe-packaging
|
261
261
|
requirement: !ruby/object:Gem::Requirement
|
@@ -312,20 +312,6 @@ dependencies:
|
|
312
312
|
- - "~>"
|
313
313
|
- !ruby/object:Gem::Version
|
314
314
|
version: '1.0'
|
315
|
-
- !ruby/object:Gem::Dependency
|
316
|
-
name: hoe-seattlerb
|
317
|
-
requirement: !ruby/object:Gem::Requirement
|
318
|
-
requirements:
|
319
|
-
- - "~>"
|
320
|
-
- !ruby/object:Gem::Version
|
321
|
-
version: '1.3'
|
322
|
-
type: :development
|
323
|
-
prerelease: false
|
324
|
-
version_requirements: !ruby/object:Gem::Requirement
|
325
|
-
requirements:
|
326
|
-
- - "~>"
|
327
|
-
- !ruby/object:Gem::Version
|
328
|
-
version: '1.3'
|
329
315
|
- !ruby/object:Gem::Dependency
|
330
316
|
name: hoe-travis
|
331
317
|
requirement: !ruby/object:Gem::Requirement
|
@@ -388,14 +374,14 @@ dependencies:
|
|
388
374
|
requirements:
|
389
375
|
- - "~>"
|
390
376
|
- !ruby/object:Gem::Version
|
391
|
-
version: '3.
|
377
|
+
version: '3.6'
|
392
378
|
type: :development
|
393
379
|
prerelease: false
|
394
380
|
version_requirements: !ruby/object:Gem::Requirement
|
395
381
|
requirements:
|
396
382
|
- - "~>"
|
397
383
|
- !ruby/object:Gem::Version
|
398
|
-
version: '3.
|
384
|
+
version: '3.6'
|
399
385
|
- !ruby/object:Gem::Dependency
|
400
386
|
name: rspec
|
401
387
|
requirement: !ruby/object:Gem::Requirement
|
@@ -452,20 +438,6 @@ dependencies:
|
|
452
438
|
- - "~>"
|
453
439
|
- !ruby/object:Gem::Version
|
454
440
|
version: '4.11'
|
455
|
-
- !ruby/object:Gem::Dependency
|
456
|
-
name: hoe
|
457
|
-
requirement: !ruby/object:Gem::Requirement
|
458
|
-
requirements:
|
459
|
-
- - "~>"
|
460
|
-
- !ruby/object:Gem::Version
|
461
|
-
version: '3.14'
|
462
|
-
type: :development
|
463
|
-
prerelease: false
|
464
|
-
version_requirements: !ruby/object:Gem::Requirement
|
465
|
-
requirements:
|
466
|
-
- - "~>"
|
467
|
-
- !ruby/object:Gem::Version
|
468
|
-
version: '3.14'
|
469
441
|
description: |-
|
470
442
|
hoe-manns is a small collection of my personal used rake tasks for using with hoe. Actually it includes that tasks:
|
471
443
|
|
@@ -492,8 +464,6 @@ extra_rdoc_files:
|
|
492
464
|
- MAINTENANCE.md
|
493
465
|
- Manifest.txt
|
494
466
|
- README.rdoc
|
495
|
-
- docs/behind-the-scene.md
|
496
|
-
- docs/index.md
|
497
467
|
files:
|
498
468
|
- ".autotest"
|
499
469
|
- ".codeclimate.yml"
|
@@ -516,8 +486,6 @@ files:
|
|
516
486
|
- Rakefile
|
517
487
|
- VERSION
|
518
488
|
- config.reek
|
519
|
-
- docs/behind-the-scene.md
|
520
|
-
- docs/index.md
|
521
489
|
- lib/hoe/manns.rb
|
522
490
|
- recipes/recipe.rb
|
523
491
|
- test/manns_spec.rb
|
metadata.gz.sig
CHANGED
Binary file
|
data/docs/behind-the-scene.md
DELETED
@@ -1,214 +0,0 @@
|
|
1
|
-
# About
|
2
|
-
This kind of documentation explains what makes the "red pill".
|
3
|
-
|
4
|
-
## The methods
|
5
|
-
|
6
|
-
```ruby
|
7
|
-
require 'rainbow/ext/string'
|
8
|
-
# Method for updating Gemfile.lock
|
9
|
-
def self.update_gemfile_lock_method
|
10
|
-
puts 'Updating Gemfile.lock'.color(:yellow)
|
11
|
-
system('bundle update')
|
12
|
-
puts 'Updated Gemfile.lock'.color(:green)
|
13
|
-
end
|
14
|
-
```
|
15
|
-
That one does only a "bundle update" to update the Gemfile.lock.
|
16
|
-
|
17
|
-
```ruby
|
18
|
-
# Method for removing prerelease gemspec
|
19
|
-
def self.remove_pre_gemspec_method
|
20
|
-
puts 'Removing pre version of gemspec'.color(:yellow)
|
21
|
-
File.delete(*Dir.glob('*.gemspec'))
|
22
|
-
puts 'Removed'.color(:green)
|
23
|
-
end
|
24
|
-
```
|
25
|
-
If you have produced a prerelease gemspec you maybe like this method. It removes the gemspec from your sources.
|
26
|
-
|
27
|
-
```ruby
|
28
|
-
# Method for updating workspace
|
29
|
-
def self.update_workspace_method
|
30
|
-
puts 'Updating workspace'.color(:yellow)
|
31
|
-
system('git add Manifest.txt Gemfile Gemfile.lock')
|
32
|
-
system('git commit -m "Updated workspace"')
|
33
|
-
system('git push')
|
34
|
-
puts 'Updated workspace'.color(:green)
|
35
|
-
end
|
36
|
-
```
|
37
|
-
In my case i have sometimes trouble with rake release, because it tells me about not registered but updated files.
|
38
|
-
The whole workspace will be committed with the comment "Updated workspace" and will be pushed to the actual branch.
|
39
|
-
|
40
|
-
```ruby
|
41
|
-
# Method for updating .index
|
42
|
-
def self.update_index_method
|
43
|
-
puts 'Updating .index. Have you changed your VERSION file?'.color(:yellow)
|
44
|
-
system('index --using VERSION Index.yml')
|
45
|
-
system('git add .index')
|
46
|
-
puts '.index updated'.color(:green)
|
47
|
-
end
|
48
|
-
```
|
49
|
-
If you use Indexer from Rubyworks (<a href="https://github.com/rubyworks/indexer">https://github.com/rubyworks/indexer</a> ) this method updates the ".index". Please
|
50
|
-
keep in mind, that you have to update the VERSION file manually. Actual i haven't any idea, how to do this
|
51
|
-
automatically. If you find a solution you're welcome to send a pull request via GitHub.
|
52
|
-
|
53
|
-
``` ruby
|
54
|
-
def self.update_workspace_method
|
55
|
-
puts 'Updating workspace'.colour(:yellow)
|
56
|
-
system('git add Manifest.txt Gemfile Gemfile.lock Rakefile History.* README.*')
|
57
|
-
system('git add bin/*') if File.exist?('bin')
|
58
|
-
system('git add data/*') if File.exist?('data')
|
59
|
-
system('git add etc/*') if File.exist?('etc')
|
60
|
-
system('git add lib/*') if File.exist?('lib')
|
61
|
-
system('git add test/*') if File.exist?('test')
|
62
|
-
system('git commit -m "Updated workspace"')
|
63
|
-
system('git push')
|
64
|
-
system('git status')
|
65
|
-
puts 'Updated workspace'.colour(:green)
|
66
|
-
end
|
67
|
-
```
|
68
|
-
This method adds the Manifest, Gemfile, Rakefile, History, README, bin/*, data/*, etc/*, lib/*, and test/* to git and commits them.
|
69
|
-
|
70
|
-
``` ruby
|
71
|
-
def self.copy_mirror_method
|
72
|
-
project = Hoe::Manns.get_projectname
|
73
|
-
source = "#{Dir.home}/RubymineProjects/#{project}"
|
74
|
-
destination = "#{Dir.home}/RubymineProjects/#{project}-github"
|
75
|
-
puts 'Copying to mirror'.colour(:yellow)
|
76
|
-
FileUtils.cp_r "#{source}/lib/.", "#{destination}/lib/.", verbose: true
|
77
|
-
FileUtils.cp_r "#{source}/test/.", "#{destination}/test/.", verbose: true
|
78
|
-
FileUtils.cp_r "#{source}/Rakefile", "#{destination}", verbose: true
|
79
|
-
FileUtils.cp_r "#{source}/Gemfile", "#{destination}", verbose: true
|
80
|
-
FileUtils.cp_r "#{source}/Gemfile.lock", "#{destination}", verbose: true
|
81
|
-
FileUtils.cd(destination) do
|
82
|
-
system('git add * && git commit -m "Sync mirror" && git push')
|
83
|
-
end
|
84
|
-
```
|
85
|
-
This method copies the most changed projectfiles to ../your-project-github.
|
86
|
-
That means if you have a hoe-manns repository it copies the content to hoe-manns-github. So you haven't to go to the mirror repo manually.
|
87
|
-
|
88
|
-
```ruby
|
89
|
-
# Method for copying the manuals to a target directory
|
90
|
-
def self.copy_manuals_method
|
91
|
-
puts 'Copying manual pages to target'.color(:yellow)
|
92
|
-
pnameraw = File.open(*Dir.glob('README.*')) {|f| f.readline}
|
93
|
-
project = pnameraw.gsub(/[^0-9A-Za-z]/, '')
|
94
|
-
config = ParseConfig.new(File.join("#{Dir.home}/.hoe-manns/hoe-manns.cfg"))
|
95
|
-
docpath = config['docpath'].to_s
|
96
|
-
FileUtils.cp_r('manual/output', "#{docpath}/#{project}")
|
97
|
-
end
|
98
|
-
```
|
99
|
-
My project documentation is part of my Jekyll blog. The docdir resides now in "~/RubyMine/saigkill.github.io/docs".
|
100
|
-
If you have installed this Gem with "rake setup" after "gem install hoe-manns" a config file is placed in your ~/.hoe-manns/hoe-manns.cfg. There you have to replace the docdir "~/RubyMine/saigkill.github.io/docs" with your target directory. The method gets the name of the present project by asking README.{.txt, .rdoc, .md}. The name will be used as name of your target folder in your docdir.
|
101
|
-
In the case of my hoe-manns it will be copied to docdir/hoemanns. You see any other chars than alpha or numeric will be ignored.
|
102
|
-
|
103
|
-
```ruby
|
104
|
-
# Method for cleanup the pkg
|
105
|
-
def self.clean_pkg_method
|
106
|
-
puts 'Cleaning pkg'.color(:yellow)
|
107
|
-
FileUtils.rm_rf('pkg') if Dir.exist?('pkg')
|
108
|
-
puts 'Cleanup succeed'.color(:green)
|
109
|
-
end
|
110
|
-
```
|
111
|
-
Sometimes it can be useful to remove the pkg directory from your source. So just launch this method to do this.
|
112
|
-
|
113
|
-
``` ruby
|
114
|
-
namespace :bundle_audit do
|
115
|
-
desc 'Update bundle-audit database'
|
116
|
-
task :update do
|
117
|
-
Bundler::Audit::CLI.new.update
|
118
|
-
end
|
119
|
-
|
120
|
-
desc 'Check gems for vulns using bundle-audit'
|
121
|
-
task :check do
|
122
|
-
Bundler::Audit::CLI.new.check
|
123
|
-
end
|
124
|
-
|
125
|
-
desc 'Update vulns database and check gems using bundle-audit'
|
126
|
-
task :run do
|
127
|
-
Rake::Task['bundle_audit:update'].invoke
|
128
|
-
Rake::Task['bundle_audit:check'].invoke
|
129
|
-
end
|
130
|
-
end
|
131
|
-
task :bundle_audit do
|
132
|
-
Rake::Task['bundle_audit:run'].invoke
|
133
|
-
end
|
134
|
-
```
|
135
|
-
This Rake task provides 3 new Rake commands: bundle_audit:update, bundle_audit:run, and bundle_audit:check. A bundle_audit:run does bundle_audit:update and bundle_update:check. So you need in most cases just that one command.
|
136
|
-
|
137
|
-
``` ruby
|
138
|
-
def self.copy_wiki_method
|
139
|
-
puts 'Copying wiki content to docs'.colour(:yellow)
|
140
|
-
project = Hoe::Manns.get_projectname
|
141
|
-
dest = "#{Dir.home}/RubymineProjects/#{project}"
|
142
|
-
wikipath = "#{Dir.home}/RubymineProjects/#{project}.wiki"
|
143
|
-
FileUtils.mkdir_p "#{dest}/doc", verbose: true if File.exist?('docs') == false
|
144
|
-
files = Dir.glob("#{wikipath}/*.md")
|
145
|
-
FileUtils.cp files, "#{dest}/docs", verbose: true
|
146
|
-
FileUtils.mv "#{dest}/docs/home.md", "#{dest}/docs/index.md", verbose: true
|
147
|
-
puts 'Copied wiki content'.colour(:green)
|
148
|
-
end
|
149
|
-
```
|
150
|
-
GitLab provides for projects wiki a own git repository, which has the projectname extended with ".wiki". So this method copies the docs from projects wiki repo to the project repo and can be shipped.
|
151
|
-
|
152
|
-
|
153
|
-
```ruby
|
154
|
-
def self.create_packages_method
|
155
|
-
project = Hoe::Manns.get_projectname
|
156
|
-
FileUtils.cd("recipes/#{project}") do
|
157
|
-
puts 'Creating the deb package'.colour(:yellow)
|
158
|
-
system('fpm-cook -t deb')
|
159
|
-
puts 'deb creating done'.colour(:green)
|
160
|
-
puts 'Creating the rpm package'.colour(:yellow)
|
161
|
-
system('fpm-cook -t rpm')
|
162
|
-
puts 'rpm creating done'.colour(:green)
|
163
|
-
end
|
164
|
-
end
|
165
|
-
```
|
166
|
-
This method changes into the directory $projektname-maindir/recipes/$projektname. There it expects a "recipe.rb" file which looks like:
|
167
|
-
|
168
|
-
``` ruby
|
169
|
-
# Recipe class
|
170
|
-
class HoeMannsRubyGem < FPM::Cookery::RubyGemRecipe
|
171
|
-
name 'hoe-manns'
|
172
|
-
version '1.1.0'
|
173
|
-
maintainer 'Sascha Manns <samannsml@directbox.com>'
|
174
|
-
end
|
175
|
-
```
|
176
|
-
You have to set the version manually for each build. Sure: you can run that command just after you official released your gem. :-)
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
## The Rake tasks
|
181
|
-
|
182
|
-
In most cases you don't run the method directly, but use a Rake Task.
|
183
|
-
|
184
|
-
All Rake tasks in hoe-manns having a common structure:
|
185
|
-
|
186
|
-
```ruby
|
187
|
-
desc 'Update Gemfile.lock'
|
188
|
-
task :update_gemfile_lock do
|
189
|
-
Hoe::Manns.update_gemfile_lock_method
|
190
|
-
end
|
191
|
-
```
|
192
|
-
You see, it just runs the method. A task ":update_gemfile_lock" runs a "update_gemfile_lock_method".
|
193
|
-
|
194
|
-
hoe-manns ships two Rake tasks without any methods. These tasks are used to run a bunch of other tasks in a special order.
|
195
|
-
|
196
|
-
```ruby
|
197
|
-
desc 'Run all tasks before rake release'
|
198
|
-
task :run_before_release => %w(git:manifest bundler:gemfile update_gemfile_lock update_index remove_pre_gemspec
|
199
|
-
update_workspace) do
|
200
|
-
puts 'Ready to run rake release VERSION=x.y.z'.color(:green)
|
201
|
-
end
|
202
|
-
```
|
203
|
-
This rake task runs some rake tasks in that order: git:manifest, bundler:gemfile, update_gemfile_lock, update_index, remove_pre_gemspec and update_workspace.
|
204
|
-
|
205
|
-
```ruby
|
206
|
-
desc 'Run all tasks after rake release'
|
207
|
-
task :run_after_release => %w(send_email version:bump) do
|
208
|
-
puts 'Release finished'.color (:green)
|
209
|
-
end
|
210
|
-
```
|
211
|
-
This task runs: send_email and version:bump. That can be useful to automate things after the release.
|
212
|
-
|
213
|
-
|
214
|
-
|
data/docs/index.md
DELETED
@@ -1,24 +0,0 @@
|
|
1
|
-
This is a manual for hoe-manns. In this collection i excluded some code which i using all around my projects. But what exactly happens?
|
2
|
-
|
3
|
-
* update_gemfile_lock does a simple "bundler update" which recreates the Gemfile.lock
|
4
|
-
* remove_pre_gemspec removes the gemfile what could be present from earlier tests
|
5
|
-
* update_workspace checks the stuff in. So you can make rake release on a clean base
|
6
|
-
* update_index runs a "index --using VERSION Index.yml". If you are using indexer (Metadata creator) from Rubyworks
|
7
|
-
you can use that task for running an update. You have to update the version number in the VERSION file manually!
|
8
|
-
Actually i haven't any idea, how to do that automatically.
|
9
|
-
* clean_pkg cleans up your pkg directory
|
10
|
-
* update_manuals copies the manual folder to your docpath. The task asks you for your project name. The docpath will be set in USER/.hoe-manns/hoe-manns.cfg. Let me say you have a project "dummy" and you place your docs in /your/path/docs the manuals will be shown under /your/path/docs/dummy/. There you have your index.html and the resources.
|
11
|
-
* run_before_release runs the Rake tasks: "git-manifest", "bundler:gemfile", "update_gemfile_lock", "update_index",
|
12
|
-
"remove_pre_gemspec" and "update_workspace" before the release.
|
13
|
-
* run_after_release runs the Rake tasks "send_email" and "version:bump" after release.
|
14
|
-
* bundler_audit:run updates the database from vulnerabilities and does a check
|
15
|
-
* update_workspace adds the workspace (Manifest, Gemfile, Rakefile, History, Readme, bin/*, data/*, etc/*, lib/*, and test/* to git and does a commit.
|
16
|
-
* copy_mirror_method copies the changes to ../your-projectname-github).
|
17
|
-
* creates deb & rpm packages from gem
|
18
|
-
* deploys packages to bintray
|
19
|
-
|
20
|
-
A deeper insight is possible there: [Behind the scene](behind-the-scene).
|
21
|
-
|
22
|
-
The APIDocs are placed there: http://www.rubydoc.info/gems/hoe-manns.
|
23
|
-
|
24
|
-
> 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.
|