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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 3ad766f6a5819101edb0880c930ce9894c75944b06c1e690d0b8880a7fc2b2bf
4
- data.tar.gz: 854065f34307ad4bb31908c34a6ccf9040ccc977a4aa704f8b7589c52220b0f6
3
+ metadata.gz: 0156e01c5f787dbeb92e36c4f3b8d99fc6ac38d2e9a9d085e8a36bd1dd5bcad1
4
+ data.tar.gz: 5e138700d0bcdac1c81c1020ff07242d0f5b7024f21d2ff5ea8f847bc79555ab
5
5
  SHA512:
6
- metadata.gz: f7c23a694252be693e5f989e828541341722e9180e220560ba3cb359daaaac6c6b6759422a276645b3065882ab70485d34f748dfa686f476d0c78d6410f87f74
7
- data.tar.gz: 130f6c01f2f4d6359edb499459e7405eedfe75592a3f74a36a2ca6d33e3bf99f2c2e7008fdafdbdbeb8ef9d309752f8c33afa9093ec1db1184f2d7423c11fd35
6
+ metadata.gz: 4b349ed6026044502415ff19bc85b24345af9a9bf0c8759dd4fc7fe26ad2d62c38b8ff5d5bd4db583e081e7bf8c68aa0ee9f76a74eb9a2115c7a8684a82c3fb1
7
+ data.tar.gz: 55b056802507cf620447509111ee821c2583deb1a8ae5d4ed61ad16d67616c3d48c80c82e5900dfdd56315f61a186baacbd8dff282c8251241b596732686746c
checksums.yaml.gz.sig CHANGED
Binary file
@@ -1,6 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require "dry/monads"
4
3
  require "refinements/pathname"
5
4
 
6
5
  module Milestoner
@@ -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
@@ -1,5 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ require "refinements/array"
3
4
  require "refinements/pathname"
4
5
 
5
6
  module Milestoner
@@ -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).utc : settings.loaded_at
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.1"
36
- integrity="sha384-l8f0VcPi/M1iHPv8egOnY/15TDwqgbOR1anMIJWvU6nLRgZVLTLSaNqi/TOoT5Fh"
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(value.authored_at.to_i).utc
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) at %H:%M %p %Z"
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 "%H:%M %p"
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 committed_at fallback: Time.now.utc
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
- value.commits.sum(&:deletions).then { |total| "#{total} deletion".pluralize "s", total }
57
+ deletion_count.then { |total| "#{total} deletion".pluralize "s", total }
54
58
  end
55
59
 
56
60
  def total_insertions
57
- value.commits.sum(&:insertions).then { |total| "#{total} insertion".pluralize "s", total }
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.9.0"
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.30"
28
+ spec.add_dependency "cogger", "~> 0.31"
29
29
  spec.add_dependency "containable", "~> 0.2"
30
- spec.add_dependency "core", "~> 1.7"
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.1"
34
- spec.add_dependency "gitt", "~> 3.9"
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.11"
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.5"
42
+ spec.add_dependency "runcom", "~> 11.10"
43
43
  spec.add_dependency "sanitize", "~> 6.1"
44
- spec.add_dependency "sod", "~> 0.18"
44
+ spec.add_dependency "sod", "~> 0.20"
45
45
  spec.add_dependency "spek", "~> 3.0"
46
- spec.add_dependency "versionaire", "~> 13.9"
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.9.0
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-05 00:00:00.000000000 Z
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.30'
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.30'
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.7'
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.7'
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.1'
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.1'
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.9'
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.9'
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.11'
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.11'
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.5'
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.5'
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.18'
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.18'
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.9'
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.9'
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.22
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