rubysmith 6.10.0 → 7.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (105) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +0 -0
  3. data/README.adoc +46 -57
  4. data/lib/rubysmith/builder.rb +9 -9
  5. data/lib/rubysmith/builders/abstract.rb +4 -4
  6. data/lib/rubysmith/builders/bundler.rb +2 -2
  7. data/lib/rubysmith/builders/caliber.rb +4 -4
  8. data/lib/rubysmith/builders/circle_ci.rb +3 -3
  9. data/lib/rubysmith/builders/console.rb +3 -3
  10. data/lib/rubysmith/builders/core.rb +6 -6
  11. data/lib/rubysmith/builders/documentation/citation.rb +3 -3
  12. data/lib/rubysmith/builders/documentation/license.rb +8 -9
  13. data/lib/rubysmith/builders/documentation/readme.rb +4 -4
  14. data/lib/rubysmith/builders/documentation/version.rb +4 -5
  15. data/lib/rubysmith/builders/git/commit.rb +4 -8
  16. data/lib/rubysmith/builders/git/ignore.rb +3 -3
  17. data/lib/rubysmith/builders/git/safe.rb +3 -3
  18. data/lib/rubysmith/builders/git/setup.rb +3 -3
  19. data/lib/rubysmith/builders/git_hub/ci.rb +27 -0
  20. data/lib/rubysmith/builders/git_hub/funding.rb +23 -0
  21. data/lib/rubysmith/builders/git_hub/template.rb +32 -0
  22. data/lib/rubysmith/builders/guard.rb +4 -4
  23. data/lib/rubysmith/builders/init.rb +2 -2
  24. data/lib/rubysmith/builders/rake/binstub.rb +24 -0
  25. data/lib/rubysmith/builders/rake/configuration.rb +29 -0
  26. data/lib/rubysmith/builders/reek.rb +3 -3
  27. data/lib/rubysmith/builders/rspec/binstub.rb +3 -3
  28. data/lib/rubysmith/builders/rspec/context.rb +6 -6
  29. data/lib/rubysmith/builders/rspec/helper.rb +3 -3
  30. data/lib/rubysmith/builders/setup.rb +3 -3
  31. data/lib/rubysmith/builders/version.rb +2 -2
  32. data/lib/rubysmith/cli/actions/amazing_print.rb +3 -3
  33. data/lib/rubysmith/cli/actions/caliber.rb +3 -3
  34. data/lib/rubysmith/cli/actions/circle_ci.rb +4 -4
  35. data/lib/rubysmith/cli/actions/citation.rb +3 -3
  36. data/lib/rubysmith/cli/actions/community.rb +3 -3
  37. data/lib/rubysmith/cli/actions/conduct.rb +3 -3
  38. data/lib/rubysmith/cli/actions/console.rb +3 -3
  39. data/lib/rubysmith/cli/actions/contributions.rb +3 -3
  40. data/lib/rubysmith/cli/actions/debug.rb +3 -3
  41. data/lib/rubysmith/cli/actions/funding.rb +4 -4
  42. data/lib/rubysmith/cli/actions/git.rb +3 -3
  43. data/lib/rubysmith/cli/actions/git_hub.rb +3 -3
  44. data/lib/rubysmith/cli/actions/git_hub_ci.rb +3 -3
  45. data/lib/rubysmith/cli/actions/git_lint.rb +3 -3
  46. data/lib/rubysmith/cli/actions/guard.rb +3 -3
  47. data/lib/rubysmith/cli/actions/irb_kit.rb +3 -3
  48. data/lib/rubysmith/cli/actions/license.rb +3 -3
  49. data/lib/rubysmith/cli/actions/maximum.rb +4 -4
  50. data/lib/rubysmith/cli/actions/minimum.rb +4 -4
  51. data/lib/rubysmith/cli/actions/name.rb +2 -2
  52. data/lib/rubysmith/cli/actions/rake.rb +3 -3
  53. data/lib/rubysmith/cli/actions/readme.rb +3 -3
  54. data/lib/rubysmith/cli/actions/reek.rb +3 -3
  55. data/lib/rubysmith/cli/actions/refinements.rb +3 -3
  56. data/lib/rubysmith/cli/actions/rspec.rb +3 -3
  57. data/lib/rubysmith/cli/actions/rtc.rb +3 -3
  58. data/lib/rubysmith/cli/actions/security.rb +3 -3
  59. data/lib/rubysmith/cli/actions/setup.rb +3 -3
  60. data/lib/rubysmith/cli/actions/simple_cov.rb +3 -3
  61. data/lib/rubysmith/cli/actions/versions.rb +3 -3
  62. data/lib/rubysmith/cli/actions/zeitwerk.rb +3 -3
  63. data/lib/rubysmith/cli/commands/build.rb +33 -31
  64. data/lib/rubysmith/cli/shell.rb +0 -1
  65. data/lib/rubysmith/configuration/contract.rb +16 -14
  66. data/lib/rubysmith/configuration/defaults.yml +21 -1
  67. data/lib/rubysmith/configuration/model.rb +30 -28
  68. data/lib/rubysmith/configuration/transformers/git_hub_user.rb +2 -2
  69. data/lib/rubysmith/container.rb +19 -9
  70. data/lib/rubysmith/extensions/bundler.rb +7 -7
  71. data/lib/rubysmith/extensions/pragmater.rb +10 -10
  72. data/lib/rubysmith/extensions/rubocop.rb +7 -7
  73. data/lib/rubysmith/extensions/tocer.rb +8 -8
  74. data/lib/rubysmith/renderers/erb.rb +4 -4
  75. data/lib/rubysmith/templates/%project_name%/.circleci/config.yml.erb +1 -1
  76. data/lib/rubysmith/templates/%project_name%/.github/FUNDING.yml.erb +1 -1
  77. data/lib/rubysmith/templates/%project_name%/.github/workflows/ci.yml.erb +1 -1
  78. data/lib/rubysmith/templates/%project_name%/CITATION.cff.erb +12 -12
  79. data/lib/rubysmith/templates/%project_name%/Gemfile.erb +18 -18
  80. data/lib/rubysmith/templates/%project_name%/LICENSE-apache.adoc.erb +1 -1
  81. data/lib/rubysmith/templates/%project_name%/LICENSE-apache.md.erb +1 -1
  82. data/lib/rubysmith/templates/%project_name%/LICENSE-mit.adoc.erb +1 -1
  83. data/lib/rubysmith/templates/%project_name%/LICENSE-mit.md.erb +1 -1
  84. data/lib/rubysmith/templates/%project_name%/README.adoc.erb +21 -21
  85. data/lib/rubysmith/templates/%project_name%/README.md.erb +21 -21
  86. data/lib/rubysmith/templates/%project_name%/Rakefile.erb +10 -10
  87. data/lib/rubysmith/templates/%project_name%/VERSIONS.adoc.erb +1 -1
  88. data/lib/rubysmith/templates/%project_name%/VERSIONS.md.erb +1 -1
  89. data/lib/rubysmith/templates/%project_name%/bin/console.erb +1 -1
  90. data/lib/rubysmith/templates/%project_name%/bin/setup.erb +1 -1
  91. data/lib/rubysmith/templates/%project_name%/lib/%project_path%.rb.erb +7 -7
  92. data/lib/rubysmith/templates/%project_name%/spec/lib/%project_path%_spec.rb.erb +2 -2
  93. data/lib/rubysmith/templates/%project_name%/spec/spec_helper.rb.erb +4 -4
  94. data/lib/rubysmith/templates/%project_name%/spec/support/shared_contexts/temp_dir.rb.erb +3 -3
  95. data/lib/rubysmith.rb +1 -0
  96. data/rubysmith.gemspec +11 -12
  97. data.tar.gz.sig +0 -0
  98. metadata +28 -43
  99. metadata.gz.sig +4 -2
  100. data/lib/rubysmith/builders/git_hub.rb +0 -39
  101. data/lib/rubysmith/builders/git_hub_ci.rb +0 -25
  102. data/lib/rubysmith/builders/rake.rb +0 -39
  103. data/lib/rubysmith/cli/actions/publish.rb +0 -35
  104. data/lib/rubysmith/configuration/transformers/target_root.rb +0 -18
  105. data/lib/rubysmith/extensions/milestoner.rb +0 -23
@@ -0,0 +1,32 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "refinements/struct"
4
+
5
+ module Rubysmith
6
+ module Builders
7
+ module GitHub
8
+ # Builds project skeleton GitHub templates.
9
+ class Template < Abstract
10
+ using Refinements::Struct
11
+
12
+ def call
13
+ return false unless settings.build_git_hub
14
+
15
+ builder.call(with_issue).render
16
+ builder.call(with_code_review).render
17
+ true
18
+ end
19
+
20
+ private
21
+
22
+ def with_issue
23
+ settings.merge template_path: "%project_name%/.github/ISSUE_TEMPLATE.md.erb"
24
+ end
25
+
26
+ def with_code_review
27
+ settings.merge template_path: "%project_name%/.github/PULL_REQUEST_TEMPLATE.md.erb"
28
+ end
29
+ end
30
+ end
31
+ end
32
+ end
@@ -9,14 +9,14 @@ module Rubysmith
9
9
  using Refinements::Struct
10
10
 
11
11
  def call
12
- return configuration unless configuration.build_guard
12
+ return false unless settings.build_guard
13
13
 
14
- builder.call(configuration.merge(template_path: "%project_name%/bin/guard.erb"))
14
+ builder.call(settings.merge(template_path: "%project_name%/bin/guard.erb"))
15
15
  .render
16
16
  .permit 0o755
17
17
 
18
- builder.call(configuration.merge(template_path: "%project_name%/Guardfile.erb")).render
19
- configuration
18
+ builder.call(settings.merge(template_path: "%project_name%/Guardfile.erb")).render
19
+ true
20
20
  end
21
21
  end
22
22
  end
@@ -10,8 +10,8 @@ module Rubysmith
10
10
  using Refinements::Struct
11
11
 
12
12
  def call
13
- builder.call(configuration.merge(template_path: "%project_name%")).check
14
- configuration
13
+ builder.call(settings.merge(template_path: "%project_name%")).check
14
+ true
15
15
  end
16
16
  end
17
17
  end
@@ -0,0 +1,24 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "refinements/struct"
4
+
5
+ module Rubysmith
6
+ module Builders
7
+ module Rake
8
+ # Builds project skeleton Rake binstub.
9
+ class Binstub < Abstract
10
+ using Refinements::Struct
11
+
12
+ def call
13
+ return false unless settings.build_rake
14
+
15
+ builder.call(settings.merge(template_path: "%project_name%/bin/rake.erb"))
16
+ .render
17
+ .permit 0o755
18
+
19
+ true
20
+ end
21
+ end
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,29 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "refinements/struct"
4
+
5
+ module Rubysmith
6
+ module Builders
7
+ module Rake
8
+ # Builds project skeleton Rake file configuration.
9
+ class Configuration < Abstract
10
+ using Refinements::Struct
11
+
12
+ def call
13
+ return false unless settings.build_rake
14
+
15
+ builder.call(settings.merge(template_path: "%project_name%/Rakefile.erb"))
16
+ .render
17
+ .replace(/\[\s+/, "[")
18
+ .replace(/\s+\]/, "]")
19
+ .replace(" ", "")
20
+ .replace("task.options", " task.options")
21
+ .replace(/\n+(?=require)/, "\n")
22
+ .replace(/\n{2,}/, "\n\n")
23
+
24
+ true
25
+ end
26
+ end
27
+ end
28
+ end
29
+ end
@@ -9,10 +9,10 @@ module Rubysmith
9
9
  using Refinements::Struct
10
10
 
11
11
  def call
12
- return configuration unless configuration.build_reek
12
+ return false unless settings.build_reek
13
13
 
14
- builder.call(configuration.merge(template_path: "%project_name%/.reek.yml.erb")).render
15
- configuration
14
+ builder.call(settings.merge(template_path: "%project_name%/.reek.yml.erb")).render
15
+ true
16
16
  end
17
17
  end
18
18
  end
@@ -10,13 +10,13 @@ module Rubysmith
10
10
  using Refinements::Struct
11
11
 
12
12
  def call
13
- return configuration unless configuration.build_rspec
13
+ return false unless settings.build_rspec
14
14
 
15
- builder.call(configuration.merge(template_path: "%project_name%/bin/rspec.erb"))
15
+ builder.call(settings.merge(template_path: "%project_name%/bin/rspec.erb"))
16
16
  .render
17
17
  .permit 0o755
18
18
 
19
- configuration
19
+ true
20
20
  end
21
21
  end
22
22
  end
@@ -10,15 +10,15 @@ module Rubysmith
10
10
  using Refinements::Struct
11
11
 
12
12
  def call
13
- return configuration unless configuration.build_rspec
13
+ return false unless settings.build_rspec
14
14
 
15
15
  template = "%project_name%/spec/support/shared_contexts/temp_dir.rb.erb"
16
- configuration.merge(template_path: template)
17
- .then { |updated_configuration| builder.call updated_configuration }
18
- .render
19
- .replace(/\n\s+\n\s+/, "\n ")
16
+ settings.merge(template_path: template)
17
+ .then { |updated_configuration| builder.call updated_configuration }
18
+ .render
19
+ .replace(/\n\s+\n\s+/, "\n ")
20
20
 
21
- configuration
21
+ true
22
22
  end
23
23
  end
24
24
  end
@@ -10,14 +10,14 @@ module Rubysmith
10
10
  using Refinements::Struct
11
11
 
12
12
  def call
13
- return configuration unless configuration.build_rspec
13
+ return false unless settings.build_rspec
14
14
 
15
- builder.call(configuration.merge(template_path: "%project_name%/spec/spec_helper.rb.erb"))
15
+ builder.call(settings.merge(template_path: "%project_name%/spec/spec_helper.rb.erb"))
16
16
  .render
17
17
  .replace(/\A\n/, "")
18
18
  .replace("\n\n\n", "\n\n")
19
19
 
20
- configuration
20
+ true
21
21
  end
22
22
  end
23
23
  end
@@ -9,13 +9,13 @@ module Rubysmith
9
9
  using Refinements::Struct
10
10
 
11
11
  def call
12
- return configuration unless configuration.build_setup
12
+ return false unless settings.build_setup
13
13
 
14
- builder.call(configuration.merge(template_path: "%project_name%/bin/setup.erb"))
14
+ builder.call(settings.merge(template_path: "%project_name%/bin/setup.erb"))
15
15
  .render
16
16
  .permit 0o755
17
17
 
18
- configuration
18
+ true
19
19
  end
20
20
  end
21
21
  end
@@ -9,10 +9,10 @@ module Rubysmith
9
9
  using Refinements::Struct
10
10
 
11
11
  def call
12
- builder.call(configuration.merge(template_path: "%project_name%/.ruby-version.erb"))
12
+ builder.call(settings.merge(template_path: "%project_name%/.ruby-version.erb"))
13
13
  .render
14
14
  .append("\n")
15
- configuration
15
+ true
16
16
  end
17
17
  end
18
18
  end
@@ -7,15 +7,15 @@ module Rubysmith
7
7
  module Actions
8
8
  # Stores Amazing Print flag.
9
9
  class AmazingPrint < Sod::Action
10
- include Import[:input]
10
+ include Import[:settings]
11
11
 
12
12
  description "Add Amazing Print gem."
13
13
 
14
14
  on "--[no-]amazing_print"
15
15
 
16
- default { Container[:configuration].build_amazing_print }
16
+ default { Container[:settings].build_amazing_print }
17
17
 
18
- def call(value = nil) = input.build_amazing_print = value
18
+ def call(value = nil) = settings.build_amazing_print = value
19
19
  end
20
20
  end
21
21
  end
@@ -7,15 +7,15 @@ module Rubysmith
7
7
  module Actions
8
8
  # Stores Caliber flag.
9
9
  class Caliber < Sod::Action
10
- include Import[:input]
10
+ include Import[:settings]
11
11
 
12
12
  description "Add Caliber gem."
13
13
 
14
14
  on "--[no-]caliber"
15
15
 
16
- default { Container[:configuration].build_caliber }
16
+ default { Container[:settings].build_caliber }
17
17
 
18
- def call(value = nil) = input.build_caliber = value
18
+ def call(value = nil) = settings.build_caliber = value
19
19
  end
20
20
  end
21
21
  end
@@ -7,15 +7,15 @@ module Rubysmith
7
7
  module Actions
8
8
  # Stores Circle CI flag.
9
9
  class CircleCI < Sod::Action
10
- include Import[:input]
10
+ include Import[:settings]
11
11
 
12
- description "Add Circle CI configuration."
12
+ description "Add Circle CI settings."
13
13
 
14
14
  on "--[no-]circle_ci"
15
15
 
16
- default { Container[:configuration].build_circle_ci }
16
+ default { Container[:settings].build_circle_ci }
17
17
 
18
- def call(value = nil) = input.build_circle_ci = value
18
+ def call(value = nil) = settings.build_circle_ci = value
19
19
  end
20
20
  end
21
21
  end
@@ -7,15 +7,15 @@ module Rubysmith
7
7
  module Actions
8
8
  # Stores citation flag.
9
9
  class Citation < Sod::Action
10
- include Import[:input]
10
+ include Import[:settings]
11
11
 
12
12
  description "Add citation documentation."
13
13
 
14
14
  on "--[no-]citation"
15
15
 
16
- default { Container[:configuration].build_citation }
16
+ default { Container[:settings].build_citation }
17
17
 
18
- def call(value = nil) = input.build_citation = value
18
+ def call(value = nil) = settings.build_citation = value
19
19
  end
20
20
  end
21
21
  end
@@ -7,15 +7,15 @@ module Rubysmith
7
7
  module Actions
8
8
  # Stores community flag.
9
9
  class Community < Sod::Action
10
- include Import[:input]
10
+ include Import[:settings]
11
11
 
12
12
  description "Add community documentation."
13
13
 
14
14
  on "--[no-]community"
15
15
 
16
- default { Container[:configuration].build_community }
16
+ default { Container[:settings].build_community }
17
17
 
18
- def call(value = nil) = input.build_community = value
18
+ def call(value = nil) = settings.build_community = value
19
19
  end
20
20
  end
21
21
  end
@@ -7,15 +7,15 @@ module Rubysmith
7
7
  module Actions
8
8
  # Stores conduct flag.
9
9
  class Conduct < Sod::Action
10
- include Import[:input]
10
+ include Import[:settings]
11
11
 
12
12
  description "Add code of conduct documentation."
13
13
 
14
14
  on "--[no-]conduct"
15
15
 
16
- default { Container[:configuration].build_conduct }
16
+ default { Container[:settings].build_conduct }
17
17
 
18
- def call(value = nil) = input.build_conduct = value
18
+ def call(value = nil) = settings.build_conduct = value
19
19
  end
20
20
  end
21
21
  end
@@ -7,15 +7,15 @@ module Rubysmith
7
7
  module Actions
8
8
  # Stores console flag.
9
9
  class Console < Sod::Action
10
- include Import[:input]
10
+ include Import[:settings]
11
11
 
12
12
  description "Add console script."
13
13
 
14
14
  on "--[no-]console"
15
15
 
16
- default { Container[:configuration].build_console }
16
+ default { Container[:settings].build_console }
17
17
 
18
- def call(value = nil) = input.build_console = value
18
+ def call(value = nil) = settings.build_console = value
19
19
  end
20
20
  end
21
21
  end
@@ -7,15 +7,15 @@ module Rubysmith
7
7
  module Actions
8
8
  # Stores contributions flag.
9
9
  class Contributions < Sod::Action
10
- include Import[:input]
10
+ include Import[:settings]
11
11
 
12
12
  description "Add contributions documentation."
13
13
 
14
14
  on "--[no-]contributions"
15
15
 
16
- default { Container[:configuration].build_contributions }
16
+ default { Container[:settings].build_contributions }
17
17
 
18
- def call(value = nil) = input.build_contributions = value
18
+ def call(value = nil) = settings.build_contributions = value
19
19
  end
20
20
  end
21
21
  end
@@ -7,15 +7,15 @@ module Rubysmith
7
7
  module Actions
8
8
  # Stores Debug flag.
9
9
  class Debug < Sod::Action
10
- include Import[:input]
10
+ include Import[:settings]
11
11
 
12
12
  description "Add Debug gem."
13
13
 
14
14
  on "--[no-]debug"
15
15
 
16
- default { Container[:configuration].build_debug }
16
+ default { Container[:settings].build_debug }
17
17
 
18
- def call(value = nil) = input.build_debug = value
18
+ def call(value = nil) = settings.build_debug = value
19
19
  end
20
20
  end
21
21
  end
@@ -7,15 +7,15 @@ module Rubysmith
7
7
  module Actions
8
8
  # Stores funding flag.
9
9
  class Funding < Sod::Action
10
- include Import[:input]
10
+ include Import[:settings]
11
11
 
12
- description "Add GitHub funding configuration."
12
+ description "Add GitHub funding settings."
13
13
 
14
14
  on "--[no-]funding"
15
15
 
16
- default { Container[:configuration].build_funding }
16
+ default { Container[:settings].build_funding }
17
17
 
18
- def call(value = nil) = input.build_funding = value
18
+ def call(value = nil) = settings.build_funding = value
19
19
  end
20
20
  end
21
21
  end
@@ -7,15 +7,15 @@ module Rubysmith
7
7
  module Actions
8
8
  # Stores Git flag.
9
9
  class Git < Sod::Action
10
- include Import[:input]
10
+ include Import[:settings]
11
11
 
12
12
  description "Add Git repository."
13
13
 
14
14
  on "--[no-]git"
15
15
 
16
- default { Container[:configuration].build_git }
16
+ default { Container[:settings].build_git }
17
17
 
18
- def call(value = nil) = input.build_git = value
18
+ def call(value = nil) = settings.build_git = value
19
19
  end
20
20
  end
21
21
  end
@@ -7,15 +7,15 @@ module Rubysmith
7
7
  module Actions
8
8
  # Stores GitHub flag.
9
9
  class GitHub < Sod::Action
10
- include Import[:input]
10
+ include Import[:settings]
11
11
 
12
12
  description "Add GitHub templates."
13
13
 
14
14
  on "--[no-]git_hub"
15
15
 
16
- default { Container[:configuration].build_git_hub }
16
+ default { Container[:settings].build_git_hub }
17
17
 
18
- def call(value = nil) = input.build_git_hub = value
18
+ def call(value = nil) = settings.build_git_hub = value
19
19
  end
20
20
  end
21
21
  end
@@ -7,15 +7,15 @@ module Rubysmith
7
7
  module Actions
8
8
  # Stores GitHub CI flag.
9
9
  class GitHubCI < Sod::Action
10
- include Import[:input]
10
+ include Import[:settings]
11
11
 
12
12
  description "Add GitHub continuous integration."
13
13
 
14
14
  on "--[no-]git_hub_ci"
15
15
 
16
- default { Container[:configuration].build_git_hub_ci }
16
+ default { Container[:settings].build_git_hub_ci }
17
17
 
18
- def call(value = nil) = input.build_git_hub_ci = value
18
+ def call(value = nil) = settings.build_git_hub_ci = value
19
19
  end
20
20
  end
21
21
  end
@@ -7,15 +7,15 @@ module Rubysmith
7
7
  module Actions
8
8
  # Stores Git Lint flag.
9
9
  class GitLint < Sod::Action
10
- include Import[:input]
10
+ include Import[:settings]
11
11
 
12
12
  description "Add Git Lint gem."
13
13
 
14
14
  on "--[no-]git-lint"
15
15
 
16
- default { Container[:configuration].build_git_lint }
16
+ default { Container[:settings].build_git_lint }
17
17
 
18
- def call(value = nil) = input.build_git_lint = value
18
+ def call(value = nil) = settings.build_git_lint = value
19
19
  end
20
20
  end
21
21
  end
@@ -7,15 +7,15 @@ module Rubysmith
7
7
  module Actions
8
8
  # Stores Guard flag.
9
9
  class Guard < Sod::Action
10
- include Import[:input]
10
+ include Import[:settings]
11
11
 
12
12
  description "Add Guard gem."
13
13
 
14
14
  on "--[no-]guard"
15
15
 
16
- default { Container[:configuration].build_guard }
16
+ default { Container[:settings].build_guard }
17
17
 
18
- def call(value = nil) = input.build_guard = value
18
+ def call(value = nil) = settings.build_guard = value
19
19
  end
20
20
  end
21
21
  end
@@ -7,15 +7,15 @@ module Rubysmith
7
7
  module Actions
8
8
  # Stores IRB Kit flag.
9
9
  class IRBKit < Sod::Action
10
- include Import[:input]
10
+ include Import[:settings]
11
11
 
12
12
  description "Add IRB Kit gem."
13
13
 
14
14
  on "--[no-]irb-kit"
15
15
 
16
- default { Container[:configuration].build_irb_kit }
16
+ default { Container[:settings].build_irb_kit }
17
17
 
18
- def call(value = nil) = input.build_irb_kit = value
18
+ def call(value = nil) = settings.build_irb_kit = value
19
19
  end
20
20
  end
21
21
  end
@@ -7,15 +7,15 @@ module Rubysmith
7
7
  module Actions
8
8
  # Stores license flag.
9
9
  class License < Sod::Action
10
- include Import[:input]
10
+ include Import[:settings]
11
11
 
12
12
  description "Add license documentation."
13
13
 
14
14
  on "--[no-]license"
15
15
 
16
- default { Container[:configuration].build_license }
16
+ default { Container[:settings].build_license }
17
17
 
18
- def call(value = nil) = input.build_license = value
18
+ def call(value = nil) = settings.build_license = value
19
19
  end
20
20
  end
21
21
  end
@@ -6,9 +6,9 @@ require "sod"
6
6
  module Rubysmith
7
7
  module CLI
8
8
  module Actions
9
- # Forces maximum configuration.
9
+ # Forces maximum settings.
10
10
  class Maximum < Sod::Action
11
- include Import[:input]
11
+ include Import[:settings]
12
12
 
13
13
  using ::Refinements::Struct
14
14
 
@@ -16,9 +16,9 @@ module Rubysmith
16
16
 
17
17
  on "--max"
18
18
 
19
- default { Container[:configuration].build_maximum }
19
+ default { Container[:settings].build_maximum }
20
20
 
21
- def call(*) = input.merge! input.maximize
21
+ def call(*) = settings.merge! settings.maximize
22
22
  end
23
23
  end
24
24
  end
@@ -6,9 +6,9 @@ require "sod"
6
6
  module Rubysmith
7
7
  module CLI
8
8
  module Actions
9
- # Forces minimum configuration.
9
+ # Forces minimum settings.
10
10
  class Minimum < Sod::Action
11
- include Import[:input]
11
+ include Import[:settings]
12
12
 
13
13
  using ::Refinements::Struct
14
14
 
@@ -16,9 +16,9 @@ module Rubysmith
16
16
 
17
17
  on "--min"
18
18
 
19
- default { Container[:configuration].build_minimum }
19
+ default { Container[:settings].build_minimum }
20
20
 
21
- def call(*) = input.merge! input.minimize
21
+ def call(*) = settings.merge! settings.minimize
22
22
  end
23
23
  end
24
24
  end
@@ -7,13 +7,13 @@ module Rubysmith
7
7
  module Actions
8
8
  # Stores project (build) name.
9
9
  class Name < Sod::Action
10
- include Import[:input]
10
+ include Import[:settings]
11
11
 
12
12
  description "Set project name."
13
13
 
14
14
  on %w[-n --name], argument: "NAME"
15
15
 
16
- def call(name) = input.project_name = name
16
+ def call(name) = settings.project_name = name
17
17
  end
18
18
  end
19
19
  end
@@ -7,15 +7,15 @@ module Rubysmith
7
7
  module Actions
8
8
  # Stores Rake flag.
9
9
  class Rake < Sod::Action
10
- include Import[:input]
10
+ include Import[:settings]
11
11
 
12
12
  description "Add Rake gem."
13
13
 
14
14
  on "--[no-]rake"
15
15
 
16
- default { Container[:configuration].build_rake }
16
+ default { Container[:settings].build_rake }
17
17
 
18
- def call(value = nil) = input.build_rake = value
18
+ def call(value = nil) = settings.build_rake = value
19
19
  end
20
20
  end
21
21
  end