milestoner 17.8.0 → 17.10.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: db830f8b4d06e54aba148ef3b9137dde5bdfbe53880269b02ac81ab67ffb6b31
4
- data.tar.gz: 1e94ce0158f88ab0c58662d7f63d70c2f48460467ccb313071c7192f040e79ca
3
+ metadata.gz: cdbac092a6284874c46d893d4b9cb2d8431032deae1cd0bb7f239b04135bbc9c
4
+ data.tar.gz: 3d209d4e53fa580cdaa62a019890ef61c6d5da7442235adc097c5800142b4c76
5
5
  SHA512:
6
- metadata.gz: d5793c46062eaf6d98fa0c73b1462cb36eb31e84729fd2bdda90bad660057014952d072abe2196a384c42213e77e3a4f6fac45914749eb7fed5f2270024e3f92
7
- data.tar.gz: eab9b9e88db0696031cb823e650b8f325731b0b62ce0e269dfe07dda538002693186466df13824d8af2c062c26ceb1617167cd614809761c99f41501be159605
6
+ metadata.gz: 91e4c349d1f89296c0842069f84643153d59cddfc603eaea777a0ec94a8043f8159e383beebc80ee5b3d8eeebea41b3603b4c5a3bc45724f17ebd077ab0c16c7
7
+ data.tar.gz: e48064107671a1a1838f379a69ae1545008a4dce8c768c343e8a7b887fcc957fcfcea06418f56789e37b659087b601a8d55753794ef497e73ad985caeb93e0ee
checksums.yaml.gz.sig CHANGED
Binary file
data/README.adoc CHANGED
@@ -105,7 +105,7 @@ gem install milestoner
105
105
 
106
106
  From the command line, type: `milestoner --help`
107
107
 
108
- image:https://alchemists.io/images/projects/milestoner/screenshots/usage.png[Usage,width=690,height=398,role=focal_point]
108
+ image:https://alchemists.io/images/projects/milestoner/screenshots/usage.png[Usage,width=670,height=412,role=focal_point]
109
109
 
110
110
  === Customization
111
111
 
@@ -10,11 +10,11 @@ module Milestoner
10
10
  class Layout < Sod::Action
11
11
  include Import[:input]
12
12
 
13
- description "Set layout."
13
+ description "Set view template layout."
14
14
 
15
15
  ancillary "Use false to disable."
16
16
 
17
- on %w[-L --layout], argument: "[LAYOUT]"
17
+ on %w[-L --layout], argument: "[NAME]"
18
18
 
19
19
  default { Container[:configuration].build_layout }
20
20
 
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require "pathname"
3
4
  require "sod"
4
5
 
5
6
  module Milestoner
@@ -16,7 +17,7 @@ module Milestoner
16
17
 
17
18
  default { Container[:configuration].build_root }
18
19
 
19
- def call(path = nil) = input.build_root = (path || default).expand_path
20
+ def call(path = nil) = input.build_root = Pathname(path || default).expand_path
20
21
  end
21
22
  end
22
23
  end
@@ -0,0 +1,22 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "sod"
4
+
5
+ module Milestoner
6
+ module CLI
7
+ module Actions
8
+ # Handles calculation of next version.
9
+ class Next < Sod::Action
10
+ include Import[:configuration, :kernel]
11
+
12
+ description "Show next version."
13
+
14
+ ancillary "Calculated from commit trailers."
15
+
16
+ on %w[-n --next]
17
+
18
+ def call(*) = kernel.puts configuration.project_version
19
+ end
20
+ end
21
+ end
22
+ end
@@ -22,10 +22,10 @@ module Milestoner
22
22
 
23
23
  # :reek:TooManyStatements
24
24
  def call
25
- log_info "Building milestone..."
26
-
27
25
  format = input.build_format
28
26
 
27
+ log_info "Building #{input.project_label} milestone (#{format})..."
28
+
29
29
  case format
30
30
  when "ascii_doc" then build_ascii_doc
31
31
  when "markdown" then build_markdown
@@ -27,6 +27,7 @@ module Milestoner
27
27
  on(Sod::Prefabs::Commands::Config, context:)
28
28
  on Commands::Cache
29
29
  on Commands::Build
30
+ on Actions::Next
30
31
  on Actions::Publish
31
32
  on(Sod::Prefabs::Actions::Version, context:)
32
33
  on Sod::Prefabs::Actions::Help, self
@@ -29,13 +29,13 @@ module Milestoner
29
29
  end
30
30
 
31
31
  register :configuration do
32
- self[:defaults].add_loader(Etcher::Loaders::YAML.new(self["xdg.config"].active))
32
+ self[:defaults].add_loader(:yaml, self["xdg.config"].active)
33
33
  .then { |registry| Etcher.call registry }
34
34
  end
35
35
 
36
36
  register :defaults do
37
37
  Etcher::Registry.new(contract: Configuration::Contract, model: Configuration::Model)
38
- .add_loader(Etcher::Loaders::YAML.new(self[:defaults_path]))
38
+ .add_loader(:yaml, self[:defaults_path])
39
39
  .add_transformer(Configuration::Transformers::Build::Root)
40
40
  .add_transformer(Configuration::Transformers::Build::TemplatePaths.new)
41
41
  .add_transformer(Configuration::Transformers::Gems::Label.new)
@@ -56,7 +56,7 @@ module Milestoner
56
56
  .add_transformer(Configuration::Transformers::URI::Profile)
57
57
  .add_transformer(Configuration::Transformers::URI::Review)
58
58
  .add_transformer(Configuration::Transformers::URI::Tracker)
59
- .add_transformer(Etcher::Transformers::Time.new)
59
+ .add_transformer(:time)
60
60
  end
61
61
 
62
62
  register(:specification) { self[:spec_loader].call "#{__dir__}/../../milestoner.gemspec" }
@@ -20,7 +20,7 @@
20
20
  type="image/png">
21
21
  <link title="<%= project_label %>: Stylesheet" rel="stylesheet" href="page.css" type="text/css">
22
22
 
23
- <script src="https://unpkg.com/alpinejs@3.13" defer></script>
23
+ <script src="https://unpkg.com/alpinejs@3.14" defer></script>
24
24
  </head>
25
25
 
26
26
  <body>
@@ -14,10 +14,10 @@
14
14
  --color-grey: hsl(240, 7%, 97%);
15
15
  --color-sea: hsl(210, 24%, 15%);
16
16
  --color-ice: hsl(216, 100%, 98%);
17
- --color-major: hsl(231, 97%, 29%);
18
- --color-minor: hsl(203, 74%, 45%);
17
+ --color-major: hsl(7, 79%, 32%);
18
+ --color-minor: hsl(221, 79%, 32%);
19
19
  --color-orange: hsl(24.8, 100%, 50.2%);
20
- --color-patch: hsl(199, 83%, 62%);
20
+ --color-patch: hsl(156, 79%, 32%);
21
21
  --color-powder: hsl(0, 0%, 98%);
22
22
  --color-red: hsl(0, 100%, 50%);
23
23
  --color-slate: hsl(211, 23%, 41%);
@@ -206,7 +206,7 @@
206
206
 
207
207
  .patch {
208
208
  background-color: var(--color-patch);
209
- color: var(--color-black);
209
+ color: var(--color-white);
210
210
  }
211
211
 
212
212
  .rebase {
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.8.0"
5
+ spec.version = "17.10.0"
6
6
  spec.authors = ["Brooke Kuhlmann"]
7
7
  spec.email = ["brooke@alchemists.io"]
8
8
  spec.homepage = "https://alchemists.io/projects/milestoner"
@@ -25,12 +25,12 @@ Gem::Specification.new do |spec|
25
25
  spec.required_ruby_version = "~> 3.3"
26
26
  spec.add_dependency "asciidoctor", "~> 2.0"
27
27
  spec.add_dependency "cff", "~> 1.1"
28
- spec.add_dependency "cogger", "~> 0.16"
28
+ spec.add_dependency "cogger", "~> 0.21"
29
29
  spec.add_dependency "containable", "~> 0.0"
30
30
  spec.add_dependency "core", "~> 1.3"
31
31
  spec.add_dependency "dry-monads", "~> 1.6"
32
32
  spec.add_dependency "dry-schema", "~> 1.13"
33
- spec.add_dependency "etcher", "~> 1.5"
33
+ spec.add_dependency "etcher", "~> 1.6"
34
34
  spec.add_dependency "gitt", "~> 3.2"
35
35
  spec.add_dependency "hanami-view", "~> 2.1"
36
36
  spec.add_dependency "infusible", "~> 3.5"
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.8.0
4
+ version: 17.10.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-05-25 00:00:00.000000000 Z
38
+ date: 2024-06-19 00:00:00.000000000 Z
39
39
  dependencies:
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: asciidoctor
@@ -71,14 +71,14 @@ dependencies:
71
71
  requirements:
72
72
  - - "~>"
73
73
  - !ruby/object:Gem::Version
74
- version: '0.16'
74
+ version: '0.21'
75
75
  type: :runtime
76
76
  prerelease: false
77
77
  version_requirements: !ruby/object:Gem::Requirement
78
78
  requirements:
79
79
  - - "~>"
80
80
  - !ruby/object:Gem::Version
81
- version: '0.16'
81
+ version: '0.21'
82
82
  - !ruby/object:Gem::Dependency
83
83
  name: containable
84
84
  requirement: !ruby/object:Gem::Requirement
@@ -141,14 +141,14 @@ dependencies:
141
141
  requirements:
142
142
  - - "~>"
143
143
  - !ruby/object:Gem::Version
144
- version: '1.5'
144
+ version: '1.6'
145
145
  type: :runtime
146
146
  prerelease: false
147
147
  version_requirements: !ruby/object:Gem::Requirement
148
148
  requirements:
149
149
  - - "~>"
150
150
  - !ruby/object:Gem::Version
151
- version: '1.5'
151
+ version: '1.6'
152
152
  - !ruby/object:Gem::Dependency
153
153
  name: gitt
154
154
  requirement: !ruby/object:Gem::Requirement
@@ -347,6 +347,7 @@ files:
347
347
  - lib/milestoner/cli/actions/cache/find.rb
348
348
  - lib/milestoner/cli/actions/cache/info.rb
349
349
  - lib/milestoner/cli/actions/cache/list.rb
350
+ - lib/milestoner/cli/actions/next.rb
350
351
  - lib/milestoner/cli/actions/publish.rb
351
352
  - lib/milestoner/cli/commands/build.rb
352
353
  - lib/milestoner/cli/commands/cache.rb
@@ -448,7 +449,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
448
449
  - !ruby/object:Gem::Version
449
450
  version: '0'
450
451
  requirements: []
451
- rubygems_version: 3.5.10
452
+ rubygems_version: 3.5.13
452
453
  signing_key:
453
454
  specification_version: 4
454
455
  summary: A command line interface for automated Git repository milestones.
metadata.gz.sig CHANGED
Binary file