hoe-manns 1.5.1 → 1.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +1 -3
- data/Gemfile.lock +2 -6
- data/History.rdoc +12 -0
- data/Rakefile +1 -3
- data/lib/hoe/manns.rb +11 -42
- data/spec/manns_spec.rb +5 -4
- metadata +18 -32
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 99e6ad6856a72e1b60756f14abb6f59bd0a5c49e
|
4
|
+
data.tar.gz: 56b647aac78c17896c5c2f2acc0ebf39db2402f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1d896ff92ee0edb2f8f53e487f6a5898ba4e14858ac0bbafd036586a6e48ee3b52327b249ea0b598ff25957e80c948e78034694b5b09461c86cf2e4c66a65d80
|
7
|
+
data.tar.gz: 81033516f153b4ca8d3ce7c533f474707fc78ab02242ab827bb59d38a76a5c8d379a1909b185b1365b766f6e6f09295e24481bbd8ceea53dfa95db517ea2b77f
|
data/Gemfile
CHANGED
@@ -7,14 +7,12 @@ source "https://rubygems.org/"
|
|
7
7
|
gem "parseconfig", "~>1.0"
|
8
8
|
gem "rainbow", "~>2.1"
|
9
9
|
gem "bundler-audit", "~>0.4"
|
10
|
-
gem "pandoc-ruby", "~>2.0"
|
11
|
-
gem "hoe", "~>3.15"
|
12
10
|
|
13
11
|
gem "rdoc", "~>4.0", :group => [:development, :test]
|
14
12
|
gem "coveralls", "~>0.8", :group => [:development, :test]
|
15
13
|
gem "hoe-bundler", "~>1.3", :group => [:development, :test]
|
16
14
|
gem "hoe-git", "~>1.6", :group => [:development, :test]
|
17
|
-
gem "hoe-manns", "~>1.
|
15
|
+
gem "hoe-manns", "~>1.6", :group => [:development, :test]
|
18
16
|
gem "hoe-rubocop", "~>1.0", :group => [:development, :test]
|
19
17
|
gem "hoe-rubygems", "~>1.0", :group => [:development, :test]
|
20
18
|
gem "hoe-seattlerb", "~>1.3", :group => [:development, :test]
|
data/Gemfile.lock
CHANGED
@@ -18,10 +18,8 @@ GEM
|
|
18
18
|
hoe-bundler (1.3.0)
|
19
19
|
hoe (>= 2.2.0)
|
20
20
|
hoe-git (1.6.0)
|
21
|
-
hoe-manns (1.
|
21
|
+
hoe-manns (1.6.0)
|
22
22
|
bundler-audit (~> 0.4)
|
23
|
-
hoe (~> 3.15)
|
24
|
-
pandoc-ruby (~> 2.0)
|
25
23
|
parseconfig (~> 1.0)
|
26
24
|
rainbow (~> 2.1)
|
27
25
|
hoe-rubocop (1.0.6)
|
@@ -32,7 +30,6 @@ GEM
|
|
32
30
|
hoe-seattlerb (1.3.5)
|
33
31
|
hoe-version (1.2.0)
|
34
32
|
json (1.8.3)
|
35
|
-
pandoc-ruby (2.0.1)
|
36
33
|
parseconfig (1.0.8)
|
37
34
|
parser (2.3.1.2)
|
38
35
|
ast (~> 2.2)
|
@@ -81,12 +78,11 @@ DEPENDENCIES
|
|
81
78
|
hoe (~> 3.15)
|
82
79
|
hoe-bundler (~> 1.3)
|
83
80
|
hoe-git (~> 1.6)
|
84
|
-
hoe-manns (~> 1.
|
81
|
+
hoe-manns (~> 1.6)
|
85
82
|
hoe-rubocop (~> 1.0)
|
86
83
|
hoe-rubygems (~> 1.0)
|
87
84
|
hoe-seattlerb (~> 1.3)
|
88
85
|
hoe-version (~> 1.2)
|
89
|
-
pandoc-ruby (~> 2.0)
|
90
86
|
parseconfig (~> 1.0)
|
91
87
|
rainbow (~> 2.1)
|
92
88
|
rake (~> 11.2)
|
data/History.rdoc
CHANGED
@@ -1,3 +1,15 @@
|
|
1
|
+
=== 1.6.0 / 2016-08-08
|
2
|
+
|
3
|
+
* 3 major enhancements
|
4
|
+
|
5
|
+
* fixed HM-2: Simplify copy_wiki method (dropped)
|
6
|
+
* fixed HM-3: manns.rb (Code cleanup)
|
7
|
+
* removed pandoc dependency
|
8
|
+
|
9
|
+
* 1 minor enhancement
|
10
|
+
|
11
|
+
* reworked spec files
|
12
|
+
|
1
13
|
=== 1.5.1 / 2016-08-07
|
2
14
|
|
3
15
|
* 3 minor enhancement
|
data/Rakefile
CHANGED
@@ -38,13 +38,11 @@ Hoe.spec 'hoe-manns' do
|
|
38
38
|
dependency 'parseconfig', '~> 1.0'
|
39
39
|
dependency 'rainbow', '~> 2.1'
|
40
40
|
dependency 'bundler-audit', '~> 0.4'
|
41
|
-
dependency 'pandoc-ruby', '~> 2.0'
|
42
|
-
dependency 'hoe', '~> 3.15'
|
43
41
|
|
44
42
|
extra_dev_deps << ['coveralls', '~> 0.8']
|
45
43
|
extra_dev_deps << ['hoe-bundler', '~> 1.3']
|
46
44
|
extra_dev_deps << ['hoe-git', '~> 1.6']
|
47
|
-
extra_dev_deps << ['hoe-manns', '~> 1.
|
45
|
+
extra_dev_deps << ['hoe-manns', '~> 1.6']
|
48
46
|
extra_dev_deps << ['hoe-rubocop', '~> 1.0']
|
49
47
|
extra_dev_deps << ['hoe-rubygems', '~> 1.0']
|
50
48
|
extra_dev_deps << ['hoe-seattlerb', '~> 1.3']
|
data/lib/hoe/manns.rb
CHANGED
@@ -1,7 +1,8 @@
|
|
1
1
|
# encoding: UTF-8
|
2
2
|
# @encoding: utf-8
|
3
3
|
# @author: Sascha Manns
|
4
|
-
# @abstract: hoe-manns is a small collection of my personal used rake tasks for
|
4
|
+
# @abstract: hoe-manns is a small collection of my personal used rake tasks for
|
5
|
+
# using with hoe
|
5
6
|
#
|
6
7
|
# Copyright (c) 2015-2016 Sascha Manns <samannsml@directbox.com>
|
7
8
|
# License: MIT
|
@@ -12,12 +13,11 @@ require 'hoe'
|
|
12
13
|
# Main module for hoe-manns
|
13
14
|
module Hoe::Manns
|
14
15
|
# Version constant for HOE::Manns
|
15
|
-
VERSION = '1.
|
16
|
+
VERSION = '1.6.0'
|
16
17
|
|
17
18
|
attr_accessor :remove_pre_gemspec
|
18
19
|
attr_accessor :copy_manuals
|
19
20
|
attr_accessor :copy_master
|
20
|
-
attr_accessor :copy_wiki
|
21
21
|
attr_accessor :run_before_release
|
22
22
|
attr_accessor :run_after_release
|
23
23
|
attr_accessor :clean_pkg
|
@@ -30,7 +30,6 @@ module Hoe::Manns
|
|
30
30
|
require 'parseconfig'
|
31
31
|
require 'rainbow/ext/string'
|
32
32
|
require 'bundler/audit/cli'
|
33
|
-
require 'pandoc-ruby'
|
34
33
|
end
|
35
34
|
|
36
35
|
# Definitions of the Rake task
|
@@ -61,12 +60,6 @@ module Hoe::Manns
|
|
61
60
|
Hoe::Manns.copy_manuals_method
|
62
61
|
end
|
63
62
|
|
64
|
-
# Rake Task for copying the GitLab Wiki to ./doc
|
65
|
-
desc 'Copy Wiki'
|
66
|
-
task :copy_wiki do
|
67
|
-
Hoe::Manns.copy_wiki_method
|
68
|
-
end
|
69
|
-
|
70
63
|
# Rake Task for git tag
|
71
64
|
desc 'Copy master'
|
72
65
|
task :copy_master do
|
@@ -75,7 +68,9 @@ module Hoe::Manns
|
|
75
68
|
|
76
69
|
# Rake Task for running needed Rake Tasks before running rake release
|
77
70
|
desc 'Run all tasks before rake release'
|
78
|
-
task :run_before_release => %w(git:manifest bundler:gemfile
|
71
|
+
task :run_before_release => %w(git:manifest bundler:gemfile
|
72
|
+
bundler:gemfile_lock gem:spec_remove bundle_audit:run update_workspace
|
73
|
+
copy_master) do
|
79
74
|
puts 'Ready to run rake release VERSION=x.y.z'.colour(:green)
|
80
75
|
end
|
81
76
|
|
@@ -132,9 +127,11 @@ module Hoe::Manns
|
|
132
127
|
# Method for updating workspace
|
133
128
|
def self.update_workspace_method
|
134
129
|
puts 'Updating workspace'.colour(:yellow)
|
135
|
-
%w(Rakefile Gemfile Gemfile.lock .autotest .codeclimate.yml .coveralls.yml
|
136
|
-
.
|
137
|
-
|
130
|
+
%w(Rakefile Gemfile Gemfile.lock .autotest .codeclimate.yml .coveralls.yml
|
131
|
+
.gemnasium.yml .gitignore .rspec .rubocop.yml .scrutinizer.yml .travis.yml
|
132
|
+
CODE_OF_CONDUCT.md config.reek CONTRIBUTING.md History.rdoc Index.yml
|
133
|
+
LICENSE.rdoc MAINTENANCE.md Manifest.txt README.rdoc VERSION
|
134
|
+
recipes/recipe.rb).each do |i|
|
138
135
|
system("git add #{i}") if File.exist?(i)
|
139
136
|
end
|
140
137
|
%w(bin etc data docs lib test spec).each do |d|
|
@@ -156,34 +153,6 @@ README.rdoc VERSION recipes/recipe.rb).each do |i|
|
|
156
153
|
puts 'Copied manuals'.colour(:green)
|
157
154
|
end
|
158
155
|
|
159
|
-
# Copies the actual wiki entries to ./docs
|
160
|
-
def self.copy_wiki_method
|
161
|
-
puts 'Copying wiki content to docs'.colour(:yellow)
|
162
|
-
project = Hoe::Manns.get_projectname
|
163
|
-
develpath = Hoe::Manns.get_develpath
|
164
|
-
wikipath = "#{develpath}/#{project}.wiki"
|
165
|
-
FileUtils.mkdir_p 'docs', verbose: true unless File.exist?('docs')
|
166
|
-
FileUtils.cd(wikipath) do
|
167
|
-
system('git pull')
|
168
|
-
end
|
169
|
-
files = Dir.glob("#{wikipath}/*.md")
|
170
|
-
FileUtils.cp files, 'docs', verbose: true
|
171
|
-
FileUtils.mv 'docs/home.md', 'docs/index.md', verbose: true
|
172
|
-
FileUtils.cd('docs') do
|
173
|
-
Dir['*.md'].each do |f|
|
174
|
-
PandocRuby.allow_file_paths = true
|
175
|
-
@converter = PandocRuby.new(f, :from => :markdown, :to => :rst)
|
176
|
-
File.open(f, 'w') do |file1|
|
177
|
-
file1.puts @converter.convert
|
178
|
-
end
|
179
|
-
extn = File.extname f # => ".mp4"
|
180
|
-
name = File.basename f, extn # => "xyz"
|
181
|
-
FileUtils.mv "#{name}.md", "#{name}.rst"
|
182
|
-
end
|
183
|
-
end
|
184
|
-
puts 'Copied wiki content'.colour(:green)
|
185
|
-
end
|
186
|
-
|
187
156
|
# Method for copying to master
|
188
157
|
def self.copy_master
|
189
158
|
puts 'Checking out master'.colour(:yellow)
|
data/spec/manns_spec.rb
CHANGED
@@ -14,17 +14,18 @@ describe 'Hoe::Manns' do
|
|
14
14
|
FileUtils.rm(File.join(File.dirname(__FILE__), '..', 'Gemfile.lock'))
|
15
15
|
Hoe::Manns.update_gemfile_lock_method
|
16
16
|
avail = false
|
17
|
-
avail = File.exist?(File.join(File.dirname(__FILE__), '..',
|
17
|
+
avail = File.exist?(File.join(File.dirname(__FILE__), '..',
|
18
|
+
'Gemfile.lock'))
|
18
19
|
expect(avail) == true
|
19
20
|
end
|
20
21
|
end
|
21
22
|
|
22
23
|
describe 'remove_pre_gemspec' do
|
23
24
|
it 'removes the old gemspec' do
|
24
|
-
Hoe::Manns.remove_pre_gemspec_method
|
25
25
|
FileUtils.touch('hoe-manns.gemspec')
|
26
|
-
|
27
|
-
|
26
|
+
Hoe::Manns.remove_pre_gemspec_method
|
27
|
+
gemspec = Dir.glob('*.gemspec').empty?
|
28
|
+
expect(gemspec) == true
|
28
29
|
end
|
29
30
|
end
|
30
31
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hoe-manns
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sascha Manns
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-08-
|
11
|
+
date: 2016-08-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: parseconfig
|
@@ -52,34 +52,6 @@ dependencies:
|
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0.4'
|
55
|
-
- !ruby/object:Gem::Dependency
|
56
|
-
name: pandoc-ruby
|
57
|
-
requirement: !ruby/object:Gem::Requirement
|
58
|
-
requirements:
|
59
|
-
- - "~>"
|
60
|
-
- !ruby/object:Gem::Version
|
61
|
-
version: '2.0'
|
62
|
-
type: :runtime
|
63
|
-
prerelease: false
|
64
|
-
version_requirements: !ruby/object:Gem::Requirement
|
65
|
-
requirements:
|
66
|
-
- - "~>"
|
67
|
-
- !ruby/object:Gem::Version
|
68
|
-
version: '2.0'
|
69
|
-
- !ruby/object:Gem::Dependency
|
70
|
-
name: hoe
|
71
|
-
requirement: !ruby/object:Gem::Requirement
|
72
|
-
requirements:
|
73
|
-
- - "~>"
|
74
|
-
- !ruby/object:Gem::Version
|
75
|
-
version: '3.15'
|
76
|
-
type: :runtime
|
77
|
-
prerelease: false
|
78
|
-
version_requirements: !ruby/object:Gem::Requirement
|
79
|
-
requirements:
|
80
|
-
- - "~>"
|
81
|
-
- !ruby/object:Gem::Version
|
82
|
-
version: '3.15'
|
83
55
|
- !ruby/object:Gem::Dependency
|
84
56
|
name: rdoc
|
85
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -142,14 +114,14 @@ dependencies:
|
|
142
114
|
requirements:
|
143
115
|
- - "~>"
|
144
116
|
- !ruby/object:Gem::Version
|
145
|
-
version: '1.
|
117
|
+
version: '1.6'
|
146
118
|
type: :development
|
147
119
|
prerelease: false
|
148
120
|
version_requirements: !ruby/object:Gem::Requirement
|
149
121
|
requirements:
|
150
122
|
- - "~>"
|
151
123
|
- !ruby/object:Gem::Version
|
152
|
-
version: '1.
|
124
|
+
version: '1.6'
|
153
125
|
- !ruby/object:Gem::Dependency
|
154
126
|
name: hoe-rubocop
|
155
127
|
requirement: !ruby/object:Gem::Requirement
|
@@ -248,6 +220,20 @@ dependencies:
|
|
248
220
|
- - "~>"
|
249
221
|
- !ruby/object:Gem::Version
|
250
222
|
version: '0.12'
|
223
|
+
- !ruby/object:Gem::Dependency
|
224
|
+
name: hoe
|
225
|
+
requirement: !ruby/object:Gem::Requirement
|
226
|
+
requirements:
|
227
|
+
- - "~>"
|
228
|
+
- !ruby/object:Gem::Version
|
229
|
+
version: '3.15'
|
230
|
+
type: :development
|
231
|
+
prerelease: false
|
232
|
+
version_requirements: !ruby/object:Gem::Requirement
|
233
|
+
requirements:
|
234
|
+
- - "~>"
|
235
|
+
- !ruby/object:Gem::Version
|
236
|
+
version: '3.15'
|
251
237
|
description: |-
|
252
238
|
hoe-manns is a small collection of my personal used rake tasks for using with hoe. Actually it includes that tasks:
|
253
239
|
|