gemsmith 14.7.0 → 14.8.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.tar.gz.sig +0 -0
- data/LICENSE.adoc +1 -1
- data/README.adoc +30 -30
- data/lib/gemsmith/gem/inspector.rb +2 -2
- data/lib/gemsmith/git.rb +2 -0
- data/lib/gemsmith/identity.rb +1 -1
- data/lib/gemsmith/templates/%gem_name%/%gem_name%.gemspec.tt +5 -5
- data/lib/gemsmith/templates/%gem_name%/.rubocop.yml.tt +5 -5
- data/lib/gemsmith/templates/%gem_name%/README.md.tt +6 -5
- data/lib/gemsmith/templates/%gem_name%/Rakefile.tt +3 -3
- metadata +38 -24
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 397efe531a69a9150f480648852be52e1c69d843e33f421881ac81ca487ca251
|
4
|
+
data.tar.gz: cf890006f3f55b26e0e238fcbe2115fb12e3a129c28d80dc85f9ad64009e47de
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c5780aa9915f219aa495d092b418eeff1c821e5a437efc9e9f2f8390f936b8cd9e70f8ef504cd3bc6c0657a328749e2a4621416c690429953933440e5146021
|
7
|
+
data.tar.gz: bb89f21fb86f7e6304626b98175e63c70e958cce5e47de2b6c83f757636ed340718c62ce16781c0e9118bd862ba50c41f2cc2234f82e93e406902dc24f1cfdb8
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/LICENSE.adoc
CHANGED
@@ -150,7 +150,7 @@ additional liability.
|
|
150
150
|
|
151
151
|
END OF TERMS AND CONDITIONS
|
152
152
|
|
153
|
-
Copyright link:https://www.alchemists.io[
|
153
|
+
Copyright 2011 link:https://www.alchemists.io/team/brooke_kuhlmann[Brooke Kuhlmann].
|
154
154
|
|
155
155
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in
|
156
156
|
compliance with the License. You may obtain a link:https://www.apache.org/licenses/LICENSE-2.0[copy]
|
data/README.adoc
CHANGED
@@ -6,10 +6,12 @@
|
|
6
6
|
|
7
7
|
[link=http://badge.fury.io/rb/gemsmith]
|
8
8
|
image::https://badge.fury.io/rb/gemsmith.svg[Gem Version]
|
9
|
+
[link=https://www.alchemists.io/projects/code_quality]
|
10
|
+
image::https://img.shields.io/badge/code_style-alchemists-brightgreen.svg[Alchemists Style Guide]
|
9
11
|
[link=https://circleci.com/gh/bkuhlmann/gemsmith]
|
10
12
|
image::https://circleci.com/gh/bkuhlmann/gemsmith.svg?style=svg[Circle CI Status]
|
11
13
|
|
12
|
-
A command line interface for smithing
|
14
|
+
A command line interface for smithing Ruby gems.
|
13
15
|
|
14
16
|
toc::[]
|
15
17
|
|
@@ -62,8 +64,6 @@ image::https://www.alchemists.io/images/screencasts/gemsmith/cover.svg[Screencas
|
|
62
64
|
|
63
65
|
== Setup
|
64
66
|
|
65
|
-
=== Production
|
66
|
-
|
67
67
|
To install, run:
|
68
68
|
|
69
69
|
[source,bash]
|
@@ -71,24 +71,6 @@ To install, run:
|
|
71
71
|
gem install gemsmith
|
72
72
|
----
|
73
73
|
|
74
|
-
=== Development
|
75
|
-
|
76
|
-
To contribute, run:
|
77
|
-
|
78
|
-
[source,bash]
|
79
|
-
----
|
80
|
-
git clone https://github.com/bkuhlmann/gemsmith.git
|
81
|
-
cd gemsmith
|
82
|
-
bin/setup
|
83
|
-
----
|
84
|
-
|
85
|
-
You can also use the IRB console for direct access to all objects:
|
86
|
-
|
87
|
-
[source,bash]
|
88
|
-
----
|
89
|
-
bin/console
|
90
|
-
----
|
91
|
-
|
92
74
|
== Usage
|
93
75
|
|
94
76
|
=== Command Line Interface (CLI)
|
@@ -250,15 +232,6 @@ _NOTE: Ensure `require "bundler/gem_tasks"` is removed as Gemsmith replaces Bund
|
|
250
232
|
|
251
233
|
With those changes, you can leverage the benefits of Gemsmith within your existing gem.
|
252
234
|
|
253
|
-
== Tests
|
254
|
-
|
255
|
-
To test, run:
|
256
|
-
|
257
|
-
[source,bash]
|
258
|
-
----
|
259
|
-
bundle exec rake
|
260
|
-
----
|
261
|
-
|
262
235
|
== Security
|
263
236
|
|
264
237
|
=== Git Signing Key
|
@@ -388,6 +361,33 @@ uncommitted Git changes, the rake task will throw an error to this effect. When
|
|
388
361
|
recommended that you commit your changes or link:https://git-scm.com/docs/git-stash[stash] them
|
389
362
|
before proceeding.
|
390
363
|
|
364
|
+
== Development
|
365
|
+
|
366
|
+
To contribute, run:
|
367
|
+
|
368
|
+
[source,bash]
|
369
|
+
----
|
370
|
+
git clone https://github.com/bkuhlmann/gemsmith.git
|
371
|
+
cd gemsmith
|
372
|
+
bin/setup
|
373
|
+
----
|
374
|
+
|
375
|
+
You can also use the IRB console for direct access to all objects:
|
376
|
+
|
377
|
+
[source,bash]
|
378
|
+
----
|
379
|
+
bin/console
|
380
|
+
----
|
381
|
+
|
382
|
+
== Tests
|
383
|
+
|
384
|
+
To test, run:
|
385
|
+
|
386
|
+
[source,bash]
|
387
|
+
----
|
388
|
+
bundle exec rake
|
389
|
+
----
|
390
|
+
|
391
391
|
== Versioning
|
392
392
|
|
393
393
|
Read link:https://semver.org[Semantic Versioning] for details. Briefly, it means:
|
@@ -15,11 +15,11 @@ module Gemsmith
|
|
15
15
|
end
|
16
16
|
|
17
17
|
def edit specification
|
18
|
-
shell.
|
18
|
+
shell.capture3 self.class.editor, specification.path
|
19
19
|
end
|
20
20
|
|
21
21
|
def visit specification
|
22
|
-
shell.
|
22
|
+
shell.capture3 "open", specification.homepage_url
|
23
23
|
end
|
24
24
|
|
25
25
|
private
|
data/lib/gemsmith/git.rb
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
|
3
3
|
module Gemsmith
|
4
4
|
# A thin wrapper to Git.
|
5
|
+
# rubocop:disable Style/StaticClass
|
5
6
|
class Git
|
6
7
|
def self.config_value key
|
7
8
|
`git config #{key}`.chomp
|
@@ -17,4 +18,5 @@ module Gemsmith
|
|
17
18
|
"https://github.com/#{github_user}/#{project}"
|
18
19
|
end
|
19
20
|
end
|
21
|
+
# rubocop:enable Style/StaticClass
|
20
22
|
end
|
data/lib/gemsmith/identity.rb
CHANGED
@@ -26,11 +26,11 @@ Gem::Specification.new do |spec|
|
|
26
26
|
spec.add_dependency "rails", "~> <%= config.dig(:versions, :rails) %>"
|
27
27
|
<%- end -%>
|
28
28
|
<%- if config.dig(:generate, :cli) -%>
|
29
|
-
spec.add_dependency "runcom", "~> 6.
|
29
|
+
spec.add_dependency "runcom", "~> 6.4"
|
30
30
|
spec.add_dependency "thor", "~> 0.20"
|
31
31
|
<%- end -%>
|
32
32
|
<%- if config.dig(:generate, :bundler_audit) -%>
|
33
|
-
spec.add_development_dependency "bundler-audit", "~> 0.
|
33
|
+
spec.add_development_dependency "bundler-audit", "~> 0.7"
|
34
34
|
<%- end -%>
|
35
35
|
spec.add_development_dependency "gemsmith", "~> <%= Gemsmith::Identity::VERSION[/\d+\.\d+/] %>"
|
36
36
|
<%- if config.dig(:generate, :git_lint) -%>
|
@@ -51,12 +51,12 @@ Gem::Specification.new do |spec|
|
|
51
51
|
spec.add_development_dependency "<%= config.dig(:generate, :engine) ? "rspec-rails" : "rspec" %>", "~> 3.9"
|
52
52
|
<%- end -%>
|
53
53
|
<%- if config.dig(:generate, :rubocop) -%>
|
54
|
-
spec.add_development_dependency "rubocop", "~>
|
55
|
-
spec.add_development_dependency "rubocop-performance", "~> 1.
|
54
|
+
spec.add_development_dependency "rubocop", "~> 1.3"
|
55
|
+
spec.add_development_dependency "rubocop-performance", "~> 1.8"
|
56
56
|
spec.add_development_dependency "rubocop-rake", "~> 0.5"
|
57
57
|
<%- end -%>
|
58
58
|
<%- if config.dig(:generate, :rubocop) && config.dig(:generate, :rspec) -%>
|
59
|
-
spec.add_development_dependency "rubocop-rspec", "~>
|
59
|
+
spec.add_development_dependency "rubocop-rspec", "~> 2.0"
|
60
60
|
<%- end -%>
|
61
61
|
<%- if config.dig(:generate, :simple_cov) -%>
|
62
62
|
spec.add_development_dependency "simplecov", "~> 0.19"
|
@@ -1,12 +1,12 @@
|
|
1
1
|
inherit_from:
|
2
|
-
- https://raw.githubusercontent.com/bkuhlmann/code_quality/
|
3
|
-
- https://raw.githubusercontent.com/bkuhlmann/code_quality/
|
4
|
-
- https://raw.githubusercontent.com/bkuhlmann/code_quality/
|
2
|
+
- https://raw.githubusercontent.com/bkuhlmann/code_quality/master/configurations/rubocop/ruby.yml
|
3
|
+
- https://raw.githubusercontent.com/bkuhlmann/code_quality/master/configurations/rubocop/rake.yml
|
4
|
+
- https://raw.githubusercontent.com/bkuhlmann/code_quality/master/configurations/rubocop/performance.yml
|
5
5
|
<%- if config.dig(:generate, :rspec) -%>
|
6
|
-
- https://raw.githubusercontent.com/bkuhlmann/code_quality/
|
6
|
+
- https://raw.githubusercontent.com/bkuhlmann/code_quality/master/configurations/rubocop/rspec.yml
|
7
7
|
<%- end -%>
|
8
8
|
<%- if config.dig(:generate, :engine) -%>
|
9
|
-
- https://raw.githubusercontent.com/bkuhlmann/code_quality/
|
9
|
+
- https://raw.githubusercontent.com/bkuhlmann/code_quality/master/configurations/rubocop/rails.yml
|
10
10
|
<%- end -%>
|
11
11
|
|
12
12
|
<%- if config.dig(:generate, :cli) -%>
|
@@ -5,6 +5,9 @@
|
|
5
5
|
# <%= config.dig(:gem, :label) %>
|
6
6
|
|
7
7
|
[![Gem Version](https://badge.fury.io/rb/<%= config.dig(:gem, :name) %>.svg)](http://badge.fury.io/rb/<%= config.dig(:gem, :name) %>)
|
8
|
+
<%- if config.dig(:generate, :rubocop) -%>
|
9
|
+
[![Alchemists Style Guide](https://img.shields.io/badge/code_style-alchemists-brightgreen.svg)](https://www.alchemists.io/projects/code_quality)
|
10
|
+
<%- end -%>
|
8
11
|
<%- if config.dig(:generate, :circle_ci) -%>
|
9
12
|
[![Circle CI Status](https://circleci.com/gh/<%= config.fetch :github_user %>/<%= config.dig :gem, :name %>.svg?style=svg)](https://circleci.com/gh/<%= config.fetch :github_user %>/<%= config.dig :gem, :name %>)
|
10
13
|
<%- end -%>
|
@@ -25,8 +28,6 @@
|
|
25
28
|
|
26
29
|
## Setup
|
27
30
|
|
28
|
-
### Production
|
29
|
-
|
30
31
|
To install, run:
|
31
32
|
|
32
33
|
gem install <%= config.dig(:gem, :name) %>
|
@@ -37,7 +38,9 @@ Add the following to your Gemfile:
|
|
37
38
|
gem "<%= config.dig(:gem, :name) %>"
|
38
39
|
<%- end -%>
|
39
40
|
|
40
|
-
|
41
|
+
## Usage
|
42
|
+
|
43
|
+
## Development
|
41
44
|
|
42
45
|
To contribute, run:
|
43
46
|
|
@@ -49,8 +52,6 @@ You can also use the IRB console for direct access to all objects:
|
|
49
52
|
|
50
53
|
bin/console
|
51
54
|
|
52
|
-
## Usage
|
53
|
-
|
54
55
|
<%- if config.dig(:generate, :rspec) -%>
|
55
56
|
## Tests
|
56
57
|
|
@@ -1,11 +1,11 @@
|
|
1
|
-
require "gemsmith/rake/setup"
|
2
1
|
require "bundler/audit/task"
|
2
|
+
require "gemsmith/rake/setup"
|
3
3
|
require "git/lint/rake/setup"
|
4
|
-
require "rspec/core/rake_task"
|
5
4
|
require "reek/rake/task"
|
5
|
+
require "rspec/core/rake_task"
|
6
6
|
require "rubocop/rake_task"
|
7
7
|
|
8
8
|
Bundler::Audit::Task.new
|
9
|
-
RSpec::Core::RakeTask.new :spec
|
10
9
|
Reek::Rake::Task.new
|
10
|
+
RSpec::Core::RakeTask.new :spec
|
11
11
|
RuboCop::RakeTask.new
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gemsmith
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 14.
|
4
|
+
version: 14.8.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brooke Kuhlmann
|
@@ -28,7 +28,7 @@ cert_chain:
|
|
28
28
|
2XV8FRa7/JimI07sPLC13eLY3xd/aYTi85Z782KIA4j0G8XEEWAX0ouBhlXPocZv
|
29
29
|
QWc=
|
30
30
|
-----END CERTIFICATE-----
|
31
|
-
date: 2020-
|
31
|
+
date: 2020-11-14 00:00:00.000000000 Z
|
32
32
|
dependencies:
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: milestoner
|
@@ -36,70 +36,70 @@ dependencies:
|
|
36
36
|
requirements:
|
37
37
|
- - "~>"
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version: '10.
|
39
|
+
version: '10.4'
|
40
40
|
type: :runtime
|
41
41
|
prerelease: false
|
42
42
|
version_requirements: !ruby/object:Gem::Requirement
|
43
43
|
requirements:
|
44
44
|
- - "~>"
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version: '10.
|
46
|
+
version: '10.4'
|
47
47
|
- !ruby/object:Gem::Dependency
|
48
48
|
name: pragmater
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
50
50
|
requirements:
|
51
51
|
- - "~>"
|
52
52
|
- !ruby/object:Gem::Version
|
53
|
-
version: '8.
|
53
|
+
version: '8.1'
|
54
54
|
type: :runtime
|
55
55
|
prerelease: false
|
56
56
|
version_requirements: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
58
|
- - "~>"
|
59
59
|
- !ruby/object:Gem::Version
|
60
|
-
version: '8.
|
60
|
+
version: '8.1'
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
name: refinements
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
64
64
|
requirements:
|
65
65
|
- - "~>"
|
66
66
|
- !ruby/object:Gem::Version
|
67
|
-
version: '7.
|
67
|
+
version: '7.14'
|
68
68
|
type: :runtime
|
69
69
|
prerelease: false
|
70
70
|
version_requirements: !ruby/object:Gem::Requirement
|
71
71
|
requirements:
|
72
72
|
- - "~>"
|
73
73
|
- !ruby/object:Gem::Version
|
74
|
-
version: '7.
|
74
|
+
version: '7.14'
|
75
75
|
- !ruby/object:Gem::Dependency
|
76
76
|
name: rubocop
|
77
77
|
requirement: !ruby/object:Gem::Requirement
|
78
78
|
requirements:
|
79
79
|
- - "~>"
|
80
80
|
- !ruby/object:Gem::Version
|
81
|
-
version: '
|
81
|
+
version: '1.3'
|
82
82
|
type: :runtime
|
83
83
|
prerelease: false
|
84
84
|
version_requirements: !ruby/object:Gem::Requirement
|
85
85
|
requirements:
|
86
86
|
- - "~>"
|
87
87
|
- !ruby/object:Gem::Version
|
88
|
-
version: '
|
88
|
+
version: '1.3'
|
89
89
|
- !ruby/object:Gem::Dependency
|
90
90
|
name: runcom
|
91
91
|
requirement: !ruby/object:Gem::Requirement
|
92
92
|
requirements:
|
93
93
|
- - "~>"
|
94
94
|
- !ruby/object:Gem::Version
|
95
|
-
version: '6.
|
95
|
+
version: '6.4'
|
96
96
|
type: :runtime
|
97
97
|
prerelease: false
|
98
98
|
version_requirements: !ruby/object:Gem::Requirement
|
99
99
|
requirements:
|
100
100
|
- - "~>"
|
101
101
|
- !ruby/object:Gem::Version
|
102
|
-
version: '6.
|
102
|
+
version: '6.4'
|
103
103
|
- !ruby/object:Gem::Dependency
|
104
104
|
name: thor
|
105
105
|
requirement: !ruby/object:Gem::Requirement
|
@@ -120,42 +120,56 @@ dependencies:
|
|
120
120
|
requirements:
|
121
121
|
- - "~>"
|
122
122
|
- !ruby/object:Gem::Version
|
123
|
-
version: '10.
|
123
|
+
version: '10.4'
|
124
124
|
type: :runtime
|
125
125
|
prerelease: false
|
126
126
|
version_requirements: !ruby/object:Gem::Requirement
|
127
127
|
requirements:
|
128
128
|
- - "~>"
|
129
129
|
- !ruby/object:Gem::Version
|
130
|
-
version: '10.
|
130
|
+
version: '10.4'
|
131
131
|
- !ruby/object:Gem::Dependency
|
132
132
|
name: versionaire
|
133
133
|
requirement: !ruby/object:Gem::Requirement
|
134
134
|
requirements:
|
135
135
|
- - "~>"
|
136
136
|
- !ruby/object:Gem::Version
|
137
|
-
version: '8.
|
137
|
+
version: '8.4'
|
138
138
|
type: :runtime
|
139
139
|
prerelease: false
|
140
140
|
version_requirements: !ruby/object:Gem::Requirement
|
141
141
|
requirements:
|
142
142
|
- - "~>"
|
143
143
|
- !ruby/object:Gem::Version
|
144
|
-
version: '8.
|
144
|
+
version: '8.4'
|
145
145
|
- !ruby/object:Gem::Dependency
|
146
146
|
name: bundler-audit
|
147
147
|
requirement: !ruby/object:Gem::Requirement
|
148
148
|
requirements:
|
149
149
|
- - "~>"
|
150
150
|
- !ruby/object:Gem::Version
|
151
|
-
version: '0.
|
151
|
+
version: '0.7'
|
152
152
|
type: :development
|
153
153
|
prerelease: false
|
154
154
|
version_requirements: !ruby/object:Gem::Requirement
|
155
155
|
requirements:
|
156
156
|
- - "~>"
|
157
157
|
- !ruby/object:Gem::Version
|
158
|
-
version: '0.
|
158
|
+
version: '0.7'
|
159
|
+
- !ruby/object:Gem::Dependency
|
160
|
+
name: bundler-leak
|
161
|
+
requirement: !ruby/object:Gem::Requirement
|
162
|
+
requirements:
|
163
|
+
- - "~>"
|
164
|
+
- !ruby/object:Gem::Version
|
165
|
+
version: '0.2'
|
166
|
+
type: :development
|
167
|
+
prerelease: false
|
168
|
+
version_requirements: !ruby/object:Gem::Requirement
|
169
|
+
requirements:
|
170
|
+
- - "~>"
|
171
|
+
- !ruby/object:Gem::Version
|
172
|
+
version: '0.2'
|
159
173
|
- !ruby/object:Gem::Dependency
|
160
174
|
name: climate_control
|
161
175
|
requirement: !ruby/object:Gem::Requirement
|
@@ -260,28 +274,28 @@ dependencies:
|
|
260
274
|
requirements:
|
261
275
|
- - "~>"
|
262
276
|
- !ruby/object:Gem::Version
|
263
|
-
version: '3.
|
277
|
+
version: '3.10'
|
264
278
|
type: :development
|
265
279
|
prerelease: false
|
266
280
|
version_requirements: !ruby/object:Gem::Requirement
|
267
281
|
requirements:
|
268
282
|
- - "~>"
|
269
283
|
- !ruby/object:Gem::Version
|
270
|
-
version: '3.
|
284
|
+
version: '3.10'
|
271
285
|
- !ruby/object:Gem::Dependency
|
272
286
|
name: rubocop-performance
|
273
287
|
requirement: !ruby/object:Gem::Requirement
|
274
288
|
requirements:
|
275
289
|
- - "~>"
|
276
290
|
- !ruby/object:Gem::Version
|
277
|
-
version: '1.
|
291
|
+
version: '1.8'
|
278
292
|
type: :development
|
279
293
|
prerelease: false
|
280
294
|
version_requirements: !ruby/object:Gem::Requirement
|
281
295
|
requirements:
|
282
296
|
- - "~>"
|
283
297
|
- !ruby/object:Gem::Version
|
284
|
-
version: '1.
|
298
|
+
version: '1.8'
|
285
299
|
- !ruby/object:Gem::Dependency
|
286
300
|
name: rubocop-rake
|
287
301
|
requirement: !ruby/object:Gem::Requirement
|
@@ -302,14 +316,14 @@ dependencies:
|
|
302
316
|
requirements:
|
303
317
|
- - "~>"
|
304
318
|
- !ruby/object:Gem::Version
|
305
|
-
version: '
|
319
|
+
version: '2.0'
|
306
320
|
type: :development
|
307
321
|
prerelease: false
|
308
322
|
version_requirements: !ruby/object:Gem::Requirement
|
309
323
|
requirements:
|
310
324
|
- - "~>"
|
311
325
|
- !ruby/object:Gem::Version
|
312
|
-
version: '
|
326
|
+
version: '2.0'
|
313
327
|
- !ruby/object:Gem::Dependency
|
314
328
|
name: simplecov
|
315
329
|
requirement: !ruby/object:Gem::Requirement
|
metadata.gz.sig
CHANGED
Binary file
|