gemsmith 11.1.0 → 11.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 +0 -0
- data.tar.gz.sig +1 -0
- data/README.md +1 -5
- data/lib/gemsmith/cli.rb +0 -5
- data/lib/gemsmith/generators/rspec.rb +6 -5
- data/lib/gemsmith/identity.rb +1 -1
- data/lib/gemsmith/templates/%gem_name%/%gem_name%.gemspec.tt +3 -4
- data/lib/gemsmith/templates/%gem_name%/.rubocop.yml.tt +2 -2
- data/lib/gemsmith/templates/%gem_name%/README.md.tt +1 -19
- metadata +25 -4
- metadata.gz.sig +3 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bb78c42cc900eee4942327ad45879410de65014c8c50237244f57359d3dec392
|
4
|
+
data.tar.gz: 3f10400690bf4f524253daa9a370213e784691898550e8c1c6b4e50a583b1091
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bb6f2a7df992c20ba3534f0baa868ae2f7bca4aae9ca8ebe30b0267ff9c6438d64c09825b0824eaf0552970b051f77f78e48dcfdb13b4b19256c4471d37ca32d
|
7
|
+
data.tar.gz: a8cef2c6beb8724976e6f670c428c8f42a95c46974d364f7fea88c382f89bba7038173d5f2823a19bf4a2fadacd2b91feceb2dee0779cbbe01768f2674e2acc6
|
checksums.yaml.gz.sig
ADDED
Binary file
|
data.tar.gz.sig
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
����=��f��ᙙ���� c�ҵ]�������2��>`xPXm#i&u��H+z�"���r������qM��;�V0J96zj�:����E]�B$�u���)�\�KC����vם�U��c\�`茠�ݕ�2A'��[�D���J���P�kN�ޱ$AG,�����B��:�&�|��9%�~����"��x��}~��������I�ۡr:I�����-�z���$��m��~��`�'�x����x��F
|
data/README.md
CHANGED
@@ -3,7 +3,6 @@
|
|
3
3
|
[![Gem Version](https://badge.fury.io/rb/gemsmith.svg)](http://badge.fury.io/rb/gemsmith)
|
4
4
|
[![Code Climate Maintainability](https://api.codeclimate.com/v1/badges/4fbf3375d2abb76a6f5d/maintainability)](https://codeclimate.com/github/bkuhlmann/gemsmith/maintainability)
|
5
5
|
[![Code Climate Test Coverage](https://api.codeclimate.com/v1/badges/4fbf3375d2abb76a6f5d/test_coverage)](https://codeclimate.com/github/bkuhlmann/gemsmith/test_coverage)
|
6
|
-
[![Gemnasium Status](https://gemnasium.com/bkuhlmann/gemsmith.svg)](https://gemnasium.com/bkuhlmann/gemsmith)
|
7
6
|
[![Circle CI Status](https://circleci.com/gh/bkuhlmann/gemsmith.svg?style=svg)](https://circleci.com/gh/bkuhlmann/gemsmith)
|
8
7
|
|
9
8
|
A command line interface for smithing new Ruby gems.
|
@@ -52,7 +51,6 @@ A command line interface for smithing new Ruby gems.
|
|
52
51
|
- Supports [Bundler Audit](https://github.com/rubysec/bundler-audit).
|
53
52
|
- Supports [Circle CI](https://circleci.com).
|
54
53
|
- Supports [Code Climate](https://codeclimate.com).
|
55
|
-
- Supports [Gemnasium](https://gemnasium.com).
|
56
54
|
- Supports [Git Cop](https://github.com/bkuhlmann/git-cop).
|
57
55
|
- Supports [GitHub](https://github.com).
|
58
56
|
- Supports [Guard](https://github.com/guard/guard).
|
@@ -81,7 +79,7 @@ A command line interface for smithing new Ruby gems.
|
|
81
79
|
## Requirements
|
82
80
|
|
83
81
|
0. A UNIX-based system.
|
84
|
-
0. [Ruby 2.
|
82
|
+
0. [Ruby 2.5.x](https://www.ruby-lang.org).
|
85
83
|
0. [RubyGems](https://rubygems.org).
|
86
84
|
0. [Bundler](https://github.com/bundler/bundler).
|
87
85
|
|
@@ -129,7 +127,6 @@ The default configuration is as follows:
|
|
129
127
|
:circle_ci: false
|
130
128
|
:cli: false
|
131
129
|
:code_climate: false
|
132
|
-
:gemnasium: false
|
133
130
|
:git_cop: true
|
134
131
|
:git_hub: true
|
135
132
|
:guard: true
|
@@ -188,7 +185,6 @@ For more gem generation options, type: `gemsmith --help --generate`
|
|
188
185
|
[--circle-ci], [--no-circle-ci] # Add Circle CI support.
|
189
186
|
[--cli], [--no-cli] # Add CLI support.
|
190
187
|
[--code-climate], [--no-code-climate] # Add Code Climate support.
|
191
|
-
[--gemnasium], [--no-gemnasium] # Add Gemnasium support.
|
192
188
|
[--git-cop], [--no-git-cop] # Add Git Cop support.
|
193
189
|
# Default: true
|
194
190
|
[--git-hub], [--no-git-hub] # Add GitHub support.
|
data/lib/gemsmith/cli.rb
CHANGED
@@ -58,7 +58,6 @@ module Gemsmith
|
|
58
58
|
circle_ci: false,
|
59
59
|
cli: false,
|
60
60
|
code_climate: false,
|
61
|
-
gemnasium: false,
|
62
61
|
git_cop: true,
|
63
62
|
git_hub: true,
|
64
63
|
guard: true,
|
@@ -127,10 +126,6 @@ module Gemsmith
|
|
127
126
|
desc: "Add Code Climate support.",
|
128
127
|
type: :boolean,
|
129
128
|
default: configuration.to_h.dig(:generate, :code_climate)
|
130
|
-
method_option :gemnasium,
|
131
|
-
desc: "Add Gemnasium support.",
|
132
|
-
type: :boolean,
|
133
|
-
default: configuration.to_h.dig(:generate, :gemnasium)
|
134
129
|
method_option :git_cop,
|
135
130
|
desc: "Add Git Cop support.",
|
136
131
|
type: :boolean,
|
@@ -24,13 +24,14 @@ module Gemsmith
|
|
24
24
|
|
25
25
|
def install_templates
|
26
26
|
cli.template "#{rspec_root}/spec_helper.rb.tt", configuration
|
27
|
-
|
28
|
-
if configuration.dig(:generate, :rails)
|
29
|
-
cli.template("#{rspec_root}/rails_helper.rb.tt", configuration)
|
30
|
-
end
|
31
|
-
|
27
|
+
install_rails_helper
|
32
28
|
cli.template "#{rspec_root}/support/shared_contexts/temp_dir.rb.tt", configuration
|
33
29
|
end
|
30
|
+
|
31
|
+
def install_rails_helper
|
32
|
+
return unless configuration.dig(:generate, :rails)
|
33
|
+
cli.template("#{rspec_root}/rails_helper.rb.tt", configuration)
|
34
|
+
end
|
34
35
|
end
|
35
36
|
end
|
36
37
|
end
|
data/lib/gemsmith/identity.rb
CHANGED
@@ -10,11 +10,10 @@ Gem::Specification.new do |spec|
|
|
10
10
|
spec.homepage = "<%= config.dig(:gem, :url) %>"
|
11
11
|
spec.summary = ""
|
12
12
|
spec.license = "MIT"
|
13
|
+
|
13
14
|
<%- if config.dig(:generate, :security) -%>
|
14
|
-
|
15
|
-
|
16
|
-
spec.cert_chain = [Gem.default_cert_path]
|
17
|
-
end
|
15
|
+
spec.signing_key = Gem.default_key_path
|
16
|
+
spec.cert_chain = [Gem.default_cert_path]
|
18
17
|
<%- end -%>
|
19
18
|
|
20
19
|
spec.required_ruby_version = "~> <%= config.dig(:versions, :ruby)[/\d+\.\d+/] %>"
|
@@ -1,5 +1,5 @@
|
|
1
1
|
inherit_from:
|
2
|
-
- https://raw.githubusercontent.com/bkuhlmann/code_quality/
|
2
|
+
- https://raw.githubusercontent.com/bkuhlmann/code_quality/v2.0.0/configurations/rubocop/ruby.yml
|
3
3
|
<%- if config.dig(:generate, :rails) -%>
|
4
|
-
- https://raw.githubusercontent.com/bkuhlmann/code_quality/
|
4
|
+
- https://raw.githubusercontent.com/bkuhlmann/code_quality/v2.0.0/configurations/rubocop/rails.yml
|
5
5
|
<%- end -%>
|
@@ -6,9 +6,6 @@
|
|
6
6
|
[![Code Climate Maintainability](https://api.codeclimate.com/v1/badges/<id>/maintainability)](https://codeclimate.com/github/<%= config.fetch :github_user %>/<%= config.dig(:gem, :name) %>/maintainability)
|
7
7
|
[![Code Climate Test Coverage](https://api.codeclimate.com/v1/badges/<id>/test_coverage)](https://codeclimate.com/github/<%= config.fetch :github_user %>/<%= config.dig(:gem, :name) %>/test_coverage)
|
8
8
|
<%- end -%>
|
9
|
-
<%- if config.dig(:generate, :gemnasium) -%>
|
10
|
-
[![Gemnasium Status](https://gemnasium.com/<%= config.fetch :github_user %>/<%= config.dig(:gem, :name) %>.svg)](https://gemnasium.com/<%= config.fetch :github_user %>/<%= config.dig(:gem, :name) %>)
|
11
|
-
<%- end -%>
|
12
9
|
<%- if config.dig(:generate, :circle_ci) -%>
|
13
10
|
[![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 %>)
|
14
11
|
<%- end -%>
|
@@ -29,24 +26,9 @@
|
|
29
26
|
|
30
27
|
## Setup
|
31
28
|
|
32
|
-
|
33
|
-
For a secure install, type the following (recommended):
|
34
|
-
|
35
|
-
gem cert --add <(curl --location --silent <%= config.dig :organization, :url %>/gem-public.pem)
|
36
|
-
gem install <%= config.dig(:gem, :name) %> --trust-policy MediumSecurity
|
37
|
-
|
38
|
-
NOTE: A HighSecurity trust policy would be best but MediumSecurity enables signed gem verification
|
39
|
-
while allowing the installation of unsigned dependencies since they are beyond the scope of this
|
40
|
-
gem.
|
41
|
-
|
42
|
-
For an insecure install, type the following (not recommended):
|
29
|
+
To install, run:
|
43
30
|
|
44
31
|
gem install <%= config.dig(:gem, :name) %>
|
45
|
-
<%- else -%>
|
46
|
-
To install, type the following:
|
47
|
-
|
48
|
-
gem install <%= config.dig(:gem, :name) %>
|
49
|
-
<%- end -%>
|
50
32
|
|
51
33
|
<%- unless config.dig(:generate, :cli) -%>
|
52
34
|
Add the following to your Gemfile:
|
metadata
CHANGED
@@ -1,14 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gemsmith
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 11.
|
4
|
+
version: 11.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brooke Kuhlmann
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
|
-
cert_chain:
|
11
|
-
|
10
|
+
cert_chain:
|
11
|
+
- |
|
12
|
+
-----BEGIN CERTIFICATE-----
|
13
|
+
MIIDQDCCAiigAwIBAgIB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POLYGdB4hqUam3hBgLOsYIOVp+yXMvj0gvk/Djq8IR2P1RS4NZU7HHD485xkBfL
|
29
|
+
4Zrsxi713z6sndd9JBAm4G7mJiV93MsuCM5N4ZDY7XaxIhvctNSNhX/Yn8LLdtGI
|
30
|
+
b4jw5t40FKyNUvLPPXYAvQALBtk=
|
31
|
+
-----END CERTIFICATE-----
|
32
|
+
date: 2018-03-04 00:00:00.000000000 Z
|
12
33
|
dependencies:
|
13
34
|
- !ruby/object:Gem::Dependency
|
14
35
|
name: bundler
|
@@ -436,7 +457,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
436
457
|
version: '0'
|
437
458
|
requirements: []
|
438
459
|
rubyforge_project:
|
439
|
-
rubygems_version: 2.7.
|
460
|
+
rubygems_version: 2.7.6
|
440
461
|
signing_key:
|
441
462
|
specification_version: 4
|
442
463
|
summary: A command line interface for smithing new Ruby gems.
|
metadata.gz.sig
ADDED