hoe-manns 2.1.3 → 2.1.5

Sign up to get free protection for your applications and to get access to all the features.
data/README.md ADDED
@@ -0,0 +1,92 @@
1
+ # hoe-manns
2
+
3
+ ## DESCRIPTION:
4
+
5
+ hoe-manns is a small collection of my personal used rake tasks for using with hoe. Actually it includes that tasks:
6
+
7
+ * bundler:gemfile_lock
8
+ * bundle_audit:*
9
+ * clean_pkg
10
+ * copy_master
11
+ * remove_pre_gemspec
12
+ * run_before_release
13
+ * run_after_release
14
+
15
+ The History.rdoc contains a detailed description of what has changed.
16
+
17
+ hoe-manns is released under the GPL-3.0-or-later License, see the file 'LICENSE.md' for more information.
18
+
19
+ |What | Where |
20
+ |-----|--------|
21
+ |codebase | https://dev.azure.com/saigkill/hoe-manns |
22
+ |rdoc | http://www.rubydoc.info/gems/hoe-manns |
23
+ |docs | http://dev.azure.com/saigkill/hoe-manns/_wiki |
24
+ |bugs & feature requests | http://dev.azure.com/saigkill/hoe-manns/_workitems |
25
+ |mailing list| https://groups.google.com/forum/#!forum/saigkills-hoe-plugins|
26
+ |openhub statistics| https://www.openhub.net/p/hoe-manns|
27
+ |authors blog| http://saschamanns.de/|
28
+
29
+ | What | Status |
30
+ |-------------------------|----------------------------------------------------------------------------------------------------------------------------------------------------------------------------|
31
+ |last public version | [![Last Version](https://badge.fury.io/rb/hoe-manns.png)](http://rubygems.org/gems/hoe-manns) |
32
+ |downloads latest | [![Downloads latest](https://img.shields.io/gem/dtv/hoe-manns.svg)](http://rubygems.org/gems/hoe-manns) |
33
+ |downloads all | [![Downloads all](https://img.shields.io/gem/dt/hoe-manns.svg)](http://rubygems.org/gems/hoe-manns) |
34
+ |continuous integration | [![Build Status](https://dev.azure.com/saigkill/hoe-manns/_apis/build/status/hoe-manns-CI)](https://dev.azure.com/saigkill/hoe-manns/_build/latest?definitionId=3) |
35
+ |code quality | [![Code Quality](https://api.codeclimate.com/v1/badges/009b795034d7c698c74f/maintainability)](https://codeclimate.com/github/saigkill/hoe-manns/maintainability) |
36
+ |dependencies|[![Dependabot Status](https://api.dependabot.com/badges/status?host=github&repo=saigkill/hoe-manns)](https://dependabot.com)
37
+ |security | [![Security](https://hakiri.io/github/saigkill/hoe-manns/master.svg)](https://hakiri.io/github/saigkill/hoe-manns/master/shield) |
38
+ |licenses | [![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fsaigkill%2Fhoe-manns.svg?type=shield)](https://app.fossa.io/projects/git%2Bgithub.com%2Fsaigkill%2Fhoe-manns?ref=badge_shield)|
39
+ |documentation quality | [![Documentation Quality](https://inch-ci.org/github/saigkill/hoe-manns.svg?branch=master)](https://inch-ci.org/github/saigkill/hoe-manns) |
40
+
41
+ ## FEATURES:
42
+
43
+ * Updates the Gemfile.lock
44
+ * Removes the old *.gemspec created in test cases
45
+ * copies your manuals to your docpath.
46
+ * runs the rake tasks before release: git:manifest, bundler:gemfile, update_gemfile_lock, remove_pre_gemspec, bundler_audit:run and copy_mirror.
47
+ * runs after release: send_email.
48
+ * Cleans up the pkg dir
49
+ * provides bundler_audit tasks
50
+
51
+ ## REQUIREMENTS:
52
+
53
+ * rake
54
+ * hoe
55
+ * bundler-audit
56
+
57
+ ## INSTALL:
58
+
59
+ The installation is very easy.
60
+
61
+ gem install hoe-manns
62
+
63
+ ## SYNOPSIS:
64
+
65
+ Use in your Rakefile:
66
+
67
+ Hoe.plugin :manns
68
+
69
+ Hoe.spec 'your project' do
70
+ ...
71
+ end
72
+
73
+ Also add hoe-manns to your requirements and recreate your Gemfile.
74
+
75
+ ## DEVELOPERS:
76
+
77
+ After checking out the source, run:
78
+
79
+ $ rake newb
80
+
81
+ This task will install any missing dependencies, run the tests/specs, and generate the RDoc.
82
+ Also you can read the MAINTENANCE.md and CONTRIBUTING.md for more information.
83
+
84
+ ## ISSUE TRACKING:
85
+
86
+ * Add ideas on: https://dev.azure.com/saigkill/hoe-manns/_workitems
87
+
88
+ ## License
89
+
90
+
91
+
92
+ [![FOSSA Status](https://app.fossa.io/api/projects/git%2Bgithub.com%2Fsaigkill%2Fhoe-manns.svg?type=large)](https://app.fossa.io/projects/git%2Bgithub.com%2Fsaigkill%2Fhoe-manns?ref=badge_large)
data/lib/hoe/manns.rb CHANGED
@@ -22,8 +22,6 @@ require_relative 'manns-methods.rb'
22
22
  # Nested usage triggers error "hoe not a module"
23
23
  # rubocop:disable Metrics/ClassAndModuleChildren
24
24
  module Hoe::Manns
25
- # Version constant for HOE::Manns
26
- VERSION = '2.1.3'.freeze
27
25
 
28
26
  attr_accessor :remove_pre_gemspec
29
27
  attr_accessor :copy_master
@@ -0,0 +1,35 @@
1
+ # Copyright (C) 2015-2018 Sascha Manns <Sascha.Manns@outlook.de>
2
+ #
3
+ # This program is free software: you can redistribute it and/or modify
4
+ # it under the terms of the GNU General Public License as published by
5
+ # the Free Software Foundation, either version 3 of the License, or
6
+ # (at your option) any later version.
7
+ #
8
+ # This program is distributed in the hope that it will be useful,
9
+ # but WITHOUT ANY WARRANTY; without even the implied warranty of
10
+ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11
+ # GNU General Public License for more details.
12
+ #
13
+ # You should have received a copy of the GNU General Public License
14
+ # along with this program. If not, see <http://www.gnu.org/licenses/>.
15
+
16
+ # main module
17
+ module Hoe::Manns
18
+ # This module holds the latex_curriculum_vitae version information.
19
+
20
+ module Version
21
+ STRING = '2.1.5'.freeze
22
+ MSG = '%<version>s (using Parser %<parser_version>s, running on ' \
23
+ '%<ruby_engine>s %<ruby_version>s %<ruby_platform>s)'.freeze
24
+
25
+ def self.version(debug = false)
26
+ if debug
27
+ format(MSG, version: STRING, parser_version: Parser::VERSION,
28
+ ruby_engine: RUBY_ENGINE, ruby_version: RUBY_VERSION,
29
+ ruby_platform: RUBY_PLATFORM)
30
+ else
31
+ STRING
32
+ end
33
+ end
34
+ end
35
+ end
data/spec/manns_spec.rb CHANGED
@@ -1,41 +1,37 @@
1
1
  require 'rspec'
2
2
  require File.join(File.dirname(__FILE__), '..', 'lib/hoe/manns')
3
3
  require File.join(File.dirname(__FILE__), '..', 'lib/hoe/manns-methods')
4
+ require File.join(File.dirname(__FILE__), '..', 'lib/hoe/version')
4
5
  require File.join(File.dirname(__FILE__), '..', 'spec/spec_helper')
5
6
  require 'fileutils'
6
7
 
7
- # TODO: Try to split this block into smaller once
8
- # rubocop:disable Metrics/BlockLength
9
- describe 'Hoe::Manns' do
10
- describe 'bundle_install' do
11
- it 'installs a bundle' do
12
- success = Hoe::MannsMethods.bundle_install
13
- expect(success)
14
- end
8
+ RSpec.describe Hoe::Manns do
9
+
10
+ it 'installs a bundle' do
11
+ success = Hoe::MannsMethods.bundle_install
12
+ expect(success)
13
+ end
14
+
15
+ it 'creates a new Gemfile.lock' do
16
+ FileUtils.rm(File.join(File.dirname(__FILE__), '..', 'Gemfile.lock'))
17
+ Hoe::MannsMethods.update_gemfile_lock_method
18
+ avail = File.exist?(File.join(File.dirname(__FILE__), '..',
19
+ 'Gemfile.lock'))
20
+ expect(avail)
15
21
  end
16
22
 
17
- describe 'update_gemfile_lock_method' do
18
- it 'creates a new Gemfile.lock' do
19
- FileUtils.rm(File.join(File.dirname(__FILE__), '..', 'Gemfile.lock'))
20
- Hoe::MannsMethods.update_gemfile_lock_method
21
- avail = File.exist?(File.join(File.dirname(__FILE__), '..',
22
- 'Gemfile.lock'))
23
- expect(avail)
24
- end
23
+ it 'removes the old gemspec' do
24
+ FileUtils.touch('hoe-manns.gemspec')
25
+ Hoe::MannsMethods.remove_pre_gemspec_method
26
+ gemspec = Dir.glob('*.gemspec').empty?
27
+ expect(gemspec)
25
28
  end
26
29
 
27
- describe 'remove_pre_gemspec' do
28
- it 'removes the old gemspec' do
29
- FileUtils.touch('hoe-manns.gemspec')
30
- Hoe::MannsMethods.remove_pre_gemspec_method
31
- gemspec = Dir.glob('*.gemspec').empty?
32
- expect(gemspec)
33
- end
30
+ it 'cleans the pkg' do
31
+ Hoe::MannsMethods.clean_pkg_method
34
32
  end
35
33
 
36
- describe 'clean_pkg' do
37
- it 'cleans the pkg' do
38
- Hoe::MannsMethods.clean_pkg_method
39
- end
34
+ it "has a version number" do
35
+ expect(Hoe::Manns::VERSION).not_to be nil
40
36
  end
41
37
  end
data/spec/spec_helper.rb CHANGED
@@ -1,4 +1,21 @@
1
- require 'coveralls'
2
1
  require 'fileutils'
3
2
  require 'rake'
4
- Coveralls.wear!
3
+ require 'simplecov'
4
+ require 'simplecov-cobertura'
5
+
6
+ RSpec.configure do |config|
7
+
8
+ # Disable RSpec exposing methods globally on `Module` and `main`
9
+ config.disable_monkey_patching!
10
+
11
+ config.expect_with :rspec do |c|
12
+ c.syntax = :expect
13
+ end
14
+ end
15
+
16
+ SimpleCov.formatters = [
17
+ SimpleCov::Formatter::HTMLFormatter,
18
+ SimpleCov::Formatter::CoberturaFormatter
19
+ ]
20
+
21
+ SimpleCov.start
metadata CHANGED
@@ -1,15 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hoe-manns
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.3
4
+ version: 2.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sascha Manns
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-25 00:00:00.000000000 Z
11
+ date: 2018-11-27 00:00:00.000000000 Z
12
12
  dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rdoc
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '6.0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '6.0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '12.3'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '12.3'
13
41
  - !ruby/object:Gem::Dependency
14
42
  name: rainbow
15
43
  requirement: !ruby/object:Gem::Requirement
@@ -25,170 +53,150 @@ dependencies:
25
53
  - !ruby/object:Gem::Version
26
54
  version: '3.0'
27
55
  - !ruby/object:Gem::Dependency
28
- name: bundler-audit
56
+ name: bundler
29
57
  requirement: !ruby/object:Gem::Requirement
30
58
  requirements:
31
59
  - - "~>"
32
60
  - !ruby/object:Gem::Version
33
- version: '0.6'
61
+ version: '1.16'
34
62
  type: :runtime
35
63
  prerelease: false
36
64
  version_requirements: !ruby/object:Gem::Requirement
37
65
  requirements:
38
66
  - - "~>"
39
67
  - !ruby/object:Gem::Version
40
- version: '0.6'
68
+ version: '1.16'
41
69
  - !ruby/object:Gem::Dependency
42
- name: hoe-bundler
70
+ name: bundler-audit
43
71
  requirement: !ruby/object:Gem::Requirement
44
72
  requirements:
45
73
  - - "~>"
46
74
  - !ruby/object:Gem::Version
47
- version: '1.4'
48
- type: :development
75
+ version: '0.6'
76
+ type: :runtime
49
77
  prerelease: false
50
78
  version_requirements: !ruby/object:Gem::Requirement
51
79
  requirements:
52
80
  - - "~>"
53
81
  - !ruby/object:Gem::Version
54
- version: '1.4'
82
+ version: '0.6'
55
83
  - !ruby/object:Gem::Dependency
56
- name: hoe-rubygems
84
+ name: hoe-bundler
57
85
  requirement: !ruby/object:Gem::Requirement
58
86
  requirements:
59
87
  - - "~>"
60
88
  - !ruby/object:Gem::Version
61
- version: '1.0'
62
- type: :development
89
+ version: '1.5'
90
+ type: :runtime
63
91
  prerelease: false
64
92
  version_requirements: !ruby/object:Gem::Requirement
65
93
  requirements:
66
94
  - - "~>"
67
95
  - !ruby/object:Gem::Version
68
- version: '1.0'
96
+ version: '1.5'
69
97
  - !ruby/object:Gem::Dependency
70
- name: hoe-version
98
+ name: hoe-rubygems
71
99
  requirement: !ruby/object:Gem::Requirement
72
100
  requirements:
73
101
  - - "~>"
74
102
  - !ruby/object:Gem::Version
75
- version: '1.2'
76
- type: :development
103
+ version: '1.0'
104
+ type: :runtime
77
105
  prerelease: false
78
106
  version_requirements: !ruby/object:Gem::Requirement
79
107
  requirements:
80
108
  - - "~>"
81
109
  - !ruby/object:Gem::Version
82
- version: '1.2'
110
+ version: '1.0'
83
111
  - !ruby/object:Gem::Dependency
84
- name: rdoc
112
+ name: hoe-version
85
113
  requirement: !ruby/object:Gem::Requirement
86
114
  requirements:
87
115
  - - "~>"
88
116
  - !ruby/object:Gem::Version
89
- version: '6.0'
90
- type: :development
117
+ version: '1.2'
118
+ type: :runtime
91
119
  prerelease: false
92
120
  version_requirements: !ruby/object:Gem::Requirement
93
121
  requirements:
94
122
  - - "~>"
95
123
  - !ruby/object:Gem::Version
96
- version: '6.0'
124
+ version: '1.2'
97
125
  - !ruby/object:Gem::Dependency
98
126
  name: rspec
99
127
  requirement: !ruby/object:Gem::Requirement
100
128
  requirements:
101
129
  - - "~>"
102
130
  - !ruby/object:Gem::Version
103
- version: '3.7'
131
+ version: '3.8'
104
132
  type: :development
105
133
  prerelease: false
106
134
  version_requirements: !ruby/object:Gem::Requirement
107
135
  requirements:
108
136
  - - "~>"
109
137
  - !ruby/object:Gem::Version
110
- version: '3.7'
138
+ version: '3.8'
111
139
  - !ruby/object:Gem::Dependency
112
- name: coveralls
140
+ name: simplecov
113
141
  requirement: !ruby/object:Gem::Requirement
114
142
  requirements:
115
143
  - - "~>"
116
144
  - !ruby/object:Gem::Version
117
- version: '0.8'
145
+ version: '0.16'
118
146
  type: :development
119
147
  prerelease: false
120
148
  version_requirements: !ruby/object:Gem::Requirement
121
149
  requirements:
122
150
  - - "~>"
123
151
  - !ruby/object:Gem::Version
124
- version: '0.8'
152
+ version: '0.16'
125
153
  - !ruby/object:Gem::Dependency
126
- name: hoe
154
+ name: simplecov-cobertura
127
155
  requirement: !ruby/object:Gem::Requirement
128
156
  requirements:
129
157
  - - "~>"
130
158
  - !ruby/object:Gem::Version
131
- version: '3.17'
159
+ version: '1.3'
132
160
  type: :development
133
161
  prerelease: false
134
162
  version_requirements: !ruby/object:Gem::Requirement
135
163
  requirements:
136
164
  - - "~>"
137
165
  - !ruby/object:Gem::Version
138
- version: '3.17'
139
- description: |-
140
- hoe-manns is a small collection of my personal used rake tasks for using with hoe. Actually it includes that tasks:
141
-
142
- * bundler:gemfile_lock
143
- * bundle_audit:*
144
- * clean_pkg
145
- * copy_master
146
- * remove_pre_gemspec
147
- * run_before_release
148
- * run_after_release
149
-
150
- The History.rdoc contains a detailed description of what has changed.
151
-
152
- hoe-manns is released under the GPL3 License, see the file 'LICENSE.rdoc' for more information.
153
-
154
- The official website is:
155
-
156
- https://saigkills-backtrace.de
157
- email:
158
- - Sascha.Manns@outlook.de
166
+ version: '1.3'
167
+ description: " hoe-manns is a small collection of my personal used rake tasks for
168
+ using with hoe.\n"
169
+ email: Sascha.Manns@outlook.de
159
170
  executables: []
160
171
  extensions: []
161
172
  extra_rdoc_files:
162
- - CODE_OF_CONDUCT.md
163
- - CONTRIBUTING.md
164
- - History.rdoc
165
- - LICENSE.rdoc
173
+ - CHANGELOG.md
174
+ - LICENSE.md
166
175
  - MAINTENANCE.md
167
- - Manifest.txt
168
- - README.rdoc
176
+ - README.md
169
177
  files:
170
- - CODE_OF_CONDUCT.md
178
+ - CHANGELOG.md
171
179
  - CONTRIBUTING.md
172
- - Gemfile
173
- - Gemfile.lock
174
- - History.rdoc
175
- - LICENSE.rdoc
180
+ - LICENSE.md
176
181
  - MAINTENANCE.md
177
- - Manifest.txt
178
- - README.rdoc
179
- - Rakefile
182
+ - README.md
180
183
  - lib/hoe/manns-methods.rb
181
184
  - lib/hoe/manns.rb
185
+ - lib/hoe/version.rb
182
186
  - spec/manns_spec.rb
183
187
  - spec/spec_helper.rb
184
- homepage: https://github.com/saigkill/hoe-manns
188
+ homepage: https://dev.azure.com/saigkill/hoe-manns
185
189
  licenses:
186
190
  - GPL-3.0
187
- metadata: {}
188
- post_install_message: 'Please file bugreports on: https://github.com/saigkill/hoe-manns/issues'
189
- rdoc_options:
190
- - "--main"
191
- - README.rdoc
191
+ metadata:
192
+ homepage_uri: https://dev.azure.com/saigkill/hoe-manns
193
+ changelog_uri: https://dev.azure.com/saigkill/_git/hoe-manns?path=%2FCHANGELOG.md&version=GBmaster
194
+ source_code_uri: https://dev.azure.com/saigkill/hoe-manns
195
+ documentation_uri: http://dev.azure.com/saigkill/hoe-manns/_wiki
196
+ bug_tracker_uri: https://dev.azure.com/saigkill/hoe-manns/_workitems
197
+ mailing_list_uri: https://groups.google.com/forum/#!forum/saigkills-hoe-plugins
198
+ post_install_message: 'Please file bugreports on: https://dev.azure.com/saigkill/hoe-manns/_workitems'
199
+ rdoc_options: []
192
200
  require_paths:
193
201
  - lib
194
202
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -203,9 +211,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
203
211
  version: '0'
204
212
  requirements: []
205
213
  rubyforge_project:
206
- rubygems_version: 2.7.6
214
+ rubygems_version: 2.6.14.1
207
215
  signing_key:
208
216
  specification_version: 4
209
- summary: hoe-manns is a small collection of my personal used rake tasks for using
210
- with hoe
217
+ summary: Collection of some personal used tasks
211
218
  test_files: []