milestoner 17.10.0 → 17.11.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/commits/enrichers/issue.rb +4 -2
- data/lib/milestoner/commits/versioner.rb +8 -1
- data/lib/milestoner/templates/layouts/page.html.erb +4 -3
- data/lib/milestoner/templates/milestones/_commit.html.erb +2 -11
- data/milestoner.gemspec +2 -2
- data.tar.gz.sig +0 -0
- metadata +5 -5
- metadata.gz.sig +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c1255acd044e29091a00367789d4195504041d78cdcb3af87476706515573557
|
4
|
+
data.tar.gz: 4a86d410450bc65f58c7d3adcfb26dc9bf9cf85a8ee750b529975a5293c3af47
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 65e1f365abd930edc196776f5845461b0ea109afd096215e029bb5caed4e166827c9271ee092404675fc8bcdb00171ad160287e11884b09363eeaa53a3d5d724
|
7
|
+
data.tar.gz: 67cb01e24f0eecbe9f7fba9d4257e12f7acbd4d8e4c9fe100853b71549a5ff26acbdecb12030228b6143c865f678c93a5d63946413cdc835e1feff141e326035
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
@@ -14,9 +14,11 @@ module Milestoner
|
|
14
14
|
end
|
15
15
|
|
16
16
|
def call commit
|
17
|
+
uri = input.tracker_uri
|
18
|
+
|
17
19
|
commit.trailer_value_for(key)
|
18
|
-
.
|
19
|
-
|
20
|
+
.either -> value { model[id: value, uri: format(uri, id: value)] },
|
21
|
+
proc { model[id: "All", uri: format(uri, id: nil)] }
|
20
22
|
end
|
21
23
|
|
22
24
|
private
|
@@ -8,7 +8,7 @@ module Milestoner
|
|
8
8
|
module Commits
|
9
9
|
# Calculates next version based on commit trailer version keys.
|
10
10
|
class Versioner
|
11
|
-
include Import[:git]
|
11
|
+
include Import[:git, :logger]
|
12
12
|
include Dry::Monads[:result]
|
13
13
|
|
14
14
|
using Versionaire::Cast
|
@@ -37,6 +37,13 @@ module Milestoner
|
|
37
37
|
end
|
38
38
|
|
39
39
|
def bump milestones
|
40
|
+
last_tag_or_fallback_for milestones
|
41
|
+
rescue Versionaire::Error => error
|
42
|
+
logger.debug { error.message }
|
43
|
+
Failure error
|
44
|
+
end
|
45
|
+
|
46
|
+
def last_tag_or_fallback_for milestones
|
40
47
|
target = fallback.members.intersection(milestones).first
|
41
48
|
git.tag_last.fmap { |tag| target ? Version(tag).bump(target) : fallback }
|
42
49
|
end
|
@@ -12,12 +12,13 @@
|
|
12
12
|
|
13
13
|
<link title="<%= project_label %>: Favorite Icon"
|
14
14
|
rel="icon"
|
15
|
-
href="https://alchemists.io/images/projects/milestoner/
|
15
|
+
href="https://alchemists.io/images/projects/milestoner/favicon.ico"
|
16
16
|
sizes="32x32">
|
17
17
|
<link title="<%= project_label %>: Apple Icon"
|
18
18
|
rel="apple-touch-icon"
|
19
|
-
href="https://alchemists.io/images/projects/milestoner/
|
20
|
-
type="image/png"
|
19
|
+
href="https://alchemists.io/images/projects/milestoner/logo.png"
|
20
|
+
type="image/png"
|
21
|
+
sizes="200x200">
|
21
22
|
<link title="<%= project_label %>: Stylesheet" rel="stylesheet" href="page.css" type="text/css">
|
22
23
|
|
23
24
|
<script src="https://unpkg.com/alpinejs@3.14" defer></script>
|
@@ -17,17 +17,8 @@
|
|
17
17
|
<span class="insertions"><%= commit.total_insertions %></span>
|
18
18
|
</span>
|
19
19
|
|
20
|
-
|
21
|
-
|
22
|
-
<% else %>
|
23
|
-
<span class="issue">-</span>
|
24
|
-
<% end %>
|
25
|
-
|
26
|
-
<% if commit.review.id %>
|
27
|
-
<a href="<%= commit.review.uri %>" class="review"><%= commit.review.id %></a>
|
28
|
-
<% else %>
|
29
|
-
<span class="review">-</span>
|
30
|
-
<% end %>
|
20
|
+
<a href="<%= commit.issue.uri %>" class="issue"><%= commit.issue.id %></a>
|
21
|
+
<a href="<%= commit.review.uri %>" class="review"><%= commit.review.id %></a>
|
31
22
|
</summary>
|
32
23
|
|
33
24
|
<div class="details">
|
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.11.0"
|
6
6
|
spec.authors = ["Brooke Kuhlmann"]
|
7
7
|
spec.email = ["brooke@alchemists.io"]
|
8
8
|
spec.homepage = "https://alchemists.io/projects/milestoner"
|
@@ -36,7 +36,7 @@ Gem::Specification.new do |spec|
|
|
36
36
|
spec.add_dependency "infusible", "~> 3.5"
|
37
37
|
spec.add_dependency "lode", "~> 1.4"
|
38
38
|
spec.add_dependency "redcarpet", "~> 3.6"
|
39
|
-
spec.add_dependency "refinements", "~> 12.
|
39
|
+
spec.add_dependency "refinements", "~> 12.5"
|
40
40
|
spec.add_dependency "runcom", "~> 11.0"
|
41
41
|
spec.add_dependency "sanitize", "~> 6.1"
|
42
42
|
spec.add_dependency "sod", "~> 0.8"
|
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.11.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-
|
38
|
+
date: 2024-07-02 00:00:00.000000000 Z
|
39
39
|
dependencies:
|
40
40
|
- !ruby/object:Gem::Dependency
|
41
41
|
name: asciidoctor
|
@@ -225,14 +225,14 @@ dependencies:
|
|
225
225
|
requirements:
|
226
226
|
- - "~>"
|
227
227
|
- !ruby/object:Gem::Version
|
228
|
-
version: '12.
|
228
|
+
version: '12.5'
|
229
229
|
type: :runtime
|
230
230
|
prerelease: false
|
231
231
|
version_requirements: !ruby/object:Gem::Requirement
|
232
232
|
requirements:
|
233
233
|
- - "~>"
|
234
234
|
- !ruby/object:Gem::Version
|
235
|
-
version: '12.
|
235
|
+
version: '12.5'
|
236
236
|
- !ruby/object:Gem::Dependency
|
237
237
|
name: runcom
|
238
238
|
requirement: !ruby/object:Gem::Requirement
|
@@ -449,7 +449,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
449
449
|
- !ruby/object:Gem::Version
|
450
450
|
version: '0'
|
451
451
|
requirements: []
|
452
|
-
rubygems_version: 3.5.
|
452
|
+
rubygems_version: 3.5.14
|
453
453
|
signing_key:
|
454
454
|
specification_version: 4
|
455
455
|
summary: A command line interface for automated Git repository milestones.
|
metadata.gz.sig
CHANGED
@@ -1,3 +1,3 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
1
|
+
���A#��@J�y�(6塏��q�M��P�a_�{8
|
2
|
+
ON���QDƹ�����b�[��)�ر�g�z�cs
|
3
|
+
M��`�����qc�t�+('����&9�������6�9XM��ػ5*��7G�q^�f#
|