gemsmith 20.0.0 → 20.2.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/gemsmith.gemspec +2 -2
- data/lib/gemsmith/cli/actions/cli.rb +1 -1
- data/lib/gemsmith/cli/actions/edit.rb +1 -1
- data/lib/gemsmith/cli/actions/install.rb +3 -4
- data/lib/gemsmith/cli/actions/publish.rb +3 -4
- data/lib/gemsmith/cli/actions/view.rb +1 -1
- data/lib/gemsmith/cli/commands/build.rb +3 -4
- data.tar.gz.sig +0 -0
- metadata +4 -4
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c07779f7a63388c6c6ec265b63d03a1f050e87aeae86d16674ceb035c209ef6d
|
4
|
+
data.tar.gz: a31f491232f07e08abc83f87d806d70e10f03192124332c474d11779165c7743
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dec10ba9b8346c6c622bf840a2e46b68dedd329cd4b935d6f4792715f2e1edd314562c34d7b43378206ab7bab14e0292bdc88ea3f82e106b3cac56439e588d15
|
7
|
+
data.tar.gz: f38743add33f8c6a86c733d34739ff56dc3abb227a551b379664e4c08f38a9fb518b5208e25a765d2680f1c7028663c697852c5f7c17d9061c36828a67cf7f99
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/gemsmith.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |spec|
|
4
4
|
spec.name = "gemsmith"
|
5
|
-
spec.version = "20.
|
5
|
+
spec.version = "20.2.0"
|
6
6
|
spec.authors = ["Brooke Kuhlmann"]
|
7
7
|
spec.email = ["brooke@alchemists.io"]
|
8
8
|
spec.homepage = "https://alchemists.io/projects/gemsmith"
|
@@ -32,7 +32,7 @@ Gem::Specification.new do |spec|
|
|
32
32
|
spec.add_dependency "infusible", "~> 2.0"
|
33
33
|
spec.add_dependency "milestoner", "~> 16.0"
|
34
34
|
spec.add_dependency "refinements", "~> 11.0"
|
35
|
-
spec.add_dependency "rubysmith", "~> 5.
|
35
|
+
spec.add_dependency "rubysmith", "~> 5.3"
|
36
36
|
spec.add_dependency "runcom", "~> 10.0"
|
37
37
|
spec.add_dependency "sod", "~> 0.0"
|
38
38
|
spec.add_dependency "spek", "~> 2.0"
|
@@ -9,7 +9,7 @@ module Gemsmith
|
|
9
9
|
module Actions
|
10
10
|
# Handles the edit action for editing an installed gem.
|
11
11
|
class Edit < Sod::Action
|
12
|
-
include
|
12
|
+
include Import[:kernel, :logger]
|
13
13
|
include Dry::Monads[:result]
|
14
14
|
|
15
15
|
description "Edit installed gem in default editor."
|
@@ -10,7 +10,7 @@ module Gemsmith
|
|
10
10
|
module Actions
|
11
11
|
# Handles the install action.
|
12
12
|
class Install < Sod::Action
|
13
|
-
include
|
13
|
+
include Import[:logger]
|
14
14
|
include Dry::Monads[:result]
|
15
15
|
|
16
16
|
description "Install gem for local development."
|
@@ -27,9 +27,8 @@ module Gemsmith
|
|
27
27
|
@loader = loader
|
28
28
|
end
|
29
29
|
|
30
|
-
|
31
|
-
|
32
|
-
case installer.call loader.call("#{name || default}.gemspec")
|
30
|
+
def call name = default
|
31
|
+
case installer.call loader.call("#{name}.gemspec")
|
33
32
|
in Success(spec) then logger.info { "Installed: #{spec.package_name}." }
|
34
33
|
in Failure(message) then log_error { message }
|
35
34
|
else log_error { "Unable to handle install action." }
|
@@ -10,7 +10,7 @@ module Gemsmith
|
|
10
10
|
module Actions
|
11
11
|
# Handles the publish action.
|
12
12
|
class Publish < Sod::Action
|
13
|
-
include
|
13
|
+
include Import[:logger]
|
14
14
|
include Dry::Monads[:result]
|
15
15
|
|
16
16
|
description "Publish gem to remote gem server."
|
@@ -27,9 +27,8 @@ module Gemsmith
|
|
27
27
|
@loader = loader
|
28
28
|
end
|
29
29
|
|
30
|
-
|
31
|
-
|
32
|
-
case publisher.call loader.call("#{name || default}.gemspec")
|
30
|
+
def call name = default
|
31
|
+
case publisher.call loader.call("#{name}.gemspec")
|
33
32
|
in Success(spec) then logger.info { "Published: #{spec.package_name}." }
|
34
33
|
in Failure(message) then log_error { message }
|
35
34
|
else log_error { "Unable to handle publish action." }
|
@@ -9,7 +9,7 @@ module Gemsmith
|
|
9
9
|
module Actions
|
10
10
|
# Handles the view action for viewing an installed gem in default browser.
|
11
11
|
class View < Sod::Action
|
12
|
-
include
|
12
|
+
include Import[:kernel, :logger]
|
13
13
|
include Dry::Monads[:result]
|
14
14
|
|
15
15
|
description "View installed gem in default browser."
|
@@ -7,11 +7,11 @@ module Gemsmith
|
|
7
7
|
module Commands
|
8
8
|
# Handles the build action.
|
9
9
|
class Build < Sod::Command
|
10
|
-
include
|
10
|
+
include Import[:input, :logger]
|
11
11
|
|
12
12
|
# Order is important.
|
13
|
-
# rubocop:todo Metrics/CollectionLiteralLength
|
14
13
|
BUILDERS = [
|
14
|
+
Rubysmith::Builders::Init,
|
15
15
|
Rubysmith::Builders::Core,
|
16
16
|
Rubysmith::Builders::Version,
|
17
17
|
Builders::Specification,
|
@@ -46,7 +46,6 @@ module Gemsmith
|
|
46
46
|
Rubysmith::Extensions::Rubocop,
|
47
47
|
Builders::Git::Commit
|
48
48
|
].freeze
|
49
|
-
# rubocop:enable Metrics/CollectionLiteralLength
|
50
49
|
|
51
50
|
handle "build"
|
52
51
|
|
@@ -57,7 +56,7 @@ module Gemsmith
|
|
57
56
|
on Rubysmith::CLI::Actions::Caliber, input: Container[:input]
|
58
57
|
on Rubysmith::CLI::Actions::CircleCI, input: Container[:input]
|
59
58
|
on Rubysmith::CLI::Actions::Citation, input: Container[:input]
|
60
|
-
on Actions::CLI
|
59
|
+
on Actions::CLI
|
61
60
|
on Rubysmith::CLI::Actions::Community, input: Container[:input]
|
62
61
|
on Rubysmith::CLI::Actions::Conduct, input: Container[:input]
|
63
62
|
on Rubysmith::CLI::Actions::Console, input: Container[:input]
|
data.tar.gz.sig
CHANGED
Binary file
|
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: 20.
|
4
|
+
version: 20.2.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-
|
38
|
+
date: 2023-06-22 00:00:00.000000000 Z
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: cogger
|
@@ -169,14 +169,14 @@ dependencies:
|
|
169
169
|
requirements:
|
170
170
|
- - "~>"
|
171
171
|
- !ruby/object:Gem::Version
|
172
|
-
version: '5.
|
172
|
+
version: '5.3'
|
173
173
|
type: :runtime
|
174
174
|
prerelease: false
|
175
175
|
version_requirements: !ruby/object:Gem::Requirement
|
176
176
|
requirements:
|
177
177
|
- - "~>"
|
178
178
|
- !ruby/object:Gem::Version
|
179
|
-
version: '5.
|
179
|
+
version: '5.3'
|
180
180
|
- !ruby/object:Gem::Dependency
|
181
181
|
name: runcom
|
182
182
|
requirement: !ruby/object:Gem::Requirement
|
metadata.gz.sig
CHANGED
Binary file
|