hoe-manns 1.0.2 → 1.1.0
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/.gemnasium.yml +2 -2
- data/.index +33 -37
- data/.travis.yml +1 -0
- data/Gemfile +3 -1
- data/Gemfile.lock +24 -2
- data/History.rdoc +11 -0
- data/README.rdoc +17 -9
- data/Rakefile +6 -14
- data/VERSION +1 -1
- data/lib/hoe/manns.rb +79 -18
- data.tar.gz.sig +0 -0
- metadata +33 -4
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 036eebc589b35b886d0155c0fd73cc0ab03fdf89
|
4
|
+
data.tar.gz: 69723154d2a12fa62da8696777556641413fbb02
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eb4fa8e46b9bccf99782f03468356d9d582d52a549b9d38fc4ed161e310f60c74e4ba1bcee02e2daddd822857ae7336d92f0ef2f5984885c3488f41bf8882546
|
7
|
+
data.tar.gz: d7e41ba4e3e5e9aaef9479466c8cad2f95701e91796bc7c02d7b9383a15b980b09718d8629775ac1931aacb8cb6515d1c9f138585cff130a4e51ece1b35c419f
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/.gemnasium.yml
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# api_endpoint: http://private-77f5-gemnasium.apiary-mock.com
|
2
|
-
api_key:
|
2
|
+
api_key: c916184c3e0892558476535b216f7442 # You personal (secret) API key. Get it at https://gemnasium.com/settings/api_access
|
3
3
|
project_name: hoe-manns # A name to remember your project.
|
4
|
-
project_slug:
|
4
|
+
project_slug: 2a56a3d68e779b8be5caf118ab2700d8 # Unique slug for this project. Get it on the "project settings" page.
|
5
5
|
project_branch: master # /!\ If you don't use git, remove this line
|
data/.index
CHANGED
@@ -10,12 +10,16 @@ authors:
|
|
10
10
|
organizations: []
|
11
11
|
requirements:
|
12
12
|
- name: setup
|
13
|
-
- name: notifier
|
14
13
|
- name: parseconfig
|
14
|
+
- name: bundler-audit
|
15
15
|
- groups:
|
16
16
|
- build
|
17
17
|
development: true
|
18
18
|
name: bundler
|
19
|
+
- groups:
|
20
|
+
- build
|
21
|
+
development: true
|
22
|
+
name: rdoc
|
19
23
|
- groups:
|
20
24
|
- build
|
21
25
|
development: true
|
@@ -23,7 +27,19 @@ requirements:
|
|
23
27
|
- groups:
|
24
28
|
- build
|
25
29
|
development: true
|
26
|
-
name:
|
30
|
+
name: rspec
|
31
|
+
- groups:
|
32
|
+
- build
|
33
|
+
development: true
|
34
|
+
name: simplecov
|
35
|
+
- groups:
|
36
|
+
- build
|
37
|
+
development: true
|
38
|
+
name: indexer
|
39
|
+
- groups:
|
40
|
+
- build
|
41
|
+
development: true
|
42
|
+
name: rake
|
27
43
|
- groups:
|
28
44
|
- build
|
29
45
|
development: true
|
@@ -85,33 +101,21 @@ requirements:
|
|
85
101
|
development: true
|
86
102
|
name: indexer
|
87
103
|
- groups:
|
88
|
-
-
|
89
|
-
development: true
|
90
|
-
name: rubocop
|
91
|
-
- groups:
|
92
|
-
- build
|
93
|
-
development: true
|
94
|
-
name: rake
|
95
|
-
- groups:
|
96
|
-
- build
|
97
|
-
development: true
|
98
|
-
name: rdoc
|
99
|
-
- groups:
|
100
|
-
- build
|
104
|
+
- test
|
101
105
|
development: true
|
102
|
-
name:
|
106
|
+
name: reek
|
103
107
|
- groups:
|
104
|
-
-
|
108
|
+
- test
|
105
109
|
development: true
|
106
|
-
name:
|
110
|
+
name: rubocop
|
107
111
|
- groups:
|
108
|
-
-
|
112
|
+
- test
|
109
113
|
development: true
|
110
|
-
name:
|
114
|
+
name: ZenTest
|
111
115
|
- groups:
|
112
116
|
- test
|
113
117
|
development: true
|
114
|
-
name:
|
118
|
+
name: minitest
|
115
119
|
- groups:
|
116
120
|
- test
|
117
121
|
development: true
|
@@ -119,34 +123,26 @@ requirements:
|
|
119
123
|
- groups:
|
120
124
|
- test
|
121
125
|
development: true
|
122
|
-
name:
|
126
|
+
name: coveralls
|
123
127
|
conflicts: []
|
124
128
|
alternatives: []
|
125
129
|
resources:
|
126
130
|
- type: home
|
127
131
|
uri: http://saigkill.github.io
|
128
132
|
label: Homepage
|
129
|
-
- type: docs
|
130
|
-
uri: https://gitlab.com/saigkill/hoe-manns/wikis/home
|
131
|
-
label: Documentation
|
132
133
|
- type: code
|
133
|
-
uri: https://gitlab.com/saigkill
|
134
|
+
uri: https://gitlab.com/saigkill/hoe-manns
|
134
135
|
label: Source Code
|
135
136
|
- type: bugs
|
136
137
|
uri: https://gitlab.com/saigkill/hoe-manns/issues
|
137
138
|
label: Issue Tracker
|
138
|
-
- type: issues
|
139
|
-
uri: https://gitlab.com/saigkill/hoe-manns/issues
|
140
|
-
label: Issue Tracker
|
141
139
|
repositories:
|
142
140
|
- name: upstream
|
143
141
|
scm: git
|
144
142
|
uri: https://gitlab.com/saigkill/hoe-manns.git
|
145
143
|
categories:
|
146
|
-
-
|
147
|
-
-
|
148
|
-
- gem release
|
149
|
-
- metadata
|
144
|
+
- ruby
|
145
|
+
- development
|
150
146
|
copyrights:
|
151
147
|
- holder: Sascha Manns
|
152
148
|
year: '2015'
|
@@ -155,11 +151,11 @@ customs: []
|
|
155
151
|
paths:
|
156
152
|
lib:
|
157
153
|
- lib
|
158
|
-
version: 1.0
|
154
|
+
version: 1.1.0
|
159
155
|
name: hoe-manns
|
160
156
|
title: hoe-manns
|
161
157
|
summary: hoe-manns is a small collection of my personal used rake tasks for using
|
162
|
-
with hoe
|
158
|
+
with hoe. Actually it includes that tasks
|
163
159
|
description: hoe-manns is a small collection of my personal used rake tasks for using
|
164
|
-
with hoe.
|
165
|
-
date: '2015-10-
|
160
|
+
with hoe. Actually it includes that tasks.
|
161
|
+
date: '2015-10-05'
|
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
@@ -6,10 +6,12 @@ source "https://rubygems.org/"
|
|
6
6
|
|
7
7
|
gem "setup", "~>5.2"
|
8
8
|
gem "parseconfig", "~>1.0"
|
9
|
+
gem "bundler-audit", "~>0.4.0"
|
10
|
+
gem "fpm", "~>1.4.0"
|
9
11
|
|
10
12
|
gem "hoe-highline", "~>0.2", :group => [:development, :test]
|
11
13
|
gem "hoe-yard", ">=0.1.2", :group => [:development, :test]
|
12
|
-
gem "coveralls", "~>0.8", :group => [:development, :test]
|
14
|
+
gem "coveralls", "~>0.8.3", :group => [:development, :test]
|
13
15
|
gem "digest", "~>0.0.1", :group => [:development, :test]
|
14
16
|
gem "gem-release", "~>0.7", :group => [:development, :test]
|
15
17
|
gem "hoe-bundler", "~>1.2", :group => [:development, :test]
|
data/Gemfile.lock
CHANGED
@@ -8,9 +8,19 @@ GEM
|
|
8
8
|
adamantium (0.2.0)
|
9
9
|
ice_nine (~> 0.11.0)
|
10
10
|
memoizable (~> 0.4.0)
|
11
|
+
arr-pm (0.0.10)
|
12
|
+
cabin (> 0)
|
11
13
|
ast (2.1.0)
|
12
14
|
astrolabe (1.3.1)
|
13
15
|
parser (~> 2.2)
|
16
|
+
backports (3.6.6)
|
17
|
+
bundler-audit (0.4.0)
|
18
|
+
bundler (~> 1.2)
|
19
|
+
thor (~> 0.18)
|
20
|
+
cabin (0.7.1)
|
21
|
+
childprocess (0.5.6)
|
22
|
+
ffi (~> 1.0, >= 1.0.11)
|
23
|
+
clamp (0.6.5)
|
14
24
|
concord (0.1.5)
|
15
25
|
adamantium (~> 0.2.0)
|
16
26
|
equalizer (~> 0.0.9)
|
@@ -26,6 +36,15 @@ GEM
|
|
26
36
|
domain_name (0.5.24)
|
27
37
|
unf (>= 0.0.5, < 1.0.0)
|
28
38
|
equalizer (0.0.11)
|
39
|
+
ffi (1.9.10)
|
40
|
+
fpm (1.4.0)
|
41
|
+
arr-pm (~> 0.0.10)
|
42
|
+
backports (>= 2.6.2)
|
43
|
+
cabin (>= 0.6.0)
|
44
|
+
childprocess
|
45
|
+
clamp (~> 0.6)
|
46
|
+
ffi
|
47
|
+
json (>= 1.7.7)
|
29
48
|
gem-release (0.7.4)
|
30
49
|
hashr (0.0.22)
|
31
50
|
highline (1.7.7)
|
@@ -47,7 +66,8 @@ GEM
|
|
47
66
|
hoe-highline (0.2.1)
|
48
67
|
highline (~> 1.6)
|
49
68
|
hoe (~> 3.11)
|
50
|
-
hoe-manns (1.0.
|
69
|
+
hoe-manns (1.0.2)
|
70
|
+
bundler-audit (~> 0.4.0)
|
51
71
|
parseconfig (~> 1.0)
|
52
72
|
setup (~> 5.2)
|
53
73
|
hoe-mercurial (1.4.1)
|
@@ -149,8 +169,10 @@ PLATFORMS
|
|
149
169
|
|
150
170
|
DEPENDENCIES
|
151
171
|
ZenTest (~> 4.11)
|
152
|
-
|
172
|
+
bundler-audit (~> 0.4.0)
|
173
|
+
coveralls (~> 0.8.3)
|
153
174
|
digest (~> 0.0.1)
|
175
|
+
fpm (~> 1.4.0)
|
154
176
|
gem-release (~> 0.7)
|
155
177
|
hoe (~> 3.14)
|
156
178
|
hoe-bundler (~> 1.2)
|
data/History.rdoc
CHANGED
@@ -1,3 +1,14 @@
|
|
1
|
+
=== 1.1.0 / 2015-10-05
|
2
|
+
|
3
|
+
* 2 major enhancements
|
4
|
+
|
5
|
+
* HM-4 Add function to copy the content
|
6
|
+
* HM-5 Integration of bundle audit
|
7
|
+
|
8
|
+
* 1 minor enhancements
|
9
|
+
|
10
|
+
* HM-3 Update all content for using with GitLab
|
11
|
+
|
1
12
|
=== 1.0.2 / 2015-10-02
|
2
13
|
|
3
14
|
* 1 minor enhancement
|
data/README.rdoc
CHANGED
@@ -8,15 +8,18 @@ bugs :: https://gitlab.com/saigkill/hoe-manns/issues
|
|
8
8
|
last public version :: {<img src="https://badge.fury.io/rb/hoe-manns.png" alt="Last Version" />}[http://rubygems.org/gems/hoe-manns]
|
9
9
|
downloads latest :: {<img src="https://img.shields.io/gem/dtv/hoe-manns.svg" alt="Downloads latest version" />}[http://rubygems.org/gems/hoe-manns]
|
10
10
|
downloads all :: {<img src="https://img.shields.io/gem/dt/hoe-manns.svg" alt="Downloads all versions" />}[http://rubygems.org/gems/hoe-manns]
|
11
|
-
continuous integration :: {<img src="
|
11
|
+
continuous integration :: {<img src="https://secure.travis-ci.org/saigkill/hoe-manns.png?branch=master" alt="Build Status" />}[https://secure.travis-ci.org/saigkill/hoe-manns]
|
12
|
+
continuous integration :: {<img src="https://scrutinizer-ci.com/g/saigkill/hoe-manns/badges/build.png?b=master" />}[https://scrutinizer-ci.com/g/saigkill/hoe-manns]
|
13
|
+
code quality :: {<img src="https://scrutinizer-ci.com/g/saigkill/hoe-manns/badges/quality-score.png?b=master" />}[https://scrutinizer-ci.com/g/saigkill/hoe-manns]
|
14
|
+
code quality :: {<img src="https://codeclimate.com/github/saigkill/hoe-manns/badges/gpa.svg" alt="Code Quality" />}[https://codeclimate.com/github/saigkill/hoe-manns]
|
12
15
|
test coverage :: {<img src="https://coveralls.io/repos/saigkill/hoe-manns/badge.png?branch=master" alt="Test Coverage" />}[https://coveralls.io/r/saigkill/hoe-manns?branch=master]
|
13
|
-
dependency check :: {<img src="https://gemnasium.com/
|
16
|
+
dependency check :: {<img src="https://gemnasium.com/b83a1c275ea3fd0f5a9a93efbb1ea6d9.svg" alt="Build Status" />}[https://gemnasium.com/2a56a3d68e779b8be5caf118ab2700d8]
|
14
17
|
still maintained? :: {<img src="http://stillmaintained.com/saigkill/hoe-manns.png" alt="Still maintained?" />}[http://stillmaintained.com/saigkill/hoe-manns]
|
15
|
-
|
18
|
+
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]
|
19
|
+
donations :: {<img src="https://pledgie.com/campaigns/30268.png?skin_name=chrome" alt="Donations" />}[https://pledgie.com/campaigns/30268]
|
16
20
|
donations :: {<img src="http://img.shields.io/gratipay/saigkill.svg" alt="Donations" />}[https://gratipay.com/~saigkill/]
|
17
21
|
donations :: {<img src="http://tsv-neuss.de/cms/upload/News-Bilder/amazon1.png" alt="Donations" />}[http://www.amazon.de/registry/wishlist/D75HOEQ00BDD]
|
18
22
|
|
19
|
-
|
20
23
|
== DESCRIPTION:
|
21
24
|
|
22
25
|
hoe-manns is a small collection of my personal used rake tasks for using with hoe. Actually it includes that tasks:
|
@@ -29,18 +32,22 @@ hoe-manns is a small collection of my personal used rake tasks for using with ho
|
|
29
32
|
* run_before_release
|
30
33
|
* run_after_release
|
31
34
|
* clean_pkg
|
35
|
+
* integration of bundle_audit
|
32
36
|
|
33
37
|
== FEATURES/PROBLEMS:
|
34
38
|
|
35
39
|
* Updates the Gemfile.lock
|
36
40
|
* Removes the old *.gemspec created in test cases
|
37
|
-
*
|
41
|
+
* commits the workspace before rake release
|
38
42
|
* Does a index --using VERSION Index.yml if you use the indexer from Rubyworks
|
39
43
|
* copies your manuals to your docpath.
|
40
|
-
* runs the rake tasks before release: git:manifest, bundler:gemfile, update_gemfile_lock, update_index, remove_pre_gemspec and
|
44
|
+
* runs the rake tasks before release: git:manifest, bundler:gemfile, update_gemfile_lock, update_index, remove_pre_gemspec, update_workspace, bundler_audit:run and copy_mirror.
|
41
45
|
* runs after release: send_email version:bump
|
42
46
|
* Cleans up the pkg dir
|
43
47
|
|
48
|
+
This Gem was programmed and tested for Linux systems. If anyone would like to make the methods also fit for other OS,
|
49
|
+
i'm happy about Pull requests.
|
50
|
+
|
44
51
|
For a detailed information please visit: https://gitlab.com/saigkill/hoe-manns/wikis/home
|
45
52
|
If you like this piece of software don't forget to give the gitlab repo a star.
|
46
53
|
|
@@ -61,12 +68,13 @@ Also add hoe-manns to your requirements and recreate your Gemfile.
|
|
61
68
|
* rake
|
62
69
|
* hoe
|
63
70
|
* parseconfig
|
71
|
+
* bundler-audit
|
64
72
|
|
65
73
|
== INSTALL:
|
66
74
|
|
67
|
-
|
68
|
-
|
69
|
-
|
75
|
+
gem install hoe-manns
|
76
|
+
cd /path/to/gem (In case of using RVM anything like ~/.rvm/gems/ruby-2.2.1/gems/hoe-manns)
|
77
|
+
rake setup
|
70
78
|
|
71
79
|
'rake setup' installs a config file in $HOME/.hoe-manns/hoe-manns.cfg. If you would like to use copy_manuals so you
|
72
80
|
have to place in the config your docpath.
|
data/Rakefile
CHANGED
@@ -3,8 +3,8 @@
|
|
3
3
|
# * update *.wiki markdown documentation for GitLab
|
4
4
|
# * enable :git
|
5
5
|
# * rake run_before_release
|
6
|
-
# * Checkin
|
7
6
|
# * disable :git
|
7
|
+
# * Checkin
|
8
8
|
# * rake release
|
9
9
|
# * rake run_after_release
|
10
10
|
|
@@ -44,13 +44,15 @@ Hoe.spec 'hoe-manns' do
|
|
44
44
|
license 'MIT' # this should match the license in the README
|
45
45
|
require_ruby_version '>= 2.2.0'
|
46
46
|
|
47
|
-
|
48
|
-
email_to << 'Sascha.Manns@directbox.com'
|
47
|
+
email_to << 'ruby-talk@ruby-lang.org'
|
48
|
+
#email_to << 'Sascha.Manns@directbox.com'
|
49
49
|
|
50
50
|
dependency 'setup', '~> 5.2'
|
51
51
|
dependency 'parseconfig', '~> 1.0'
|
52
|
+
dependency 'bundler-audit', '~> 0.4.0'
|
53
|
+
dependency 'fpm', '~> 1.4.0'
|
52
54
|
|
53
|
-
extra_dev_deps << ['coveralls', '~> 0.8']
|
55
|
+
extra_dev_deps << ['coveralls', '~> 0.8.3']
|
54
56
|
extra_dev_deps << ['digest', '~> 0.0.1']
|
55
57
|
extra_dev_deps << ['gem-release', '~> 0.7']
|
56
58
|
extra_dev_deps << ['hoe-bundler', '~> 1.2']
|
@@ -82,16 +84,6 @@ Hoe.spec 'hoe-manns' do
|
|
82
84
|
self.post_install_message = '*** Run rake setup to finish the installation *** Please file bugreports and feature requests on: https://gitlab.com/saigkill/hoe-manns/issues'
|
83
85
|
end
|
84
86
|
|
85
|
-
require 'fileutils'
|
86
|
-
require File.expand_path(File.join(File.dirname(__FILE__), 'lib/hoe/manns'))
|
87
|
-
desc 'Prepares for release'
|
88
|
-
task :make_release => %w(run_before_release) do
|
89
|
-
|
90
|
-
system("rake release VERSION=#{Hoe::Manns::VERSION}")
|
91
|
-
|
92
|
-
Rake::Task['run_after_release']
|
93
|
-
end
|
94
|
-
|
95
87
|
##################################################SETUP ZONE############################################################
|
96
88
|
require 'setup'
|
97
89
|
task :setup do
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.0
|
1
|
+
1.1.0
|
data/lib/hoe/manns.rb
CHANGED
@@ -14,16 +14,18 @@ class Hoe; end
|
|
14
14
|
# Main module for hoe-manns
|
15
15
|
module Hoe::Manns
|
16
16
|
# Version constant for HOE::Manns
|
17
|
-
VERSION = '1.0
|
17
|
+
VERSION = '1.1.0'
|
18
18
|
|
19
19
|
attr_accessor :update_gemfile_lock
|
20
20
|
attr_accessor :remove_pre_gemspec
|
21
21
|
attr_accessor :update_workspace
|
22
22
|
attr_accessor :update_index
|
23
23
|
attr_accessor :copy_manuals
|
24
|
+
attr_accessor :copy_mirror
|
24
25
|
attr_accessor :run_before_release
|
25
26
|
attr_accessor :run_after_release
|
26
27
|
attr_accessor :clean_pkg
|
28
|
+
attr_accessor :bundler_audit
|
27
29
|
|
28
30
|
# Initialize plugin
|
29
31
|
def initialize_manns
|
@@ -31,6 +33,7 @@ module Hoe::Manns
|
|
31
33
|
require 'fileutils'
|
32
34
|
require 'parseconfig'
|
33
35
|
require 'rainbow/ext/string'
|
36
|
+
require 'bundler/audit/cli'
|
34
37
|
end
|
35
38
|
|
36
39
|
# Definitions of the Rake task
|
@@ -67,17 +70,45 @@ module Hoe::Manns
|
|
67
70
|
Hoe::Manns.copy_manuals_method
|
68
71
|
end
|
69
72
|
|
73
|
+
# Rake task for copying to mirror
|
74
|
+
desc 'Coying to mirror'
|
75
|
+
task :copy_mirror do
|
76
|
+
Hoe::Manns.copy_mirror_method
|
77
|
+
end
|
78
|
+
|
79
|
+
# Method for bundle audit
|
80
|
+
namespace :bundle_audit do
|
81
|
+
desc 'Update bundle-audit database'
|
82
|
+
task :update do
|
83
|
+
Bundler::Audit::CLI.new.update
|
84
|
+
end
|
85
|
+
|
86
|
+
desc 'Check gems for vulns using bundle-audit'
|
87
|
+
task :check do
|
88
|
+
Bundler::Audit::CLI.new.check
|
89
|
+
end
|
90
|
+
|
91
|
+
desc 'Update vulns database and check gems using bundle-audit'
|
92
|
+
task :run do
|
93
|
+
Rake::Task['bundle_audit:update'].invoke
|
94
|
+
Rake::Task['bundle_audit:check'].invoke
|
95
|
+
end
|
96
|
+
end
|
97
|
+
task :bundle_audit do
|
98
|
+
Rake::Task['bundle_audit:run'].invoke
|
99
|
+
end
|
100
|
+
|
70
101
|
# Rake Task for running needed Rake Tasks before running rake release
|
71
102
|
desc 'Run all tasks before rake release'
|
72
103
|
task :run_before_release => %w(git:manifest bundler:gemfile update_gemfile_lock update_index remove_pre_gemspec
|
73
|
-
update_workspace) do
|
74
|
-
puts 'Ready to run rake release VERSION=x.y.z'.
|
104
|
+
update_workspace bundle_audit:run copy_mirror) do
|
105
|
+
puts 'Ready to run rake release VERSION=x.y.z'.colour(:green)
|
75
106
|
end
|
76
107
|
|
77
108
|
# Rake Task for running needed Rake Tasks after running rake release
|
78
109
|
desc 'Run all tasks after rake release'
|
79
110
|
task :run_after_release => %w(send_email version:bump) do
|
80
|
-
puts 'Release finished'.
|
111
|
+
puts 'Release finished'.colour (:green)
|
81
112
|
end
|
82
113
|
|
83
114
|
# Rake Task for cleaning up the pkg
|
@@ -90,50 +121,80 @@ update_workspace) do
|
|
90
121
|
require 'rainbow/ext/string'
|
91
122
|
# Method for updating Gemfile.lock
|
92
123
|
def self.update_gemfile_lock_method
|
93
|
-
puts 'Updating Gemfile.lock'.
|
124
|
+
puts 'Updating Gemfile.lock'.colour(:yellow)
|
94
125
|
system('bundle update')
|
95
|
-
puts 'Updated Gemfile.lock'.
|
126
|
+
puts 'Updated Gemfile.lock'.colour(:green)
|
96
127
|
end
|
97
128
|
|
98
129
|
# Method for removing prerelease gemspec
|
99
130
|
def self.remove_pre_gemspec_method
|
100
|
-
puts 'Removing pre version of gemspec'.
|
131
|
+
puts 'Removing pre version of gemspec'.colour(:yellow)
|
101
132
|
File.delete(*Dir.glob('*.gemspec'))
|
102
|
-
puts 'Removed'.
|
133
|
+
puts 'Removed'.colour(:green)
|
103
134
|
end
|
104
135
|
|
105
136
|
# Method for updating workspace
|
106
137
|
def self.update_workspace_method
|
107
|
-
puts 'Updating workspace'.
|
108
|
-
system('git add Manifest.txt Gemfile Gemfile.lock')
|
138
|
+
puts 'Updating workspace'.colour(:yellow)
|
139
|
+
system('git add Manifest.txt Gemfile Gemfile.lock Rakefile History.* README.*')
|
140
|
+
system('git add bin/*') if File.exist?('bin')
|
141
|
+
system('git add data/*') if File.exist?('data')
|
142
|
+
system('git add etc/*') if File.exist?('etc')
|
143
|
+
system('git add lib/*') if File.exist?('lib')
|
144
|
+
system('git add test/*') if File.exist?('test')
|
109
145
|
system('git commit -m "Updated workspace"')
|
110
146
|
system('git push')
|
111
147
|
system('git status')
|
112
|
-
puts 'Updated workspace'.
|
148
|
+
puts 'Updated workspace'.colour(:green)
|
113
149
|
end
|
114
150
|
|
115
151
|
# Method for updating .index
|
116
152
|
def self.update_index_method
|
117
|
-
puts 'Updating .index. Have you changed your VERSION file?'.
|
153
|
+
puts 'Updating .index. Have you changed your VERSION file?'.colour(:yellow)
|
118
154
|
system('index --using VERSION Index.yml')
|
119
155
|
system('git add .index')
|
120
|
-
puts '.index updated'.
|
156
|
+
puts '.index updated'.colour(:green)
|
121
157
|
end
|
122
158
|
|
123
159
|
# Method for copying the manuals to a target directory
|
124
160
|
def self.copy_manuals_method
|
125
|
-
puts 'Copying manual pages to target'.
|
126
|
-
|
127
|
-
project = pnameraw.gsub(/[^0-9A-Za-z]/, '')
|
161
|
+
puts 'Copying manual pages to target'.colour(:yellow)
|
162
|
+
project = Hoe::Manns.get_projectname
|
128
163
|
config = ParseConfig.new(File.join("#{Dir.home}/.hoe-manns/hoe-manns.cfg"))
|
129
164
|
docpath = config['docpath'].to_s
|
130
165
|
FileUtils.cp_r('manual/output', "#{docpath}/#{project}")
|
131
166
|
end
|
132
167
|
|
168
|
+
# Method for copying to mirror
|
169
|
+
def self.copy_mirror_method
|
170
|
+
project = Hoe::Manns.get_projectname
|
171
|
+
source = "#{Dir.home}/RubymineProjects/#{project}"
|
172
|
+
destination = "#{Dir.home}/RubymineProjects/#{project}-github"
|
173
|
+
puts 'Copying to mirror'.colour(:yellow)
|
174
|
+
FileUtils.cp_r "#{source}/lib/.", "#{destination}/lib/.", verbose: true
|
175
|
+
FileUtils.cp_r "#{source}/test/.", "#{destination}/test/.", verbose: true
|
176
|
+
FileUtils.cp_r "#{source}/Rakefile", "#{destination}", verbose: true
|
177
|
+
FileUtils.cp_r "#{source}/Gemfile", "#{destination}", verbose: true
|
178
|
+
FileUtils.cp_r "#{source}/Gemfile.lock", "#{destination}", verbose: true
|
179
|
+
FileUtils.cd(destination) do
|
180
|
+
system('git add * && git commit -m "Sync mirror" && git push')
|
181
|
+
end
|
182
|
+
puts 'Copying to mirror succeeded'.colour(:green)
|
183
|
+
end
|
184
|
+
|
185
|
+
# Method for deploying to bintray
|
186
|
+
|
187
|
+
# Method for getting the project name
|
188
|
+
def self.get_projectname
|
189
|
+
pnameraw = File.open(*Dir.glob('README.*')) {|f| f.readline}
|
190
|
+
project = pnameraw.gsub(/[^0-9A-Za-z_-]/, '')
|
191
|
+
return project
|
192
|
+
end
|
193
|
+
|
133
194
|
# Method for cleanup the pkg
|
134
195
|
def self.clean_pkg_method
|
135
|
-
puts 'Cleaning pkg'.
|
196
|
+
puts 'Cleaning pkg'.colour(:yellow)
|
136
197
|
FileUtils.rm_rf('pkg') if Dir.exist?('pkg')
|
137
|
-
puts 'Cleanup succeed'.
|
198
|
+
puts 'Cleanup succeed'.colour(:green)
|
138
199
|
end
|
139
200
|
end
|
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.0
|
4
|
+
version: 1.1.0
|
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-05 00:00:00.000000000 Z
|
34
34
|
dependencies:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: setup
|
@@ -60,6 +60,34 @@ dependencies:
|
|
60
60
|
- - "~>"
|
61
61
|
- !ruby/object:Gem::Version
|
62
62
|
version: '1.0'
|
63
|
+
- !ruby/object:Gem::Dependency
|
64
|
+
name: bundler-audit
|
65
|
+
requirement: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - "~>"
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: 0.4.0
|
70
|
+
type: :runtime
|
71
|
+
prerelease: false
|
72
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
|
+
requirements:
|
74
|
+
- - "~>"
|
75
|
+
- !ruby/object:Gem::Version
|
76
|
+
version: 0.4.0
|
77
|
+
- !ruby/object:Gem::Dependency
|
78
|
+
name: fpm
|
79
|
+
requirement: !ruby/object:Gem::Requirement
|
80
|
+
requirements:
|
81
|
+
- - "~>"
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
version: 1.4.0
|
84
|
+
type: :runtime
|
85
|
+
prerelease: false
|
86
|
+
version_requirements: !ruby/object:Gem::Requirement
|
87
|
+
requirements:
|
88
|
+
- - "~>"
|
89
|
+
- !ruby/object:Gem::Version
|
90
|
+
version: 1.4.0
|
63
91
|
- !ruby/object:Gem::Dependency
|
64
92
|
name: hoe-highline
|
65
93
|
requirement: !ruby/object:Gem::Requirement
|
@@ -94,14 +122,14 @@ dependencies:
|
|
94
122
|
requirements:
|
95
123
|
- - "~>"
|
96
124
|
- !ruby/object:Gem::Version
|
97
|
-
version:
|
125
|
+
version: 0.8.3
|
98
126
|
type: :development
|
99
127
|
prerelease: false
|
100
128
|
version_requirements: !ruby/object:Gem::Requirement
|
101
129
|
requirements:
|
102
130
|
- - "~>"
|
103
131
|
- !ruby/object:Gem::Version
|
104
|
-
version:
|
132
|
+
version: 0.8.3
|
105
133
|
- !ruby/object:Gem::Dependency
|
106
134
|
name: digest
|
107
135
|
requirement: !ruby/object:Gem::Requirement
|
@@ -435,6 +463,7 @@ description: |-
|
|
435
463
|
* run_before_release
|
436
464
|
* run_after_release
|
437
465
|
* clean_pkg
|
466
|
+
* integration of bundle_audit
|
438
467
|
email:
|
439
468
|
- samannsml@directbox.com
|
440
469
|
executables: []
|
metadata.gz.sig
CHANGED
Binary file
|