gemsmith 13.3.0 → 13.4.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: 1706beece0273f5a25c341aedb57a48ef705ac09e5b81279b5df5d7a7dc49de5
4
- data.tar.gz: 8e4dbd6609511519e36b335b0b9920166e00eaa9794e2a5df106492631983f9a
3
+ metadata.gz: 42b3f07ddb0b759f1a2f42532a114aa99a1ac9da58b867affc203f418456b5d7
4
+ data.tar.gz: 3809dca94e0f528e73b941b804b85ae48e974259e173b9f8787ffd48f51c8e46
5
5
  SHA512:
6
- metadata.gz: '0149bd24188a2e38c2c41bdd3f1c44a1ed7023b07aeedd94999266d76979130d9ca6ed387f3baac9ead3d5c8494990217bfa37d23faeef8a64ff776ce709f440'
7
- data.tar.gz: 1dcd45ba9d7746cf542e185681aea4e9b33ad20e100e7645d52f9e5a3ee45219c2602fb75d1eb695aded42dc6856b59ce27195930314c0ba0caf5b1d2b95e5ee
6
+ metadata.gz: df4bdf715880b30227d320ef0c9f41033eaf59a73901cfd67d26071d3cbe9c46f33ce1a721083c9cacdb177ccf1e5c38e9e3d8bc5e32e2ad245c00bdb73b0ca2
7
+ data.tar.gz: f63bb2ea6c8ef9a3ecdc27d0160f908c21ff38955ca59bbffc73c0f5415cd63b001aa2808746a10efe001ef1c2bda2ccde18024696678fdce068767f7f3d527b
checksums.yaml.gz.sig CHANGED
Binary file
data/README.md CHANGED
@@ -1,3 +1,7 @@
1
+ <p align="center">
2
+ <img src="gemsmith.png" alt="Gemsmith Icon"/>
3
+ </p>
4
+
1
5
  # Gemsmith
2
6
 
3
7
  [![Gem Version](https://badge.fury.io/rb/gemsmith.svg)](http://badge.fury.io/rb/gemsmith)
data/lib/gemsmith/cli.rb CHANGED
@@ -28,50 +28,51 @@ module Gemsmith
28
28
 
29
29
  # rubocop:disable Metrics/MethodLength
30
30
  def self.configuration
31
- Runcom::Config.new Identity.name, defaults: {
32
- year: Time.now.year,
33
- github_user: Git.github_user,
34
- gem: {
35
- label: "Undefined",
36
- name: "undefined",
37
- path: "undefined",
38
- class: "Undefined",
39
- platform: "Gem::Platform::RUBY",
40
- url: Git.github_url("undefined"),
41
- license: "MIT"
42
- },
43
- author: {
44
- name: Git.config_value("user.name"),
45
- email: Git.config_value("user.email"),
46
- url: ""
47
- },
48
- organization: {
49
- name: "",
50
- url: ""
51
- },
52
- versions: {
53
- ruby: RUBY_VERSION,
54
- rails: "5.1"
55
- },
56
- generate: {
57
- bundler_audit: true,
58
- circle_ci: false,
59
- cli: false,
60
- code_climate: false,
61
- git_cop: true,
62
- git_hub: true,
63
- guard: true,
64
- pry: true,
65
- engine: false,
66
- reek: true,
67
- rspec: true,
68
- rubocop: true,
69
- security: false
70
- },
71
- publish: {
72
- sign: false
73
- }
74
- }
31
+ Runcom::Config.new Identity.name,
32
+ defaults: {
33
+ year: Time.now.year,
34
+ github_user: Git.github_user,
35
+ gem: {
36
+ label: "Undefined",
37
+ name: "undefined",
38
+ path: "undefined",
39
+ class: "Undefined",
40
+ platform: "Gem::Platform::RUBY",
41
+ url: Git.github_url("undefined"),
42
+ license: "MIT"
43
+ },
44
+ author: {
45
+ name: Git.config_value("user.name"),
46
+ email: Git.config_value("user.email"),
47
+ url: ""
48
+ },
49
+ organization: {
50
+ name: "",
51
+ url: ""
52
+ },
53
+ versions: {
54
+ ruby: RUBY_VERSION,
55
+ rails: "5.1"
56
+ },
57
+ generate: {
58
+ bundler_audit: true,
59
+ circle_ci: false,
60
+ cli: false,
61
+ code_climate: false,
62
+ git_cop: true,
63
+ git_hub: true,
64
+ guard: true,
65
+ pry: true,
66
+ engine: false,
67
+ reek: true,
68
+ rspec: true,
69
+ rubocop: true,
70
+ security: false
71
+ },
72
+ publish: {
73
+ sign: false
74
+ }
75
+ }
75
76
  end
76
77
  # rubocop:enable Metrics/MethodLength
77
78
 
@@ -193,11 +194,13 @@ module Gemsmith
193
194
  method_option :edit,
194
195
  aliases: "-e",
195
196
  desc: "Edit gem configuration.",
196
- type: :boolean, default: false
197
+ type: :boolean,
198
+ default: false
197
199
  method_option :info,
198
200
  aliases: "-i",
199
201
  desc: "Print gem configuration.",
200
- type: :boolean, default: false
202
+ type: :boolean,
203
+ default: false
201
204
  def config
202
205
  path = configuration.path
203
206
 
@@ -12,7 +12,7 @@ module Gemsmith
12
12
  end
13
13
 
14
14
  def self.version
15
- "13.3.0"
15
+ "13.4.0"
16
16
  end
17
17
 
18
18
  def self.version_label
@@ -52,7 +52,8 @@ Gem::Specification.new do |spec|
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.63"
55
+ spec.add_development_dependency "rubocop", "~> 0.67"
56
+ spec.add_development_dependency "rubocop-performance", "~> 1.1"
56
57
  <%- end -%>
57
58
  <%- if config.dig(:generate, :rubocop) && config.dig(:generate, :rspec) -%>
58
59
  spec.add_development_dependency "rubocop-rspec", "~> 1.30"
@@ -1,10 +1,11 @@
1
1
  inherit_from:
2
- - https://raw.githubusercontent.com/bkuhlmann/code_quality/3.2.0/configurations/rubocop/ruby.yml
2
+ - https://raw.githubusercontent.com/bkuhlmann/code_quality/4.0.0/configurations/rubocop/ruby.yml
3
+ - https://raw.githubusercontent.com/bkuhlmann/code_quality/4.0.0/configurations/rubocop/performance.yml
3
4
  <%- if config.dig(:generate, :rspec) -%>
4
- - https://raw.githubusercontent.com/bkuhlmann/code_quality/3.2.0/configurations/rubocop/rspec.yml
5
+ - https://raw.githubusercontent.com/bkuhlmann/code_quality/4.0.0/configurations/rubocop/rspec.yml
5
6
  <%- end -%>
6
7
  <%- if config.dig(:generate, :engine) -%>
7
- - https://raw.githubusercontent.com/bkuhlmann/code_quality/3.2.0/configurations/rubocop/rails.yml
8
+ - https://raw.githubusercontent.com/bkuhlmann/code_quality/4.0.0/configurations/rubocop/rails.yml
8
9
  <%- end -%>
9
10
 
10
11
  <%- if config.dig(:generate, :cli) -%>
@@ -1,3 +1,7 @@
1
+ <p align="center">
2
+ <img src="<%= config.dig(:gem, :name) %>.png" alt="<%= config.dig(:gem, :label) %> Icon"/>
3
+ </p>
4
+
1
5
  # <%= config.dig(:gem, :label) %>
2
6
 
3
7
  [![Gem Version](https://badge.fury.io/rb/<%= config.dig(:gem, :name) %>.svg)](http://badge.fury.io/rb/<%= config.dig(:gem, :name) %>)
@@ -25,18 +25,20 @@ require "runcom"
25
25
  method_option :edit,
26
26
  aliases: "-e",
27
27
  desc: "Edit gem configuration.",
28
- type: :boolean, default: false
28
+ type: :boolean,
29
+ default: false
29
30
  method_option :info,
30
31
  aliases: "-i",
31
32
  desc: "Print gem configuration.",
32
- type: :boolean, default: false
33
+ type: :boolean,
34
+ default: false
33
35
  def config
34
36
  path = configuration.path
35
37
 
36
38
  if options.edit? then `#{ENV["EDITOR"]} #{path}`
37
39
  elsif options.info?
38
40
  path ? say(path) : say("Configuration doesn't exist.")
39
- else help(:config)
41
+ else help :config
40
42
  end
41
43
  end
42
44
 
@@ -20,19 +20,21 @@ end
20
20
 
21
21
  RSpec.configure do |config|
22
22
  config.color = true
23
- config.order = "random"
24
- config.formatter = ENV["CI"] == "true" ? :progress : :documentation
25
23
  config.disable_monkey_patching!
24
+ config.example_status_persistence_file_path = "./tmp/rspec-examples.txt"
26
25
  config.filter_run_when_matching :focus
27
- config.example_status_persistence_file_path = "./tmp/rspec-status.txt"
26
+ config.formatter = ENV["CI"] == "true" ? :progress : :documentation
27
+ config.order = :random
28
28
  config.shared_context_metadata_behavior = :apply_to_host_groups
29
-
30
- config.mock_with :rspec do |mocks|
31
- mocks.verify_partial_doubles = true
32
- end
29
+ config.warnings = true
33
30
 
34
31
  config.expect_with :rspec do |expectations|
35
32
  expectations.syntax = :expect
36
33
  expectations.include_chain_clauses_in_custom_matcher_descriptions = true
37
34
  end
35
+
36
+ config.mock_with :rspec do |mocks|
37
+ mocks.verify_doubled_constant_names = true
38
+ mocks.verify_partial_doubles = true
39
+ end
38
40
  end
data.tar.gz.sig CHANGED
@@ -1,2 +1,2 @@
1
- 5Eݰ ��0d����|�9P:���B,x>[� �g:��k8I����������gH!%�h�dtX������*��p� 0�_H��#1�9�Q�۟*��"��Et(�qj�Ձ��`՚��d��/�A]�Ws`5�,�{~(��M]�8"��Owỹ�}? �r�<i�Ѷ"��v�'��-��:ڌ��h4���w͜�51.��.��Bd�
2
- aw�@?�������ID������Bp=�dyMx"g`�i��y
1
+ ���v㘷��\�=��uƑ�k�)��������/g-=�ҙۿ��+�'���?�OfdCF�8�Խ�¤,���D
2
+ u���f"pyj�0��";L
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.3.0
4
+ version: 13.4.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-04-01 00:00:00.000000000 Z
31
+ date: 2019-05-02 00:00:00.000000000 Z
32
32
  dependencies:
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: milestoner
@@ -78,14 +78,14 @@ dependencies:
78
78
  requirements:
79
79
  - - "~>"
80
80
  - !ruby/object:Gem::Version
81
- version: '0.63'
81
+ version: '0.67'
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.63'
88
+ version: '0.67'
89
89
  - !ruby/object:Gem::Dependency
90
90
  name: runcom
91
91
  requirement: !ruby/object:Gem::Requirement
@@ -310,6 +310,20 @@ dependencies:
310
310
  - - "~>"
311
311
  - !ruby/object:Gem::Version
312
312
  version: '3.8'
313
+ - !ruby/object:Gem::Dependency
314
+ name: rubocop-performance
315
+ requirement: !ruby/object:Gem::Requirement
316
+ requirements:
317
+ - - "~>"
318
+ - !ruby/object:Gem::Version
319
+ version: '1.1'
320
+ type: :development
321
+ prerelease: false
322
+ version_requirements: !ruby/object:Gem::Requirement
323
+ requirements:
324
+ - - "~>"
325
+ - !ruby/object:Gem::Version
326
+ version: '1.1'
313
327
  - !ruby/object:Gem::Dependency
314
328
  name: rubocop-rspec
315
329
  requirement: !ruby/object:Gem::Requirement
metadata.gz.sig CHANGED
Binary file