gemsmith 14.1.3 → 14.2.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 +1 -2
- data.tar.gz.sig +0 -0
- data/README.adoc +6 -4
- data/lib/gemsmith.rb +1 -0
- data/lib/gemsmith/cli.rb +8 -3
- data/lib/gemsmith/generators/git_cop.rb +1 -1
- data/lib/gemsmith/generators/git_lint.rb +14 -0
- data/lib/gemsmith/generators/rake.rb +3 -3
- data/lib/gemsmith/identity.rb +1 -1
- data/lib/gemsmith/templates/%gem_name%/%gem_name%.gemspec.tt +2 -2
- data/lib/gemsmith/templates/%gem_name%/.github/ISSUE_TEMPLATE.md.tt +8 -5
- data/lib/gemsmith/templates/%gem_name%/.github/PULL_REQUEST_TEMPLATE.md.tt +6 -6
- data/lib/gemsmith/templates/%gem_name%/CHANGES.md.tt +1 -1
- data/lib/gemsmith/templates/%gem_name%/Rakefile.tt +1 -1
- metadata +6 -5
- 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: fec266e5af75d5e73a8406e702430fcbe4e9d007b4206a7f66822801edb6a0ef
|
4
|
+
data.tar.gz: 7f96466a64fe9ea9c0dd29e9ac54e277ff2abd4a08f8c44e186934304285b277
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5c79e2e4f66f4f6f9c52d6e6ab142a56dbd70871324e5bb1fda2ac96ea36904863021e2ea0800aa90ec4a37ff44e507777c0394837741f671502750325dd2c9a
|
7
|
+
data.tar.gz: 759ec8bd5cd230f47b564ae0b2cafe7e81d345c1d26353614ac4d38ddf3df4995a3cf8b19e28577a7a334b63eb475b3b0cf7ebdca8e831ebf544ac865853d2e4
|
checksums.yaml.gz.sig
CHANGED
@@ -1,2 +1 @@
|
|
1
|
-
|
2
|
-
{\������4�Y1ij<�Q�SD��m�H~4M�y�9��$�Ki��w��8Iӊ�G;x��/F��Q9���:>�������Xz���ΜCV�%lf\Ku���Su�CbMb�ހ�
|
1
|
+
�H9#G���Q��e�]��PV�b�g8O��nɚiY���7���5�nn��}�!s���0�)�Q�<'mq�6�N�V/���N�"��c���`{?�o�K����{j��@�}�#܈�z���4�ђI�!@P/c\@����j����̇�mv�Bp
|
data.tar.gz.sig
CHANGED
Binary file
|
data/README.adoc
CHANGED
@@ -24,7 +24,7 @@ toc::[]
|
|
24
24
|
* Uses link:https://www.alchemists.io/projects/tocer[Tocer] for README table of contents generation.
|
25
25
|
* Supports link:https://github.com/rubysec/bundler-audit[Bundler Audit].
|
26
26
|
* Supports link:https://circleci.com[Circle CI].
|
27
|
-
* Supports link:https://www.alchemists.io/projects/git-
|
27
|
+
* Supports link:https://www.alchemists.io/projects/git-lint[Git Lint].
|
28
28
|
* Supports link:https://github.com[GitHub].
|
29
29
|
* Supports link:https://github.com/guard/guard[Guard].
|
30
30
|
* Supports link:http://pryrepl.org[Pry].
|
@@ -111,10 +111,10 @@ For more gem generation options, type: `gemsmith --help --generate`
|
|
111
111
|
[--circle-ci], [--no-circle-ci] # Add Circle CI support.
|
112
112
|
[--cli], [--no-cli] # Add CLI support.
|
113
113
|
[--engine], [--no-engine] # Add Rails Engine support.
|
114
|
-
[--git-cop], [--no-git-cop] # Add Git Cop support.
|
114
|
+
[--git-cop], [--no-git-cop] # Add Git Cop support. DEPRECATED: Use Git Lint instead.
|
115
|
+
[--git-lint], [--no-git-lint] # Add Git Lint support.
|
115
116
|
# Default: true
|
116
117
|
[--git-hub], [--no-git-hub] # Add GitHub support.
|
117
|
-
# Default: true
|
118
118
|
[--guard], [--no-guard] # Add Guard support.
|
119
119
|
# Default: true
|
120
120
|
[--pry], [--no-pry] # Add Pry support.
|
@@ -125,6 +125,8 @@ For more gem generation options, type: `gemsmith --help --generate`
|
|
125
125
|
# Default: true
|
126
126
|
[--rubocop], [--no-rubocop] # Add Rubocop support.
|
127
127
|
# Default: true
|
128
|
+
[--simple-cov], [--no-simple-cov] # Add SimpleCov support.
|
129
|
+
# Default: true
|
128
130
|
[--security], [--no-security] # Add security support.
|
129
131
|
....
|
130
132
|
|
@@ -202,7 +204,7 @@ The default configuration is as follows:
|
|
202
204
|
:circle_ci: false
|
203
205
|
:cli: false
|
204
206
|
:engine: false
|
205
|
-
:
|
207
|
+
:git_lint: true
|
206
208
|
:git_hub: true
|
207
209
|
:guard: true
|
208
210
|
:pry: true
|
data/lib/gemsmith.rb
CHANGED
@@ -20,6 +20,7 @@ require "gemsmith/generators/documentation"
|
|
20
20
|
require "gemsmith/generators/gem"
|
21
21
|
require "gemsmith/generators/git"
|
22
22
|
require "gemsmith/generators/git_cop"
|
23
|
+
require "gemsmith/generators/git_lint"
|
23
24
|
require "gemsmith/generators/git_hub"
|
24
25
|
require "gemsmith/generators/guard"
|
25
26
|
require "gemsmith/generators/pragma"
|
data/lib/gemsmith/cli.rb
CHANGED
@@ -58,7 +58,7 @@ module Gemsmith
|
|
58
58
|
bundler_audit: true,
|
59
59
|
circle_ci: false,
|
60
60
|
cli: false,
|
61
|
-
|
61
|
+
git_lint: true,
|
62
62
|
git_hub: false,
|
63
63
|
guard: true,
|
64
64
|
pry: true,
|
@@ -88,6 +88,7 @@ module Gemsmith
|
|
88
88
|
Generators::Rspec,
|
89
89
|
Generators::BundlerAudit,
|
90
90
|
Generators::GitCop,
|
91
|
+
Generators::GitLint,
|
91
92
|
Generators::Reek,
|
92
93
|
Generators::Guard,
|
93
94
|
Generators::CircleCI,
|
@@ -127,9 +128,13 @@ module Gemsmith
|
|
127
128
|
type: :boolean,
|
128
129
|
default: configuration.to_h.dig(:generate, :engine)
|
129
130
|
method_option :git_cop,
|
130
|
-
desc: "Add Git Cop support.",
|
131
|
+
desc: "Add Git Cop support. DEPRECATED: Use Git Lint instead.",
|
131
132
|
type: :boolean,
|
132
|
-
default:
|
133
|
+
default: false
|
134
|
+
method_option :git_lint,
|
135
|
+
desc: "Add Git Lint support.",
|
136
|
+
type: :boolean,
|
137
|
+
default: configuration.to_h.dig(:generate, :git_lint)
|
133
138
|
method_option :git_hub,
|
134
139
|
desc: "Add GitHub support.",
|
135
140
|
type: :boolean,
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
module Gemsmith
|
4
|
+
module Generators
|
5
|
+
# Generates Git Lint support.
|
6
|
+
class GitLint < Base
|
7
|
+
def run
|
8
|
+
return unless configuration.dig :generate, :git_lint
|
9
|
+
|
10
|
+
cli.uncomment_lines "#{gem_name}/Rakefile", %r(require.+git/lint.+)
|
11
|
+
end
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
@@ -36,8 +36,8 @@ module Gemsmith
|
|
36
36
|
configuration.dig(:generate, :bundler_audit) ? "bundle:audit" : ""
|
37
37
|
end
|
38
38
|
|
39
|
-
def
|
40
|
-
configuration.dig(:generate, :
|
39
|
+
def git_lint_task
|
40
|
+
configuration.dig(:generate, :git_lint) ? "git_lint" : ""
|
41
41
|
end
|
42
42
|
|
43
43
|
def reek_task
|
@@ -51,7 +51,7 @@ module Gemsmith
|
|
51
51
|
def code_quality_tasks
|
52
52
|
[
|
53
53
|
bundler_audit_task,
|
54
|
-
|
54
|
+
git_lint_task,
|
55
55
|
reek_task,
|
56
56
|
rubocop_task
|
57
57
|
].compress.join " "
|
data/lib/gemsmith/identity.rb
CHANGED
@@ -33,8 +33,8 @@ Gem::Specification.new do |spec|
|
|
33
33
|
spec.add_development_dependency "bundler-audit", "~> 0.6"
|
34
34
|
<%- end -%>
|
35
35
|
spec.add_development_dependency "gemsmith", "~> <%= Gemsmith::Identity::VERSION[/\d+\.\d+/] %>"
|
36
|
-
<%- if config.dig(:generate, :
|
37
|
-
spec.add_development_dependency "git-
|
36
|
+
<%- if config.dig(:generate, :git_lint) -%>
|
37
|
+
spec.add_development_dependency "git-lint", "~> 1.0"
|
38
38
|
<%- end -%>
|
39
39
|
<%- if config.dig(:generate, :guard) -%>
|
40
40
|
spec.add_development_dependency "guard-rspec", "~> 4.7"
|
@@ -1,11 +1,14 @@
|
|
1
1
|
## Overview
|
2
|
-
<!-- Required. Describe,
|
2
|
+
<!-- Required. Describe, briefly, the behavior experienced. -->
|
3
|
+
|
4
|
+
## Screenshots/Screencasts
|
5
|
+
<!-- Optional. Attach screenshot(s) and/or screencast(s) that demo the behavior. -->
|
3
6
|
|
4
7
|
## Steps to Recreate
|
5
|
-
<!--
|
8
|
+
<!-- Required. List exact steps (numbered list) to reproduce errant behavior. -->
|
6
9
|
|
7
|
-
##
|
8
|
-
<!--
|
10
|
+
## Desired Behavior
|
11
|
+
<!-- Required. Describe the behavior you'd like to see or your idea of a proposed solution. -->
|
9
12
|
|
10
13
|
## Environment
|
11
|
-
<!--
|
14
|
+
<!-- Required. What is your operating system, software version(s), etc. -->
|
@@ -1,11 +1,11 @@
|
|
1
1
|
## Overview
|
2
|
-
<!-- Required. Why is this important/necessary
|
2
|
+
<!-- Required. Why is this important/necessary and what is the overarching architecture. -->
|
3
|
+
|
4
|
+
## Screenshots/Screencasts
|
5
|
+
<!-- Optional. Provide supporting image/video. -->
|
3
6
|
|
4
7
|
## Details
|
5
|
-
<!-- Optional. List the key features/highlights as bullet points.
|
8
|
+
<!-- Optional. List the key features/highlights as bullet points. -->
|
6
9
|
|
7
10
|
## Notes
|
8
|
-
<!-- Optional. List additional notes/references as bullet points.
|
9
|
-
|
10
|
-
## Screenshots/Screencasts
|
11
|
-
<!-- Optional. Provide supporting image/video. Delete if unused. -->
|
11
|
+
<!-- Optional. List additional notes/references as bullet points. -->
|
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.2.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-06-
|
31
|
+
date: 2020-06-13 00:00:00.000000000 Z
|
32
32
|
dependencies:
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: milestoner
|
@@ -171,19 +171,19 @@ dependencies:
|
|
171
171
|
- !ruby/object:Gem::Version
|
172
172
|
version: '0.2'
|
173
173
|
- !ruby/object:Gem::Dependency
|
174
|
-
name: git-
|
174
|
+
name: git-lint
|
175
175
|
requirement: !ruby/object:Gem::Requirement
|
176
176
|
requirements:
|
177
177
|
- - "~>"
|
178
178
|
- !ruby/object:Gem::Version
|
179
|
-
version: '
|
179
|
+
version: '1.0'
|
180
180
|
type: :development
|
181
181
|
prerelease: false
|
182
182
|
version_requirements: !ruby/object:Gem::Requirement
|
183
183
|
requirements:
|
184
184
|
- - "~>"
|
185
185
|
- !ruby/object:Gem::Version
|
186
|
-
version: '
|
186
|
+
version: '1.0'
|
187
187
|
- !ruby/object:Gem::Dependency
|
188
188
|
name: guard-rspec
|
189
189
|
requirement: !ruby/object:Gem::Requirement
|
@@ -361,6 +361,7 @@ files:
|
|
361
361
|
- lib/gemsmith/generators/git.rb
|
362
362
|
- lib/gemsmith/generators/git_cop.rb
|
363
363
|
- lib/gemsmith/generators/git_hub.rb
|
364
|
+
- lib/gemsmith/generators/git_lint.rb
|
364
365
|
- lib/gemsmith/generators/guard.rb
|
365
366
|
- lib/gemsmith/generators/pragma.rb
|
366
367
|
- lib/gemsmith/generators/rake.rb
|
metadata.gz.sig
CHANGED
Binary file
|