milestoner 18.9.0 → 18.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/builders/feed.rb +0 -1
- data/lib/milestoner/builders/stream.rb +0 -4
- data/lib/milestoner/builders/web.rb +1 -0
- data/lib/milestoner/commits/tagger.rb +1 -1
- data/lib/milestoner/templates/layouts/page.html.erb +2 -2
- data/lib/milestoner/views/parts/commit.rb +3 -3
- data/lib/milestoner/views/parts/tag.rb +15 -9
- data/milestoner.gemspec +9 -9
- data.tar.gz.sig +0 -0
- metadata +19 -19
- 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: 0156e01c5f787dbeb92e36c4f3b8d99fc6ac38d2e9a9d085e8a36bd1dd5bcad1
|
4
|
+
data.tar.gz: 5e138700d0bcdac1c81c1020ff07242d0f5b7024f21d2ff5ea8f847bc79555ab
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4b349ed6026044502415ff19bc85b24345af9a9bf0c8759dd4fc7fe26ad2d62c38b8ff5d5bd4db583e081e7bf8c68aa0ee9f76a74eb9a2115c7a8684a82c3fb1
|
7
|
+
data.tar.gz: 55b056802507cf620447509111ee821c2583deb1a8ae5d4ed61ad16d67616c3d48c80c82e5900dfdd56315f61a186baacbd8dff282c8251241b596732686746c
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
@@ -1,15 +1,11 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
-
require "refinements/pathname"
|
4
|
-
|
5
3
|
module Milestoner
|
6
4
|
module Builders
|
7
5
|
# Builds I/O stream output.
|
8
6
|
class Stream
|
9
7
|
include Milestoner::Import[:settings, :logger, :io]
|
10
8
|
|
11
|
-
using Refinements::Pathname
|
12
|
-
|
13
9
|
def initialize(tagger: Commits::Tagger.new, view: Views::Milestones::Show.new, **)
|
14
10
|
@tagger = tagger
|
15
11
|
@view = view
|
@@ -91,7 +91,7 @@ module Milestoner
|
|
91
91
|
author_enricher.call tag.with(author_name: tag.author_name || settings.project_author)
|
92
92
|
end
|
93
93
|
|
94
|
-
def committed_at(at) = at ? Time.at(at.to_i)
|
94
|
+
def committed_at(at) = at ? Time.at(at.to_i) : settings.loaded_at
|
95
95
|
end
|
96
96
|
end
|
97
97
|
end
|
@@ -32,8 +32,8 @@
|
|
32
32
|
type="text/css">
|
33
33
|
<% end %>
|
34
34
|
|
35
|
-
<script src="https://unpkg.com/alpinejs@3.14.
|
36
|
-
integrity="sha384-
|
35
|
+
<script src="https://unpkg.com/alpinejs@3.14.3"
|
36
|
+
integrity="sha384-iZD2X8o1Zdq0HR5H/7oa8W30WS4No+zWCKUPD7fHRay9I1Gf+C4F8sVmw7zec1wW"
|
37
37
|
crossorigin="anonymous"
|
38
38
|
defer>
|
39
39
|
</script>
|
@@ -20,7 +20,7 @@ module Milestoner
|
|
20
20
|
def initialize(**)
|
21
21
|
super
|
22
22
|
@prefixes = settings.commit_categories.pluck :label
|
23
|
-
@authored_at = Time.at
|
23
|
+
@authored_at = Time.at value.authored_at.to_i
|
24
24
|
end
|
25
25
|
|
26
26
|
def avatar_url user
|
@@ -89,13 +89,13 @@ module Milestoner
|
|
89
89
|
|
90
90
|
def at = authored_at.strftime "%Y-%m-%dT%H:%M:%S%z"
|
91
91
|
|
92
|
-
def datetime = authored_at.strftime "%Y-%m-%d (%A)
|
92
|
+
def datetime = authored_at.strftime "%Y-%m-%d (%A) %I:%M %p %Z"
|
93
93
|
|
94
94
|
def weekday = authored_at.strftime "%A"
|
95
95
|
|
96
96
|
def date = authored_at.strftime "%Y-%m-%d"
|
97
97
|
|
98
|
-
def time = authored_at.strftime "%
|
98
|
+
def time = authored_at.strftime "%I:%M %p"
|
99
99
|
|
100
100
|
def zone = authored_at.strftime "%Z"
|
101
101
|
|
@@ -22,7 +22,9 @@ module Milestoner
|
|
22
22
|
format settings.avatar_uri, id: user.external_id
|
23
23
|
end
|
24
24
|
|
25
|
-
def
|
25
|
+
def commit_count = value.commits.size
|
26
|
+
|
27
|
+
def committed_at fallback: Time.now
|
26
28
|
value.committed_at.then { |at| at ? Time.at(at) : fallback }
|
27
29
|
end
|
28
30
|
|
@@ -30,6 +32,8 @@ module Milestoner
|
|
30
32
|
|
31
33
|
def committed_datetime = committed_at.strftime "%Y-%m-%dT%H:%M:%S%z"
|
32
34
|
|
35
|
+
def deletion_count = value.commits.sum(&:deletions)
|
36
|
+
|
33
37
|
def empty? = value.commits.empty?
|
34
38
|
|
35
39
|
def profile_url user
|
@@ -39,23 +43,25 @@ module Milestoner
|
|
39
43
|
format settings.profile_uri, id: user.handle
|
40
44
|
end
|
41
45
|
|
46
|
+
def file_count = value.commits.sum(&:files_changed)
|
47
|
+
|
48
|
+
def insertion_count = value.commits.sum(&:insertions)
|
49
|
+
|
42
50
|
def security = value.signature ? "🔒 Tag (secure)" : "🔓 Tag (insecure)"
|
43
51
|
|
44
|
-
def total_commits
|
45
|
-
value.commits.size.then { |total| "#{total} commit".pluralize "s", total }
|
46
|
-
end
|
52
|
+
def total_commits = commit_count.then { |total| "#{total} commit".pluralize "s", total }
|
47
53
|
|
48
|
-
def total_files
|
49
|
-
value.commits.sum(&:files_changed).then { |total| "#{total} file".pluralize "s", total }
|
50
|
-
end
|
54
|
+
def total_files = file_count.then { |total| "#{total} file".pluralize "s", total }
|
51
55
|
|
52
56
|
def total_deletions
|
53
|
-
|
57
|
+
deletion_count.then { |total| "#{total} deletion".pluralize "s", total }
|
54
58
|
end
|
55
59
|
|
56
60
|
def total_insertions
|
57
|
-
|
61
|
+
insertion_count.then { |total| "#{total} insertion".pluralize "s", total }
|
58
62
|
end
|
63
|
+
|
64
|
+
def uri = format settings.project_uri_version, id: value.version
|
59
65
|
end
|
60
66
|
end
|
61
67
|
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 = "18.
|
5
|
+
spec.version = "18.11.0"
|
6
6
|
spec.authors = ["Brooke Kuhlmann"]
|
7
7
|
spec.email = ["brooke@alchemists.io"]
|
8
8
|
spec.homepage = "https://alchemists.io/projects/milestoner"
|
@@ -25,25 +25,25 @@ Gem::Specification.new do |spec|
|
|
25
25
|
spec.required_ruby_version = ">= 3.3", "<= 3.4"
|
26
26
|
spec.add_dependency "asciidoctor", "~> 2.0"
|
27
27
|
spec.add_dependency "cff", "~> 1.1"
|
28
|
-
spec.add_dependency "cogger", "~> 0.
|
28
|
+
spec.add_dependency "cogger", "~> 0.31"
|
29
29
|
spec.add_dependency "containable", "~> 0.2"
|
30
|
-
spec.add_dependency "core", "~> 1.
|
30
|
+
spec.add_dependency "core", "~> 1.10"
|
31
31
|
spec.add_dependency "dry-monads", "~> 1.6"
|
32
32
|
spec.add_dependency "dry-schema", "~> 1.13"
|
33
|
-
spec.add_dependency "etcher", "~> 2.
|
34
|
-
spec.add_dependency "gitt", "~> 3.
|
33
|
+
spec.add_dependency "etcher", "~> 2.7"
|
34
|
+
spec.add_dependency "gitt", "~> 3.12"
|
35
35
|
spec.add_dependency "hanami-view", "~> 2.1"
|
36
|
-
spec.add_dependency "infusible", "~> 3.
|
36
|
+
spec.add_dependency "infusible", "~> 3.12"
|
37
37
|
spec.add_dependency "lode", "~> 1.8"
|
38
38
|
spec.add_dependency "redcarpet", "~> 3.6"
|
39
39
|
spec.add_dependency "refinements", "~> 12.10"
|
40
40
|
spec.add_dependency "rouge", "~> 4.4"
|
41
41
|
spec.add_dependency "rss", "~> 0.3"
|
42
|
-
spec.add_dependency "runcom", "~> 11.
|
42
|
+
spec.add_dependency "runcom", "~> 11.10"
|
43
43
|
spec.add_dependency "sanitize", "~> 6.1"
|
44
|
-
spec.add_dependency "sod", "~> 0.
|
44
|
+
spec.add_dependency "sod", "~> 0.20"
|
45
45
|
spec.add_dependency "spek", "~> 3.0"
|
46
|
-
spec.add_dependency "versionaire", "~> 13.
|
46
|
+
spec.add_dependency "versionaire", "~> 13.10"
|
47
47
|
spec.add_dependency "zeitwerk", "~> 2.7"
|
48
48
|
|
49
49
|
spec.bindir = "exe"
|
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: 18.
|
4
|
+
version: 18.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-11-
|
38
|
+
date: 2024-11-13 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.
|
74
|
+
version: '0.31'
|
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.
|
81
|
+
version: '0.31'
|
82
82
|
- !ruby/object:Gem::Dependency
|
83
83
|
name: containable
|
84
84
|
requirement: !ruby/object:Gem::Requirement
|
@@ -99,14 +99,14 @@ dependencies:
|
|
99
99
|
requirements:
|
100
100
|
- - "~>"
|
101
101
|
- !ruby/object:Gem::Version
|
102
|
-
version: '1.
|
102
|
+
version: '1.10'
|
103
103
|
type: :runtime
|
104
104
|
prerelease: false
|
105
105
|
version_requirements: !ruby/object:Gem::Requirement
|
106
106
|
requirements:
|
107
107
|
- - "~>"
|
108
108
|
- !ruby/object:Gem::Version
|
109
|
-
version: '1.
|
109
|
+
version: '1.10'
|
110
110
|
- !ruby/object:Gem::Dependency
|
111
111
|
name: dry-monads
|
112
112
|
requirement: !ruby/object:Gem::Requirement
|
@@ -141,28 +141,28 @@ dependencies:
|
|
141
141
|
requirements:
|
142
142
|
- - "~>"
|
143
143
|
- !ruby/object:Gem::Version
|
144
|
-
version: '2.
|
144
|
+
version: '2.7'
|
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: '2.
|
151
|
+
version: '2.7'
|
152
152
|
- !ruby/object:Gem::Dependency
|
153
153
|
name: gitt
|
154
154
|
requirement: !ruby/object:Gem::Requirement
|
155
155
|
requirements:
|
156
156
|
- - "~>"
|
157
157
|
- !ruby/object:Gem::Version
|
158
|
-
version: '3.
|
158
|
+
version: '3.12'
|
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: '3.
|
165
|
+
version: '3.12'
|
166
166
|
- !ruby/object:Gem::Dependency
|
167
167
|
name: hanami-view
|
168
168
|
requirement: !ruby/object:Gem::Requirement
|
@@ -183,14 +183,14 @@ dependencies:
|
|
183
183
|
requirements:
|
184
184
|
- - "~>"
|
185
185
|
- !ruby/object:Gem::Version
|
186
|
-
version: '3.
|
186
|
+
version: '3.12'
|
187
187
|
type: :runtime
|
188
188
|
prerelease: false
|
189
189
|
version_requirements: !ruby/object:Gem::Requirement
|
190
190
|
requirements:
|
191
191
|
- - "~>"
|
192
192
|
- !ruby/object:Gem::Version
|
193
|
-
version: '3.
|
193
|
+
version: '3.12'
|
194
194
|
- !ruby/object:Gem::Dependency
|
195
195
|
name: lode
|
196
196
|
requirement: !ruby/object:Gem::Requirement
|
@@ -267,14 +267,14 @@ dependencies:
|
|
267
267
|
requirements:
|
268
268
|
- - "~>"
|
269
269
|
- !ruby/object:Gem::Version
|
270
|
-
version: '11.
|
270
|
+
version: '11.10'
|
271
271
|
type: :runtime
|
272
272
|
prerelease: false
|
273
273
|
version_requirements: !ruby/object:Gem::Requirement
|
274
274
|
requirements:
|
275
275
|
- - "~>"
|
276
276
|
- !ruby/object:Gem::Version
|
277
|
-
version: '11.
|
277
|
+
version: '11.10'
|
278
278
|
- !ruby/object:Gem::Dependency
|
279
279
|
name: sanitize
|
280
280
|
requirement: !ruby/object:Gem::Requirement
|
@@ -295,14 +295,14 @@ dependencies:
|
|
295
295
|
requirements:
|
296
296
|
- - "~>"
|
297
297
|
- !ruby/object:Gem::Version
|
298
|
-
version: '0.
|
298
|
+
version: '0.20'
|
299
299
|
type: :runtime
|
300
300
|
prerelease: false
|
301
301
|
version_requirements: !ruby/object:Gem::Requirement
|
302
302
|
requirements:
|
303
303
|
- - "~>"
|
304
304
|
- !ruby/object:Gem::Version
|
305
|
-
version: '0.
|
305
|
+
version: '0.20'
|
306
306
|
- !ruby/object:Gem::Dependency
|
307
307
|
name: spek
|
308
308
|
requirement: !ruby/object:Gem::Requirement
|
@@ -323,14 +323,14 @@ dependencies:
|
|
323
323
|
requirements:
|
324
324
|
- - "~>"
|
325
325
|
- !ruby/object:Gem::Version
|
326
|
-
version: '13.
|
326
|
+
version: '13.10'
|
327
327
|
type: :runtime
|
328
328
|
prerelease: false
|
329
329
|
version_requirements: !ruby/object:Gem::Requirement
|
330
330
|
requirements:
|
331
331
|
- - "~>"
|
332
332
|
- !ruby/object:Gem::Version
|
333
|
-
version: '13.
|
333
|
+
version: '13.10'
|
334
334
|
- !ruby/object:Gem::Dependency
|
335
335
|
name: zeitwerk
|
336
336
|
requirement: !ruby/object:Gem::Requirement
|
@@ -525,7 +525,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
525
525
|
- !ruby/object:Gem::Version
|
526
526
|
version: '0'
|
527
527
|
requirements: []
|
528
|
-
rubygems_version: 3.5.
|
528
|
+
rubygems_version: 3.5.23
|
529
529
|
signing_key:
|
530
530
|
specification_version: 4
|
531
531
|
summary: A command line interface for automated Git repository milestones.
|
metadata.gz.sig
CHANGED
Binary file
|