milestoner 17.4.0 → 17.5.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/lib/milestoner/builders/container.rb +6 -6
- data/lib/milestoner/builders/import.rb +1 -1
- data/lib/milestoner/commits/enricher.rb +1 -1
- data/lib/milestoner/commits/enrichers/container.rb +11 -11
- data/lib/milestoner/commits/enrichers/import.rb +1 -1
- data/lib/milestoner/container.rb +14 -20
- data/lib/milestoner/import.rb +1 -1
- data/milestoner.gemspec +6 -6
- data.tar.gz.sig +0 -0
- metadata +14 -14
- 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: 1d2ce9743140ecd24100c4577695dfa98e692a2228e9a9985780ed59692e65f1
|
4
|
+
data.tar.gz: 19dae1577e990dd365ecb3359eacf64018c968f0393c3535f4b2f20b2d607893
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 900f2c4137deded4ae6c1a7797042b1fee34547bde2e2ecc98a1716ed596cb5b3dac8271816c66f65d700076b714b7be871d4824259d0431f5f553fbffc7dc68
|
7
|
+
data.tar.gz: 200966fb73151b785d95b437c440354c4243096c395b5592dd00d63a796015c0e19033290adb4aaecdac1a2c0d2c860c29890229e2102571a48fc335d9aea0ec
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
@@ -1,17 +1,17 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require "
|
3
|
+
require "containable"
|
4
4
|
|
5
5
|
module Milestoner
|
6
6
|
module Builders
|
7
7
|
# Registers all builders for injection.
|
8
8
|
module Container
|
9
|
-
extend
|
9
|
+
extend Containable
|
10
10
|
|
11
|
-
register(:ascii_doc
|
12
|
-
register(:markdown
|
13
|
-
register(:stream
|
14
|
-
register(:web
|
11
|
+
register(:ascii_doc) { ASCIIDoc.new }
|
12
|
+
register(:markdown) { Markdown.new }
|
13
|
+
register(:stream) { Stream.new }
|
14
|
+
register(:web) { Web.new }
|
15
15
|
end
|
16
16
|
end
|
17
17
|
end
|
@@ -42,7 +42,7 @@ module Milestoner
|
|
42
42
|
def record_for(commit) = model.for(commit, **build_attributes(commit))
|
43
43
|
|
44
44
|
def build_attributes commit
|
45
|
-
|
45
|
+
infused_keys.each.with_object({}) do |command, attributes|
|
46
46
|
attributes[command] = __send__(command).call commit
|
47
47
|
end
|
48
48
|
end
|
@@ -1,24 +1,24 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require "
|
3
|
+
require "containable"
|
4
4
|
|
5
5
|
module Milestoner
|
6
6
|
module Commits
|
7
7
|
module Enrichers
|
8
8
|
# Registers all enrichers for injection.
|
9
9
|
module Container
|
10
|
-
extend
|
10
|
+
extend Containable
|
11
11
|
|
12
|
-
register(:author
|
13
|
-
register(:body
|
14
|
-
register(:collaborators
|
15
|
-
register(:format
|
16
|
-
register(:issue
|
12
|
+
register(:author) { Author.new }
|
13
|
+
register(:body) { Body.new }
|
14
|
+
register(:collaborators) { Colleague.new key: "Co-authored-by" }
|
15
|
+
register(:format) { Format.new }
|
16
|
+
register(:issue) { Issue.new }
|
17
17
|
register(:milestone) { Milestone.new }
|
18
|
-
register(:notes
|
19
|
-
register(:review
|
20
|
-
register(:signers
|
21
|
-
register(:uri
|
18
|
+
register(:notes) { Note.new }
|
19
|
+
register(:review) { Review.new }
|
20
|
+
register(:signers) { Colleague.new key: "Signed-off-by" }
|
21
|
+
register(:uri) { URI.new }
|
22
22
|
end
|
23
23
|
end
|
24
24
|
end
|
data/lib/milestoner/container.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
3
|
require "cogger"
|
4
|
-
require "
|
4
|
+
require "containable"
|
5
5
|
require "etcher"
|
6
6
|
require "gitt"
|
7
7
|
require "lode"
|
@@ -12,14 +12,14 @@ require "spek"
|
|
12
12
|
module Milestoner
|
13
13
|
# Provides a global gem container for injection into other objects.
|
14
14
|
module Container
|
15
|
-
extend
|
15
|
+
extend Containable
|
16
16
|
|
17
17
|
namespace :xdg do
|
18
|
-
register(:cache
|
19
|
-
register(:config
|
18
|
+
register(:cache) { Runcom::Cache.new "milestoner/database.store" }
|
19
|
+
register(:config) { Runcom::Config.new "milestoner/configuration.yml" }
|
20
20
|
end
|
21
21
|
|
22
|
-
register :cache
|
22
|
+
register :cache do
|
23
23
|
# :nocov:
|
24
24
|
Lode.new self["xdg.cache"].passive do |config|
|
25
25
|
config.mode = :max
|
@@ -28,12 +28,12 @@ module Milestoner
|
|
28
28
|
end
|
29
29
|
end
|
30
30
|
|
31
|
-
register :configuration
|
31
|
+
register :configuration do
|
32
32
|
self[:defaults].add_loader(Etcher::Loaders::YAML.new(self["xdg.config"].active))
|
33
33
|
.then { |registry| Etcher.call registry }
|
34
34
|
end
|
35
35
|
|
36
|
-
register :defaults
|
36
|
+
register :defaults do
|
37
37
|
Etcher::Registry.new(contract: Configuration::Contract, model: Configuration::Model)
|
38
38
|
.add_loader(Etcher::Loaders::YAML.new(self[:defaults_path]))
|
39
39
|
.add_transformer(Configuration::Transformers::Build::Root)
|
@@ -57,19 +57,13 @@ module Milestoner
|
|
57
57
|
.add_transformer(Configuration::Transformers::URI::Tracker)
|
58
58
|
end
|
59
59
|
|
60
|
-
register
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
register
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
register(:spec_loader, memoize: true) { Spek::Loader.new }
|
69
|
-
register(:git, memoize: true) { Gitt::Repository.new }
|
70
|
-
register(:input, memoize: true) { self[:configuration].dup }
|
71
|
-
register(:defaults_path, memoize: true) { Pathname(__dir__).join("configuration/defaults.yml") }
|
72
|
-
register(:logger, memoize: true) { Cogger.new id: :milestoner }
|
60
|
+
register(:specification) { self[:spec_loader].call "#{__dir__}/../../milestoner.gemspec" }
|
61
|
+
register(:sanitizer) { -> content { Sanitize.fragment content, Sanitize::Config::BASIC } }
|
62
|
+
register(:spec_loader) { Spek::Loader.new }
|
63
|
+
register(:git) { Gitt::Repository.new }
|
64
|
+
register(:input) { self[:configuration].dup }
|
65
|
+
register(:defaults_path) { Pathname(__dir__).join("configuration/defaults.yml") }
|
66
|
+
register(:logger) { Cogger.new id: :milestoner }
|
73
67
|
register :kernel, Kernel
|
74
68
|
end
|
75
69
|
end
|
data/lib/milestoner/import.rb
CHANGED
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 = "17.
|
5
|
+
spec.version = "17.5.0"
|
6
6
|
spec.authors = ["Brooke Kuhlmann"]
|
7
7
|
spec.email = ["brooke@alchemists.io"]
|
8
8
|
spec.homepage = "https://alchemists.io/projects/milestoner"
|
@@ -26,19 +26,19 @@ Gem::Specification.new do |spec|
|
|
26
26
|
spec.add_dependency "asciidoctor", "~> 2.0"
|
27
27
|
spec.add_dependency "cff", "~> 1.1"
|
28
28
|
spec.add_dependency "cogger", "~> 0.16"
|
29
|
-
spec.add_dependency "
|
29
|
+
spec.add_dependency "containable", "~> 0.0"
|
30
30
|
spec.add_dependency "dry-monads", "~> 1.6"
|
31
31
|
spec.add_dependency "dry-schema", "~> 1.13"
|
32
|
-
spec.add_dependency "etcher", "~> 1.
|
32
|
+
spec.add_dependency "etcher", "~> 1.3"
|
33
33
|
spec.add_dependency "gitt", "~> 3.2"
|
34
|
-
spec.add_dependency "hanami-view", "~> 2.1.0
|
35
|
-
spec.add_dependency "infusible", "~> 3.
|
34
|
+
spec.add_dependency "hanami-view", "~> 2.1.0"
|
35
|
+
spec.add_dependency "infusible", "~> 3.5"
|
36
36
|
spec.add_dependency "lode", "~> 1.0"
|
37
37
|
spec.add_dependency "redcarpet", "~> 3.6"
|
38
38
|
spec.add_dependency "refinements", "~> 12.1"
|
39
39
|
spec.add_dependency "runcom", "~> 11.0"
|
40
40
|
spec.add_dependency "sanitize", "~> 6.1"
|
41
|
-
spec.add_dependency "sod", "~> 0.
|
41
|
+
spec.add_dependency "sod", "~> 0.8"
|
42
42
|
spec.add_dependency "spek", "~> 3.0"
|
43
43
|
spec.add_dependency "versionaire", "~> 13.0"
|
44
44
|
spec.add_dependency "zeitwerk", "~> 2.6"
|
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: 17.
|
4
|
+
version: 17.5.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: 2024-03
|
38
|
+
date: 2024-04-03 00:00:00.000000000 Z
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: asciidoctor
|
@@ -80,19 +80,19 @@ dependencies:
|
|
80
80
|
- !ruby/object:Gem::Version
|
81
81
|
version: '0.16'
|
82
82
|
- !ruby/object:Gem::Dependency
|
83
|
-
name:
|
83
|
+
name: containable
|
84
84
|
requirement: !ruby/object:Gem::Requirement
|
85
85
|
requirements:
|
86
86
|
- - "~>"
|
87
87
|
- !ruby/object:Gem::Version
|
88
|
-
version: '0.
|
88
|
+
version: '0.0'
|
89
89
|
type: :runtime
|
90
90
|
prerelease: false
|
91
91
|
version_requirements: !ruby/object:Gem::Requirement
|
92
92
|
requirements:
|
93
93
|
- - "~>"
|
94
94
|
- !ruby/object:Gem::Version
|
95
|
-
version: '0.
|
95
|
+
version: '0.0'
|
96
96
|
- !ruby/object:Gem::Dependency
|
97
97
|
name: dry-monads
|
98
98
|
requirement: !ruby/object:Gem::Requirement
|
@@ -127,14 +127,14 @@ dependencies:
|
|
127
127
|
requirements:
|
128
128
|
- - "~>"
|
129
129
|
- !ruby/object:Gem::Version
|
130
|
-
version: '1.
|
130
|
+
version: '1.3'
|
131
131
|
type: :runtime
|
132
132
|
prerelease: false
|
133
133
|
version_requirements: !ruby/object:Gem::Requirement
|
134
134
|
requirements:
|
135
135
|
- - "~>"
|
136
136
|
- !ruby/object:Gem::Version
|
137
|
-
version: '1.
|
137
|
+
version: '1.3'
|
138
138
|
- !ruby/object:Gem::Dependency
|
139
139
|
name: gitt
|
140
140
|
requirement: !ruby/object:Gem::Requirement
|
@@ -155,28 +155,28 @@ dependencies:
|
|
155
155
|
requirements:
|
156
156
|
- - "~>"
|
157
157
|
- !ruby/object:Gem::Version
|
158
|
-
version: 2.1.0
|
158
|
+
version: 2.1.0
|
159
159
|
type: :runtime
|
160
160
|
prerelease: false
|
161
161
|
version_requirements: !ruby/object:Gem::Requirement
|
162
162
|
requirements:
|
163
163
|
- - "~>"
|
164
164
|
- !ruby/object:Gem::Version
|
165
|
-
version: 2.1.0
|
165
|
+
version: 2.1.0
|
166
166
|
- !ruby/object:Gem::Dependency
|
167
167
|
name: infusible
|
168
168
|
requirement: !ruby/object:Gem::Requirement
|
169
169
|
requirements:
|
170
170
|
- - "~>"
|
171
171
|
- !ruby/object:Gem::Version
|
172
|
-
version: '3.
|
172
|
+
version: '3.5'
|
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: '3.
|
179
|
+
version: '3.5'
|
180
180
|
- !ruby/object:Gem::Dependency
|
181
181
|
name: lode
|
182
182
|
requirement: !ruby/object:Gem::Requirement
|
@@ -253,14 +253,14 @@ dependencies:
|
|
253
253
|
requirements:
|
254
254
|
- - "~>"
|
255
255
|
- !ruby/object:Gem::Version
|
256
|
-
version: '0.
|
256
|
+
version: '0.8'
|
257
257
|
type: :runtime
|
258
258
|
prerelease: false
|
259
259
|
version_requirements: !ruby/object:Gem::Requirement
|
260
260
|
requirements:
|
261
261
|
- - "~>"
|
262
262
|
- !ruby/object:Gem::Version
|
263
|
-
version: '0.
|
263
|
+
version: '0.8'
|
264
264
|
- !ruby/object:Gem::Dependency
|
265
265
|
name: spek
|
266
266
|
requirement: !ruby/object:Gem::Requirement
|
@@ -433,7 +433,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
433
433
|
- !ruby/object:Gem::Version
|
434
434
|
version: '0'
|
435
435
|
requirements: []
|
436
|
-
rubygems_version: 3.5.
|
436
|
+
rubygems_version: 3.5.7
|
437
437
|
signing_key:
|
438
438
|
specification_version: 4
|
439
439
|
summary: A command line interface for managing Git repository milestones.
|
metadata.gz.sig
CHANGED
Binary file
|