milestoner 17.5.0 → 17.6.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/README.adoc +2 -0
- data/lib/milestoner/builders/ascii_doc.rb +3 -5
- data/lib/milestoner/builders/markdown.rb +3 -5
- data/lib/milestoner/configuration/contract.rb +1 -0
- data/lib/milestoner/configuration/model.rb +1 -0
- data/lib/milestoner/configuration/transformers/generator/label.rb +1 -1
- data/lib/milestoner/configuration/transformers/generator/version.rb +31 -0
- data/lib/milestoner/container.rb +1 -0
- data/lib/milestoner/templates/layouts/page.adoc.erb +1 -1
- data/lib/milestoner/templates/layouts/page.html.erb +2 -2
- data/lib/milestoner/templates/layouts/page.md.erb +1 -1
- data/lib/milestoner/templates/layouts/page.stream.erb +1 -1
- data/lib/milestoner/templates/milestones/show.adoc.erb +4 -2
- data/lib/milestoner/templates/milestones/show.html.erb +6 -6
- data/lib/milestoner/templates/milestones/show.md.erb +4 -2
- data/lib/milestoner/templates/milestones/show.stream.erb +4 -2
- data/lib/milestoner/templates/public/page.css.erb +8 -2
- data/lib/milestoner/views/context.rb +5 -0
- data/milestoner.gemspec +2 -2
- data.tar.gz.sig +0 -0
- metadata +6 -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: 73e28707596b9a5a610632108ac373ae2984e1633a60d35cb9872feb8a74de3e
|
4
|
+
data.tar.gz: 2d33c22077971f71e777940357c03c2b718c459d5afee825eda5e63bd8b487c6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a576d44498a17dfa4e970f08d7a5d3daa2d4e74d63947eadf7d2ba217e22a5b3b6128156d8358116741582c04689ea1039c379f28b794df43b11dd44fade2691
|
7
|
+
data.tar.gz: 50e1485b233665729c633bec2be2a3301772b136abe9dba8098a6e3734354048938f4ea835d8db99ff4c82af5d733b78621a7e768191a08420bd35d7e69e79ef
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/README.adoc
CHANGED
@@ -146,6 +146,7 @@ commit:
|
|
146
146
|
generator:
|
147
147
|
label:
|
148
148
|
uri:
|
149
|
+
version:
|
149
150
|
profile:
|
150
151
|
domain: https://github.com
|
151
152
|
uri: "%<domain>s/%<id>s"
|
@@ -185,6 +186,7 @@ The above can be customized as follows:
|
|
185
186
|
* `generator`: Manages generator information.
|
186
187
|
** `label`: Required. The label of the generator used for all software milestones. Default: Milestoner.
|
187
188
|
** `uri`: Required. The URI of the generator used for all software milestones. Defaults to Milestoner's homepage URL as provided by the {gem_specification_link} of this project.
|
189
|
+
** `version`: Required. The version of the generator used for all software milestones. Defaults to Milestoner's current version as provided by the {gem_specification_link} of this project.
|
188
190
|
* `profile`: Manages team member profile information.
|
189
191
|
** `domain`: Required. The domain of your {git_link} repository. Default: GitHub.
|
190
192
|
** `uri`: Required. The URI format for linking to profiles as formatted using {string_formats_link}. The `id` is dynamically calculated via the `handle` of the user stored in the {lode_link} cache. Default: GitHub.
|
@@ -14,17 +14,15 @@ module Milestoner
|
|
14
14
|
super(**)
|
15
15
|
end
|
16
16
|
|
17
|
-
def call
|
18
|
-
input.build_root.join("index.adoc").make_ancestors.tap { |path| write path, at }
|
19
|
-
end
|
17
|
+
def call = input.build_root.join("index.adoc").make_ancestors.tap { |path| write path }
|
20
18
|
|
21
19
|
private
|
22
20
|
|
23
21
|
attr_reader :view, :enricher
|
24
22
|
|
25
|
-
def write path
|
23
|
+
def write path
|
26
24
|
enricher.call.fmap do |commits|
|
27
|
-
path.write view.call commits:,
|
25
|
+
path.write view.call commits:, layout: input.build_layout, format: :adoc
|
28
26
|
end
|
29
27
|
end
|
30
28
|
end
|
@@ -14,17 +14,15 @@ module Milestoner
|
|
14
14
|
super(**)
|
15
15
|
end
|
16
16
|
|
17
|
-
def call
|
18
|
-
input.build_root.join("index.md").make_ancestors.tap { |path| write path, at }
|
19
|
-
end
|
17
|
+
def call = input.build_root.join("index.md").make_ancestors.tap { |path| write path }
|
20
18
|
|
21
19
|
private
|
22
20
|
|
23
21
|
attr_reader :view, :enricher
|
24
22
|
|
25
|
-
def write path
|
23
|
+
def write path
|
26
24
|
enricher.call.fmap do |commits|
|
27
|
-
path.write view.call commits:,
|
25
|
+
path.write view.call commits:, layout: input.build_layout, format: :md
|
28
26
|
end
|
29
27
|
end
|
30
28
|
end
|
@@ -25,6 +25,7 @@ module Milestoner
|
|
25
25
|
required(:commit_uri).filled :string
|
26
26
|
required(:generator_label).filled :string
|
27
27
|
required(:generator_uri).filled :string
|
28
|
+
required(:generator_version).filled Etcher::Types::Version
|
28
29
|
required(:profile_domain).filled :string
|
29
30
|
required(:profile_uri).filled :string
|
30
31
|
required(:project_author).filled :string
|
@@ -0,0 +1,31 @@
|
|
1
|
+
# frozen_string_literal: true
|
2
|
+
|
3
|
+
require "dry/monads"
|
4
|
+
|
5
|
+
module Milestoner
|
6
|
+
module Configuration
|
7
|
+
module Transformers
|
8
|
+
module Generator
|
9
|
+
# Conditionally updates generator version based on gem specification.
|
10
|
+
class Version
|
11
|
+
include Import[:specification]
|
12
|
+
include Dry::Monads[:result]
|
13
|
+
|
14
|
+
def initialize(key = :generator_version, **)
|
15
|
+
@key = key
|
16
|
+
super(**)
|
17
|
+
end
|
18
|
+
|
19
|
+
def call content
|
20
|
+
content.fetch(key) { specification.version }
|
21
|
+
.then { |value| Success content.merge!(key => value) }
|
22
|
+
end
|
23
|
+
|
24
|
+
private
|
25
|
+
|
26
|
+
attr_reader :key
|
27
|
+
end
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
31
|
+
end
|
data/lib/milestoner/container.rb
CHANGED
@@ -50,6 +50,7 @@ module Milestoner
|
|
50
50
|
.add_transformer(Configuration::Transformers::Project::Version.new)
|
51
51
|
.add_transformer(Configuration::Transformers::Generator::Label.new)
|
52
52
|
.add_transformer(Configuration::Transformers::Generator::URI.new)
|
53
|
+
.add_transformer(Configuration::Transformers::Generator::Version.new)
|
53
54
|
.add_transformer(Configuration::Transformers::URI::Avatar)
|
54
55
|
.add_transformer(Configuration::Transformers::URI::Commit)
|
55
56
|
.add_transformer(Configuration::Transformers::URI::Profile)
|
@@ -1,2 +1,2 @@
|
|
1
1
|
<%= yield %>
|
2
|
-
_Generated by link:<%= generator_uri %>[<%= generator_label %>]._
|
2
|
+
_Generated by link:<%= generator_uri %>[<%= generator_label %> <%= generator_version %>]._
|
@@ -8,7 +8,7 @@
|
|
8
8
|
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no">
|
9
9
|
<meta name="description" content="<%= project_description %>">
|
10
10
|
<meta name="author" content="<%= project_author %>">
|
11
|
-
<meta name="generator" content="<%= generator_label %>">
|
11
|
+
<meta name="generator" content="<%= generator_label %> <%= generator_version %>">
|
12
12
|
|
13
13
|
<link title="<%= project_label %>: Favorite Icon"
|
14
14
|
rel="icon"
|
@@ -30,7 +30,7 @@
|
|
30
30
|
|
31
31
|
<footer class="footer">
|
32
32
|
<p class="generator">
|
33
|
-
Generated by <a href="<%= generator_uri %>" class="link"><%= generator_label %></a>.
|
33
|
+
Generated by <a href="<%= generator_uri %>" class="link"><%= generator_label %> <%= generator_version %></a>.
|
34
34
|
</p>
|
35
35
|
</footer>
|
36
36
|
</body>
|
@@ -1,2 +1,2 @@
|
|
1
1
|
<%= yield %>
|
2
|
-
*Generated by [<%= generator_label %>](<%= generator_uri %>).*
|
2
|
+
*Generated by [<%= generator_label %> <%= generator_version %>](<%= generator_uri %>).*
|
@@ -1,2 +1,2 @@
|
|
1
1
|
<%= yield %>
|
2
|
-
Generated by <%= generator_label %>.
|
2
|
+
Generated by <%= generator_label %> <%= generator_version %>.
|
@@ -1,8 +1,10 @@
|
|
1
|
-
= <%= project_label %> <%= project_version %> (<%= date %>)
|
2
|
-
|
3
1
|
<% if commits.empty? %>
|
2
|
+
= <%= project_label %> (<%= date %>)
|
3
|
+
|
4
4
|
*<%= total_commits %>. <%= total_files %>. <%= total_deletions %>. <%= total_insertions %>.*
|
5
5
|
<% else %>
|
6
|
+
= <%= project_label %> <%= project_version %> (<%= date %>)
|
7
|
+
|
6
8
|
<% commits.each do |commit| %><%= commit.render :commit %><% end %>
|
7
9
|
|
8
10
|
*<%= total_commits %>. <%= total_files %>. <%= total_deletions %>. <%= total_insertions %>.*
|
@@ -2,7 +2,10 @@
|
|
2
2
|
<header class="header">
|
3
3
|
<h1 class="title">
|
4
4
|
<a href="<%= uri %>" class="label"><%= project_label %></a>
|
5
|
-
|
5
|
+
|
6
|
+
<% if commits.any? %>
|
7
|
+
<span class="version"><%= project_version %></span>
|
8
|
+
<% end %>
|
6
9
|
</h1>
|
7
10
|
|
8
11
|
<time datetime="<%= datetime %>" class="date"><%= date %></time>
|
@@ -13,11 +16,8 @@
|
|
13
16
|
<% else %>
|
14
17
|
<section class="body" x-data="{open: false}">
|
15
18
|
<div class="actions">
|
16
|
-
<button class="toggle"
|
17
|
-
|
18
|
-
x-text="open ? 'Collapse' : 'Expand'">
|
19
|
-
Expand
|
20
|
-
</button>
|
19
|
+
<button class="toggle" x-on:click="open = true">Expand</button>
|
20
|
+
<button class="toggle" x-on:click="open = false">Collapse</button>
|
21
21
|
</div>
|
22
22
|
|
23
23
|
<div class="columns">
|
@@ -1,8 +1,10 @@
|
|
1
|
-
# <%= project_label %> <%= project_version %> (<%= date %>)
|
2
|
-
|
3
1
|
<% if commits.empty? %>
|
2
|
+
# <%= project_label %> (<%= date %>)
|
3
|
+
|
4
4
|
**<%= total_commits %>. <%= total_files %>. <%= total_deletions %>. <%= total_insertions %>.**
|
5
5
|
<% else %>
|
6
|
+
# <%= project_label %> <%= project_version %> (<%= date %>)
|
7
|
+
|
6
8
|
<% commits.each do |commit| %><%= commit.render :commit %><% end %>
|
7
9
|
|
8
10
|
**<%= total_commits %>. <%= total_files %>. <%= total_deletions %>. <%= total_insertions %>.**
|
@@ -1,8 +1,10 @@
|
|
1
|
-
<%= project_label %> <%= project_version %> (<%= date %>)
|
2
|
-
|
3
1
|
<% if commits.empty? %>
|
2
|
+
<%= project_label %> (<%= date %>)
|
3
|
+
|
4
4
|
<%= total_commits %>. <%= total_files %>. <%= total_deletions %>. <%= total_insertions %>.
|
5
5
|
<% else %>
|
6
|
+
<%= project_label %> <%= project_version %> (<%= date %>)
|
7
|
+
|
6
8
|
<% commits.each do |commit| %><%= commit.render :commit %><% end %>
|
7
9
|
|
8
10
|
<%= total_commits %>. <%= total_files %>. <%= total_deletions %>. <%= total_insertions %>.
|
@@ -48,18 +48,24 @@
|
|
48
48
|
.actions {
|
49
49
|
display: flex;
|
50
50
|
justify-content: flex-end;
|
51
|
+
gap: 0.5rem;
|
51
52
|
margin-bottom: 0.5rem;
|
52
53
|
}
|
53
54
|
|
54
55
|
.toggle {
|
55
56
|
background-color: var(--color-white);
|
56
|
-
border: 0.
|
57
|
+
border: 0.13rem solid var(--color-carbon);
|
57
58
|
border-radius: 0.5rem;
|
58
|
-
color: var(--color-
|
59
|
+
color: var(--color-black);
|
59
60
|
cursor: pointer;
|
60
61
|
padding: 0.2rem;
|
61
62
|
font-size: 0.9rem;
|
62
63
|
width: 5rem;
|
64
|
+
transition: border-color .2s ease-in;
|
65
|
+
|
66
|
+
&:hover {
|
67
|
+
border-color: var(--color-black);
|
68
|
+
}
|
63
69
|
}
|
64
70
|
|
65
71
|
.normal {
|
@@ -14,13 +14,18 @@ module Milestoner
|
|
14
14
|
delegate %i[
|
15
15
|
generator_label
|
16
16
|
generator_uri
|
17
|
+
generator_version
|
17
18
|
project_author
|
18
19
|
project_description
|
19
20
|
project_generator
|
20
21
|
project_label
|
22
|
+
project_name
|
23
|
+
project_uri
|
21
24
|
project_version
|
22
25
|
] => :input
|
23
26
|
|
27
|
+
def project_slug = [project_name, project_version].compact.join("_").tr ".", ""
|
28
|
+
|
24
29
|
def project_title = [project_label, project_version].compact.join " "
|
25
30
|
end
|
26
31
|
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 = "17.
|
5
|
+
spec.version = "17.6.0"
|
6
6
|
spec.authors = ["Brooke Kuhlmann"]
|
7
7
|
spec.email = ["brooke@alchemists.io"]
|
8
8
|
spec.homepage = "https://alchemists.io/projects/milestoner"
|
@@ -31,7 +31,7 @@ Gem::Specification.new do |spec|
|
|
31
31
|
spec.add_dependency "dry-schema", "~> 1.13"
|
32
32
|
spec.add_dependency "etcher", "~> 1.3"
|
33
33
|
spec.add_dependency "gitt", "~> 3.2"
|
34
|
-
spec.add_dependency "hanami-view", "~> 2.1
|
34
|
+
spec.add_dependency "hanami-view", "~> 2.1"
|
35
35
|
spec.add_dependency "infusible", "~> 3.5"
|
36
36
|
spec.add_dependency "lode", "~> 1.0"
|
37
37
|
spec.add_dependency "redcarpet", "~> 3.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.6.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-04-
|
38
|
+
date: 2024-04-17 00:00:00.000000000 Z
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: asciidoctor
|
@@ -155,14 +155,14 @@ dependencies:
|
|
155
155
|
requirements:
|
156
156
|
- - "~>"
|
157
157
|
- !ruby/object:Gem::Version
|
158
|
-
version: 2.1
|
158
|
+
version: '2.1'
|
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
|
165
|
+
version: '2.1'
|
166
166
|
- !ruby/object:Gem::Dependency
|
167
167
|
name: infusible
|
168
168
|
requirement: !ruby/object:Gem::Requirement
|
@@ -365,6 +365,7 @@ files:
|
|
365
365
|
- lib/milestoner/configuration/transformers/gems/uri.rb
|
366
366
|
- lib/milestoner/configuration/transformers/generator/label.rb
|
367
367
|
- lib/milestoner/configuration/transformers/generator/uri.rb
|
368
|
+
- lib/milestoner/configuration/transformers/generator/version.rb
|
368
369
|
- lib/milestoner/configuration/transformers/project/author.rb
|
369
370
|
- lib/milestoner/configuration/transformers/project/generator.rb
|
370
371
|
- lib/milestoner/configuration/transformers/project/label.rb
|
@@ -433,7 +434,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
433
434
|
- !ruby/object:Gem::Version
|
434
435
|
version: '0'
|
435
436
|
requirements: []
|
436
|
-
rubygems_version: 3.5.
|
437
|
+
rubygems_version: 3.5.9
|
437
438
|
signing_key:
|
438
439
|
specification_version: 4
|
439
440
|
summary: A command line interface for managing Git repository milestones.
|
metadata.gz.sig
CHANGED
Binary file
|