gemsmith 13.4.0 → 13.5.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 +2 -5
- data/lib/gemsmith/credentials.rb +4 -2
- data/lib/gemsmith/generators/documentation.rb +1 -1
- data/lib/gemsmith/generators/git.rb +11 -8
- data/lib/gemsmith/identity.rb +5 -1
- data/lib/gemsmith/rake/builder.rb +3 -2
- data/lib/gemsmith/rake/publisher.rb +10 -9
- data/lib/gemsmith/templates/%gem_name%/%gem_name%.gemspec.tt +9 -9
- data/lib/gemsmith/templates/%gem_name%/CONTRIBUTING.md.tt +9 -9
- data/lib/gemsmith/templates/%gem_name%/spec/support/shared_contexts/temp_dir.rb.tt +1 -1
- metadata +26 -26
- metadata.gz.sig +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8a284ae46f24d78cb43736846f78d8686456c78db3a77ecac2be8ef7d7074b57
|
4
|
+
data.tar.gz: 110c5c24a8dcce5f9135e566f1e00d6495a9114352b1575857db1838d2654c93
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1fc53dc38de50da902de0a77b8507e33507aaf960c9c8add742cfae842b492547159a603d97e405a02ef0e5d1e4f10aa4609a21f17abb5b486351f54e9db215f
|
7
|
+
data.tar.gz: a57a88d5c1392d4601b619b204363c745877547afd2f3c1234f7c969636bb724fd07fdb20f045fc1bff5af7c1e85ca288a3b7a2c2598cd8b088586b0f480639e
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/README.md
CHANGED
@@ -286,11 +286,8 @@ To create a certificate for your gems, run the following:
|
|
286
286
|
The resulting `*.pem` key files can be referenced via the `:private_key:` and `:public_key:` keys
|
287
287
|
within the `~/.gemsmithrc` file.
|
288
288
|
|
289
|
-
To learn more about gem certificates, read
|
290
|
-
|
291
|
-
- [RubyGems](http://guides.rubygems.org/security/#building_gems)
|
292
|
-
- [A Practical Guide to Using Signed Ruby Gems - Part 1: Bundler](http://blog.meldium.com/home/2013/3/3/signed-rubygems-part)
|
293
|
-
- [A Practical Guide to Using Signed Ruby Gems - Part 2: Heroku](http://blog.meldium.com/home/2013/3/6/signed-gems-on-heroku)
|
289
|
+
To learn more about gem certificates, read about RubyGems
|
290
|
+
[Security](http://guides.rubygems.org/security).
|
294
291
|
|
295
292
|
## Private Gem Servers
|
296
293
|
|
data/lib/gemsmith/credentials.rb
CHANGED
@@ -29,8 +29,10 @@ module Gemsmith
|
|
29
29
|
end
|
30
30
|
|
31
31
|
def authenticator
|
32
|
-
|
33
|
-
|
32
|
+
self.class
|
33
|
+
.authenticators
|
34
|
+
.find { |auth| auth.url.include? url }
|
35
|
+
.then { |selected| selected || Authenticators::Basic }
|
34
36
|
end
|
35
37
|
|
36
38
|
def value
|
@@ -8,22 +8,25 @@ module Gemsmith
|
|
8
8
|
template "%gem_name%/.gitignore.tt"
|
9
9
|
end
|
10
10
|
|
11
|
-
# :reek:TooManyStatements
|
12
11
|
def create_repository
|
13
|
-
|
14
|
-
|
12
|
+
create_commit "Added gem skeleton.",
|
13
|
+
"Built with [#{Identity.label}](#{Identity.url}) #{Identity.version}."
|
14
|
+
end
|
15
|
+
|
16
|
+
def run
|
17
|
+
create_ignore_file
|
18
|
+
create_repository
|
19
|
+
end
|
15
20
|
|
21
|
+
private
|
22
|
+
|
23
|
+
def create_commit subject, body
|
16
24
|
Dir.chdir gem_root do
|
17
25
|
`git init`
|
18
26
|
`git add .`
|
19
27
|
`git commit --all --no-verify --message "#{subject}" --message "#{body}"`
|
20
28
|
end
|
21
29
|
end
|
22
|
-
|
23
|
-
def run
|
24
|
-
create_ignore_file
|
25
|
-
create_repository
|
26
|
-
end
|
27
30
|
end
|
28
31
|
end
|
29
32
|
end
|
data/lib/gemsmith/identity.rb
CHANGED
@@ -33,16 +33,13 @@ module Gemsmith
|
|
33
33
|
end
|
34
34
|
# rubocop:enable Metrics/ParameterLists
|
35
35
|
|
36
|
-
# rubocop:disable Metrics/AbcSize
|
37
36
|
def push
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
process_push status
|
37
|
+
credentials.new(key: gem_spec.allowed_push_key.to_sym, url: gem_host)
|
38
|
+
.tap(&:create)
|
39
|
+
.then { |creds| %(--key "#{translate_key creds.key}" --host "#{gem_host}") }
|
40
|
+
.then { |options| execute_push options }
|
41
|
+
.then { |status| output_push status }
|
44
42
|
end
|
45
|
-
# rubocop:enable Metrics/AbcSize
|
46
43
|
|
47
44
|
def publish
|
48
45
|
publisher.publish gem_spec.version, sign: signed?
|
@@ -67,7 +64,11 @@ module Gemsmith
|
|
67
64
|
key == credentials::DEFAULT_KEY ? :rubygems : key
|
68
65
|
end
|
69
66
|
|
70
|
-
def
|
67
|
+
def execute_push options
|
68
|
+
kernel.system %(gem push "pkg/#{gem_spec.package_file_name}" #{options})
|
69
|
+
end
|
70
|
+
|
71
|
+
def output_push status
|
71
72
|
package = gem_spec.package_file_name
|
72
73
|
|
73
74
|
if status
|
@@ -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", "~>
|
30
|
+
spec.add_dependency "runcom", "~> 5.0"
|
31
31
|
spec.add_dependency "thor", "~> 0.20"
|
32
32
|
<%- end -%>
|
33
33
|
<%- if config.dig(:generate, :bundler_audit) -%>
|
@@ -35,31 +35,31 @@ 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.
|
38
|
+
spec.add_development_dependency "git-cop", "~> 3.5"
|
39
39
|
<%- end -%>
|
40
40
|
<%- if config.dig(:generate, :guard) -%>
|
41
41
|
spec.add_development_dependency "guard-rspec", "~> 4.7"
|
42
42
|
<%- end -%>
|
43
43
|
<%- if config.dig(:generate, :pry) -%>
|
44
|
-
spec.add_development_dependency "pry", "~> 0.
|
45
|
-
spec.add_development_dependency "pry-byebug", "~> 3.
|
44
|
+
spec.add_development_dependency "pry", "~> 0.12"
|
45
|
+
spec.add_development_dependency "pry-byebug", "~> 3.7"
|
46
46
|
<%- end -%>
|
47
47
|
spec.add_development_dependency "rake", "~> 12.3"
|
48
48
|
<%- if config.dig(:generate, :reek) -%>
|
49
|
-
spec.add_development_dependency "reek", "~> 5.
|
49
|
+
spec.add_development_dependency "reek", "~> 5.4"
|
50
50
|
<%- end -%>
|
51
51
|
<%- if config.dig(:generate, :rspec) -%>
|
52
52
|
spec.add_development_dependency "<%= config.dig(:generate, :engine) ? "rspec-rails" : "rspec" %>", "~> 3.8"
|
53
53
|
<%- end -%>
|
54
54
|
<%- if config.dig(:generate, :rubocop) -%>
|
55
|
-
spec.add_development_dependency "rubocop", "~> 0.
|
56
|
-
spec.add_development_dependency "rubocop-performance", "~> 1.
|
55
|
+
spec.add_development_dependency "rubocop", "~> 0.69"
|
56
|
+
spec.add_development_dependency "rubocop-performance", "~> 1.3"
|
57
57
|
<%- end -%>
|
58
58
|
<%- if config.dig(:generate, :rubocop) && config.dig(:generate, :rspec) -%>
|
59
|
-
spec.add_development_dependency "rubocop-rspec", "~> 1.
|
59
|
+
spec.add_development_dependency "rubocop-rspec", "~> 1.33"
|
60
60
|
<%- end -%>
|
61
61
|
<%- if config.dig(:generate, :code_climate) -%>
|
62
|
-
spec.add_development_dependency "simplecov", "~> 0.
|
62
|
+
spec.add_development_dependency "simplecov", "~> 0.16"
|
63
63
|
<%- end -%>
|
64
64
|
|
65
65
|
<%- if config.dig(:generate, :engine) -%>
|
@@ -1,22 +1,22 @@
|
|
1
1
|
# Contributing
|
2
2
|
|
3
3
|
Thanks for taking an interest in this open source project. Your support and involvement is greatly
|
4
|
-
appreciated. The following
|
4
|
+
appreciated. The following details what you need to know in order to contribute.
|
5
5
|
|
6
6
|
## Code
|
7
7
|
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
8
|
+
1. Read the project README before starting.
|
9
|
+
1. Fork and clone the `master` branch of this repository locally.
|
10
|
+
1. Ensure there are no local setup, usage, and/or test issues.
|
11
|
+
1. Add tests for new functionality and ensure they pass.
|
12
|
+
1. Submit a pull request, follow the instructions provided, and ensure the build passes.
|
13
13
|
|
14
14
|
## Issues
|
15
15
|
|
16
|
-
|
17
|
-
|
16
|
+
- Submit an issue via the GitHub Issues tab (assuming one does not already exist) and follow the
|
17
|
+
instructions provided.
|
18
18
|
|
19
19
|
## Feedback
|
20
20
|
|
21
21
|
- Expect a response within one to three business days.
|
22
|
-
- Changes, alternatives, and/or improvements
|
22
|
+
- Changes, alternatives, and/or improvements may be suggested upon review.
|
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.
|
4
|
+
version: 13.5.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-
|
31
|
+
date: 2019-06-01 00:00:00.000000000 Z
|
32
32
|
dependencies:
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: milestoner
|
@@ -36,28 +36,28 @@ dependencies:
|
|
36
36
|
requirements:
|
37
37
|
- - "~>"
|
38
38
|
- !ruby/object:Gem::Version
|
39
|
-
version: '9.
|
39
|
+
version: '9.3'
|
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.
|
46
|
+
version: '9.3'
|
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.
|
53
|
+
version: '6.3'
|
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.
|
60
|
+
version: '6.3'
|
61
61
|
- !ruby/object:Gem::Dependency
|
62
62
|
name: refinements
|
63
63
|
requirement: !ruby/object:Gem::Requirement
|
@@ -78,28 +78,28 @@ dependencies:
|
|
78
78
|
requirements:
|
79
79
|
- - "~>"
|
80
80
|
- !ruby/object:Gem::Version
|
81
|
-
version: '0.
|
81
|
+
version: '0.69'
|
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.
|
88
|
+
version: '0.69'
|
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: '
|
95
|
+
version: '5.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: '
|
102
|
+
version: '5.0'
|
103
103
|
- !ruby/object:Gem::Dependency
|
104
104
|
name: thor
|
105
105
|
requirement: !ruby/object:Gem::Requirement
|
@@ -120,14 +120,14 @@ dependencies:
|
|
120
120
|
requirements:
|
121
121
|
- - "~>"
|
122
122
|
- !ruby/object:Gem::Version
|
123
|
-
version: '
|
123
|
+
version: '9.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: '
|
130
|
+
version: '9.0'
|
131
131
|
- !ruby/object:Gem::Dependency
|
132
132
|
name: versionaire
|
133
133
|
requirement: !ruby/object:Gem::Requirement
|
@@ -204,14 +204,14 @@ dependencies:
|
|
204
204
|
requirements:
|
205
205
|
- - "~>"
|
206
206
|
- !ruby/object:Gem::Version
|
207
|
-
version: '3.
|
207
|
+
version: '3.5'
|
208
208
|
type: :development
|
209
209
|
prerelease: false
|
210
210
|
version_requirements: !ruby/object:Gem::Requirement
|
211
211
|
requirements:
|
212
212
|
- - "~>"
|
213
213
|
- !ruby/object:Gem::Version
|
214
|
-
version: '3.
|
214
|
+
version: '3.5'
|
215
215
|
- !ruby/object:Gem::Dependency
|
216
216
|
name: guard-rspec
|
217
217
|
requirement: !ruby/object:Gem::Requirement
|
@@ -246,28 +246,28 @@ dependencies:
|
|
246
246
|
requirements:
|
247
247
|
- - "~>"
|
248
248
|
- !ruby/object:Gem::Version
|
249
|
-
version: '0.
|
249
|
+
version: '0.12'
|
250
250
|
type: :development
|
251
251
|
prerelease: false
|
252
252
|
version_requirements: !ruby/object:Gem::Requirement
|
253
253
|
requirements:
|
254
254
|
- - "~>"
|
255
255
|
- !ruby/object:Gem::Version
|
256
|
-
version: '0.
|
256
|
+
version: '0.12'
|
257
257
|
- !ruby/object:Gem::Dependency
|
258
258
|
name: pry-byebug
|
259
259
|
requirement: !ruby/object:Gem::Requirement
|
260
260
|
requirements:
|
261
261
|
- - "~>"
|
262
262
|
- !ruby/object:Gem::Version
|
263
|
-
version: '3.
|
263
|
+
version: '3.7'
|
264
264
|
type: :development
|
265
265
|
prerelease: false
|
266
266
|
version_requirements: !ruby/object:Gem::Requirement
|
267
267
|
requirements:
|
268
268
|
- - "~>"
|
269
269
|
- !ruby/object:Gem::Version
|
270
|
-
version: '3.
|
270
|
+
version: '3.7'
|
271
271
|
- !ruby/object:Gem::Dependency
|
272
272
|
name: rake
|
273
273
|
requirement: !ruby/object:Gem::Requirement
|
@@ -288,14 +288,14 @@ dependencies:
|
|
288
288
|
requirements:
|
289
289
|
- - "~>"
|
290
290
|
- !ruby/object:Gem::Version
|
291
|
-
version: '5.
|
291
|
+
version: '5.4'
|
292
292
|
type: :development
|
293
293
|
prerelease: false
|
294
294
|
version_requirements: !ruby/object:Gem::Requirement
|
295
295
|
requirements:
|
296
296
|
- - "~>"
|
297
297
|
- !ruby/object:Gem::Version
|
298
|
-
version: '5.
|
298
|
+
version: '5.4'
|
299
299
|
- !ruby/object:Gem::Dependency
|
300
300
|
name: rspec
|
301
301
|
requirement: !ruby/object:Gem::Requirement
|
@@ -316,42 +316,42 @@ dependencies:
|
|
316
316
|
requirements:
|
317
317
|
- - "~>"
|
318
318
|
- !ruby/object:Gem::Version
|
319
|
-
version: '1.
|
319
|
+
version: '1.3'
|
320
320
|
type: :development
|
321
321
|
prerelease: false
|
322
322
|
version_requirements: !ruby/object:Gem::Requirement
|
323
323
|
requirements:
|
324
324
|
- - "~>"
|
325
325
|
- !ruby/object:Gem::Version
|
326
|
-
version: '1.
|
326
|
+
version: '1.3'
|
327
327
|
- !ruby/object:Gem::Dependency
|
328
328
|
name: rubocop-rspec
|
329
329
|
requirement: !ruby/object:Gem::Requirement
|
330
330
|
requirements:
|
331
331
|
- - "~>"
|
332
332
|
- !ruby/object:Gem::Version
|
333
|
-
version: '1.
|
333
|
+
version: '1.33'
|
334
334
|
type: :development
|
335
335
|
prerelease: false
|
336
336
|
version_requirements: !ruby/object:Gem::Requirement
|
337
337
|
requirements:
|
338
338
|
- - "~>"
|
339
339
|
- !ruby/object:Gem::Version
|
340
|
-
version: '1.
|
340
|
+
version: '1.33'
|
341
341
|
- !ruby/object:Gem::Dependency
|
342
342
|
name: simplecov
|
343
343
|
requirement: !ruby/object:Gem::Requirement
|
344
344
|
requirements:
|
345
345
|
- - "~>"
|
346
346
|
- !ruby/object:Gem::Version
|
347
|
-
version: '0.
|
347
|
+
version: '0.16'
|
348
348
|
type: :development
|
349
349
|
prerelease: false
|
350
350
|
version_requirements: !ruby/object:Gem::Requirement
|
351
351
|
requirements:
|
352
352
|
- - "~>"
|
353
353
|
- !ruby/object:Gem::Version
|
354
|
-
version: '0.
|
354
|
+
version: '0.16'
|
355
355
|
- !ruby/object:Gem::Dependency
|
356
356
|
name: wirb
|
357
357
|
requirement: !ruby/object:Gem::Requirement
|
metadata.gz.sig
CHANGED
@@ -1,2 +1,3 @@
|
|
1
|
-
|
2
|
-
|
1
|
+
-������5� �T�?� ��[���nEs*�'|}�&���YDE.��/����>�l����V�o�?)��]��i���b���"p�Yu&Dז2C��~c�X�愘cw �9%�>h�
|
2
|
+
Y�3�qsd*&����@dvz�R�A�E�q]$��Q�#R�HǜF���������Ѻ��m�ي�duw�&쐸���b
|
3
|
+
��B��d{�o7�֧��"$�TQ������a��@P!ڌd��(I���r�\tO7�=;y�l=
|