gemsmith 13.8.0 → 14.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5152390ebf3d5d3e0a9518bb8ceb881e9d7bace6e9d841d6dc437c1eb268ee6e
4
- data.tar.gz: f03f71af390dc0d562a02ec848827348eb85ba9173f3385b9d22fb2677cfb91d
3
+ metadata.gz: 2cdd0fe2ca61c50db6aa7dfbc57fad58cb2a61206d228efa332fa02986900038
4
+ data.tar.gz: 475385876958e31953a78b5ae3179e75230d7c2322437e9ea180e7b83c9a7ccb
5
5
  SHA512:
6
- metadata.gz: 9650717b869b86d82fb7c315448d044fc2caea1c6438c3e563f1c5c9265bab2f87fb76e5905e44f1813b2d54a2fe86fff7e9d0e076b9809486a77a28a8ddad16
7
- data.tar.gz: 15b4f1e9ad278dc4e6eeb7e49c87874e9f741efb31ff78036da4357b8671c8929e85995d1d09cc24338fac7854074b57bb246f75d33fc5897f5aba32fc78801e
6
+ metadata.gz: 4735a589d328b90e08efa25279c31bda1725d1cc92d5400e13ce62f2c52a0c43f456a58c64ee5adae1372b099cf2f8873b79c7036806202191c2fcc060edf9ce
7
+ data.tar.gz: 4bafeca0997833eddbc6cfb7b4def70f11d3241419e79f143d92f871f086be8af176d6ec699f239f5bd3354b65baffc98ef051dc91bd90a2eceb82339e63c174
Binary file
data.tar.gz.sig CHANGED
Binary file
data/README.md CHANGED
@@ -54,7 +54,6 @@ A command line interface for smithing new Ruby gems.
54
54
  - Uses [Tocer](https://github.com/bkuhlmann/tocer) for README table of contents generation.
55
55
  - Supports [Bundler Audit](https://github.com/rubysec/bundler-audit).
56
56
  - Supports [Circle CI](https://circleci.com).
57
- - Supports [Code Climate](https://codeclimate.com).
58
57
  - Supports [Git Cop](https://github.com/bkuhlmann/git-cop).
59
58
  - Supports [GitHub](https://github.com).
60
59
  - Supports [Guard](https://github.com/guard/guard).
@@ -65,6 +64,7 @@ A command line interface for smithing new Ruby gems.
65
64
  - Supports [Rubocop RSpec](https://github.com/rubocop-hq/rubocop-rspec).
66
65
  - Supports [Ruby on Rails](http://rubyonrails.org).
67
66
  - Supports [RubyGems Security](http://guides.rubygems.org/security).
67
+ - Supports [SimpleCov](https://github.com/colszowka/simplecov).
68
68
  - Supports [Thor](https://github.com/erikhuda/thor).
69
69
  - Supports common settings and a structured layout for building gems.
70
70
  - Supports publishing to public or private gem servers.
@@ -130,7 +130,6 @@ The default configuration is as follows:
130
130
  :bundler_audit: true
131
131
  :circle_ci: false
132
132
  :cli: false
133
- :code_climate: false
134
133
  :engine: false
135
134
  :git_cop: true
136
135
  :git_hub: true
@@ -139,6 +138,7 @@ The default configuration is as follows:
139
138
  :reek: true
140
139
  :rspec: true
141
140
  :rubocop: true
141
+ :simple_cov: true
142
142
  :security: false
143
143
  :publish:
144
144
  :sign: false
@@ -188,7 +188,6 @@ For more gem generation options, type: `gemsmith --help --generate`
188
188
  # Default: true
189
189
  [--circle-ci], [--no-circle-ci] # Add Circle CI support.
190
190
  [--cli], [--no-cli] # Add CLI support.
191
- [--code-climate], [--no-code-climate] # Add Code Climate support.
192
191
  [--engine], [--no-engine] # Add Rails Engine support.
193
192
  [--git-cop], [--no-git-cop] # Add Git Cop support.
194
193
  # Default: true
@@ -16,7 +16,6 @@ require "gemsmith/generators/bundler"
16
16
  require "gemsmith/generators/bundler_audit"
17
17
  require "gemsmith/generators/circle_ci"
18
18
  require "gemsmith/generators/cli"
19
- require "gemsmith/generators/code_climate"
20
19
  require "gemsmith/generators/documentation"
21
20
  require "gemsmith/generators/gem"
22
21
  require "gemsmith/generators/git"
@@ -58,15 +58,15 @@ module Gemsmith
58
58
  bundler_audit: true,
59
59
  circle_ci: false,
60
60
  cli: false,
61
- code_climate: false,
62
61
  git_cop: true,
63
- git_hub: true,
62
+ git_hub: false,
64
63
  guard: true,
65
64
  pry: true,
66
65
  engine: false,
67
66
  reek: true,
68
67
  rspec: true,
69
68
  rubocop: true,
69
+ simple_cov: true,
70
70
  security: false
71
71
  },
72
72
  publish: {
@@ -89,7 +89,6 @@ module Gemsmith
89
89
  Generators::BundlerAudit,
90
90
  Generators::GitCop,
91
91
  Generators::Reek,
92
- Generators::CodeClimate,
93
92
  Generators::Guard,
94
93
  Generators::CircleCI,
95
94
  Generators::Bundler,
@@ -123,10 +122,6 @@ module Gemsmith
123
122
  desc: "Add CLI support.",
124
123
  type: :boolean,
125
124
  default: configuration.to_h.dig(:generate, :cli)
126
- method_option :code_climate,
127
- desc: "Add Code Climate support.",
128
- type: :boolean,
129
- default: configuration.to_h.dig(:generate, :code_climate)
130
125
  method_option :engine,
131
126
  desc: "Add Rails Engine support.",
132
127
  type: :boolean,
@@ -159,6 +154,10 @@ module Gemsmith
159
154
  desc: "Add Rubocop support.",
160
155
  type: :boolean,
161
156
  default: configuration.to_h.dig(:generate, :rubocop)
157
+ method_option :simple_cov,
158
+ desc: "Add SimpleCov support.",
159
+ type: :boolean,
160
+ default: configuration.to_h.dig(:generate, :simple_cov)
162
161
  method_option :security,
163
162
  desc: "Add security support.",
164
163
  type: :boolean,
@@ -202,7 +201,7 @@ module Gemsmith
202
201
  type: :boolean,
203
202
  default: false
204
203
  def config
205
- path = configuration.path
204
+ path = configuration.current
206
205
 
207
206
  if options.edit? then `#{ENV["EDITOR"]} #{path}`
208
207
  elsif options.info?
@@ -13,7 +13,7 @@ module Gemsmith
13
13
  end
14
14
 
15
15
  def self.version_segments version
16
- String(version).split(Versionaire::VERSION_DELIMITER).map(&:to_i)
16
+ String(version).split(Versionaire::DELIMITER).map(&:to_i)
17
17
  end
18
18
 
19
19
  def self.for object
@@ -5,14 +5,20 @@ module Gemsmith
5
5
  # Generates default gem support.
6
6
  class Gem < Base
7
7
  def run
8
- create_files
9
- cli.chmod "#{configuration.dig :gem, :name}/bin/setup", 0o755
8
+ create_binaries
9
+ create_skeleton
10
10
  end
11
11
 
12
12
  private
13
13
 
14
- def create_files
14
+ def create_binaries
15
+ template "%gem_name%/bin/console.tt"
15
16
  template "%gem_name%/bin/setup.tt"
17
+ cli.chmod "#{gem_name}/bin/console", 0o755
18
+ cli.chmod "#{gem_name}/bin/setup", 0o755
19
+ end
20
+
21
+ def create_skeleton
16
22
  template "%gem_name%/Gemfile.tt"
17
23
  template "%gem_name%/%gem_name%.gemspec.tt"
18
24
  template "#{LIB_ROOT_GEM}.rb.tt"
@@ -12,7 +12,7 @@ module Gemsmith
12
12
  end
13
13
 
14
14
  def self.version
15
- "13.8.0"
15
+ "14.0.0"
16
16
  end
17
17
 
18
18
  def self.version_label
@@ -27,7 +27,7 @@ Gem::Specification.new do |spec|
27
27
  spec.add_dependency "rails", "~> <%= config.dig(:versions, :rails) %>"
28
28
  <%- end -%>
29
29
  <%- if config.dig(:generate, :cli) -%>
30
- spec.add_dependency "runcom", "~> 5.0"
30
+ spec.add_dependency "runcom", "~> 6.0"
31
31
  spec.add_dependency "thor", "~> 0.20"
32
32
  <%- end -%>
33
33
  <%- if config.dig(:generate, :bundler_audit) -%>
@@ -35,7 +35,7 @@ Gem::Specification.new do |spec|
35
35
  <%- end -%>
36
36
  spec.add_development_dependency "gemsmith", "~> <%= Gemsmith::Identity.version[/\d+\.\d+/] %>"
37
37
  <%- if config.dig(:generate, :git_cop) -%>
38
- spec.add_development_dependency "git-cop", "~> 3.5"
38
+ spec.add_development_dependency "git-cop", "~> 4.0"
39
39
  <%- end -%>
40
40
  <%- if config.dig(:generate, :guard) -%>
41
41
  spec.add_development_dependency "guard-rspec", "~> 4.7"
@@ -52,15 +52,15 @@ Gem::Specification.new do |spec|
52
52
  spec.add_development_dependency "<%= config.dig(:generate, :engine) ? "rspec-rails" : "rspec" %>", "~> 3.9"
53
53
  <%- end -%>
54
54
  <%- if config.dig(:generate, :rubocop) -%>
55
- spec.add_development_dependency "rubocop", "~> 0.77"
55
+ spec.add_development_dependency "rubocop", "~> 0.78"
56
56
  spec.add_development_dependency "rubocop-performance", "~> 1.5"
57
57
  spec.add_development_dependency "rubocop-rake", "~> 0.5"
58
58
  <%- end -%>
59
59
  <%- if config.dig(:generate, :rubocop) && config.dig(:generate, :rspec) -%>
60
60
  spec.add_development_dependency "rubocop-rspec", "~> 1.37"
61
61
  <%- end -%>
62
- <%- if config.dig(:generate, :code_climate) -%>
63
- spec.add_development_dependency "simplecov", "~> 0.16"
62
+ <%- if config.dig(:generate, :simple_cov) -%>
63
+ spec.add_development_dependency "simplecov", "~> 0.17"
64
64
  <%- end -%>
65
65
 
66
66
  <%- if config.dig(:generate, :engine) -%>
@@ -1,12 +1,12 @@
1
1
  inherit_from:
2
- - https://raw.githubusercontent.com/bkuhlmann/code_quality/4.2.0/configurations/rubocop/ruby.yml
3
- - https://raw.githubusercontent.com/bkuhlmann/code_quality/4.2.0/configurations/rubocop/rake.yml
4
- - https://raw.githubusercontent.com/bkuhlmann/code_quality/4.2.0/configurations/rubocop/performance.yml
2
+ - https://raw.githubusercontent.com/bkuhlmann/code_quality/4.3.0/configurations/rubocop/ruby.yml
3
+ - https://raw.githubusercontent.com/bkuhlmann/code_quality/4.3.0/configurations/rubocop/rake.yml
4
+ - https://raw.githubusercontent.com/bkuhlmann/code_quality/4.3.0/configurations/rubocop/performance.yml
5
5
  <%- if config.dig(:generate, :rspec) -%>
6
- - https://raw.githubusercontent.com/bkuhlmann/code_quality/4.2.0/configurations/rubocop/rspec.yml
6
+ - https://raw.githubusercontent.com/bkuhlmann/code_quality/4.3.0/configurations/rubocop/rspec.yml
7
7
  <%- end -%>
8
8
  <%- if config.dig(:generate, :engine) -%>
9
- - https://raw.githubusercontent.com/bkuhlmann/code_quality/4.2.0/configurations/rubocop/rails.yml
9
+ - https://raw.githubusercontent.com/bkuhlmann/code_quality/4.3.0/configurations/rubocop/rails.yml
10
10
  <%- end -%>
11
11
 
12
12
  <%- if config.dig(:generate, :cli) -%>
@@ -5,11 +5,6 @@
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, :code_climate) -%>
9
- <!-- Replace <id> with Code Climate repository ID. Remove this comment afterwards. -->
10
- [![Code Climate Maintainability](https://api.codeclimate.com/v1/badges/<id>/maintainability)](https://codeclimate.com/github/<%= config.fetch :github_user %>/<%= config.dig(:gem, :name) %>/maintainability)
11
- [![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)
12
- <%- end -%>
13
8
  <%- if config.dig(:generate, :circle_ci) -%>
14
9
  [![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 %>)
15
10
  <%- end -%>
@@ -0,0 +1,11 @@
1
+ #! /usr/bin/env ruby
2
+
3
+ require "bundler/setup"
4
+ require "<%= config.dig :gem, :path %>"
5
+ <%- if config.dig(:generate, :pry) -%>
6
+ require "pry"
7
+ require "pry-byebug"
8
+ <%- end -%>
9
+ require "irb"
10
+
11
+ IRB.start __FILE__
@@ -1,8 +1,8 @@
1
1
  #! /usr/bin/env bash
2
2
 
3
- set -o nounset # Exit, with error message, when attempting to use an undefined variable.
4
- set -o errexit # Abort script at first error, when a command exits with non-zero status.
5
- set -o pipefail # Return exit status of the last command in the pipe that returned a non-zero return value.
6
- IFS=$'\n\t' # Defines newlines and tabs as delimiters for splitting words and iterating arrays.
3
+ set -o nounset
4
+ set -o errexit
5
+ set -o pipefail
6
+ IFS=$'\n\t'
7
7
 
8
8
  bundle install
@@ -57,21 +57,7 @@ jobs:
57
57
  paths:
58
58
  - vendor/bundle
59
59
 
60
- <%- if config.dig(:generate, :code_climate) -%>
61
- - run:
62
- name: Code Climate Install
63
- command: |
64
- curl --location https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter
65
- chmod +x ./cc-test-reporter
66
- <%- end -%>
67
-
68
60
  - run:
69
61
  name: Build
70
62
  command: |
71
- <%- if config.dig(:generate, :code_climate) -%>
72
- ./cc-test-reporter before-build
73
- <%- end -%>
74
63
  bundle exec rake
75
- <%- if config.dig(:generate, :code_climate) -%>
76
- ./cc-test-reporter after-build --coverage-input-type simplecov --exit-code $?
77
- <%- end -%>
@@ -33,7 +33,7 @@ require "runcom"
33
33
  type: :boolean,
34
34
  default: false
35
35
  def config
36
- path = configuration.path
36
+ path = configuration.current
37
37
 
38
38
  if options.edit? then `#{ENV["EDITOR"]} #{path}`
39
39
  elsif options.info?
@@ -1,7 +1,10 @@
1
1
  require "bundler/setup"
2
- <%- if config.dig(:generate, :code_climate) -%>
2
+
3
+ <%- if config.dig(:generate, :simple_cov) -%>
3
4
  require "simplecov"
5
+ SimpleCov.start
4
6
  <%- end -%>
7
+
5
8
  <%- if config.dig(:generate, :pry) -%>
6
9
  require "pry"
7
10
  require "pry-byebug"
@@ -10,10 +13,6 @@ require "pry-byebug"
10
13
  require "<%= config.dig(:gem, :path) %>"
11
14
  <%- end -%>
12
15
 
13
- <%- if config.dig(:generate, :code_climate) -%>
14
- SimpleCov.start
15
- <%- end -%>
16
-
17
16
  Dir[File.join(__dir__, "support", "shared_contexts", "**/*.rb")].each(&method(:require))
18
17
 
19
18
  RSpec.configure do |config|
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: 13.8.0
4
+ version: 14.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brooke Kuhlmann
@@ -28,7 +28,7 @@ cert_chain:
28
28
  dKvURM+1PwDCzC5tvRwjhUJIizau6+MtkFCvJHmaAj1aZL3odcPejHj5Hxt/0CUW
29
29
  y84=
30
30
  -----END CERTIFICATE-----
31
- date: 2019-12-08 00:00:00.000000000 Z
31
+ date: 2020-01-01 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: '9.3'
39
+ version: '10.0'
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: '9.3'
46
+ version: '10.0'
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: '6.3'
53
+ version: '7.0'
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: '6.3'
60
+ version: '7.0'
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: '6.0'
67
+ version: '7.0'
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: '6.0'
74
+ version: '7.0'
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: '0.77'
81
+ version: '0.78'
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: '0.77'
88
+ version: '0.78'
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: '5.0'
95
+ version: '6.0'
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: '5.0'
102
+ version: '6.0'
103
103
  - !ruby/object:Gem::Dependency
104
104
  name: thor
105
105
  requirement: !ruby/object:Gem::Requirement
@@ -120,56 +120,28 @@ dependencies:
120
120
  requirements:
121
121
  - - "~>"
122
122
  - !ruby/object:Gem::Version
123
- version: '9.1'
123
+ version: '10.0'
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: '9.1'
130
+ version: '10.0'
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: '7.2'
137
+ version: '8.0'
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: '7.2'
145
- - !ruby/object:Gem::Dependency
146
- name: awesome_print
147
- requirement: !ruby/object:Gem::Requirement
148
- requirements:
149
- - - "~>"
150
- - !ruby/object:Gem::Version
151
- version: '1.8'
152
- type: :development
153
- prerelease: false
154
- version_requirements: !ruby/object:Gem::Requirement
155
- requirements:
156
- - - "~>"
157
- - !ruby/object:Gem::Version
158
- version: '1.8'
159
- - !ruby/object:Gem::Dependency
160
- name: bond
161
- requirement: !ruby/object:Gem::Requirement
162
- requirements:
163
- - - "~>"
164
- - !ruby/object:Gem::Version
165
- version: '0.5'
166
- type: :development
167
- prerelease: false
168
- version_requirements: !ruby/object:Gem::Requirement
169
- requirements:
170
- - - "~>"
171
- - !ruby/object:Gem::Version
172
- version: '0.5'
144
+ version: '8.0'
173
145
  - !ruby/object:Gem::Dependency
174
146
  name: bundler-audit
175
147
  requirement: !ruby/object:Gem::Requirement
@@ -204,14 +176,14 @@ dependencies:
204
176
  requirements:
205
177
  - - "~>"
206
178
  - !ruby/object:Gem::Version
207
- version: '3.5'
179
+ version: '4.0'
208
180
  type: :development
209
181
  prerelease: false
210
182
  version_requirements: !ruby/object:Gem::Requirement
211
183
  requirements:
212
184
  - - "~>"
213
185
  - !ruby/object:Gem::Version
214
- version: '3.5'
186
+ version: '4.0'
215
187
  - !ruby/object:Gem::Dependency
216
188
  name: guard-rspec
217
189
  requirement: !ruby/object:Gem::Requirement
@@ -226,20 +198,6 @@ dependencies:
226
198
  - - "~>"
227
199
  - !ruby/object:Gem::Version
228
200
  version: '4.7'
229
- - !ruby/object:Gem::Dependency
230
- name: hirb
231
- requirement: !ruby/object:Gem::Requirement
232
- requirements:
233
- - - "~>"
234
- - !ruby/object:Gem::Version
235
- version: '0.7'
236
- type: :development
237
- prerelease: false
238
- version_requirements: !ruby/object:Gem::Requirement
239
- requirements:
240
- - - "~>"
241
- - !ruby/object:Gem::Version
242
- version: '0.7'
243
201
  - !ruby/object:Gem::Dependency
244
202
  name: pry
245
203
  requirement: !ruby/object:Gem::Requirement
@@ -358,28 +316,14 @@ dependencies:
358
316
  requirements:
359
317
  - - "~>"
360
318
  - !ruby/object:Gem::Version
361
- version: '0.16'
362
- type: :development
363
- prerelease: false
364
- version_requirements: !ruby/object:Gem::Requirement
365
- requirements:
366
- - - "~>"
367
- - !ruby/object:Gem::Version
368
- version: '0.16'
369
- - !ruby/object:Gem::Dependency
370
- name: wirb
371
- requirement: !ruby/object:Gem::Requirement
372
- requirements:
373
- - - "~>"
374
- - !ruby/object:Gem::Version
375
- version: '2.1'
319
+ version: '0.17'
376
320
  type: :development
377
321
  prerelease: false
378
322
  version_requirements: !ruby/object:Gem::Requirement
379
323
  requirements:
380
324
  - - "~>"
381
325
  - !ruby/object:Gem::Version
382
- version: '2.1'
326
+ version: '0.17'
383
327
  description:
384
328
  email:
385
329
  - brooke@alchemists.io
@@ -411,7 +355,6 @@ files:
411
355
  - lib/gemsmith/generators/bundler_audit.rb
412
356
  - lib/gemsmith/generators/circle_ci.rb
413
357
  - lib/gemsmith/generators/cli.rb
414
- - lib/gemsmith/generators/code_climate.rb
415
358
  - lib/gemsmith/generators/documentation.rb
416
359
  - lib/gemsmith/generators/engine.rb
417
360
  - lib/gemsmith/generators/gem.rb
@@ -434,7 +377,6 @@ files:
434
377
  - lib/gemsmith/rake/setup.rb
435
378
  - lib/gemsmith/rake/tasks.rb
436
379
  - lib/gemsmith/templates/%gem_name%/%gem_name%.gemspec.tt
437
- - lib/gemsmith/templates/%gem_name%/.codeclimate.yml.tt
438
380
  - lib/gemsmith/templates/%gem_name%/.github/ISSUE_TEMPLATE.md.tt
439
381
  - lib/gemsmith/templates/%gem_name%/.github/PULL_REQUEST_TEMPLATE.md.tt
440
382
  - lib/gemsmith/templates/%gem_name%/.gitignore.tt
@@ -450,6 +392,7 @@ files:
450
392
  - lib/gemsmith/templates/%gem_name%/README.md.tt
451
393
  - lib/gemsmith/templates/%gem_name%/Rakefile.tt
452
394
  - lib/gemsmith/templates/%gem_name%/bin/%gem_name%.tt
395
+ - lib/gemsmith/templates/%gem_name%/bin/console.tt
453
396
  - lib/gemsmith/templates/%gem_name%/bin/setup.tt
454
397
  - lib/gemsmith/templates/%gem_name%/circle.yml.tt
455
398
  - lib/gemsmith/templates/%gem_name%/lib/%gem_path%.rb.tt
@@ -479,14 +422,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
479
422
  requirements:
480
423
  - - "~>"
481
424
  - !ruby/object:Gem::Version
482
- version: '2.6'
425
+ version: '2.7'
483
426
  required_rubygems_version: !ruby/object:Gem::Requirement
484
427
  requirements:
485
428
  - - ">="
486
429
  - !ruby/object:Gem::Version
487
430
  version: '0'
488
431
  requirements: []
489
- rubygems_version: 3.0.6
432
+ rubygems_version: 3.1.2
490
433
  signing_key:
491
434
  specification_version: 4
492
435
  summary: A command line interface for smithing new Ruby gems.
metadata.gz.sig CHANGED
Binary file
@@ -1,14 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Gemsmith
4
- module Generators
5
- # Generates Code Climate support.
6
- class CodeClimate < Base
7
- def run
8
- return unless configuration.dig :generate, :code_climate
9
-
10
- template "%gem_name%/.codeclimate.yml.tt"
11
- end
12
- end
13
- end
14
- end
@@ -1,40 +0,0 @@
1
- version: 2
2
- checks:
3
- argument-count:
4
- config:
5
- threshold: 3
6
- complex-logic:
7
- config:
8
- threshold: 3
9
- file-lines:
10
- config:
11
- threshold: 250
12
- method-complexity:
13
- config:
14
- threshold: 3
15
- method-count:
16
- config:
17
- threshold: 20
18
- method-lines:
19
- config:
20
- threshold: 20
21
- nested-control-flow:
22
- config:
23
- threshold: 3
24
- return-statements:
25
- config:
26
- threshold: 3
27
- similar-code:
28
- enabled: false
29
- identical-code:
30
- config:
31
- threshold: 3
32
- exclude_patterns:
33
- - "config/"
34
- - "db/"
35
- - "**/elm-stuff/"
36
- - "**/node_modules/"
37
- - "**/spec/"
38
- - "**/test/"
39
- - "**/tests/"
40
- - "**/vendor/"