hoe-manns 1.6.2 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
data/Manifest.txt CHANGED
@@ -1,21 +1,10 @@
1
- .codeclimate.yml
2
- .coveralls.yml
3
- .gemnasium.yml
4
- .rspec
5
- .rubocop.yml
6
- .scrutinizer.yml
7
- .travis.yml
8
- CODE_OF_CONDUCT.md
9
- CONTRIBUTING.md
10
1
  Gemfile
11
2
  Gemfile.lock
12
3
  History.rdoc
13
4
  LICENSE.rdoc
14
- MAINTENANCE.md
15
5
  Manifest.txt
16
6
  README.rdoc
17
7
  Rakefile
18
- config.reek
19
8
  lib/hoe/manns.rb
20
9
  spec/manns_spec.rb
21
10
  spec/spec_helper.rb
data/README.rdoc CHANGED
@@ -1,27 +1,17 @@
1
1
  = hoe-manns
2
2
 
3
- home :: http://saigkill.tuxfamily.org
4
- code :: http://github.com/saigkill/hoe-manns
5
- docu (en) :: https://saigkill.tuxfamily.org/docs/hoe-manns/en-US/html/
6
- docu (de) :: https://saigkill.tuxfamily.org/docs/hoe-manns/de-DE/html/
7
- apidoc :: http://www.rubydoc.info/gems/hoe-manns
8
- bugs :: https://github.com/saigkill/hoe-manns/issues
9
- min. rubyver :: 2.2.0
10
- license :: {<img src="http://img.shields.io/:license-mit-blue.svg" />}[https://github.com/saigkill/hoe-manns/blob/master/LICENSE.rdoc]
11
- last public version :: {<img src="https://badge.fury.io/rb/hoe-manns.png" alt="Last Version" />}[http://rubygems.org/gems/hoe-manns]
12
- downloads latest :: {<img src="https://img.shields.io/gem/dtv/hoe-manns.svg" alt="Downloads latest version" />}[http://rubygems.org/gems/hoe-manns]
13
- downloads all :: {<img src="https://img.shields.io/gem/dt/hoe-manns.svg" alt="Downloads all versions" />}[http://rubygems.org/gems/hoe-manns]
14
- continuous integration :: {<img src="https://travis-ci.org/saigkill/hoe-manns.svg" />}[https://travis-ci.org/saigkill/hoe-manns]
15
- continuous integration master :: {<img src="https://scrutinizer-ci.com/g/saigkill/hoe-manns/badges/build.png?b=master" />}[https://scrutinizer-ci.com/g/saigkill/hoe-manns]
16
- 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]
17
- code quality :: {<img src="https://d3s6mut3hikguw.cloudfront.net/github/saigkill/hoe-manns/badges/gpa.svg" alt="Code Quality" />}[https://codeclimate.com/github/saigkill/hoe-manns]
18
- code quality :: {<img src="https://api.codacy.com/project/badge/Grade/59c5e250bebd4116b39a7577f361f061" alt="Codacy code quality" />}[https://www.codacy.com/app/samannsml/hoe-manns?utm_source=github.com&utm_medium=referral&utm_content=saigkill/hoe-manns&utm_campaign=Badge_Grade]
19
- security :: {<img src="https://hakiri.io/github/saigkill/hoe-manns/master.svg" alt="security" />}[https://hakiri.io/github/saigkill/hoe-manns/master]
20
- coverage :: {<img src="https://coveralls.io/repos/saigkill/hoe-manns/badge.svg?branch=master&service=github" alt="Coverage Status" />}[https://coveralls.io/github/saigkill/hoe-manns?branch=master]
21
- dependency check :: {<img src="https://gemnasium.com/saigkill/hoe-manns.svg" alt="Dependency Status" />}[https://gemnasium.com/saigkill/hoe-manns]
22
- 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]
23
- donations :: {<img src="https://pledgie.com/campaigns/30268.png?skin_name=chrome" alt="Donations" />}[https://pledgie.com/campaigns/30268]
24
- donations :: {<img src="https://saigkill.tuxfamily.org/dotclear/public/Amazon.png" alt="Donations" />}[http://www.amazon.de/registry/wishlist/D75HOEQ00BDD]
3
+ code :: https://launchpad.net/hoe-manns
4
+ rdoc :: http://www.rubydoc.info/gems/hoe-manns
5
+ docs :: https://saigkill.github.io/hoe-manns/about/
6
+ bugs :: https://bugs.launchpad.net/hoe-manns
7
+ questions :: https://answers.launchpad.net/hoe-manns
8
+ feature requests :: https://blueprints.launchpad.net/hoe-manns
9
+ openhub statistics :: https://www.openhub.net/p/hoe-manns
10
+ authors blog :: https://saigkill.tuxfamily.org
11
+ min_rubyver :: 2.3.0
12
+
13
+ If you're reading this on Github, please keep in mind, that this is just a
14
+ mirror. The development happens on: https://launchpad.net/hoe-manns
25
15
 
26
16
  == DESCRIPTION:
27
17
 
@@ -37,6 +27,17 @@ hoe-manns is a small collection of my personal used rake tasks for using with ho
37
27
  * run_after_release
38
28
  * update_workspace
39
29
 
30
+ The History.rdoc contains a detailed description on what has changed. For most
31
+ users the NEWS file might be a better place to look since it contains
32
+ change summaries between the different versions.
33
+
34
+ youtube_dlhelper is released under the GPL3 License, see the file 'License.rdoc'
35
+ for more information.
36
+
37
+ The official web site is:
38
+
39
+ https://launchpad.net/hoe-manns
40
+
40
41
  == FEATURES/PROBLEMS:
41
42
 
42
43
  * Updates the Gemfile.lock
@@ -52,7 +53,8 @@ hoe-manns is a small collection of my personal used rake tasks for using with ho
52
53
  This Gem was programmed and tested for Linux systems. If anyone would like to make the methods also fit for other OS,
53
54
  i'm happy about Pull requests.
54
55
 
55
- If you like this piece of software don't forget to give the gitlab repo a star.
56
+ See the {FAQs}[https://answers.launchpad.net/hoe-manns/+faqs] for checking known issues.
57
+ See the {status}[https://github.com/saigkill/hoe-manns/blob/master/STATUS.rdoc] of the app.
56
58
 
57
59
  == SYNOPSIS:
58
60
 
@@ -66,6 +68,8 @@ Use in your Rakefile:
66
68
 
67
69
  Also add hoe-manns to your requirements and recreate your Gemfile.
68
70
 
71
+ Read the documentation at: https://saigkill.github.io/hoe-manns/about/
72
+
69
73
  == REQUIREMENTS:
70
74
 
71
75
  * rake
@@ -75,9 +79,11 @@ Also add hoe-manns to your requirements and recreate your Gemfile.
75
79
 
76
80
  == INSTALL:
77
81
 
82
+ The installation is very easy.
83
+
78
84
  gem install hoe-manns
79
85
 
80
- Edit your .hoerc: https://saigkill.tuxfamily.org/docs/hoe-manns/en-US/html/ (en) or https://saigkill.tuxfamily.org/docs/hoe-manns/de-DE/html/ (de).
86
+ Read the documentation at: https://saigkill.github.io/hoe-manns/about/
81
87
 
82
88
  == DEVELOPERS:
83
89
 
@@ -88,31 +94,87 @@ After checking out the source, run:
88
94
  This task will install any missing dependencies, run the tests/specs,
89
95
  and generate the RDoc.
90
96
 
91
- Merge Requests are welcome :-)
97
+ === IDEAS:
98
+
99
+ * Add ideas on: https://blueprints.launchpad.net/hoe-manns
100
+
101
+ === COOL HACKS:
102
+
103
+ * Open a bugreport on https://bugs.launchpad.net/hoe-manns.
104
+ * Please use the -u flag when generating the patch as it makes the patch
105
+ more readable.
106
+ * Write a good explanation of what the patch does.
107
+ * It is better to use git format-patch command: git format-patch HEAD^
108
+
109
+ === CONTRIBUTOR CODE OF CONDUCT:
110
+
111
+ As contributors and maintainers of this project, we pledge to respect all
112
+ people who contribute through reporting issues, posting feature requests,
113
+ updating documentation, submitting pull requests or patches, and other
114
+ activities.
115
+
116
+ We are committed to making participation in this project a harassment-free
117
+ experience for everyone, regardless of level of experience, gender, gender
118
+ identity and expression, sexual orientation, disability, personal
119
+ appearance, body size, race, age, or religion.
120
+
121
+ Examples of unacceptable behavior by participants include the use of sexual
122
+ language or imagery, derogatory comments or personal attacks, trolling,
123
+ public or private harassment, insults, or other unprofessional conduct.
124
+
125
+ Project maintainers have the right and responsibility to remove, edit, or
126
+ reject comments, commits, code, wiki edits, issues, and other contributions
127
+ that are not aligned to this Code of Conduct. Project maintainers who do
128
+ not follow the Code of Conduct may be removed from the project team.
129
+
130
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
131
+ reported by opening an issue or contacting one or more of the project
132
+ maintainers.
133
+
134
+ This Code of Conduct is adapted from the {Contributor Covenant}[http:contributor-covenant.org],
135
+ version 1.0.0, available at {http://contributor-covenant.org/version/1/0/0/}[http://contributor-covenant.org/version/1/0/0/].
136
+
137
+ === MAINTANANCE POLICY:
138
+
139
+ I'm following the Semantic Versioning for its releases: (Major).(Minor).(Patch).
140
+
141
+ * Major version: Whenever there is something significant or any backwards
142
+ incompatible changes.
143
+ * Minor version: When new, backwards compatible functionality is introduced a
144
+ minor feature is introduced, or when a set of smaller features is rolled out.
145
+ * Patch number: When backwards compatible bug fixes are introduced that fix
146
+ incorrect behavior.
147
+ * The current stable release will receive security patches and bug fixes
148
+ (eg. 5.0 -> 5.0.1).
149
+ * Feature releases will mark the next supported stable release where the minor
150
+ version is increased numerically by increments of one (eg. 5.0 -> 5.1).
151
+
152
+ I encourage everyone to run the latest stable release to ensure that you can
153
+ easily upgrade to the most secure and feature rich experience. In order to
154
+ make sure you can easily run the most recent stable release, we are working
155
+ hard to keep the update process simple and reliable.
156
+
157
+ === STRUCTURE:
158
+
159
+ ==== BRANCHES:
160
+
161
+ ===== `master` BRANCH:
162
+ The master branch is the current edge of development.
92
163
 
93
- Read https://github.com/saigkill/hoe-manns/blob/master/CONTRIBUTING.md
164
+ ===== `X.X` BRANCH:
165
+ The X.X branch is the last stable branch. It will used for tarballs.
94
166
 
95
- == LICENSE:
167
+ ===== MERGE REQUESTS:
168
+ If you want to merge your branch with the trunk, join the team.
96
169
 
97
- (The MIT License)
170
+ Please base all Merge requests off the `master` branch. Merges to
171
+ `X.X` only occur through the `master` branch.
98
172
 
99
- Copyright (c) 2015-2017 Sascha Manns <Sascha.Manns@mailbox.org>
173
+ == COMMUNICATION:
100
174
 
101
- Permission is hereby granted, free of charge, to any person obtaining
102
- a copy of this software and associated documentation files (the
103
- 'Software'), to deal in the Software without restriction, including
104
- without limitation the rights to use, copy, modify, merge, publish,
105
- distribute, sublicense, and/or sell copies of the Software, and to
106
- permit persons to whom the Software is furnished to do so, subject to
107
- the following conditions:
175
+ Join the team on: https://launchpad.net/~hoe-manns.
108
176
 
109
- The above copyright notice and this permission notice shall be
110
- included in all copies or substantial portions of the Software.
177
+ == PROBLEM REPORTING:
111
178
 
112
- THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
113
- EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
114
- MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
115
- IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
116
- CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
117
- TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
118
- SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
179
+ Bugs should be reported to https://bugs.launchpad.net/hoe-manns. You will need to create an
180
+ account for yourself.
data/Rakefile CHANGED
@@ -14,43 +14,46 @@ require 'rubygems'
14
14
  require 'hoe'
15
15
 
16
16
  Hoe.plugin :bundler
17
- Hoe.plugin :email
18
- Hoe.plugin :git
17
+ Hoe.plugin :doofus
18
+ #Hoe.plugin :git
19
19
  Hoe.plugin :manns
20
20
  Hoe.plugin :rdoc
21
+ Hoe.plugin :reek
21
22
  Hoe.plugin :rubocop
22
23
  Hoe.plugin :rubygems
24
+ Hoe.plugin :travis
23
25
  Hoe.plugin :version
24
26
 
27
+
25
28
  ###########################################DEVELOPING ZONE##############################################################
26
29
  # rubocop:disable Metrics/LineLength
27
30
  Hoe.spec 'hoe-manns' do
28
31
  developer('Sascha Manns', 'Sascha.Manns@mailbox.org')
29
- license 'MIT' # this should match the license in the README
32
+ license 'GPL-3' # this should match the license in the README
30
33
  require_ruby_version '>= 2.2.0'
31
34
 
32
- email_to << 'ruby-talk@ruby-lang.org'
33
- #email_to << 'Sascha.Manns@directbox.com'
34
-
35
- dependency 'parseconfig', '~> 1.0'
36
35
  dependency 'rainbow', '~> 2.2'
37
- dependency 'bundler-audit', '~> 0.5'
36
+ dependency 'bundler-audit', '~> 0.6'
38
37
 
39
38
  extra_dev_deps << ['coveralls', '~> 0.8']
40
39
  extra_dev_deps << ['hoe-bundler', '~> 1.3']
40
+ extra_dev_deps << ['hoe-doofus', '~> 1.0']
41
41
  extra_dev_deps << ['hoe-git', '~> 1.6']
42
+ extra_dev_deps << ['hoe-manns', '~> 1.6']
43
+ extra_dev_deps << ['hoe-reek', '~> 1.1']
42
44
  extra_dev_deps << ['hoe-rubocop', '~> 1.0']
43
45
  extra_dev_deps << ['hoe-rubygems', '~> 1.0']
44
- extra_dev_deps << ['hoe-seattlerb', '~> 1.3']
46
+ extra_dev_deps << ['hoe-travis', '~> 1.3']
45
47
  extra_dev_deps << ['hoe-version', '~> 1.2']
46
- extra_dev_deps << ['rake', '~> 11.3']
47
- extra_dev_deps << ['rspec', '~> 3.5']
48
- extra_dev_deps << ['simplecov', '~> 0.12']
48
+ extra_dev_deps << ['rake', '~> 12.1']
49
+ extra_dev_deps << ['rdoc', '~> 5.1']
50
+ extra_dev_deps << ['rubocop', '~> 0.50']
51
+ extra_dev_deps << ['rspec', '~> 3.7']
49
52
 
50
53
  self.history_file = 'History.rdoc'
51
54
  self.readme_file = 'README.rdoc'
52
55
  self.extra_rdoc_files = FileList['*.rdoc'].to_a
53
- self.post_install_message = '*** Edit your .hoerc: https://saigkill.tuxfamily.org/docs/hoe-manns/en-US/html/ *** Please file bugreports and feature requests on: https://github.com/saigkill/hoe-manns/issues'
56
+ self.post_install_message = 'Please file bugreports on: https://bugs.launchpad.net/hoe-manns'
54
57
  end
55
58
 
56
59
  ##################################################SETUP ZONE############################################################
data/STATUS.rdoc ADDED
@@ -0,0 +1,30 @@
1
+ = Misc status badges
2
+
3
+ == Gem
4
+ last public version :: {<img src="https://badge.fury.io/rb/hoe-manns.png" alt="Last Version" />}[http://rubygems.org/gems/hoe-manns]
5
+ downloads latest :: {<img src="https://img.shields.io/gem/dtv/hoe-manns.svg" alt="Downloads latest version" />}[http://rubygems.org/gems/hoe-manns]
6
+ downloads all :: {<img src="https://img.shields.io/gem/dt/hoe-manns.svg" alt="Downloads all versions" />}[http://rubygems.org/gems/hoe-manns]
7
+
8
+ == Continuous Integration
9
+ continuous integration :: {<img src="https://travis-ci.org/saigkill/hoe-manns.svg?branch=master" alt="Build Status" />}[https://travis-ci.org/saigkill/hoe-manns]
10
+ 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/build-status/master]
11
+
12
+ == Code Review
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]
15
+ code quality :: {<img src="https://api.codacy.com/project/badge/Grade/bfa993bdac4b46efa6e102daf97ca311" alt="Codacy code quality" />}[https://www.codacy.com/app/saigkill_2/hoe-manns?utm_source=github.com&amp;utm_medium=referral&amp;utm_content=saigkill/hoe-manns&amp;utm_campaign=Badge_Grade]
16
+
17
+ == Security
18
+ security :: {<img src="https://hakiri.io/github/saigkill/hoe-manns/master.svg" alt="security" />}[https://hakiri.io/github/saigkill/hoe-manns/master/shield]
19
+
20
+ == Test Coverage
21
+ test coverage :: {<img src="https://coveralls.io/repos/github/saigkill/hoe-manns/badge.svg?branch=master" alt="Test Coverage" />}[https://coveralls.io/github/saigkill/hoe-manns]
22
+
23
+ == Dependencies
24
+ dependency check :: {<img src="https://gemnasium.com/badges/github.com/saigkill/hoe-manns.svg" alt="Dependency Status" />}[https://gemnasium.com/github.com/saigkill/hoe-manns]
25
+
26
+ == Documentation
27
+ documentation quality :: {<img src="https://inch-ci.org/github/saigkill/hoe-manns.svg?branch=master" alt="Documentation Quality" />}[https://inch-ci.org/github/saigkill/hoe-manns]
28
+
29
+ == Donations
30
+ donations :: {<img src="https://saigkill.tuxfamily.org/dotclear/public/Amazon.png" alt="Donations" />}[http://www.amazon.de/registry/wishlist/D75HOEQ00BDD]
data/lib/hoe/manns.rb CHANGED
@@ -1,10 +1,17 @@
1
- # @encoding: utf-8
2
- # @author: Sascha Manns
3
- # @abstract: hoe-manns is a small collection of my personal used rake tasks for
4
- # using with hoe
1
+ # Copyright (C) 2013-2017 Sascha Manns <Sascha.Manns@mailbox.org>
5
2
  #
6
- # Copyright (c) 2015-2017 Sascha Manns <Sascha.Manns@mailbox.org>
7
- # License: MIT
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/>.
8
15
 
9
16
  # Dependencies
10
17
  require 'hoe'
@@ -12,10 +19,9 @@ require 'hoe'
12
19
  # Main module for hoe-manns
13
20
  module Hoe::Manns
14
21
  # Version constant for HOE::Manns
15
- VERSION = '1.6.2'
22
+ VERSION = '2.0.0'.freeze
16
23
 
17
24
  attr_accessor :remove_pre_gemspec
18
- attr_accessor :copy_manuals
19
25
  attr_accessor :copy_master
20
26
  attr_accessor :run_before_release
21
27
  attr_accessor :run_after_release
@@ -24,16 +30,13 @@ module Hoe::Manns
24
30
 
25
31
  # Initialize plugin
26
32
  def initialize_manns
27
- require 'yaml'
28
33
  require 'fileutils'
29
- require 'parseconfig'
30
34
  require 'rainbow/ext/string'
31
35
  require 'bundler/audit/cli'
32
36
  end
33
37
 
34
38
  # Definitions of the Rake task
35
39
  def define_manns_tasks
36
- # rubocop:disable Metrics/LineLength
37
40
  # Rake Task for updating Gemfile.lock
38
41
  desc 'Update Gemfile.lock'
39
42
  task 'bundler:gemfile_lock' do
@@ -46,19 +49,6 @@ module Hoe::Manns
46
49
  Hoe::Manns.remove_pre_gemspec_method
47
50
  end
48
51
 
49
- # Rake Task for updating the workspace
50
- desc 'Update Workspace'
51
- task :update_workspace do
52
- Hoe::Manns.update_workspace_method
53
- end
54
-
55
- # Rake Task for copying manuals
56
- require 'parseconfig'
57
- desc 'Copy manuals'
58
- task :copy_manuals do
59
- Hoe::Manns.copy_manuals_method
60
- end
61
-
62
52
  # Rake Task for git tag
63
53
  desc 'Copy master'
64
54
  task :copy_master do
@@ -67,16 +57,15 @@ module Hoe::Manns
67
57
 
68
58
  # Rake Task for running needed Rake Tasks before running rake release
69
59
  desc 'Run all tasks before rake release'
70
- task :run_before_release => %w(git:manifest bundler:gemfile
71
- bundler:gemfile_lock gem:spec_remove bundle_audit:run update_workspace
72
- copy_master) do
73
- puts 'Ready to run rake release VERSION=x.y.z'.colour(:green)
60
+ task run_before_release: %w[git:manifest bundler:gemfile
61
+ bundler:gemfile_lock gem:spec_remove bundle_audit:run copy_master] do
62
+ puts 'Ready to run rake release VERSION=x.y.z'.color(:green)
74
63
  end
75
64
 
76
65
  # Rake Task for running needed Rake Tasks after running rake release
77
66
  desc 'Run all tasks after rake release'
78
- task :run_after_release => %w(send_email clean_pkg) do
79
- puts 'Release finished'.colour (:green)
67
+ task run_after_release: %w[send_email clean_pkg] do
68
+ puts 'Release finished'.color :green
80
69
  end
81
70
 
82
71
  # Rake Task for cleaning up the pkg
@@ -111,83 +100,39 @@ copy_master) do
111
100
  require 'rainbow/ext/string'
112
101
  # Method for updating Gemfile.lock
113
102
  def self.update_gemfile_lock_method
114
- puts 'Updating Gemfile.lock'.colour(:yellow)
103
+ puts 'Updating Gemfile.lock'.color(:yellow)
115
104
  system('bundle update')
116
- puts 'Updated Gemfile.lock'.colour(:green)
105
+ puts 'Updated Gemfile.lock'.color(:green)
117
106
  end
118
107
 
119
108
  # Method for removing prerelease gemspec
120
109
  def self.remove_pre_gemspec_method
121
- puts 'Removing pre version of gemspec'.colour(:yellow)
110
+ puts 'Removing pre version of gemspec'.color(:yellow)
122
111
  File.delete(*Dir.glob('*.gemspec'))
123
- puts 'Removed'.colour(:green)
124
- end
125
-
126
- # Method for updating workspace
127
- def self.update_workspace_method
128
- puts 'Updating workspace'.colour(:yellow)
129
- %w(Rakefile Gemfile Gemfile.lock .autotest .codeclimate.yml .coveralls.yml
130
- .gemnasium.yml .gitignore .rspec .rubocop.yml .scrutinizer.yml .travis.yml
131
- CODE_OF_CONDUCT.md config.reek CONTRIBUTING.md History.rdoc Index.yml
132
- LICENSE.rdoc MAINTENANCE.md Manifest.txt README.rdoc VERSION
133
- recipes/recipe.rb).each do |i|
134
- system("git add #{i}") if File.exist?(i)
135
- end
136
- %w(bin etc data docs lib test spec).each do |d|
137
- system("git add #{d}/*") if File.exist?(d)
138
- end
139
- system('git commit -m "Updated workspace"')
140
- system('git push')
141
- system('git status')
142
- puts 'Updated workspace'.colour(:green)
143
- end
144
-
145
- # Method for copying the manuals to a target directory
146
- def self.copy_manuals_method
147
- puts 'Copying manual pages to target'.colour(:yellow)
148
- project = Hoe::Manns.get_projectname
149
- config = YAML.load(File.read("#{Dir.home}/.hoerc"))
150
- docpath = config['manns']['docpath'].to_s
151
- FileUtils.cp_r('manual/output', "#{docpath}/#{project}")
152
- puts 'Copied manuals'.colour(:green)
112
+ puts 'Removed'.color(:green)
153
113
  end
154
114
 
155
115
  # Method for copying to master
156
116
  def self.copy_master
157
- puts 'Checking out master'.colour(:yellow)
117
+ puts 'Checking out master'.color(:yellow)
158
118
  system('git checkout master')
159
- puts 'Merging master with develop'.colour(:yellow)
119
+ puts 'Merging master with develop'.color(:yellow)
160
120
  system('git merge develop')
161
- puts 'Pushing master to origin'.colour(:yellow)
121
+ puts 'Pushing master to origin'.color(:yellow)
162
122
  system('git add recipes/recipe.rb') if File.exist?('recipes/recipe.rb')
163
123
  system('git push')
164
- puts 'Set a Git Tag'.colour(:yellow)
124
+ puts 'Set a Git Tag'.color(:yellow)
165
125
  system('rake git:tag')
166
- puts 'Checking out develop again'.colour(:yellow)
126
+ puts 'Checking out develop again'.color(:yellow)
167
127
  system('git checkout develop')
168
- puts 'Done'.colour(:green)
169
- end
170
-
171
- # Method for getting the project name
172
- def self.get_projectname
173
- pnameraw = File.open(*Dir.glob('README.*')) { |f| f.readline }
174
- project = pnameraw.gsub(/[^0-9A-Za-z_-]/, '')
175
- return project
176
- end
177
-
178
- # Method for getting the develpath
179
- def self.get_develpath
180
- config = YAML.load(File.read("#{Dir.home}/.hoerc"))
181
- develpath = config['manns']['develpath'].to_s
182
- return develpath
128
+ puts 'Done'.color(:green)
183
129
  end
184
130
 
185
131
  # Method for cleanup the pkg
186
132
  def self.clean_pkg_method
187
- puts 'Cleaning pkg'.colour(:yellow)
133
+ puts 'Cleaning pkg'.color(:yellow)
188
134
  FileUtils.rm_rf('pkg') if Dir.exist?('pkg')
189
135
  FileUtils.rm_rf('recipes/pkg') if Dir.exist?('recipes/pkg')
190
- puts 'Cleanup succeed'.colour(:green)
136
+ puts 'Cleanup succeed'.color(:green)
191
137
  end
192
-
193
138
  end