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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 42b3f07ddb0b759f1a2f42532a114aa99a1ac9da58b867affc203f418456b5d7
4
- data.tar.gz: 3809dca94e0f528e73b941b804b85ae48e974259e173b9f8787ffd48f51c8e46
3
+ metadata.gz: 8a284ae46f24d78cb43736846f78d8686456c78db3a77ecac2be8ef7d7074b57
4
+ data.tar.gz: 110c5c24a8dcce5f9135e566f1e00d6495a9114352b1575857db1838d2654c93
5
5
  SHA512:
6
- metadata.gz: df4bdf715880b30227d320ef0c9f41033eaf59a73901cfd67d26071d3cbe9c46f33ce1a721083c9cacdb177ccf1e5c38e9e3d8bc5e32e2ad245c00bdb73b0ca2
7
- data.tar.gz: f63bb2ea6c8ef9a3ecdc27d0160f908c21ff38955ca59bbffc73c0f5415cd63b001aa2808746a10efe001ef1c2bda2ccde18024696678fdce068767f7f3d527b
6
+ metadata.gz: 1fc53dc38de50da902de0a77b8507e33507aaf960c9c8add742cfae842b492547159a603d97e405a02ef0e5d1e4f10aa4609a21f17abb5b486351f54e9db215f
7
+ data.tar.gz: a57a88d5c1392d4601b619b204363c745877547afd2f3c1234f7c969636bb724fd07fdb20f045fc1bff5af7c1e85ca288a3b7a2c2598cd8b088586b0f480639e
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 the following:
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
 
@@ -29,8 +29,10 @@ module Gemsmith
29
29
  end
30
30
 
31
31
  def authenticator
32
- selected = self.class.authenticators.find { |auth| auth.url.include? url }
33
- selected || Authenticators::Basic
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
@@ -16,7 +16,7 @@ module Gemsmith
16
16
 
17
17
  def update_readme
18
18
  readme = File.join gem_root, "README.md"
19
- Tocer::Writer.new(readme).write
19
+ Tocer::Writer.new(readme).call
20
20
  end
21
21
 
22
22
  def run
@@ -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
- subject = "Added Gemsmith skeleton."
14
- body = "Built with #{Identity.version_label}."
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
@@ -12,11 +12,15 @@ module Gemsmith
12
12
  end
13
13
 
14
14
  def self.version
15
- "13.4.0"
15
+ "13.5.0"
16
16
  end
17
17
 
18
18
  def self.version_label
19
19
  "#{label} #{version}"
20
20
  end
21
+
22
+ def self.url
23
+ "https://github.com/bkuhlmann/gemsmith"
24
+ end
21
25
  end
22
26
  end
@@ -15,8 +15,9 @@ module Gemsmith
15
15
  end
16
16
 
17
17
  def toc
18
- readme = File.join Dir.pwd, "README.md"
19
- tocer.new(readme).write
18
+ File.join(Dir.pwd, "README.md")
19
+ .then { |readme| tocer.new(readme).call }
20
+
20
21
  shell.confirm "Updated gem table of contents."
21
22
  end
22
23
 
@@ -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
- creds = credentials.new key: gem_spec.allowed_push_key.to_sym, url: gem_host
39
- creds.create
40
-
41
- options = %(--key "#{translate_key creds.key}" --host "#{gem_host}")
42
- status = kernel.system %(gem push "pkg/#{gem_spec.package_file_name}" #{options})
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 process_push status
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", "~> 4.0"
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.0"
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.10"
45
- spec.add_development_dependency "pry-byebug", "~> 3.5"
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.0"
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.67"
56
- spec.add_development_dependency "rubocop-performance", "~> 1.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.30"
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.13"
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 sections detail what you need to know in order to contribute.
4
+ appreciated. The following details what you need to know in order to contribute.
5
5
 
6
6
  ## Code
7
7
 
8
- 0. Read the project README before starting.
9
- 0. Fork the `master` branch of this repository and clone the fork locally.
10
- 0. Ensure there are no setup, usage, and/or test issues.
11
- 0. Add tests for new functionality and ensure they pass.
12
- 0. Submit a pull request, follow the instructions it provides, and ensure the build passes.
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
- 0. Submit an issue via the GitHub Issues tab (assuming one does not
17
- already exist) and follow the instructions it provides.
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 might be suggested upon review.
22
+ - Changes, alternatives, and/or improvements may be suggested upon review.
@@ -1,4 +1,4 @@
1
- RSpec.shared_context "Temporary Directory", :temp_dir do
1
+ RSpec.shared_context "with temporary directory", :temp_dir do
2
2
  let(:temp_dir) { Bundler.root.join "tmp", "rspec" }
3
3
 
4
4
  around do |example|
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.0
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-05-02 00:00:00.000000000 Z
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.0'
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.0'
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.0'
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.0'
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.67'
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.67'
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: '4.0'
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: '4.0'
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: '8.0'
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: '8.0'
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.0'
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.0'
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.10'
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.10'
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.5'
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.5'
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.0'
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.0'
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.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.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.30'
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.30'
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.13'
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.13'
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
- �+1��
2
- ����¥XP4��suK z{���h8z��r_���mw�즊B��^�����Nk,:y8 ���(��h-4����Н�@��cN8E8�:�nh-dx���QtVZ�ё�!idj����*_-���{IditN)�������ڠ�Y?���-Gs4cw
1
+ -������5� �T�?� ��[���nEs*�'|}�&���YDE.��/����>�l����V� o�?)��]��i ���b���"p �Yu&Dז2C��~c�X�愘cw �9%�>h�
2
+ Y3qsd*&����@dvzRAEq]$��Q�#R�HǜF���������Ѻ��m�ي�duw�&쐸���b
3
+ ��B��d{�o7�֧��"$�TQ������a��@P!ڌd��(I���r�\tO7�=;y�l=