rubysmith 6.6.0 → 6.8.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 +18 -1
- data/lib/rubysmith/builders/abstract.rb +24 -0
- data/lib/rubysmith/builders/bundler.rb +1 -12
- data/lib/rubysmith/builders/caliber.rb +1 -12
- data/lib/rubysmith/builders/circle_ci.rb +1 -12
- data/lib/rubysmith/builders/console.rb +1 -12
- data/lib/rubysmith/builders/core.rb +1 -10
- data/lib/rubysmith/builders/documentation/citation.rb +1 -12
- data/lib/rubysmith/builders/documentation/license.rb +1 -10
- data/lib/rubysmith/builders/documentation/readme.rb +2 -11
- data/lib/rubysmith/builders/documentation/version.rb +1 -10
- data/lib/rubysmith/builders/git/commit.rb +2 -8
- data/lib/rubysmith/builders/git/ignore.rb +1 -12
- data/lib/rubysmith/builders/git/safe.rb +1 -12
- data/lib/rubysmith/builders/git/setup.rb +1 -12
- data/lib/rubysmith/builders/git_hub.rb +1 -10
- data/lib/rubysmith/builders/git_hub_ci.rb +1 -10
- data/lib/rubysmith/builders/guard.rb +1 -12
- data/lib/rubysmith/builders/init.rb +1 -12
- data/lib/rubysmith/builders/rake.rb +1 -10
- data/lib/rubysmith/builders/reek.rb +1 -12
- data/lib/rubysmith/builders/rspec/binstub.rb +1 -12
- data/lib/rubysmith/builders/rspec/context.rb +1 -12
- data/lib/rubysmith/builders/rspec/helper.rb +1 -12
- data/lib/rubysmith/builders/setup.rb +1 -12
- data/lib/rubysmith/builders/version.rb +1 -12
- data/lib/rubysmith/cli/actions/irb_kit.rb +22 -0
- data/lib/rubysmith/cli/actions/rtc.rb +22 -0
- data/lib/rubysmith/cli/commands/build.rb +2 -0
- data/lib/rubysmith/configuration/contract.rb +4 -1
- data/lib/rubysmith/configuration/defaults.yml +2 -0
- data/lib/rubysmith/configuration/model.rb +4 -1
- data/lib/rubysmith/configuration/transformers/git_email.rb +4 -4
- data/lib/rubysmith/configuration/transformers/git_hub_user.rb +4 -4
- data/lib/rubysmith/configuration/transformers/git_user.rb +10 -8
- data/lib/rubysmith/configuration/transformers/target_root.rb +4 -4
- data/lib/rubysmith/configuration/transformers/template_root.rb +4 -4
- data/lib/rubysmith/container.rb +1 -1
- data/lib/rubysmith/templates/%project_name%/CITATION.cff.erb +1 -1
- data/lib/rubysmith/templates/%project_name%/Gemfile.erb +6 -1
- 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 +5 -36
- data/lib/rubysmith/templates/%project_name%/README.md.erb +6 -25
- 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%/spec/spec_helper.rb.erb +1 -0
- data/lib/rubysmith.rb +3 -1
- data/rubysmith.gemspec +3 -3
- data.tar.gz.sig +0 -0
- metadata +10 -8
- metadata.gz.sig +0 -0
- data/lib/rubysmith/configuration/transformers/current_time.rb +0 -18
@@ -6,16 +6,9 @@ module Rubysmith
|
|
6
6
|
module Builders
|
7
7
|
module RSpec
|
8
8
|
# Builds RSpec shared context for temporary directories.
|
9
|
-
class Context
|
9
|
+
class Context < Abstract
|
10
10
|
using Refinements::Struct
|
11
11
|
|
12
|
-
def self.call(...) = new(...).call
|
13
|
-
|
14
|
-
def initialize configuration, builder: Builder
|
15
|
-
@configuration = configuration
|
16
|
-
@builder = builder
|
17
|
-
end
|
18
|
-
|
19
12
|
def call
|
20
13
|
return configuration unless configuration.build_rspec
|
21
14
|
|
@@ -27,10 +20,6 @@ module Rubysmith
|
|
27
20
|
|
28
21
|
configuration
|
29
22
|
end
|
30
|
-
|
31
|
-
private
|
32
|
-
|
33
|
-
attr_reader :configuration, :builder
|
34
23
|
end
|
35
24
|
end
|
36
25
|
end
|
@@ -6,16 +6,9 @@ module Rubysmith
|
|
6
6
|
module Builders
|
7
7
|
module RSpec
|
8
8
|
# Builds RSpec spec helper for project skeleton.
|
9
|
-
class Helper
|
9
|
+
class Helper < Abstract
|
10
10
|
using Refinements::Struct
|
11
11
|
|
12
|
-
def self.call(...) = new(...).call
|
13
|
-
|
14
|
-
def initialize configuration, builder: Builder
|
15
|
-
@configuration = configuration
|
16
|
-
@builder = builder
|
17
|
-
end
|
18
|
-
|
19
12
|
def call
|
20
13
|
return configuration unless configuration.build_rspec
|
21
14
|
|
@@ -26,10 +19,6 @@ module Rubysmith
|
|
26
19
|
|
27
20
|
configuration
|
28
21
|
end
|
29
|
-
|
30
|
-
private
|
31
|
-
|
32
|
-
attr_reader :configuration, :builder
|
33
22
|
end
|
34
23
|
end
|
35
24
|
end
|
@@ -5,16 +5,9 @@ require "refinements/struct"
|
|
5
5
|
module Rubysmith
|
6
6
|
module Builders
|
7
7
|
# Builds project skeleton setup script.
|
8
|
-
class Setup
|
8
|
+
class Setup < Abstract
|
9
9
|
using Refinements::Struct
|
10
10
|
|
11
|
-
def self.call(...) = new(...).call
|
12
|
-
|
13
|
-
def initialize configuration, builder: Builder
|
14
|
-
@configuration = configuration
|
15
|
-
@builder = builder
|
16
|
-
end
|
17
|
-
|
18
11
|
def call
|
19
12
|
return configuration unless configuration.build_setup
|
20
13
|
|
@@ -24,10 +17,6 @@ module Rubysmith
|
|
24
17
|
|
25
18
|
configuration
|
26
19
|
end
|
27
|
-
|
28
|
-
private
|
29
|
-
|
30
|
-
attr_reader :configuration, :builder
|
31
20
|
end
|
32
21
|
end
|
33
22
|
end
|
@@ -5,26 +5,15 @@ require "refinements/struct"
|
|
5
5
|
module Rubysmith
|
6
6
|
module Builders
|
7
7
|
# Builds project skeleton Ruby version file.
|
8
|
-
class Version
|
8
|
+
class Version < Abstract
|
9
9
|
using Refinements::Struct
|
10
10
|
|
11
|
-
def self.call(...) = new(...).call
|
12
|
-
|
13
|
-
def initialize configuration, builder: Builder
|
14
|
-
@configuration = configuration
|
15
|
-
@builder = builder
|
16
|
-
end
|
17
|
-
|
18
11
|
def call
|
19
12
|
builder.call(configuration.merge(template_path: "%project_name%/.ruby-version.erb"))
|
20
13
|
.render
|
21
14
|
.append("\n")
|
22
15
|
configuration
|
23
16
|
end
|
24
|
-
|
25
|
-
private
|
26
|
-
|
27
|
-
attr_reader :configuration, :builder
|
28
17
|
end
|
29
18
|
end
|
30
19
|
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "sod"
|
4
|
+
|
5
|
+
module Rubysmith
|
6
|
+
module CLI
|
7
|
+
module Actions
|
8
|
+
# Stores IRB Kit flag.
|
9
|
+
class IRBKit < Sod::Action
|
10
|
+
include Import[:input]
|
11
|
+
|
12
|
+
description "Add IRB Kit gem."
|
13
|
+
|
14
|
+
on "--[no-]irb-kit"
|
15
|
+
|
16
|
+
default { Container[:configuration].build_irb_kit }
|
17
|
+
|
18
|
+
def call(value = nil) = input.build_irb_kit = value
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "sod"
|
4
|
+
|
5
|
+
module Rubysmith
|
6
|
+
module CLI
|
7
|
+
module Actions
|
8
|
+
# Stores Repl Type Completor flag.
|
9
|
+
class RTC < Sod::Action
|
10
|
+
include Import[:input]
|
11
|
+
|
12
|
+
description "Add Repl Type Completor gem."
|
13
|
+
|
14
|
+
on "--[no-]rtc"
|
15
|
+
|
16
|
+
default { Container[:configuration].build_rtc }
|
17
|
+
|
18
|
+
def call(value = nil) = input.build_rtc = value
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -62,6 +62,7 @@ module Rubysmith
|
|
62
62
|
on Actions::GitHubCI
|
63
63
|
on Actions::GitLint
|
64
64
|
on Actions::Guard
|
65
|
+
on Actions::IRBKit
|
65
66
|
on Actions::License
|
66
67
|
on Actions::Maximum
|
67
68
|
on Actions::Minimum
|
@@ -70,6 +71,7 @@ module Rubysmith
|
|
70
71
|
on Actions::Reek
|
71
72
|
on Actions::Refinements
|
72
73
|
on Actions::RSpec
|
74
|
+
on Actions::RTC
|
73
75
|
on Actions::Security
|
74
76
|
on Actions::Setup
|
75
77
|
on Actions::SimpleCov
|
@@ -28,6 +28,7 @@ module Rubysmith
|
|
28
28
|
required(:build_git_hub_ci).filled :bool
|
29
29
|
required(:build_git_lint).filled :bool
|
30
30
|
required(:build_guard).filled :bool
|
31
|
+
required(:build_irb_kit).filled :bool
|
31
32
|
required(:build_license).filled :bool
|
32
33
|
required(:build_maximum).filled :bool
|
33
34
|
required(:build_minimum).filled :bool
|
@@ -36,6 +37,7 @@ module Rubysmith
|
|
36
37
|
required(:build_reek).filled :bool
|
37
38
|
required(:build_refinements).filled :bool
|
38
39
|
required(:build_rspec).filled :bool
|
40
|
+
required(:build_rtc).filled :bool
|
39
41
|
required(:build_security).filled :bool
|
40
42
|
required(:build_setup).filled :bool
|
41
43
|
required(:build_simple_cov).filled :bool
|
@@ -46,10 +48,11 @@ module Rubysmith
|
|
46
48
|
optional(:citation_orcid).filled :string
|
47
49
|
required(:documentation_format).filled :string
|
48
50
|
optional(:git_hub_user).filled :string
|
51
|
+
optional(:loaded_at).filled :time
|
49
52
|
required(:license_label).filled :string
|
50
53
|
required(:license_name).filled :string
|
51
54
|
required(:license_version).filled :string
|
52
|
-
optional(:
|
55
|
+
optional(:organization_url).filled :string
|
53
56
|
optional(:project_name).filled :string
|
54
57
|
optional(:project_url_community).filled :string
|
55
58
|
optional(:project_url_conduct).filled :string
|
@@ -15,6 +15,7 @@ build:
|
|
15
15
|
git_hub_ci: false
|
16
16
|
git_lint: true
|
17
17
|
guard: true
|
18
|
+
irb_kit: false
|
18
19
|
license: true
|
19
20
|
maximum: false
|
20
21
|
minimum: false
|
@@ -23,6 +24,7 @@ build:
|
|
23
24
|
reek: true
|
24
25
|
refinements: true
|
25
26
|
rspec: true
|
27
|
+
rtc: true
|
26
28
|
security: true
|
27
29
|
setup: true
|
28
30
|
simple_cov: true
|
@@ -29,6 +29,7 @@ module Rubysmith
|
|
29
29
|
:build_git_hub_ci,
|
30
30
|
:build_git_lint,
|
31
31
|
:build_guard,
|
32
|
+
:build_irb_kit,
|
32
33
|
:build_license,
|
33
34
|
:build_maximum,
|
34
35
|
:build_minimum,
|
@@ -37,6 +38,7 @@ module Rubysmith
|
|
37
38
|
:build_reek,
|
38
39
|
:build_refinements,
|
39
40
|
:build_rspec,
|
41
|
+
:build_rtc,
|
40
42
|
:build_security,
|
41
43
|
:build_setup,
|
42
44
|
:build_simple_cov,
|
@@ -50,7 +52,8 @@ module Rubysmith
|
|
50
52
|
:license_label,
|
51
53
|
:license_name,
|
52
54
|
:license_version,
|
53
|
-
:
|
55
|
+
:loaded_at,
|
56
|
+
:organization_url,
|
54
57
|
:project_name,
|
55
58
|
:project_url_community,
|
56
59
|
:project_url_conduct,
|
@@ -15,16 +15,16 @@ module Rubysmith
|
|
15
15
|
super(**)
|
16
16
|
end
|
17
17
|
|
18
|
-
def call(
|
18
|
+
def call(attributes) = attributes[key] ? Success(attributes) : email_or(attributes)
|
19
19
|
|
20
20
|
private
|
21
21
|
|
22
22
|
attr_reader :key
|
23
23
|
|
24
|
-
def email_or
|
24
|
+
def email_or attributes
|
25
25
|
git.get("user.email", nil)
|
26
|
-
.fmap { |value| value ?
|
27
|
-
.or { Success
|
26
|
+
.fmap { |value| value ? attributes.merge!(key => value) : attributes }
|
27
|
+
.or { Success attributes }
|
28
28
|
end
|
29
29
|
end
|
30
30
|
end
|
@@ -15,16 +15,16 @@ module Rubysmith
|
|
15
15
|
super(**)
|
16
16
|
end
|
17
17
|
|
18
|
-
def call(
|
18
|
+
def call(attributes) = attributes[key] ? Success(attributes) : user_or(attributes)
|
19
19
|
|
20
20
|
private
|
21
21
|
|
22
22
|
attr_reader :key
|
23
23
|
|
24
|
-
def user_or
|
24
|
+
def user_or attributes
|
25
25
|
git.get("github.user", nil)
|
26
|
-
.fmap { |value| value ?
|
27
|
-
.or { Success
|
26
|
+
.fmap { |value| value ? attributes.merge!(key => value) : attributes }
|
27
|
+
.or { Success attributes }
|
28
28
|
end
|
29
29
|
end
|
30
30
|
end
|
@@ -10,22 +10,24 @@ module Rubysmith
|
|
10
10
|
include Import[:git]
|
11
11
|
include Dry::Monads[:result]
|
12
12
|
|
13
|
-
def call
|
14
|
-
|
15
|
-
|
16
|
-
|
13
|
+
def call attributes
|
14
|
+
if attributes[:author_given_name] || attributes[:author_family_name]
|
15
|
+
Success attributes
|
16
|
+
else
|
17
|
+
name_or attributes
|
18
|
+
end
|
17
19
|
end
|
18
20
|
|
19
21
|
private
|
20
22
|
|
21
|
-
def name_or(
|
23
|
+
def name_or(attributes) = split(attributes).or { Success attributes }
|
22
24
|
|
23
|
-
def split
|
25
|
+
def split attributes
|
24
26
|
git.get("user.name", nil).fmap do |name|
|
25
|
-
next
|
27
|
+
next attributes unless name
|
26
28
|
|
27
29
|
first, last = String(name).split
|
28
|
-
|
30
|
+
attributes.merge! author_given_name: first, author_family_name: last
|
29
31
|
end
|
30
32
|
end
|
31
33
|
end
|
@@ -8,10 +8,10 @@ module Rubysmith
|
|
8
8
|
module Transformers
|
9
9
|
include Dry::Monads[:result]
|
10
10
|
|
11
|
-
TargetRoot = lambda do |
|
12
|
-
|
13
|
-
|
14
|
-
|
11
|
+
TargetRoot = lambda do |attributes, key = :target_root, path: Pathname.pwd|
|
12
|
+
attributes.fetch(:target_root) { path }
|
13
|
+
.then { |value| attributes.merge! key => value }
|
14
|
+
.then { |updated_attributes| Dry::Monads::Success updated_attributes }
|
15
15
|
end
|
16
16
|
end
|
17
17
|
end
|
@@ -6,7 +6,7 @@ require "refinements/array"
|
|
6
6
|
module Rubysmith
|
7
7
|
module Configuration
|
8
8
|
module Transformers
|
9
|
-
# Appends custom
|
9
|
+
# Appends custom path to default template roots.
|
10
10
|
class TemplateRoot
|
11
11
|
include Dry::Monads[:result]
|
12
12
|
|
@@ -17,11 +17,11 @@ module Rubysmith
|
|
17
17
|
@default = default
|
18
18
|
end
|
19
19
|
|
20
|
-
def call
|
20
|
+
def call attributes
|
21
21
|
Array(default).map { |path| Pathname path }
|
22
|
-
.including(
|
22
|
+
.including(attributes[key])
|
23
23
|
.compact
|
24
|
-
.then { |value| Success
|
24
|
+
.then { |value| Success attributes.merge!(key => value) }
|
25
25
|
end
|
26
26
|
|
27
27
|
private
|
data/lib/rubysmith/container.rb
CHANGED
@@ -20,12 +20,12 @@ module Rubysmith
|
|
20
20
|
register :defaults do
|
21
21
|
Etcher::Registry.new(contract: Configuration::Contract, model: Configuration::Model)
|
22
22
|
.add_loader(Etcher::Loaders::YAML.new(self[:defaults_path]))
|
23
|
-
.add_transformer(Configuration::Transformers::CurrentTime)
|
24
23
|
.add_transformer(Configuration::Transformers::GitHubUser.new)
|
25
24
|
.add_transformer(Configuration::Transformers::GitEmail.new)
|
26
25
|
.add_transformer(Configuration::Transformers::GitUser.new)
|
27
26
|
.add_transformer(Configuration::Transformers::TemplateRoot.new)
|
28
27
|
.add_transformer(Configuration::Transformers::TargetRoot)
|
28
|
+
.add_transformer(Etcher::Transformers::Time.new)
|
29
29
|
end
|
30
30
|
|
31
31
|
register(:specification) { Spek::Loader.call "#{__dir__}/../../rubysmith.gemspec" }
|
@@ -4,7 +4,7 @@ title: <%= configuration.project_label %>
|
|
4
4
|
abstract:
|
5
5
|
version: <%= configuration.project_version %>
|
6
6
|
license: <%= configuration.license_label_version %>
|
7
|
-
date-released: <%= configuration.
|
7
|
+
date-released: <%= configuration.loaded_at.strftime "%Y-%m-%d" %>
|
8
8
|
authors:
|
9
9
|
- family-names: <%= configuration.author_family_name %>
|
10
10
|
given-names: <%= configuration.author_given_name %>
|
@@ -49,5 +49,10 @@ group :tools do
|
|
49
49
|
<% if configuration.build_debug %>
|
50
50
|
gem "debug", "~> 1.9"
|
51
51
|
<% end %>
|
52
|
-
|
52
|
+
<% if configuration.build_irb_kit %>
|
53
|
+
gem "irb-kit", "~> 0.0"
|
54
|
+
<% end %>
|
55
|
+
<% if configuration.build_rtc %>
|
56
|
+
gem "repl_type_completor", "~> 0.1"
|
57
|
+
<% end %>
|
53
58
|
end
|
@@ -150,7 +150,7 @@ additional liability.
|
|
150
150
|
|
151
151
|
END OF TERMS AND CONDITIONS
|
152
152
|
|
153
|
-
Copyright <%= configuration.
|
153
|
+
Copyright <%= configuration.loaded_at.strftime "%Y" %> link:<%= configuration.author_url %>[<%= configuration.author_name %>].
|
154
154
|
|
155
155
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in
|
156
156
|
compliance with the License. You may obtain a link:https://www.apache.org/licenses/LICENSE-2.0[copy]
|
@@ -150,7 +150,7 @@ additional liability.
|
|
150
150
|
|
151
151
|
END OF TERMS AND CONDITIONS
|
152
152
|
|
153
|
-
Copyright <%= configuration.
|
153
|
+
Copyright <%= configuration.loaded_at.strftime "%Y" %> [<%= configuration.author_name %>](<%= configuration.author_url %>).
|
154
154
|
|
155
155
|
Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in
|
156
156
|
compliance with the License. You may obtain a [copy](https://www.apache.org/licenses/LICENSE-2.0) of
|
@@ -1,4 +1,4 @@
|
|
1
|
-
Copyright <%= configuration.
|
1
|
+
Copyright <%= configuration.loaded_at.strftime "%Y" %> link:<%= configuration.author_url %>[<%= configuration.author_name %>].
|
2
2
|
|
3
3
|
Permission is hereby granted, free of charge, to any person obtaining
|
4
4
|
a copy of this software and associated documentation files (the
|
@@ -1,4 +1,4 @@
|
|
1
|
-
Copyright <%= configuration.
|
1
|
+
Copyright <%= configuration.loaded_at.strftime "%Y" %> [<%= configuration.author_name %>](<%= configuration.author_url %>).
|
2
2
|
|
3
3
|
Permission is hereby granted, free of charge, to any person obtaining
|
4
4
|
a copy of this software and associated documentation files (the
|
@@ -8,52 +8,21 @@ toc::[]
|
|
8
8
|
|
9
9
|
== Features
|
10
10
|
|
11
|
-
== Screencasts
|
12
|
-
|
13
11
|
== Requirements
|
14
12
|
|
15
13
|
. link:https://www.ruby-lang.org[Ruby].
|
16
14
|
|
17
15
|
== Setup
|
18
|
-
<% if configuration.build_security %>
|
19
|
-
|
20
|
-
To install _with_ security, run:
|
21
|
-
|
22
|
-
[source,bash]
|
23
|
-
----
|
24
|
-
# 💡 Skip this line if you already have the public certificate installed.
|
25
|
-
gem cert --add <(curl --compressed --location <%= configuration.computed_project_url_home %>/gems.pem)
|
26
|
-
gem install <%= configuration.project_name %> --trust-policy HighSecurity
|
27
|
-
----
|
28
16
|
|
29
|
-
To
|
17
|
+
To set up project, run:
|
30
18
|
|
31
19
|
[source,bash]
|
32
20
|
----
|
33
|
-
|
34
|
-
|
35
|
-
<%
|
36
|
-
|
37
|
-
To install, run:
|
38
|
-
|
39
|
-
[source,bash]
|
40
|
-
----
|
41
|
-
gem install <%= configuration.project_name %>
|
42
|
-
----
|
21
|
+
git clone <%= configuration.computed_project_url_source %>
|
22
|
+
cd <%= configuration.project_name %>
|
23
|
+
<% if configuration.build_setup %>
|
24
|
+
bin/setup
|
43
25
|
<% end %>
|
44
|
-
|
45
|
-
You can also add the gem directly to your project:
|
46
|
-
|
47
|
-
[source,bash]
|
48
|
-
----
|
49
|
-
bundle add <%= configuration.project_name %>
|
50
|
-
----
|
51
|
-
|
52
|
-
Once the gem is installed, you only need to require it:
|
53
|
-
|
54
|
-
[source,ruby]
|
55
|
-
----
|
56
|
-
require "<%= configuration.project_name %>"
|
57
26
|
----
|
58
27
|
|
59
28
|
== Usage
|
@@ -5,38 +5,19 @@
|
|
5
5
|
|
6
6
|
## Features
|
7
7
|
|
8
|
-
## Screencasts
|
9
|
-
|
10
8
|
## Requirements
|
11
9
|
|
12
10
|
1. [Ruby](https://www.ruby-lang.org)
|
13
11
|
|
14
12
|
## Setup
|
15
|
-
<% if configuration.build_security %>
|
16
|
-
|
17
|
-
To install _with_ security, run:
|
18
|
-
|
19
|
-
# 💡 Skip this line if you already have the public certificate installed.
|
20
|
-
gem cert --add <(curl --compressed --location <%= configuration.computed_project_url_home %>/gems.pem)
|
21
|
-
gem install <%= configuration.project_name %> --trust-policy HighSecurity
|
22
|
-
|
23
|
-
To install _without_ security, run:
|
24
|
-
|
25
|
-
gem install <%= configuration.project_name %>
|
26
|
-
<% else %>
|
27
|
-
|
28
|
-
To install, run:
|
29
|
-
|
30
|
-
gem install <%= configuration.project_name %>
|
31
|
-
<% end %>
|
32
|
-
|
33
|
-
You can also add the gem directly to your project:
|
34
13
|
|
35
|
-
|
14
|
+
To set up project, run:
|
36
15
|
|
37
|
-
|
38
|
-
|
39
|
-
|
16
|
+
git clone <%= configuration.computed_project_url_source %>
|
17
|
+
cd <%= configuration.project_name %>
|
18
|
+
<% if configuration.build_setup %>
|
19
|
+
bin/setup
|
20
|
+
<% end %>
|
40
21
|
|
41
22
|
## Usage
|
42
23
|
|
@@ -38,6 +38,7 @@ RSpec.configure do |config|
|
|
38
38
|
config.filter_run_when_matching :focus
|
39
39
|
config.formatter = ENV.fetch("CI", false) == "true" ? :progress : :documentation
|
40
40
|
config.order = :random
|
41
|
+
config.pending_failure_output = :no_backtrace
|
41
42
|
config.shared_context_metadata_behavior = :apply_to_host_groups
|
42
43
|
config.warnings = true
|
43
44
|
|
data/lib/rubysmith.rb
CHANGED
@@ -7,7 +7,9 @@ Zeitwerk::Loader.new.then do |loader|
|
|
7
7
|
"circle_ci" => "CircleCI",
|
8
8
|
"erb" => "ERB",
|
9
9
|
"git_hub_ci" => "GitHubCI",
|
10
|
-
"
|
10
|
+
"irb_kit" => "IRBKit",
|
11
|
+
"rspec" => "RSpec",
|
12
|
+
"rtc" => "RTC"
|
11
13
|
loader.tag = File.basename __FILE__, ".rb"
|
12
14
|
loader.push_dir __dir__
|
13
15
|
loader.setup
|
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 = "6.
|
5
|
+
spec.version = "6.8.0"
|
6
6
|
spec.authors = ["Brooke Kuhlmann"]
|
7
7
|
spec.email = ["brooke@alchemists.io"]
|
8
8
|
spec.homepage = "https://alchemists.io/projects/rubysmith"
|
@@ -27,10 +27,10 @@ Gem::Specification.new do |spec|
|
|
27
27
|
spec.add_dependency "containable", "~> 0.0"
|
28
28
|
spec.add_dependency "dry-monads", "~> 1.6"
|
29
29
|
spec.add_dependency "dry-schema", "~> 1.13"
|
30
|
-
spec.add_dependency "etcher", "~> 1.
|
30
|
+
spec.add_dependency "etcher", "~> 1.5"
|
31
31
|
spec.add_dependency "gitt", "~> 3.2"
|
32
32
|
spec.add_dependency "infusible", "~> 3.5"
|
33
|
-
spec.add_dependency "milestoner", "~> 17.
|
33
|
+
spec.add_dependency "milestoner", "~> 17.8"
|
34
34
|
spec.add_dependency "pragmater", "~> 14.4"
|
35
35
|
spec.add_dependency "refinements", "~> 12.1"
|
36
36
|
spec.add_dependency "rubocop", "~> 1.63"
|
data.tar.gz.sig
CHANGED
Binary file
|