rubysmith 4.4.0 → 4.5.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: 369e1f3f129b4a720739f0082e9bc8e1b81b2624044a656eb8fc3a7857678f2f
4
- data.tar.gz: 1c6ac0a082c68f0df9f3169d04ed56af5ec6fceb73556628a3a2cec255fd9405
3
+ metadata.gz: 55c3866c9490668be3c681aec460463b9d364f140736382438305bb0221ce8c7
4
+ data.tar.gz: cfcaffcad4bd532a71ba36c08b9795296cd06fa200541109d9ce5479d479fcc3
5
5
  SHA512:
6
- metadata.gz: fe4fbacb5bd3298d6c67979e56a3de9e65ff2bec5c7504bed48d24cfb2eee999fb107b36100a52a5a1b1a4b775071ac05bf18235a6f5a7c4a7590216036d3214
7
- data.tar.gz: 716de62909d60e3585f26b4816c33dac3d62334f6bef662995b2015a390c27b0bf9bbb10db3a90ca239bfac4c5322e2a649d8532a34549abe1f60f21ec235726
6
+ metadata.gz: e1727976ede3f428d8bfffef997eed72fd99036721af4b611b9c17b328e3106544cac1378d60b39905423303e34f2a5e7ba141c442c56400419edd85a2d033b3
7
+ data.tar.gz: 6e1debe8fb64513c5240d626f10fb1d6c6bf14b66b041ae0384a6d3905d8dd3f19c3a5a88dc8c398ba41bb095994f139739390cf80798a5b8556aec668cfb09f
checksums.yaml.gz.sig CHANGED
Binary file
@@ -15,8 +15,8 @@ module Rubysmith
15
15
 
16
16
  def self.call(...) = new(...)
17
17
 
18
- def initialize configuration, helpers: HELPERS, **dependencies
19
- super(**dependencies)
18
+ def initialize(configuration, helpers: HELPERS, **)
19
+ super(**)
20
20
  @configuration = configuration
21
21
  @helpers = helpers
22
22
  end
@@ -9,9 +9,8 @@ module Rubysmith
9
9
 
10
10
  def self.call(...) = new(...).call
11
11
 
12
- def initialize configuration, builder: Builder, **dependencies
13
- super(**dependencies)
14
-
12
+ def initialize(configuration, builder: Builder, **)
13
+ super(**)
15
14
  @configuration = configuration
16
15
  @builder = builder
17
16
  end
@@ -18,7 +18,7 @@ module Rubysmith
18
18
  def call
19
19
  return configuration unless configuration.build_git_hub_ci
20
20
 
21
- builder.call(configuration_with_template).render
21
+ builder.call(configuration_with_template).render.replace(/\n\n\Z/, "\n")
22
22
  configuration
23
23
  end
24
24
 
@@ -38,8 +38,8 @@ module Rubysmith
38
38
  Builders::Git::Commit
39
39
  ].freeze
40
40
 
41
- def initialize builders: BUILDERS, **dependencies
42
- super(**dependencies)
41
+ def initialize(builders: BUILDERS, **)
42
+ super(**)
43
43
  @builders = builders
44
44
  end
45
45
 
@@ -7,8 +7,8 @@ module Rubysmith
7
7
  class Config
8
8
  include Rubysmith::Import[:kernel, :logger]
9
9
 
10
- def initialize client: Configuration::Loader::CLIENT, **dependencies
11
- super(**dependencies)
10
+ def initialize(client: Configuration::Loader::CLIENT, **)
11
+ super(**)
12
12
  @client = client
13
13
  end
14
14
 
@@ -12,8 +12,8 @@ module Rubysmith
12
12
  CLIENT = OptionParser.new nil, 40, " "
13
13
  SECTIONS = [Parsers::Core, Parsers::Build].freeze # Order is important.
14
14
 
15
- def initialize sections: SECTIONS, client: CLIENT, **dependencies
16
- super(**dependencies)
15
+ def initialize(sections: SECTIONS, client: CLIENT, **)
16
+ super(**)
17
17
  @sections = sections
18
18
  @client = client
19
19
  @configuration_duplicate = configuration.dup
@@ -14,10 +14,8 @@ module Rubysmith
14
14
 
15
15
  def self.call(...) = new(...).call
16
16
 
17
- def initialize configuration = Container[:configuration],
18
- client: Parser::CLIENT,
19
- **dependencies
20
- super(**dependencies)
17
+ def initialize(configuration = Container[:configuration], client: Parser::CLIENT, **)
18
+ super(**)
21
19
  @configuration = configuration
22
20
  @client = client
23
21
  end
@@ -14,10 +14,8 @@ module Rubysmith
14
14
 
15
15
  def self.call(...) = new(...).call
16
16
 
17
- def initialize configuration = Container[:configuration],
18
- client: Parser::CLIENT,
19
- **dependencies
20
- super(**dependencies)
17
+ def initialize(configuration = Container[:configuration], client: Parser::CLIENT, **)
18
+ super(**)
21
19
  @configuration = configuration
22
20
  @client = client
23
21
  end
@@ -9,13 +9,13 @@ module Rubysmith
9
9
  class Shell
10
10
  include Actions::Import[:config, :build, :publish, :specification, :logger]
11
11
 
12
- def initialize parser: Parser.new, **dependencies
13
- super(**dependencies)
12
+ def initialize(parser: Parser.new, **)
13
+ super(**)
14
14
  @parser = parser
15
15
  end
16
16
 
17
17
  def call arguments = Core::EMPTY_ARRAY
18
- perform parser.call(arguments)
18
+ act_on parser.call(arguments)
19
19
  rescue OptionParser::ParseError, Milestoner::Error => error
20
20
  logger.error { error.message }
21
21
  end
@@ -24,7 +24,7 @@ module Rubysmith
24
24
 
25
25
  attr_reader :parser
26
26
 
27
- def perform configuration
27
+ def act_on configuration
28
28
  case configuration
29
29
  in action_config: Symbol => action then config.call action
30
30
  in action_build: true then build.call configuration
@@ -18,3 +18,11 @@ jobs:
18
18
 
19
19
  - name: Rake
20
20
  run: bundle exec rake
21
+
22
+ <% if configuration.build_simple_cov %>
23
+ - name: Archive SimpleCov Report
24
+ uses: actions/upload-artifact@v3
25
+ with:
26
+ name: coverage
27
+ path: coverage
28
+ <% end %>
@@ -11,7 +11,7 @@ source "https://rubygems.org"
11
11
 
12
12
  group :code_quality do
13
13
  <% if configuration.build_caliber %>
14
- gem "caliber", "~> 0.21"
14
+ gem "caliber", "~> 0.25"
15
15
  <% end %>
16
16
  <% if configuration.build_git && configuration.build_git_lint %>
17
17
  gem "git-lint", "~> 5.0"
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 = "4.4.0"
5
+ spec.version = "4.5.0"
6
6
  spec.authors = ["Brooke Kuhlmann"]
7
7
  spec.email = ["brooke@alchemists.io"]
8
8
  spec.homepage = "https://github.com/bkuhlmann/rubysmith"
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubysmith
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.4.0
4
+ version: 4.5.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brooke Kuhlmann
@@ -28,7 +28,7 @@ cert_chain:
28
28
  CxDe2+VuChj4I1nvIHdu+E6XoEVlanUPKmSg6nddhkKn2gC45Kyzh6FZqnzH/CRp
29
29
  RFE=
30
30
  -----END CERTIFICATE-----
31
- date: 2023-01-22 00:00:00.000000000 Z
31
+ date: 2023-02-05 00:00:00.000000000 Z
32
32
  dependencies:
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: cogger
@@ -352,7 +352,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
352
352
  - !ruby/object:Gem::Version
353
353
  version: '0'
354
354
  requirements: []
355
- rubygems_version: 3.4.4
355
+ rubygems_version: 3.4.6
356
356
  signing_key:
357
357
  specification_version: 4
358
358
  summary: A command line interface for smithing Ruby projects.
metadata.gz.sig CHANGED
@@ -1,2 +1,3 @@
1
- ��&��ӗ9X�)��Vf O�K��.���lbBI}��"�����z�,xZ;q���p:���C��=EZ(
2
- R(�<'�q[� ��?3�% ������2�-8G�A�ʭ[��9�Tt˕0��^�N�7:��7ѿ�F�8�z[R��Vn� �_�4�a��q݂4@t�GqHי��Wu:Vlv�S�'��>�΄�vA"��s���9ay��)8S�j��xHL�_��u�pw�I!\n��������X���}�y�l�
1
+ ��.���vKl٠:��pvǯ�}�*(4��IQ��''��z�M����gI����ګ5����a#fO��i��O:�Q�!���v9+�dHN���l�s�����m�����gg���F:T|�ao��J�X��
2
+ >��f~+?�~��2��
3
+ �b����]�6�7R���p���67�i��+,������A���� ~�d�k��L� � ��� `Hb�vYL������bY7�!�wg����0%�/��j�ie�