gemsmith 12.4.0 → 13.0.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/README.md +7 -5
- data/lib/gemsmith/cli.rb +1 -1
- data/lib/gemsmith/identity.rb +1 -1
- data/lib/gemsmith/templates/%gem_name%/%gem_name%.gemspec.tt +6 -6
- data/lib/gemsmith/templates/%gem_name%/.rubocop.yml.tt +3 -3
- data/lib/gemsmith/templates/%gem_name%/circle.yml.tt +54 -8
- data/lib/gemsmith/templates/%gem_name%/lib/%gem_path%/cli.rb.tt +1 -1
- data/lib/gemsmith/templates/%gem_name%/spec/spec_helper.rb.tt +4 -2
- metadata +34 -49
- 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: 4abefaeba50419cd067f34f00ed982f824f56f41c5158f3c60e78472cf054338
|
4
|
+
data.tar.gz: 6f5d359c4e42f1ac1dfbaa153c5018cd218ceb84c6c3d874a1407c5787ec8cec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e8aeac1f0ac63b6deed6ba655e2131e9a82cc4aafa78f5adb8d46feebf0d56e560599fe266a3f2e5265c3f24b6484d28a2e53d9dfd8e7473e8445ce0af594c6d
|
7
|
+
data.tar.gz: edc6b99a2be5a3d22845a2129f087782d16c0ecc3b1df20a6d1e1e1f2ae1fc6dcb7469634380c2e43356f9f166e7398a0afd367ecfccfb8f4bcb93b0ad725d4d
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/README.md
CHANGED
@@ -80,7 +80,7 @@ A command line interface for smithing new Ruby gems.
|
|
80
80
|
## Requirements
|
81
81
|
|
82
82
|
1. A UNIX-based system.
|
83
|
-
1. [Ruby 2.
|
83
|
+
1. [Ruby 2.6.x](https://www.ruby-lang.org).
|
84
84
|
1. [RubyGems](https://rubygems.org).
|
85
85
|
1. [Bundler](https://github.com/bundler/bundler).
|
86
86
|
|
@@ -336,13 +336,15 @@ of your gem, you'll be prompted for the missing credentials.
|
|
336
336
|
|
337
337
|
## Promotion
|
338
338
|
|
339
|
-
Once your gem is released,
|
339
|
+
Once your gem is released, let the world know about your accomplishment by posting an update to
|
340
|
+
these sites:
|
340
341
|
|
341
|
-
- [How to Spread the Word About Your Code](https://hacks.mozilla.org/2013/05/how-to-spread-the-word-about-your-code)
|
342
|
-
- [Ruby Community](https://www.ruby-lang.org/en/community)
|
343
342
|
- [RubyFlow](http://www.rubyflow.com)
|
343
|
+
- [Ruby Library Hunt](https://ruby.libhunt.com)
|
344
344
|
- [RubyDaily](http://rubydaily.org)
|
345
|
-
- [Ruby
|
345
|
+
- [Awesome Ruby](https://awesome-ruby.com)
|
346
|
+
- [Ruby Toolbox](https://www.ruby-toolbox.com)
|
347
|
+
- [Ruby Community](https://www.ruby-lang.org/en/community)
|
346
348
|
|
347
349
|
## Troubleshooting
|
348
350
|
|
data/lib/gemsmith/cli.rb
CHANGED
data/lib/gemsmith/identity.rb
CHANGED
@@ -27,18 +27,15 @@ 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", "~>
|
30
|
+
spec.add_dependency "runcom", "~> 4.0"
|
31
31
|
spec.add_dependency "thor", "~> 0.20"
|
32
32
|
<%- end -%>
|
33
33
|
<%- if config.dig(:generate, :bundler_audit) -%>
|
34
34
|
spec.add_development_dependency "bundler-audit", "~> 0.6"
|
35
35
|
<%- end -%>
|
36
|
-
<%- if config.dig(:generate, :code_climate) -%>
|
37
|
-
spec.add_development_dependency "codeclimate-test-reporter", "~> 1.0"
|
38
|
-
<%- end -%>
|
39
36
|
spec.add_development_dependency "gemsmith", "~> <%= Gemsmith::Identity.version[/\d+\.\d+/] %>"
|
40
37
|
<%- if config.dig(:generate, :git_cop) -%>
|
41
|
-
spec.add_development_dependency "git-cop", "~>
|
38
|
+
spec.add_development_dependency "git-cop", "~> 3.0"
|
42
39
|
<%- end -%>
|
43
40
|
<%- if config.dig(:generate, :guard) -%>
|
44
41
|
spec.add_development_dependency "guard-rspec", "~> 4.7"
|
@@ -55,11 +52,14 @@ Gem::Specification.new do |spec|
|
|
55
52
|
spec.add_development_dependency "<%= config.dig(:generate, :engine) ? "rspec-rails" : "rspec" %>", "~> 3.8"
|
56
53
|
<%- end -%>
|
57
54
|
<%- if config.dig(:generate, :rubocop) -%>
|
58
|
-
spec.add_development_dependency "rubocop", "~> 0.
|
55
|
+
spec.add_development_dependency "rubocop", "~> 0.62"
|
59
56
|
<%- end -%>
|
60
57
|
<%- if config.dig(:generate, :rubocop) && config.dig(:generate, :rspec) -%>
|
61
58
|
spec.add_development_dependency "rubocop-rspec", "~> 1.30"
|
62
59
|
<%- end -%>
|
60
|
+
<%- if config.dig(:generate, :code_climate) -%>
|
61
|
+
spec.add_development_dependency "simplecov", "~> 0.13"
|
62
|
+
<%- end -%>
|
63
63
|
|
64
64
|
<%- if config.dig(:generate, :engine) -%>
|
65
65
|
spec.files = Dir["app/**/*", "bin/**/*", "config/**/*", "lib/**/*", "vendor/**/*"]
|
@@ -1,10 +1,10 @@
|
|
1
1
|
inherit_from:
|
2
|
-
- https://raw.githubusercontent.com/bkuhlmann/code_quality/
|
2
|
+
- https://raw.githubusercontent.com/bkuhlmann/code_quality/3.0.0/configurations/rubocop/ruby.yml
|
3
3
|
<%- if config.dig(:generate, :rspec) -%>
|
4
|
-
- https://raw.githubusercontent.com/bkuhlmann/code_quality/
|
4
|
+
- https://raw.githubusercontent.com/bkuhlmann/code_quality/3.0.0/configurations/rubocop/rspec.yml
|
5
5
|
<%- end -%>
|
6
6
|
<%- if config.dig(:generate, :engine) -%>
|
7
|
-
- https://raw.githubusercontent.com/bkuhlmann/code_quality/
|
7
|
+
- https://raw.githubusercontent.com/bkuhlmann/code_quality/3.0.0/configurations/rubocop/rails.yml
|
8
8
|
<%- end -%>
|
9
9
|
|
10
10
|
<%- if config.dig(:generate, :cli) -%>
|
@@ -3,7 +3,7 @@ jobs:
|
|
3
3
|
build:
|
4
4
|
working_directory: ~/project
|
5
5
|
docker:
|
6
|
-
- image: circleci/ruby
|
6
|
+
- image: circleci/ruby
|
7
7
|
environment:
|
8
8
|
BUNDLE_JOBS: 3
|
9
9
|
BUNDLE_RETRY: 3
|
@@ -13,19 +13,65 @@ jobs:
|
|
13
13
|
steps:
|
14
14
|
- checkout
|
15
15
|
|
16
|
+
- run:
|
17
|
+
name: Environment Setup
|
18
|
+
command: |
|
19
|
+
printf "%s\n" 'export CI_RUBY_VERSION=$(cat ".ruby-version" | tr -d "\n")' >> $BASH_ENV
|
20
|
+
|
21
|
+
- type: cache-restore
|
22
|
+
name: Ruby Restore
|
23
|
+
key: ruby-{{checksum ".ruby-version"}}
|
24
|
+
|
25
|
+
- run:
|
26
|
+
name: Ruby Install
|
27
|
+
command: |
|
28
|
+
curl https://cache.ruby-lang.org/pub/ruby/${CI_RUBY_VERSION::-2}/ruby-$CI_RUBY_VERSION.tar.bz2 > ../ruby-$CI_RUBY_VERSION.tar.gz
|
29
|
+
cd ..
|
30
|
+
tar --extract --bzip2 --verbose --file ruby-$CI_RUBY_VERSION.tar.gz
|
31
|
+
cd ruby-$CI_RUBY_VERSION
|
32
|
+
./configure
|
33
|
+
make
|
34
|
+
make update-gems
|
35
|
+
make extract-gems
|
36
|
+
sudo make install
|
37
|
+
|
38
|
+
- type: cache-save
|
39
|
+
name: Ruby Store
|
40
|
+
key: ruby-{{checksum ".ruby-version"}}
|
41
|
+
paths:
|
42
|
+
- ../ruby-$CI_RUBY_VERSION
|
43
|
+
|
44
|
+
- type: cache-restore
|
45
|
+
name: Bundler Restore
|
46
|
+
key: bundler-{{checksum "<%= config.dig(:gem, :name) %>.gemspec"}}
|
47
|
+
|
16
48
|
- run:
|
17
49
|
name: Bundler Install
|
18
50
|
command: |
|
19
51
|
gem update --system
|
20
|
-
bundle
|
21
|
-
gem install rails
|
52
|
+
bundle install --path vendor/bundle
|
22
53
|
|
23
|
-
-
|
24
|
-
|
25
|
-
|
54
|
+
- type: cache-save
|
55
|
+
name: Bundler Store
|
56
|
+
key: bundler-{{checksum "<%= config.dig(:gem, :name) %>.gemspec"}}
|
57
|
+
paths:
|
58
|
+
- vendor/bundle
|
26
59
|
|
27
60
|
<%- if config.dig(:generate, :code_climate) -%>
|
28
61
|
- run:
|
29
|
-
name: Code Climate
|
30
|
-
command:
|
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
|
+
- run:
|
69
|
+
name: Build
|
70
|
+
command: |
|
71
|
+
<%- if config.dig(:generate, :code_climate) -%>
|
72
|
+
./cc-test-reporter before-build
|
73
|
+
<%- end -%>
|
74
|
+
bundle exec rake
|
75
|
+
<%- if config.dig(:generate, :code_climate) -%>
|
76
|
+
./cc-test-reporter after-build --coverage-input-type simplecov --exit-code $?
|
31
77
|
<%- end -%>
|
@@ -1,8 +1,6 @@
|
|
1
1
|
require "bundler/setup"
|
2
2
|
<%- if config.dig(:generate, :code_climate) -%>
|
3
3
|
require "simplecov"
|
4
|
-
SimpleCov.start
|
5
|
-
|
6
4
|
<%- end -%>
|
7
5
|
<%- if config.dig(:generate, :pry) -%>
|
8
6
|
require "pry"
|
@@ -12,6 +10,10 @@ require "pry-byebug"
|
|
12
10
|
require "<%= config.dig(:gem, :path) %>"
|
13
11
|
<%- end -%>
|
14
12
|
|
13
|
+
<%- if config.dig(:generate, :code_climate) -%>
|
14
|
+
SimpleCov.start
|
15
|
+
<%- end -%>
|
16
|
+
|
15
17
|
Dir[File.join(File.dirname(__FILE__), "support/shared_contexts/**/*.rb")].each do |file|
|
16
18
|
require file
|
17
19
|
end
|
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:
|
4
|
+
version: 13.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brooke Kuhlmann
|
@@ -29,92 +29,78 @@ cert_chain:
|
|
29
29
|
4Zrsxi713z6sndd9JBAm4G7mJiV93MsuCM5N4ZDY7XaxIhvctNSNhX/Yn8LLdtGI
|
30
30
|
b4jw5t40FKyNUvLPPXYAvQALBtk=
|
31
31
|
-----END CERTIFICATE-----
|
32
|
-
date:
|
32
|
+
date: 2019-01-01 00:00:00.000000000 Z
|
33
33
|
dependencies:
|
34
|
-
- !ruby/object:Gem::Dependency
|
35
|
-
name: bundler
|
36
|
-
requirement: !ruby/object:Gem::Requirement
|
37
|
-
requirements:
|
38
|
-
- - "~>"
|
39
|
-
- !ruby/object:Gem::Version
|
40
|
-
version: '1.16'
|
41
|
-
type: :runtime
|
42
|
-
prerelease: false
|
43
|
-
version_requirements: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - "~>"
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '1.16'
|
48
34
|
- !ruby/object:Gem::Dependency
|
49
35
|
name: milestoner
|
50
36
|
requirement: !ruby/object:Gem::Requirement
|
51
37
|
requirements:
|
52
38
|
- - "~>"
|
53
39
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
40
|
+
version: '9.0'
|
55
41
|
type: :runtime
|
56
42
|
prerelease: false
|
57
43
|
version_requirements: !ruby/object:Gem::Requirement
|
58
44
|
requirements:
|
59
45
|
- - "~>"
|
60
46
|
- !ruby/object:Gem::Version
|
61
|
-
version: '
|
47
|
+
version: '9.0'
|
62
48
|
- !ruby/object:Gem::Dependency
|
63
49
|
name: pragmater
|
64
50
|
requirement: !ruby/object:Gem::Requirement
|
65
51
|
requirements:
|
66
52
|
- - "~>"
|
67
53
|
- !ruby/object:Gem::Version
|
68
|
-
version: '
|
54
|
+
version: '6.0'
|
69
55
|
type: :runtime
|
70
56
|
prerelease: false
|
71
57
|
version_requirements: !ruby/object:Gem::Requirement
|
72
58
|
requirements:
|
73
59
|
- - "~>"
|
74
60
|
- !ruby/object:Gem::Version
|
75
|
-
version: '
|
61
|
+
version: '6.0'
|
76
62
|
- !ruby/object:Gem::Dependency
|
77
63
|
name: refinements
|
78
64
|
requirement: !ruby/object:Gem::Requirement
|
79
65
|
requirements:
|
80
66
|
- - "~>"
|
81
67
|
- !ruby/object:Gem::Version
|
82
|
-
version: '
|
68
|
+
version: '6.0'
|
83
69
|
type: :runtime
|
84
70
|
prerelease: false
|
85
71
|
version_requirements: !ruby/object:Gem::Requirement
|
86
72
|
requirements:
|
87
73
|
- - "~>"
|
88
74
|
- !ruby/object:Gem::Version
|
89
|
-
version: '
|
75
|
+
version: '6.0'
|
90
76
|
- !ruby/object:Gem::Dependency
|
91
77
|
name: rubocop
|
92
78
|
requirement: !ruby/object:Gem::Requirement
|
93
79
|
requirements:
|
94
80
|
- - "~>"
|
95
81
|
- !ruby/object:Gem::Version
|
96
|
-
version: '0.
|
82
|
+
version: '0.62'
|
97
83
|
type: :runtime
|
98
84
|
prerelease: false
|
99
85
|
version_requirements: !ruby/object:Gem::Requirement
|
100
86
|
requirements:
|
101
87
|
- - "~>"
|
102
88
|
- !ruby/object:Gem::Version
|
103
|
-
version: '0.
|
89
|
+
version: '0.62'
|
104
90
|
- !ruby/object:Gem::Dependency
|
105
91
|
name: runcom
|
106
92
|
requirement: !ruby/object:Gem::Requirement
|
107
93
|
requirements:
|
108
94
|
- - "~>"
|
109
95
|
- !ruby/object:Gem::Version
|
110
|
-
version: '
|
96
|
+
version: '4.0'
|
111
97
|
type: :runtime
|
112
98
|
prerelease: false
|
113
99
|
version_requirements: !ruby/object:Gem::Requirement
|
114
100
|
requirements:
|
115
101
|
- - "~>"
|
116
102
|
- !ruby/object:Gem::Version
|
117
|
-
version: '
|
103
|
+
version: '4.0'
|
118
104
|
- !ruby/object:Gem::Dependency
|
119
105
|
name: thor
|
120
106
|
requirement: !ruby/object:Gem::Requirement
|
@@ -135,28 +121,28 @@ dependencies:
|
|
135
121
|
requirements:
|
136
122
|
- - "~>"
|
137
123
|
- !ruby/object:Gem::Version
|
138
|
-
version: '
|
124
|
+
version: '8.0'
|
139
125
|
type: :runtime
|
140
126
|
prerelease: false
|
141
127
|
version_requirements: !ruby/object:Gem::Requirement
|
142
128
|
requirements:
|
143
129
|
- - "~>"
|
144
130
|
- !ruby/object:Gem::Version
|
145
|
-
version: '
|
131
|
+
version: '8.0'
|
146
132
|
- !ruby/object:Gem::Dependency
|
147
133
|
name: versionaire
|
148
134
|
requirement: !ruby/object:Gem::Requirement
|
149
135
|
requirements:
|
150
136
|
- - "~>"
|
151
137
|
- !ruby/object:Gem::Version
|
152
|
-
version: '
|
138
|
+
version: '7.0'
|
153
139
|
type: :runtime
|
154
140
|
prerelease: false
|
155
141
|
version_requirements: !ruby/object:Gem::Requirement
|
156
142
|
requirements:
|
157
143
|
- - "~>"
|
158
144
|
- !ruby/object:Gem::Version
|
159
|
-
version: '
|
145
|
+
version: '7.0'
|
160
146
|
- !ruby/object:Gem::Dependency
|
161
147
|
name: awesome_print
|
162
148
|
requirement: !ruby/object:Gem::Requirement
|
@@ -213,34 +199,20 @@ dependencies:
|
|
213
199
|
- - "~>"
|
214
200
|
- !ruby/object:Gem::Version
|
215
201
|
version: '0.2'
|
216
|
-
- !ruby/object:Gem::Dependency
|
217
|
-
name: codeclimate-test-reporter
|
218
|
-
requirement: !ruby/object:Gem::Requirement
|
219
|
-
requirements:
|
220
|
-
- - "~>"
|
221
|
-
- !ruby/object:Gem::Version
|
222
|
-
version: '1.0'
|
223
|
-
type: :development
|
224
|
-
prerelease: false
|
225
|
-
version_requirements: !ruby/object:Gem::Requirement
|
226
|
-
requirements:
|
227
|
-
- - "~>"
|
228
|
-
- !ruby/object:Gem::Version
|
229
|
-
version: '1.0'
|
230
202
|
- !ruby/object:Gem::Dependency
|
231
203
|
name: git-cop
|
232
204
|
requirement: !ruby/object:Gem::Requirement
|
233
205
|
requirements:
|
234
206
|
- - "~>"
|
235
207
|
- !ruby/object:Gem::Version
|
236
|
-
version: '
|
208
|
+
version: '3.0'
|
237
209
|
type: :development
|
238
210
|
prerelease: false
|
239
211
|
version_requirements: !ruby/object:Gem::Requirement
|
240
212
|
requirements:
|
241
213
|
- - "~>"
|
242
214
|
- !ruby/object:Gem::Version
|
243
|
-
version: '
|
215
|
+
version: '3.0'
|
244
216
|
- !ruby/object:Gem::Dependency
|
245
217
|
name: guard-rspec
|
246
218
|
requirement: !ruby/object:Gem::Requirement
|
@@ -353,6 +325,20 @@ dependencies:
|
|
353
325
|
- - "~>"
|
354
326
|
- !ruby/object:Gem::Version
|
355
327
|
version: '1.30'
|
328
|
+
- !ruby/object:Gem::Dependency
|
329
|
+
name: simplecov
|
330
|
+
requirement: !ruby/object:Gem::Requirement
|
331
|
+
requirements:
|
332
|
+
- - "~>"
|
333
|
+
- !ruby/object:Gem::Version
|
334
|
+
version: '0.13'
|
335
|
+
type: :development
|
336
|
+
prerelease: false
|
337
|
+
version_requirements: !ruby/object:Gem::Requirement
|
338
|
+
requirements:
|
339
|
+
- - "~>"
|
340
|
+
- !ruby/object:Gem::Version
|
341
|
+
version: '0.13'
|
356
342
|
- !ruby/object:Gem::Dependency
|
357
343
|
name: wirb
|
358
344
|
requirement: !ruby/object:Gem::Requirement
|
@@ -466,15 +452,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
466
452
|
requirements:
|
467
453
|
- - "~>"
|
468
454
|
- !ruby/object:Gem::Version
|
469
|
-
version: '2.
|
455
|
+
version: '2.6'
|
470
456
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
471
457
|
requirements:
|
472
458
|
- - ">="
|
473
459
|
- !ruby/object:Gem::Version
|
474
460
|
version: '0'
|
475
461
|
requirements: []
|
476
|
-
|
477
|
-
rubygems_version: 2.7.8
|
462
|
+
rubygems_version: 3.0.2
|
478
463
|
signing_key:
|
479
464
|
specification_version: 4
|
480
465
|
summary: A command line interface for smithing new Ruby gems.
|
metadata.gz.sig
CHANGED
Binary file
|