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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1e0b2d89efd43adce74b6fbed669777763f954f2b0b6f0f0c5832f12d2f8d883
4
- data.tar.gz: a17145a647271cd6286b72b5c52574c34ab613e012a35b147223cb12109554b1
3
+ metadata.gz: c07779f7a63388c6c6ec265b63d03a1f050e87aeae86d16674ceb035c209ef6d
4
+ data.tar.gz: a31f491232f07e08abc83f87d806d70e10f03192124332c474d11779165c7743
5
5
  SHA512:
6
- metadata.gz: 46aa1cc207d47fe6c768d8b4f581992536166126df49944b2de2b249bb56923e22e28fd969c799e5c3e2e7e58c8ad7a2dbf858af4a59652377c0c106de8085da
7
- data.tar.gz: d074cba35efa1a8b40c6c58225a4ffbc8ad317d05838e906e4ffc6d94cb9395973800bea861ef1c85be2f9074fba1e0ec6804152c8a1be148b8beb45178613d5
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.0.0"
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.1"
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"
@@ -15,7 +15,7 @@ module Gemsmith
15
15
 
16
16
  default { Container[:configuration].build_cli }
17
17
 
18
- def call(value = default) = input.build_cli = value
18
+ def call(value = nil) = input.build_cli = value
19
19
  end
20
20
  end
21
21
  end
@@ -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 Gemsmith::Import[:kernel, :logger]
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 Gemsmith::Import[:logger]
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
- # :reek:ControlParameter
31
- def call name = nil
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 Gemsmith::Import[:logger]
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
- # :reek:ControlParameter
31
- def call name = nil
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 Gemsmith::Import[:kernel, :logger]
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 Gemsmith::Import[:input, :logger]
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, input: Container[:input]
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.0.0
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-18 00:00:00.000000000 Z
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.1'
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.1'
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