milestoner 18.10.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 +2 -2
- data.tar.gz.sig +0 -0
- metadata +4 -4
- 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"
|
@@ -41,7 +41,7 @@ Gem::Specification.new do |spec|
|
|
41
41
|
spec.add_dependency "rss", "~> 0.3"
|
42
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
46
|
spec.add_dependency "versionaire", "~> 13.10"
|
47
47
|
spec.add_dependency "zeitwerk", "~> 2.7"
|
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
|
@@ -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
|
metadata.gz.sig
CHANGED
Binary file
|