milestoner 15.1.0 → 15.2.1
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/lib/milestoner/cli/actions/config.rb +2 -2
- data/lib/milestoner/cli/actions/status.rb +2 -4
- data/lib/milestoner/cli/parser.rb +4 -4
- data/lib/milestoner/cli/parsers/core.rb +4 -5
- data/lib/milestoner/cli/shell.rb +7 -5
- data/lib/milestoner/commits/categorizer.rb +2 -2
- data/lib/milestoner/presenters/commit.rb +2 -2
- data/lib/milestoner/tags/creator.rb +2 -4
- data/lib/milestoner/tags/publisher.rb +2 -2
- data/milestoner.gemspec +3 -2
- data.tar.gz.sig +0 -0
- metadata +19 -5
- 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: 45eb4b399cf52ba0775abe8d806bf899da644da7944c3c258be30bf3b0df39da
|
4
|
+
data.tar.gz: 43ad5b21b06bd32816d55788167b2df40eb8c8620638459abb69a5d4fae9f25b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 57ddb5e0b51612d3bbe2adc38c2aae314a5add46d355b7568dcb13c9d2ee5b9755075eb1c1bb734e619a370aee3f86b06329f5091d52582281d48773cf187f0c
|
7
|
+
data.tar.gz: ec1a4d0c26558c5adfbbbb1af393171def3ddf6cad17aa93f000c5eee86f270aa6c9b4457fa6dd56989e42ef27bb25902f274aa099218be143337aedae168a47
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
@@ -7,8 +7,8 @@ module Milestoner
|
|
7
7
|
class Config
|
8
8
|
include Milestoner::Import[:kernel, :logger]
|
9
9
|
|
10
|
-
def initialize
|
11
|
-
super(**
|
10
|
+
def initialize(configuration: Configuration::Loader::CLIENT, **)
|
11
|
+
super(**)
|
12
12
|
@configuration = configuration
|
13
13
|
end
|
14
14
|
|
@@ -7,10 +7,8 @@ module Milestoner
|
|
7
7
|
class Status
|
8
8
|
include Milestoner::Import[:logger]
|
9
9
|
|
10
|
-
def initialize
|
11
|
-
|
12
|
-
**dependencies
|
13
|
-
super(**dependencies)
|
10
|
+
def initialize(presenter: Presenters::Commit, categorizer: Commits::Categorizer.new, **)
|
11
|
+
super(**)
|
14
12
|
@presenter = presenter
|
15
13
|
@categorizer = categorizer
|
16
14
|
end
|
@@ -1,5 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require "core"
|
3
4
|
require "optparse"
|
4
5
|
|
5
6
|
module Milestoner
|
@@ -11,15 +12,14 @@ module Milestoner
|
|
11
12
|
CLIENT = OptionParser.new nil, 40, " "
|
12
13
|
SECTIONS = [Parsers::Core].freeze
|
13
14
|
|
14
|
-
def initialize
|
15
|
-
super(**
|
16
|
-
|
15
|
+
def initialize(sections: SECTIONS, client: CLIENT, **)
|
16
|
+
super(**)
|
17
17
|
@sections = sections
|
18
18
|
@client = client
|
19
19
|
@configuration_duplicate = configuration.dup
|
20
20
|
end
|
21
21
|
|
22
|
-
def call arguments =
|
22
|
+
def call arguments = Core::EMPTY_ARRAY
|
23
23
|
sections.each { |section| section.call configuration_duplicate, client: }
|
24
24
|
client.parse arguments
|
25
25
|
configuration_duplicate.freeze
|
@@ -1,5 +1,6 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require "core"
|
3
4
|
require "refinements/structs"
|
4
5
|
require "versionaire/extensions/option_parser"
|
5
6
|
|
@@ -15,15 +16,13 @@ module Milestoner
|
|
15
16
|
|
16
17
|
def self.call(...) = new(...).call
|
17
18
|
|
18
|
-
def initialize
|
19
|
-
|
20
|
-
**dependencies
|
21
|
-
super(**dependencies)
|
19
|
+
def initialize(configuration = Container[:configuration], client: Parser::CLIENT, **)
|
20
|
+
super(**)
|
22
21
|
@configuration = configuration
|
23
22
|
@client = client
|
24
23
|
end
|
25
24
|
|
26
|
-
def call arguments =
|
25
|
+
def call arguments = ::Core::EMPTY_ARRAY
|
27
26
|
client.banner = specification.labeled_summary
|
28
27
|
client.separator "\nUSAGE:\n"
|
29
28
|
collate
|
data/lib/milestoner/cli/shell.rb
CHANGED
@@ -1,18 +1,20 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require "core"
|
4
|
+
|
3
5
|
module Milestoner
|
4
6
|
module CLI
|
5
7
|
# The main Command Line Interface (CLI) object.
|
6
8
|
class Shell
|
7
9
|
include Actions::Import[:config, :publish, :status, :specification, :logger]
|
8
10
|
|
9
|
-
def initialize
|
10
|
-
super(**
|
11
|
+
def initialize(parser: Parser.new, **)
|
12
|
+
super(**)
|
11
13
|
@parser = parser
|
12
14
|
end
|
13
15
|
|
14
|
-
def call arguments =
|
15
|
-
|
16
|
+
def call arguments = Core::EMPTY_ARRAY
|
17
|
+
act_on parser.call(arguments)
|
16
18
|
rescue OptionParser::ParseError, Error => error
|
17
19
|
logger.error { error.message }
|
18
20
|
end
|
@@ -21,7 +23,7 @@ module Milestoner
|
|
21
23
|
|
22
24
|
attr_reader :parser
|
23
25
|
|
24
|
-
def
|
26
|
+
def act_on configuration
|
25
27
|
case configuration
|
26
28
|
in action_config: Symbol => action then config.call action
|
27
29
|
in action_publish: true then publish.call configuration
|
@@ -11,10 +11,8 @@ module Milestoner
|
|
11
11
|
|
12
12
|
using Versionaire::Cast
|
13
13
|
|
14
|
-
def initialize
|
15
|
-
|
16
|
-
**dependencies
|
17
|
-
super(**dependencies)
|
14
|
+
def initialize(categorizer: Commits::Categorizer.new, presenter: Presenters::Commit, **)
|
15
|
+
super(**)
|
18
16
|
@categorizer = categorizer
|
19
17
|
@presenter = presenter
|
20
18
|
end
|
@@ -6,8 +6,8 @@ module Milestoner
|
|
6
6
|
class Publisher
|
7
7
|
include Import[:logger]
|
8
8
|
|
9
|
-
def initialize
|
10
|
-
super(**
|
9
|
+
def initialize(creator: Tags::Creator.new, pusher: Tags::Pusher.new, **)
|
10
|
+
super(**)
|
11
11
|
@creator = creator
|
12
12
|
@pusher = pusher
|
13
13
|
end
|
data/milestoner.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |spec|
|
4
4
|
spec.name = "milestoner"
|
5
|
-
spec.version = "15.1
|
5
|
+
spec.version = "15.2.1"
|
6
6
|
spec.authors = ["Brooke Kuhlmann"]
|
7
7
|
spec.email = ["brooke@alchemists.io"]
|
8
8
|
spec.homepage = "https://www.alchemists.io/projects/milestoner"
|
@@ -24,9 +24,10 @@ Gem::Specification.new do |spec|
|
|
24
24
|
|
25
25
|
spec.required_ruby_version = "~> 3.2"
|
26
26
|
spec.add_dependency "cogger", "~> 0.5"
|
27
|
+
spec.add_dependency "core", "~> 0.1"
|
27
28
|
spec.add_dependency "dry-container", "~> 0.11"
|
28
29
|
spec.add_dependency "dry-monads", "~> 1.6"
|
29
|
-
spec.add_dependency "gitt", "~> 1.
|
30
|
+
spec.add_dependency "gitt", "~> 1.1"
|
30
31
|
spec.add_dependency "infusible", "~> 1.0"
|
31
32
|
spec.add_dependency "refinements", "~> 10.0"
|
32
33
|
spec.add_dependency "runcom", "~> 9.0"
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: milestoner
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 15.1
|
4
|
+
version: 15.2.1
|
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:
|
31
|
+
date: 2023-02-05 00:00:00.000000000 Z
|
32
32
|
dependencies:
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: cogger
|
@@ -44,6 +44,20 @@ dependencies:
|
|
44
44
|
- - "~>"
|
45
45
|
- !ruby/object:Gem::Version
|
46
46
|
version: '0.5'
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: core
|
49
|
+
requirement: !ruby/object:Gem::Requirement
|
50
|
+
requirements:
|
51
|
+
- - "~>"
|
52
|
+
- !ruby/object:Gem::Version
|
53
|
+
version: '0.1'
|
54
|
+
type: :runtime
|
55
|
+
prerelease: false
|
56
|
+
version_requirements: !ruby/object:Gem::Requirement
|
57
|
+
requirements:
|
58
|
+
- - "~>"
|
59
|
+
- !ruby/object:Gem::Version
|
60
|
+
version: '0.1'
|
47
61
|
- !ruby/object:Gem::Dependency
|
48
62
|
name: dry-container
|
49
63
|
requirement: !ruby/object:Gem::Requirement
|
@@ -78,14 +92,14 @@ dependencies:
|
|
78
92
|
requirements:
|
79
93
|
- - "~>"
|
80
94
|
- !ruby/object:Gem::Version
|
81
|
-
version: '1.
|
95
|
+
version: '1.1'
|
82
96
|
type: :runtime
|
83
97
|
prerelease: false
|
84
98
|
version_requirements: !ruby/object:Gem::Requirement
|
85
99
|
requirements:
|
86
100
|
- - "~>"
|
87
101
|
- !ruby/object:Gem::Version
|
88
|
-
version: '1.
|
102
|
+
version: '1.1'
|
89
103
|
- !ruby/object:Gem::Dependency
|
90
104
|
name: infusible
|
91
105
|
requirement: !ruby/object:Gem::Requirement
|
@@ -230,7 +244,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
230
244
|
- !ruby/object:Gem::Version
|
231
245
|
version: '0'
|
232
246
|
requirements: []
|
233
|
-
rubygems_version: 3.4.
|
247
|
+
rubygems_version: 3.4.6
|
234
248
|
signing_key:
|
235
249
|
specification_version: 4
|
236
250
|
summary: A command line interface for crafting Git semantically versioned repository
|
metadata.gz.sig
CHANGED
Binary file
|