hoe-manns 2.1.2 → 2.1.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,35 @@
1
+ # Copyright (C) 2015-2020 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.8'.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
@@ -1,41 +1,37 @@
1
- require 'rspec'
2
- require File.join(File.dirname(__FILE__), '..', 'lib/hoe/manns')
3
- require File.join(File.dirname(__FILE__), '..', 'lib/hoe/manns-methods')
4
- require File.join(File.dirname(__FILE__), '..', 'spec/spec_helper')
5
- require 'fileutils'
6
-
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
15
- end
16
-
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
25
- end
26
-
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
34
- end
35
-
36
- describe 'clean_pkg' do
37
- it 'cleans the pkg' do
38
- Hoe::MannsMethods.clean_pkg_method
39
- end
40
- end
41
- end
1
+ require 'rspec'
2
+ require File.join(File.dirname(__FILE__), '..', 'lib/hoe/manns')
3
+ require File.join(File.dirname(__FILE__), '..', 'lib/hoe/manns-methods')
4
+ require File.join(File.dirname(__FILE__), '..', 'lib/hoe/version')
5
+ require File.join(File.dirname(__FILE__), '..', 'spec/spec_helper')
6
+ require 'fileutils'
7
+
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)
21
+ end
22
+
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)
28
+ # end
29
+
30
+ it 'cleans the pkg' do
31
+ Hoe::MannsMethods.clean_pkg_method
32
+ end
33
+
34
+ it "has a version number" do
35
+ expect(Hoe::Manns::VERSION).not_to be nil
36
+ end
37
+ end
@@ -1,4 +1,21 @@
1
- require 'coveralls'
2
- require 'fileutils'
3
- require 'rake'
4
- Coveralls.wear!
1
+ require 'fileutils'
2
+ require 'rake'
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.2
4
+ version: 2.1.8
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-04-26 00:00:00.000000000 Z
11
+ date: 2020-07-10 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.2'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '6.2'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '13.0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '13.0'
13
41
  - !ruby/object:Gem::Dependency
14
42
  name: rainbow
15
43
  requirement: !ruby/object:Gem::Requirement
@@ -24,34 +52,48 @@ dependencies:
24
52
  - - "~>"
25
53
  - !ruby/object:Gem::Version
26
54
  version: '3.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: bundler
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '2.1'
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '2.1'
27
69
  - !ruby/object:Gem::Dependency
28
70
  name: bundler-audit
29
71
  requirement: !ruby/object:Gem::Requirement
30
72
  requirements:
31
73
  - - "~>"
32
74
  - !ruby/object:Gem::Version
33
- version: '0.6'
75
+ version: '0.7'
34
76
  type: :runtime
35
77
  prerelease: false
36
78
  version_requirements: !ruby/object:Gem::Requirement
37
79
  requirements:
38
80
  - - "~>"
39
81
  - !ruby/object:Gem::Version
40
- version: '0.6'
82
+ version: '0.7'
41
83
  - !ruby/object:Gem::Dependency
42
84
  name: hoe-bundler
43
85
  requirement: !ruby/object:Gem::Requirement
44
86
  requirements:
45
87
  - - "~>"
46
88
  - !ruby/object:Gem::Version
47
- version: '1.3'
48
- type: :development
89
+ version: '1.5'
90
+ type: :runtime
49
91
  prerelease: false
50
92
  version_requirements: !ruby/object:Gem::Requirement
51
93
  requirements:
52
94
  - - "~>"
53
95
  - !ruby/object:Gem::Version
54
- version: '1.3'
96
+ version: '1.5'
55
97
  - !ruby/object:Gem::Dependency
56
98
  name: hoe-rubygems
57
99
  requirement: !ruby/object:Gem::Requirement
@@ -59,7 +101,7 @@ dependencies:
59
101
  - - "~>"
60
102
  - !ruby/object:Gem::Version
61
103
  version: '1.0'
62
- type: :development
104
+ type: :runtime
63
105
  prerelease: false
64
106
  version_requirements: !ruby/object:Gem::Requirement
65
107
  requirements:
@@ -73,7 +115,7 @@ dependencies:
73
115
  - - "~>"
74
116
  - !ruby/object:Gem::Version
75
117
  version: '1.2'
76
- type: :development
118
+ type: :runtime
77
119
  prerelease: false
78
120
  version_requirements: !ruby/object:Gem::Requirement
79
121
  requirements:
@@ -81,115 +123,94 @@ dependencies:
81
123
  - !ruby/object:Gem::Version
82
124
  version: '1.2'
83
125
  - !ruby/object:Gem::Dependency
84
- name: rdoc
126
+ name: rspec
85
127
  requirement: !ruby/object:Gem::Requirement
86
128
  requirements:
87
129
  - - "~>"
88
130
  - !ruby/object:Gem::Version
89
- version: '5.1'
131
+ version: '3.9'
90
132
  type: :development
91
133
  prerelease: false
92
134
  version_requirements: !ruby/object:Gem::Requirement
93
135
  requirements:
94
136
  - - "~>"
95
137
  - !ruby/object:Gem::Version
96
- version: '5.1'
138
+ version: '3.9'
97
139
  - !ruby/object:Gem::Dependency
98
- name: rspec
140
+ name: simplecov
99
141
  requirement: !ruby/object:Gem::Requirement
100
142
  requirements:
101
143
  - - "~>"
102
144
  - !ruby/object:Gem::Version
103
- version: '3.7'
145
+ version: '0.18'
104
146
  type: :development
105
147
  prerelease: false
106
148
  version_requirements: !ruby/object:Gem::Requirement
107
149
  requirements:
108
150
  - - "~>"
109
151
  - !ruby/object:Gem::Version
110
- version: '3.7'
152
+ version: '0.18'
111
153
  - !ruby/object:Gem::Dependency
112
- name: hoe
154
+ name: simplecov-cobertura
113
155
  requirement: !ruby/object:Gem::Requirement
114
156
  requirements:
115
157
  - - "~>"
116
158
  - !ruby/object:Gem::Version
117
- version: '3.17'
159
+ version: '1.3'
118
160
  type: :development
119
161
  prerelease: false
120
162
  version_requirements: !ruby/object:Gem::Requirement
121
163
  requirements:
122
164
  - - "~>"
123
165
  - !ruby/object:Gem::Version
124
- version: '3.17'
125
- description: |-
126
- hoe-manns is a small collection of my personal used rake tasks for using with hoe. Actually it includes that tasks:
127
-
128
- * bundler:gemfile_lock
129
- * bundle_audit:*
130
- * clean_pkg
131
- * copy_master
132
- * remove_pre_gemspec
133
- * run_before_release
134
- * run_after_release
135
-
136
- The History.rdoc contains a detailed description of what has changed. For most
137
- users the NEWS file might be a better place to look since it contains
138
- change summaries between the different versions.
139
-
140
- hoe-manns is released under the GPL3 License, see the file 'LICENSE.rdoc'
141
- for more information.
142
-
143
- The official website is:
144
-
145
- http://saigkill.tuxfamily.org/wordpress
146
- email:
147
- - Sascha.Manns@mailbox.org
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
148
170
  executables: []
149
171
  extensions: []
150
172
  extra_rdoc_files:
151
- - History.rdoc
152
- - LICENSE.rdoc
153
- - Manifest.txt
154
- - README.rdoc
173
+ - CHANGELOG.md
174
+ - LICENSE.md
175
+ - MAINTENANCE.md
176
+ - README.md
155
177
  files:
156
- - Gemfile
157
- - Gemfile.lock
158
- - History.rdoc
159
- - LICENSE.rdoc
160
- - Manifest.txt
161
- - NEWS
162
- - README.rdoc
163
- - Rakefile
178
+ - CHANGELOG.md
179
+ - CONTRIBUTING.md
180
+ - LICENSE.md
181
+ - MAINTENANCE.md
182
+ - README.md
164
183
  - lib/hoe/manns-methods.rb
165
184
  - lib/hoe/manns.rb
185
+ - lib/hoe/version.rb
166
186
  - spec/manns_spec.rb
167
187
  - spec/spec_helper.rb
168
188
  homepage: https://github.com/saigkill/hoe-manns
169
189
  licenses:
170
190
  - GPL-3.0
171
- metadata: {}
191
+ metadata:
192
+ homepage_uri: https://github.com/saigkill/hoe-manns
193
+ changelog_uri: https://github.com/saigkill/hoe-manns/blob/master/CHANGELOG.md
194
+ source_code_uri: https://github.com/saigkill/hoe-manns
195
+ documentation_uri: https://github.com/saigkill/hoe-manns/wiki
196
+ bug_tracker_uri: https://github.com/saigkill/hoe-manns/issues
172
197
  post_install_message: 'Please file bugreports on: https://github.com/saigkill/hoe-manns/issues'
173
- rdoc_options:
174
- - "--main"
175
- - README.rdoc
198
+ rdoc_options: []
176
199
  require_paths:
177
200
  - lib
178
201
  required_ruby_version: !ruby/object:Gem::Requirement
179
202
  requirements:
180
203
  - - ">="
181
204
  - !ruby/object:Gem::Version
182
- version: 2.2.0
205
+ version: 2.7.1
183
206
  required_rubygems_version: !ruby/object:Gem::Requirement
184
207
  requirements:
185
208
  - - ">="
186
209
  - !ruby/object:Gem::Version
187
210
  version: '0'
188
211
  requirements: []
189
- rubyforge_project:
190
- rubygems_version: 2.7.6
212
+ rubygems_version: 3.1.2
191
213
  signing_key:
192
214
  specification_version: 4
193
- summary: hoe-manns is a small collection of my personal used rake tasks for using
194
- with hoe
215
+ summary: Collection of some personal used tasks
195
216
  test_files: []
data/Gemfile DELETED
@@ -1,17 +0,0 @@
1
- # -*- ruby -*-
2
-
3
- # DO NOT EDIT THIS FILE. Instead, edit Rakefile, and run `rake bundler:gemfile`.
4
-
5
- source "https://rubygems.org/"
6
-
7
- gem "rainbow", "~>3.0"
8
- gem "bundler-audit", "~>0.6"
9
-
10
- gem "hoe-bundler", "~>1.3", :group => [:development, :test]
11
- gem "hoe-rubygems", "~>1.0", :group => [:development, :test]
12
- gem "hoe-version", "~>1.2", :group => [:development, :test]
13
- gem "rdoc", "~>5.1", :group => [:development, :test]
14
- gem "rspec", "~>3.7", :group => [:development, :test]
15
- gem "hoe", "~>3.17", :group => [:development, :test]
16
-
17
- # vim: syntax=ruby
@@ -1,46 +0,0 @@
1
- GEM
2
- remote: https://rubygems.org/
3
- specs:
4
- bundler-audit (0.6.0)
5
- bundler (~> 1.2)
6
- thor (~> 0.18)
7
- diff-lcs (1.3)
8
- hoe (3.17.0)
9
- rake (>= 0.8, < 13.0)
10
- hoe-bundler (1.4.0)
11
- hoe-rubygems (1.0.0)
12
- hoe-version (1.2.0)
13
- rainbow (3.0.0)
14
- rake (12.3.1)
15
- rdoc (5.1.0)
16
- rspec (3.7.0)
17
- rspec-core (~> 3.7.0)
18
- rspec-expectations (~> 3.7.0)
19
- rspec-mocks (~> 3.7.0)
20
- rspec-core (3.7.1)
21
- rspec-support (~> 3.7.0)
22
- rspec-expectations (3.7.0)
23
- diff-lcs (>= 1.2.0, < 2.0)
24
- rspec-support (~> 3.7.0)
25
- rspec-mocks (3.7.0)
26
- diff-lcs (>= 1.2.0, < 2.0)
27
- rspec-support (~> 3.7.0)
28
- rspec-support (3.7.1)
29
- thor (0.20.0)
30
-
31
- PLATFORMS
32
- ruby
33
- x64-mingw32
34
-
35
- DEPENDENCIES
36
- bundler-audit (~> 0.6)
37
- hoe (~> 3.17)
38
- hoe-bundler (~> 1.3)
39
- hoe-rubygems (~> 1.0)
40
- hoe-version (~> 1.2)
41
- rainbow (~> 3.0)
42
- rdoc (~> 5.1)
43
- rspec (~> 3.7)
44
-
45
- BUNDLED WITH
46
- 1.16.1