rubysmith 5.2.0 → 5.4.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +0 -0
  3. data/exe/rubysmith +1 -1
  4. data/lib/rubysmith/builders/git/commit.rb +1 -1
  5. data/lib/rubysmith/builders/rake.rb +1 -1
  6. data/lib/rubysmith/builders/rspec/helper.rb +1 -0
  7. data/lib/rubysmith/cli/actions/amazing_print.rb +1 -1
  8. data/lib/rubysmith/cli/actions/caliber.rb +1 -1
  9. data/lib/rubysmith/cli/actions/circle_ci.rb +1 -1
  10. data/lib/rubysmith/cli/actions/citation.rb +1 -1
  11. data/lib/rubysmith/cli/actions/community.rb +1 -1
  12. data/lib/rubysmith/cli/actions/conduct.rb +1 -1
  13. data/lib/rubysmith/cli/actions/console.rb +1 -1
  14. data/lib/rubysmith/cli/actions/contributions.rb +1 -1
  15. data/lib/rubysmith/cli/actions/debug.rb +1 -1
  16. data/lib/rubysmith/cli/actions/funding.rb +1 -1
  17. data/lib/rubysmith/cli/actions/git.rb +1 -1
  18. data/lib/rubysmith/cli/actions/git_hub.rb +1 -1
  19. data/lib/rubysmith/cli/actions/git_hub_ci.rb +1 -1
  20. data/lib/rubysmith/cli/actions/git_lint.rb +1 -1
  21. data/lib/rubysmith/cli/actions/guard.rb +1 -1
  22. data/lib/rubysmith/cli/actions/license.rb +1 -1
  23. data/lib/rubysmith/cli/actions/rake.rb +1 -1
  24. data/lib/rubysmith/cli/actions/readme.rb +1 -1
  25. data/lib/rubysmith/cli/actions/reek.rb +1 -1
  26. data/lib/rubysmith/cli/actions/refinements.rb +1 -1
  27. data/lib/rubysmith/cli/actions/rspec.rb +1 -1
  28. data/lib/rubysmith/cli/actions/security.rb +1 -1
  29. data/lib/rubysmith/cli/actions/setup.rb +1 -1
  30. data/lib/rubysmith/cli/actions/simple_cov.rb +1 -1
  31. data/lib/rubysmith/cli/actions/versions.rb +1 -1
  32. data/lib/rubysmith/cli/actions/yard.rb +1 -1
  33. data/lib/rubysmith/cli/actions/zeitwerk.rb +1 -1
  34. data/lib/rubysmith/configuration/model.rb +0 -5
  35. data/lib/rubysmith/templates/%project_name%/Rakefile.erb +1 -1
  36. data/lib/rubysmith/templates/%project_name%/bin/console.erb +1 -1
  37. data/lib/rubysmith/templates/%project_name%/spec/spec_helper.rb.erb +2 -3
  38. data/rubysmith.gemspec +1 -1
  39. data.tar.gz.sig +0 -0
  40. metadata +3 -3
  41. metadata.gz.sig +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cba3bd0c9495f7d9eac9352aaddcbff8697352579b03fc66c34cb476870ca967
4
- data.tar.gz: 5792c9c7a7cc5a6d1265bbd4461acb1195d7e19107dd84b4b8f61d7a68946830
3
+ metadata.gz: 6ca20956e5827addc7ea3c38045c599e3d19ad99ef215a7315ea1eef5466a8f3
4
+ data.tar.gz: 26564d4ba7f197f7e1be21bed743909cf165e1d3d73891a93a44af0fa5594900
5
5
  SHA512:
6
- metadata.gz: 9edc097233d311cd1d5f7978842aa1e97d8ce49f948221c21b7363aa778be090a890e9b8b41e86c65837d6cd0146dcddcd21590148a198acafc56b700abd533b
7
- data.tar.gz: 076e94f6361e25ab206e7ec2528485a34c62a654452dea13919c655803ccae818c53df0166daecc7c960d2e4f40b25b94997af13dd82f8a6af20a3946e63a538
6
+ metadata.gz: 5cc50e74678c032abbc0f2cf9dd1f1a8428e74f07bf270805b8d986976496ffff4f5dd51756f599153ebe7df07ccaef29b34ea882f4c132501568ca161c414a2
7
+ data.tar.gz: 653349bb0b747094bb2b66558e592419a6236c753acb547210383e4a89a4f9d3260a6f9c9d3f34030205984454fc79660729c310d8413696e5692bb483fa8280
checksums.yaml.gz.sig CHANGED
Binary file
data/exe/rubysmith CHANGED
@@ -3,4 +3,4 @@
3
3
 
4
4
  require "rubysmith"
5
5
 
6
- Rubysmith::CLI::Shell.new.call ARGV
6
+ Rubysmith::CLI::Shell.new.call
@@ -33,7 +33,7 @@ module Rubysmith
33
33
  attr_reader :configuration, :builder
34
34
 
35
35
  def body
36
- "Generated with [#{specification.label}](#{specification.homepage_url}) " \
36
+ "Generated with link:#{specification.homepage_url}[#{specification.label}] " \
37
37
  "#{specification.version}."
38
38
  end
39
39
 
@@ -39,7 +39,7 @@ module Rubysmith
39
39
  .replace(/\[\s+/, "[")
40
40
  .replace(/\s+\]/, "]")
41
41
  .replace(" ", "")
42
- .replace("task.", " task.")
42
+ .replace("task.options", " task.options")
43
43
  .replace(/\n+(?=require)/, "\n")
44
44
  .replace(/\n{2,}/, "\n\n")
45
45
  end
@@ -21,6 +21,7 @@ module Rubysmith
21
21
 
22
22
  builder.call(configuration.merge(template_path: "%project_name%/spec/spec_helper.rb.erb"))
23
23
  .render
24
+ .replace(/\A\n/, "")
24
25
  .replace("\n\n\n", "\n\n")
25
26
 
26
27
  configuration
@@ -15,7 +15,7 @@ module Rubysmith
15
15
 
16
16
  default { Container[:configuration].build_amazing_print }
17
17
 
18
- def call(value = default) = input.build_amazing_print = value
18
+ def call(value = nil) = input.build_amazing_print = value
19
19
  end
20
20
  end
21
21
  end
@@ -15,7 +15,7 @@ module Rubysmith
15
15
 
16
16
  default { Container[:configuration].build_caliber }
17
17
 
18
- def call(value = default) = input.build_caliber = value
18
+ def call(value = nil) = input.build_caliber = value
19
19
  end
20
20
  end
21
21
  end
@@ -15,7 +15,7 @@ module Rubysmith
15
15
 
16
16
  default { Container[:configuration].build_circle_ci }
17
17
 
18
- def call(value = default) = input.build_circle_ci = value
18
+ def call(value = nil) = input.build_circle_ci = value
19
19
  end
20
20
  end
21
21
  end
@@ -15,7 +15,7 @@ module Rubysmith
15
15
 
16
16
  default { Container[:configuration].build_citation }
17
17
 
18
- def call(value = default) = input.build_citation = value
18
+ def call(value = nil) = input.build_citation = value
19
19
  end
20
20
  end
21
21
  end
@@ -15,7 +15,7 @@ module Rubysmith
15
15
 
16
16
  default { Container[:configuration].build_community }
17
17
 
18
- def call(value = default) = input.build_community = value
18
+ def call(value = nil) = input.build_community = value
19
19
  end
20
20
  end
21
21
  end
@@ -15,7 +15,7 @@ module Rubysmith
15
15
 
16
16
  default { Container[:configuration].build_conduct }
17
17
 
18
- def call(value = default) = input.build_conduct = value
18
+ def call(value = nil) = input.build_conduct = value
19
19
  end
20
20
  end
21
21
  end
@@ -15,7 +15,7 @@ module Rubysmith
15
15
 
16
16
  default { Container[:configuration].build_console }
17
17
 
18
- def call(value = default) = input.build_console = value
18
+ def call(value = nil) = input.build_console = value
19
19
  end
20
20
  end
21
21
  end
@@ -15,7 +15,7 @@ module Rubysmith
15
15
 
16
16
  default { Container[:configuration].build_contributions }
17
17
 
18
- def call(value = default) = input.build_contributions = value
18
+ def call(value = nil) = input.build_contributions = value
19
19
  end
20
20
  end
21
21
  end
@@ -15,7 +15,7 @@ module Rubysmith
15
15
 
16
16
  default { Container[:configuration].build_debug }
17
17
 
18
- def call(value = default) = input.build_debug = value
18
+ def call(value = nil) = input.build_debug = value
19
19
  end
20
20
  end
21
21
  end
@@ -15,7 +15,7 @@ module Rubysmith
15
15
 
16
16
  default { Container[:configuration].build_funding }
17
17
 
18
- def call(value = default) = input.build_funding = value
18
+ def call(value = nil) = input.build_funding = value
19
19
  end
20
20
  end
21
21
  end
@@ -15,7 +15,7 @@ module Rubysmith
15
15
 
16
16
  default { Container[:configuration].build_git }
17
17
 
18
- def call(value = default) = input.build_git = value
18
+ def call(value = nil) = input.build_git = value
19
19
  end
20
20
  end
21
21
  end
@@ -15,7 +15,7 @@ module Rubysmith
15
15
 
16
16
  default { Container[:configuration].build_git_hub }
17
17
 
18
- def call(value = default) = input.build_git_hub = value
18
+ def call(value = nil) = input.build_git_hub = value
19
19
  end
20
20
  end
21
21
  end
@@ -15,7 +15,7 @@ module Rubysmith
15
15
 
16
16
  default { Container[:configuration].build_git_hub_ci }
17
17
 
18
- def call(value = default) = input.build_git_hub_ci = value
18
+ def call(value = nil) = input.build_git_hub_ci = value
19
19
  end
20
20
  end
21
21
  end
@@ -15,7 +15,7 @@ module Rubysmith
15
15
 
16
16
  default { Container[:configuration].build_git_lint }
17
17
 
18
- def call(value = default) = input.build_git_lint = value
18
+ def call(value = nil) = input.build_git_lint = value
19
19
  end
20
20
  end
21
21
  end
@@ -15,7 +15,7 @@ module Rubysmith
15
15
 
16
16
  default { Container[:configuration].build_guard }
17
17
 
18
- def call(value = default) = input.build_guard = value
18
+ def call(value = nil) = input.build_guard = value
19
19
  end
20
20
  end
21
21
  end
@@ -15,7 +15,7 @@ module Rubysmith
15
15
 
16
16
  default { Container[:configuration].build_license }
17
17
 
18
- def call(value = default) = input.build_license = value
18
+ def call(value = nil) = input.build_license = value
19
19
  end
20
20
  end
21
21
  end
@@ -15,7 +15,7 @@ module Rubysmith
15
15
 
16
16
  default { Container[:configuration].build_rake }
17
17
 
18
- def call(value = default) = input.build_rake = value
18
+ def call(value = nil) = input.build_rake = value
19
19
  end
20
20
  end
21
21
  end
@@ -15,7 +15,7 @@ module Rubysmith
15
15
 
16
16
  default { Container[:configuration].build_readme }
17
17
 
18
- def call(value = default) = input.build_readme = value
18
+ def call(value = nil) = input.build_readme = value
19
19
  end
20
20
  end
21
21
  end
@@ -15,7 +15,7 @@ module Rubysmith
15
15
 
16
16
  default { Container[:configuration].build_reek }
17
17
 
18
- def call(value = default) = input.build_reek = value
18
+ def call(value = nil) = input.build_reek = value
19
19
  end
20
20
  end
21
21
  end
@@ -15,7 +15,7 @@ module Rubysmith
15
15
 
16
16
  default { Container[:configuration].build_refinements }
17
17
 
18
- def call(value = default) = input.build_refinements = value
18
+ def call(value = nil) = input.build_refinements = value
19
19
  end
20
20
  end
21
21
  end
@@ -15,7 +15,7 @@ module Rubysmith
15
15
 
16
16
  default { Container[:configuration].build_rspec }
17
17
 
18
- def call(value = default) = input.build_rspec = value
18
+ def call(value = nil) = input.build_rspec = value
19
19
  end
20
20
  end
21
21
  end
@@ -15,7 +15,7 @@ module Rubysmith
15
15
 
16
16
  default { Container[:configuration].build_security }
17
17
 
18
- def call(value = default) = input.build_security = value
18
+ def call(value = nil) = input.build_security = value
19
19
  end
20
20
  end
21
21
  end
@@ -15,7 +15,7 @@ module Rubysmith
15
15
 
16
16
  default { Container[:configuration].build_setup }
17
17
 
18
- def call(value = default) = input.build_setup = value
18
+ def call(value = nil) = input.build_setup = value
19
19
  end
20
20
  end
21
21
  end
@@ -15,7 +15,7 @@ module Rubysmith
15
15
 
16
16
  default { Container[:configuration].build_simple_cov }
17
17
 
18
- def call(value = default) = input.build_simple_cov = value
18
+ def call(value = nil) = input.build_simple_cov = value
19
19
  end
20
20
  end
21
21
  end
@@ -15,7 +15,7 @@ module Rubysmith
15
15
 
16
16
  default { Container[:configuration].build_versions }
17
17
 
18
- def call(value = default) = input.build_versions = value
18
+ def call(value = nil) = input.build_versions = value
19
19
  end
20
20
  end
21
21
  end
@@ -15,7 +15,7 @@ module Rubysmith
15
15
 
16
16
  default { Container[:configuration].build_yard }
17
17
 
18
- def call(value = default) = input.build_yard = value
18
+ def call(value = nil) = input.build_yard = value
19
19
  end
20
20
  end
21
21
  end
@@ -15,7 +15,7 @@ module Rubysmith
15
15
 
16
16
  default { Container[:configuration].build_zeitwerk }
17
17
 
18
- def call(value = default) = input.build_zeitwerk = value
18
+ def call(value = nil) = input.build_zeitwerk = value
19
19
  end
20
20
  end
21
21
  end
@@ -79,11 +79,6 @@ module Rubysmith
79
79
  using Refinements::Strings
80
80
  using Refinements::Structs
81
81
 
82
- def initialize(**)
83
- super
84
- freeze
85
- end
86
-
87
82
  def maximize = update_build_options true
88
83
 
89
84
  def minimize = update_build_options false
@@ -23,7 +23,7 @@ require "bundler/setup"
23
23
  Reek::Rake::Task.new
24
24
  <% end %>
25
25
  <% if configuration.build_rspec %>
26
- RSpec::Core::RakeTask.new
26
+ RSpec::Core::RakeTask.new { |task| task.verbose = false }
27
27
  <% end %>
28
28
  <% if configuration.build_caliber %>
29
29
  RuboCop::RakeTask.new
@@ -3,7 +3,7 @@
3
3
  require "bundler/setup"
4
4
  Bundler.require :tools
5
5
 
6
- require_relative "../lib/<%= configuration.project_path %>"
6
+ require "<%= configuration.project_path %>"
7
7
  require "irb"
8
8
 
9
9
  IRB.start __FILE__
@@ -1,6 +1,3 @@
1
- require "bundler/setup"
2
- Bundler.require :tools
3
-
4
1
  <% if configuration.build_simple_cov %>
5
2
  require "simplecov"
6
3
 
@@ -14,6 +11,8 @@ unless ENV["NO_COVERAGE"]
14
11
  end
15
12
  <% end %>
16
13
 
14
+ Bundler.require :tools
15
+
17
16
  require "<%= configuration.project_path %>"
18
17
  <% if configuration.build_refinements %>
19
18
  require "refinements"
data/rubysmith.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |spec|
4
4
  spec.name = "rubysmith"
5
- spec.version = "5.2.0"
5
+ spec.version = "5.4.0"
6
6
  spec.authors = ["Brooke Kuhlmann"]
7
7
  spec.email = ["brooke@alchemists.io"]
8
8
  spec.homepage = "https://github.com/bkuhlmann/rubysmith"
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubysmith
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.2.0
4
+ version: 5.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brooke Kuhlmann
@@ -35,7 +35,7 @@ cert_chain:
35
35
  3n5C8/6Zh9DYTkpcwPSuIfAga6wf4nXc9m6JAw8AuMLaiWN/r/2s4zJsUHYERJEu
36
36
  gZGm4JqtuSg8pYjPeIJxS960owq+SfuC+jxqmRA54BisFCv/0VOJi7tiJVY=
37
37
  -----END CERTIFICATE-----
38
- date: 2023-06-19 00:00:00.000000000 Z
38
+ date: 2023-07-15 00:00:00.000000000 Z
39
39
  dependencies:
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: cogger
@@ -426,7 +426,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
426
426
  - !ruby/object:Gem::Version
427
427
  version: '0'
428
428
  requirements: []
429
- rubygems_version: 3.4.14
429
+ rubygems_version: 3.4.17
430
430
  signing_key:
431
431
  specification_version: 4
432
432
  summary: A command line interface for smithing Ruby projects.
metadata.gz.sig CHANGED
Binary file