rubysmith 6.10.0 → 7.1.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/README.adoc +51 -61
- data/lib/rubysmith/builder.rb +9 -9
- data/lib/rubysmith/builders/abstract.rb +4 -4
- data/lib/rubysmith/builders/bundler.rb +2 -2
- data/lib/rubysmith/builders/caliber.rb +4 -4
- data/lib/rubysmith/builders/circle_ci.rb +3 -3
- data/lib/rubysmith/builders/console.rb +3 -3
- data/lib/rubysmith/builders/core.rb +6 -6
- data/lib/rubysmith/builders/documentation/citation.rb +3 -3
- data/lib/rubysmith/builders/documentation/license.rb +8 -9
- data/lib/rubysmith/builders/documentation/readme.rb +4 -4
- data/lib/rubysmith/builders/documentation/version.rb +4 -5
- data/lib/rubysmith/builders/git/commit.rb +4 -8
- data/lib/rubysmith/builders/git/ignore.rb +3 -3
- data/lib/rubysmith/builders/git/safe.rb +3 -3
- data/lib/rubysmith/builders/git/setup.rb +3 -3
- data/lib/rubysmith/builders/git_hub/ci.rb +27 -0
- data/lib/rubysmith/builders/git_hub/funding.rb +23 -0
- data/lib/rubysmith/builders/git_hub/template.rb +32 -0
- data/lib/rubysmith/builders/guard.rb +4 -4
- data/lib/rubysmith/builders/init.rb +2 -2
- data/lib/rubysmith/builders/rake/binstub.rb +24 -0
- data/lib/rubysmith/builders/rake/configuration.rb +29 -0
- data/lib/rubysmith/builders/reek.rb +3 -3
- data/lib/rubysmith/builders/rspec/binstub.rb +3 -3
- data/lib/rubysmith/builders/rspec/context.rb +6 -6
- data/lib/rubysmith/builders/rspec/helper.rb +3 -3
- data/lib/rubysmith/builders/setup.rb +3 -3
- data/lib/rubysmith/builders/version.rb +2 -2
- data/lib/rubysmith/cli/actions/amazing_print.rb +3 -3
- data/lib/rubysmith/cli/actions/caliber.rb +3 -3
- data/lib/rubysmith/cli/actions/circle_ci.rb +4 -4
- data/lib/rubysmith/cli/actions/citation.rb +3 -3
- data/lib/rubysmith/cli/actions/community.rb +3 -3
- data/lib/rubysmith/cli/actions/conduct.rb +3 -3
- data/lib/rubysmith/cli/actions/console.rb +3 -3
- data/lib/rubysmith/cli/actions/contributions.rb +3 -3
- data/lib/rubysmith/cli/actions/debug.rb +3 -3
- data/lib/rubysmith/cli/actions/funding.rb +4 -4
- data/lib/rubysmith/cli/actions/git.rb +3 -3
- data/lib/rubysmith/cli/actions/git_hub.rb +3 -3
- data/lib/rubysmith/cli/actions/git_hub_ci.rb +3 -3
- data/lib/rubysmith/cli/actions/git_lint.rb +3 -3
- data/lib/rubysmith/cli/actions/guard.rb +5 -3
- data/lib/rubysmith/cli/actions/irb_kit.rb +3 -3
- data/lib/rubysmith/cli/actions/license.rb +3 -3
- data/lib/rubysmith/cli/actions/maximum.rb +4 -4
- data/lib/rubysmith/cli/actions/minimum.rb +4 -4
- data/lib/rubysmith/cli/actions/name.rb +2 -2
- data/lib/rubysmith/cli/actions/rake.rb +3 -3
- data/lib/rubysmith/cli/actions/readme.rb +3 -3
- data/lib/rubysmith/cli/actions/reek.rb +3 -3
- data/lib/rubysmith/cli/actions/refinements.rb +3 -3
- data/lib/rubysmith/cli/actions/rspec.rb +3 -3
- data/lib/rubysmith/cli/actions/rtc.rb +3 -3
- data/lib/rubysmith/cli/actions/security.rb +3 -3
- data/lib/rubysmith/cli/actions/setup.rb +3 -3
- data/lib/rubysmith/cli/actions/simple_cov.rb +3 -3
- data/lib/rubysmith/cli/actions/versions.rb +3 -3
- data/lib/rubysmith/cli/actions/zeitwerk.rb +3 -3
- data/lib/rubysmith/cli/commands/build.rb +33 -31
- data/lib/rubysmith/cli/shell.rb +0 -1
- data/lib/rubysmith/configuration/contract.rb +16 -14
- data/lib/rubysmith/configuration/defaults.yml +22 -2
- data/lib/rubysmith/configuration/model.rb +30 -28
- data/lib/rubysmith/configuration/transformers/git_hub_user.rb +2 -2
- data/lib/rubysmith/container.rb +18 -9
- data/lib/rubysmith/extensions/bundler.rb +7 -7
- data/lib/rubysmith/extensions/pragmater.rb +10 -10
- data/lib/rubysmith/extensions/rubocop.rb +7 -7
- data/lib/rubysmith/extensions/tocer.rb +8 -8
- data/lib/rubysmith/renderers/erb.rb +4 -4
- data/lib/rubysmith/templates/%project_name%/.circleci/config.yml.erb +1 -1
- data/lib/rubysmith/templates/%project_name%/.github/FUNDING.yml.erb +1 -1
- data/lib/rubysmith/templates/%project_name%/.github/workflows/ci.yml.erb +1 -1
- data/lib/rubysmith/templates/%project_name%/CITATION.cff.erb +12 -12
- data/lib/rubysmith/templates/%project_name%/Gemfile.erb +18 -18
- data/lib/rubysmith/templates/%project_name%/LICENSE-apache.adoc.erb +1 -1
- data/lib/rubysmith/templates/%project_name%/LICENSE-apache.md.erb +1 -1
- data/lib/rubysmith/templates/%project_name%/LICENSE-mit.adoc.erb +1 -1
- data/lib/rubysmith/templates/%project_name%/LICENSE-mit.md.erb +1 -1
- data/lib/rubysmith/templates/%project_name%/README.adoc.erb +21 -21
- data/lib/rubysmith/templates/%project_name%/README.md.erb +21 -21
- data/lib/rubysmith/templates/%project_name%/Rakefile.erb +10 -10
- data/lib/rubysmith/templates/%project_name%/VERSIONS.adoc.erb +1 -1
- data/lib/rubysmith/templates/%project_name%/VERSIONS.md.erb +1 -1
- data/lib/rubysmith/templates/%project_name%/bin/console.erb +1 -1
- data/lib/rubysmith/templates/%project_name%/bin/setup.erb +1 -1
- data/lib/rubysmith/templates/%project_name%/lib/%project_path%.rb.erb +7 -7
- data/lib/rubysmith/templates/%project_name%/spec/lib/%project_path%_spec.rb.erb +2 -2
- data/lib/rubysmith/templates/%project_name%/spec/spec_helper.rb.erb +4 -4
- data/lib/rubysmith/templates/%project_name%/spec/support/shared_contexts/temp_dir.rb.erb +3 -3
- data/lib/rubysmith.rb +1 -0
- data/rubysmith.gemspec +11 -12
- data.tar.gz.sig +0 -0
- metadata +28 -43
- metadata.gz.sig +0 -0
- data/lib/rubysmith/builders/git_hub.rb +0 -39
- data/lib/rubysmith/builders/git_hub_ci.rb +0 -25
- data/lib/rubysmith/builders/rake.rb +0 -39
- data/lib/rubysmith/cli/actions/publish.rb +0 -35
- data/lib/rubysmith/configuration/transformers/target_root.rb +0 -18
- data/lib/rubysmith/extensions/milestoner.rb +0 -23
@@ -0,0 +1,23 @@
|
|
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 funding template.
|
9
|
+
class Funding < Abstract
|
10
|
+
using Refinements::Struct
|
11
|
+
|
12
|
+
def call
|
13
|
+
return false unless settings.build_git_hub && settings.build_funding
|
14
|
+
|
15
|
+
settings.merge(template_path: "%project_name%/.github/FUNDING.yml.erb")
|
16
|
+
.then { |updated_configuration| builder.call(updated_configuration).render }
|
17
|
+
|
18
|
+
true
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -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
|
12
|
+
return false unless settings.build_guard
|
13
13
|
|
14
|
-
builder.call(
|
14
|
+
builder.call(settings.merge(template_path: "%project_name%/bin/guard.erb"))
|
15
15
|
.render
|
16
16
|
.permit 0o755
|
17
17
|
|
18
|
-
builder.call(
|
19
|
-
|
18
|
+
builder.call(settings.merge(template_path: "%project_name%/Guardfile.erb")).render
|
19
|
+
true
|
20
20
|
end
|
21
21
|
end
|
22
22
|
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
|
12
|
+
return false unless settings.build_reek
|
13
13
|
|
14
|
-
builder.call(
|
15
|
-
|
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
|
13
|
+
return false unless settings.build_rspec
|
14
14
|
|
15
|
-
builder.call(
|
15
|
+
builder.call(settings.merge(template_path: "%project_name%/bin/rspec.erb"))
|
16
16
|
.render
|
17
17
|
.permit 0o755
|
18
18
|
|
19
|
-
|
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
|
13
|
+
return false unless settings.build_rspec
|
14
14
|
|
15
15
|
template = "%project_name%/spec/support/shared_contexts/temp_dir.rb.erb"
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
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
|
-
|
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
|
13
|
+
return false unless settings.build_rspec
|
14
14
|
|
15
|
-
builder.call(
|
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
|
-
|
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
|
12
|
+
return false unless settings.build_setup
|
13
13
|
|
14
|
-
builder.call(
|
14
|
+
builder.call(settings.merge(template_path: "%project_name%/bin/setup.erb"))
|
15
15
|
.render
|
16
16
|
.permit 0o755
|
17
17
|
|
18
|
-
|
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(
|
12
|
+
builder.call(settings.merge(template_path: "%project_name%/.ruby-version.erb"))
|
13
13
|
.render
|
14
14
|
.append("\n")
|
15
|
-
|
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[:
|
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[:
|
16
|
+
default { Container[:settings].build_amazing_print }
|
17
17
|
|
18
|
-
def call(value = nil) =
|
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[:
|
10
|
+
include Import[:settings]
|
11
11
|
|
12
12
|
description "Add Caliber gem."
|
13
13
|
|
14
14
|
on "--[no-]caliber"
|
15
15
|
|
16
|
-
default { Container[:
|
16
|
+
default { Container[:settings].build_caliber }
|
17
17
|
|
18
|
-
def call(value = nil) =
|
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[:
|
10
|
+
include Import[:settings]
|
11
11
|
|
12
|
-
description "Add Circle CI
|
12
|
+
description "Add Circle CI settings."
|
13
13
|
|
14
14
|
on "--[no-]circle_ci"
|
15
15
|
|
16
|
-
default { Container[:
|
16
|
+
default { Container[:settings].build_circle_ci }
|
17
17
|
|
18
|
-
def call(value = nil) =
|
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[:
|
10
|
+
include Import[:settings]
|
11
11
|
|
12
12
|
description "Add citation documentation."
|
13
13
|
|
14
14
|
on "--[no-]citation"
|
15
15
|
|
16
|
-
default { Container[:
|
16
|
+
default { Container[:settings].build_citation }
|
17
17
|
|
18
|
-
def call(value = nil) =
|
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[:
|
10
|
+
include Import[:settings]
|
11
11
|
|
12
12
|
description "Add community documentation."
|
13
13
|
|
14
14
|
on "--[no-]community"
|
15
15
|
|
16
|
-
default { Container[:
|
16
|
+
default { Container[:settings].build_community }
|
17
17
|
|
18
|
-
def call(value = nil) =
|
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[:
|
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[:
|
16
|
+
default { Container[:settings].build_conduct }
|
17
17
|
|
18
|
-
def call(value = nil) =
|
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[:
|
10
|
+
include Import[:settings]
|
11
11
|
|
12
12
|
description "Add console script."
|
13
13
|
|
14
14
|
on "--[no-]console"
|
15
15
|
|
16
|
-
default { Container[:
|
16
|
+
default { Container[:settings].build_console }
|
17
17
|
|
18
|
-
def call(value = nil) =
|
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[:
|
10
|
+
include Import[:settings]
|
11
11
|
|
12
12
|
description "Add contributions documentation."
|
13
13
|
|
14
14
|
on "--[no-]contributions"
|
15
15
|
|
16
|
-
default { Container[:
|
16
|
+
default { Container[:settings].build_contributions }
|
17
17
|
|
18
|
-
def call(value = nil) =
|
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[:
|
10
|
+
include Import[:settings]
|
11
11
|
|
12
12
|
description "Add Debug gem."
|
13
13
|
|
14
14
|
on "--[no-]debug"
|
15
15
|
|
16
|
-
default { Container[:
|
16
|
+
default { Container[:settings].build_debug }
|
17
17
|
|
18
|
-
def call(value = nil) =
|
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[:
|
10
|
+
include Import[:settings]
|
11
11
|
|
12
|
-
description "Add GitHub funding
|
12
|
+
description "Add GitHub funding settings."
|
13
13
|
|
14
14
|
on "--[no-]funding"
|
15
15
|
|
16
|
-
default { Container[:
|
16
|
+
default { Container[:settings].build_funding }
|
17
17
|
|
18
|
-
def call(value = nil) =
|
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[:
|
10
|
+
include Import[:settings]
|
11
11
|
|
12
12
|
description "Add Git repository."
|
13
13
|
|
14
14
|
on "--[no-]git"
|
15
15
|
|
16
|
-
default { Container[:
|
16
|
+
default { Container[:settings].build_git }
|
17
17
|
|
18
|
-
def call(value = nil) =
|
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[:
|
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[:
|
16
|
+
default { Container[:settings].build_git_hub }
|
17
17
|
|
18
|
-
def call(value = nil) =
|
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[:
|
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[:
|
16
|
+
default { Container[:settings].build_git_hub_ci }
|
17
17
|
|
18
|
-
def call(value = nil) =
|
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[:
|
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[:
|
16
|
+
default { Container[:settings].build_git_lint }
|
17
17
|
|
18
|
-
def call(value = nil) =
|
18
|
+
def call(value = nil) = settings.build_git_lint = value
|
19
19
|
end
|
20
20
|
end
|
21
21
|
end
|
@@ -7,15 +7,17 @@ module Rubysmith
|
|
7
7
|
module Actions
|
8
8
|
# Stores Guard flag.
|
9
9
|
class Guard < Sod::Action
|
10
|
-
include Import[:
|
10
|
+
include Import[:settings]
|
11
11
|
|
12
12
|
description "Add Guard gem."
|
13
13
|
|
14
|
+
ancillary "DEPRECATED: Will be removed in next major version."
|
15
|
+
|
14
16
|
on "--[no-]guard"
|
15
17
|
|
16
|
-
default { Container[:
|
18
|
+
default { Container[:settings].build_guard }
|
17
19
|
|
18
|
-
def call(value = nil) =
|
20
|
+
def call(value = nil) = settings.build_guard = value
|
19
21
|
end
|
20
22
|
end
|
21
23
|
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[:
|
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[:
|
16
|
+
default { Container[:settings].build_irb_kit }
|
17
17
|
|
18
|
-
def call(value = nil) =
|
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[:
|
10
|
+
include Import[:settings]
|
11
11
|
|
12
12
|
description "Add license documentation."
|
13
13
|
|
14
14
|
on "--[no-]license"
|
15
15
|
|
16
|
-
default { Container[:
|
16
|
+
default { Container[:settings].build_license }
|
17
17
|
|
18
|
-
def call(value = nil) =
|
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
|
9
|
+
# Forces maximum settings.
|
10
10
|
class Maximum < Sod::Action
|
11
|
-
include Import[:
|
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[:
|
19
|
+
default { Container[:settings].build_maximum }
|
20
20
|
|
21
|
-
def call(*) =
|
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
|
9
|
+
# Forces minimum settings.
|
10
10
|
class Minimum < Sod::Action
|
11
|
-
include Import[:
|
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[:
|
19
|
+
default { Container[:settings].build_minimum }
|
20
20
|
|
21
|
-
def call(*) =
|
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[:
|
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) =
|
16
|
+
def call(name) = settings.project_name = name
|
17
17
|
end
|
18
18
|
end
|
19
19
|
end
|