milestoner 18.4.0 → 18.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (67) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +0 -0
  3. data/README.adoc +175 -54
  4. data/lib/milestoner/builders/feed.rb +0 -1
  5. data/lib/milestoner/builders/web.rb +4 -3
  6. data/lib/milestoner/cli/actions/cache/create.rb +12 -6
  7. data/lib/milestoner/cli/actions/cache/list.rb +9 -1
  8. data/lib/milestoner/commits/tagger.rb +20 -3
  9. data/lib/milestoner/renderers/asciidoc.rb +12 -3
  10. data/lib/milestoner/renderers/markdown.rb +14 -1
  11. data/lib/milestoner/sanitizer.rb +16 -7
  12. data/lib/milestoner/syndication/builder.rb +1 -1
  13. data/lib/milestoner/templates/milestones/_avatar.adoc.erb +1 -1
  14. data/lib/milestoner/templates/milestones/_avatar.html.erb +6 -5
  15. data/lib/milestoner/templates/milestones/_avatar.md.erb +1 -2
  16. data/lib/milestoner/templates/milestones/_avatar.xml.erb +1 -5
  17. data/lib/milestoner/templates/milestones/_commit.adoc.erb +6 -20
  18. data/lib/milestoner/templates/milestones/_commit.html.erb +32 -53
  19. data/lib/milestoner/templates/milestones/_commit.md.erb +1 -1
  20. data/lib/milestoner/templates/milestones/_commit.xml.erb +13 -41
  21. data/lib/milestoner/templates/milestones/_content.adoc.erb +1 -0
  22. data/lib/milestoner/templates/milestones/_content.html.erb +1 -0
  23. data/lib/milestoner/templates/milestones/_content.xml.erb +1 -0
  24. data/lib/milestoner/templates/milestones/_logo.adoc.erb +1 -0
  25. data/lib/milestoner/templates/milestones/_logo.html.erb +1 -0
  26. data/lib/milestoner/templates/milestones/_logo.md.erb +3 -0
  27. data/lib/milestoner/templates/milestones/_logo.xml.erb +3 -0
  28. data/lib/milestoner/templates/milestones/_none.adoc.erb +1 -0
  29. data/lib/milestoner/templates/milestones/_none.html.erb +1 -0
  30. data/lib/milestoner/templates/milestones/_none.xml.erb +1 -0
  31. data/lib/milestoner/templates/milestones/_profile.adoc.erb +1 -1
  32. data/lib/milestoner/templates/milestones/_profile.html.erb +1 -5
  33. data/lib/milestoner/templates/milestones/_profile.md.erb +1 -1
  34. data/lib/milestoner/templates/milestones/_profile.xml.erb +1 -5
  35. data/lib/milestoner/templates/milestones/_tag-insecure.html.erb +8 -0
  36. data/lib/milestoner/templates/milestones/_tag-secure.html.erb +13 -0
  37. data/lib/milestoner/templates/milestones/_tag.adoc.erb +3 -3
  38. data/lib/milestoner/templates/milestones/_tag.html.erb +3 -29
  39. data/lib/milestoner/templates/milestones/_tag.md.erb +2 -6
  40. data/lib/milestoner/templates/milestones/_tag.xml.erb +2 -7
  41. data/lib/milestoner/templates/milestones/_user.adoc.erb +1 -0
  42. data/lib/milestoner/templates/milestones/_user.html.erb +1 -0
  43. data/lib/milestoner/templates/milestones/_user.md.erb +1 -0
  44. data/lib/milestoner/templates/milestones/_user.xml.erb +1 -0
  45. data/lib/milestoner/templates/milestones/_users.adoc.erb +3 -0
  46. data/lib/milestoner/templates/milestones/_users.html.erb +7 -0
  47. data/lib/milestoner/templates/milestones/_users.md.erb +3 -0
  48. data/lib/milestoner/templates/milestones/_users.xml.erb +7 -0
  49. data/lib/milestoner/templates/public/page.css.erb +409 -19
  50. data/lib/milestoner/views/context.rb +1 -1
  51. data/lib/milestoner/views/milestones/show.rb +2 -0
  52. data/lib/milestoner/views/parts/commit.rb +27 -3
  53. data/lib/milestoner/views/parts/tag.rb +15 -4
  54. data/lib/milestoner/views/parts/user.rb +32 -0
  55. data/lib/milestoner/views/scope_builder.rb +40 -0
  56. data/lib/milestoner/views/scopes/content.rb +17 -0
  57. data/lib/milestoner/views/scopes/logo.rb +15 -0
  58. data/lib/milestoner/views/scopes/tag_signature.rb +27 -0
  59. data/lib/milestoner/views/scopes/users.rb +14 -0
  60. data/milestoner.gemspec +2 -1
  61. data.tar.gz.sig +0 -0
  62. metadata +43 -7
  63. metadata.gz.sig +0 -0
  64. data/lib/milestoner/templates/milestones/_icon.adoc.erb +0 -1
  65. data/lib/milestoner/templates/milestones/_icon.html.erb +0 -6
  66. data/lib/milestoner/templates/milestones/_icon.md.erb +0 -5
  67. data/lib/milestoner/templates/milestones/_icon.xml.erb +0 -5
@@ -0,0 +1,17 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "core"
4
+ require "hanami/view"
5
+
6
+ module Milestoner
7
+ module Views
8
+ module Scopes
9
+ # Provides content specific behavior for partials.
10
+ class Content < Hanami::View::Scope
11
+ def content = String locals.fetch(:content, Core::EMPTY_STRING)
12
+
13
+ def call = content.empty? ? render("milestones/none") : render("milestones/content")
14
+ end
15
+ end
16
+ end
17
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "core"
4
+ require "hanami/view"
5
+
6
+ module Milestoner
7
+ module Views
8
+ module Scopes
9
+ # Provides logo specific behavior for partials.
10
+ class Logo < Hanami::View::Scope
11
+ def call = project_uri_logo ? render("milestones/logo") : Core::EMPTY_STRING
12
+ end
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,27 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "hanami/view"
4
+
5
+ module Milestoner
6
+ module Views
7
+ module Scopes
8
+ # Provides tag signature specific behavior for partials.
9
+ class TagSignature < Hanami::View::Scope
10
+ def initialize(part: Parts::Tag.new(value: Models::Tag.new), **)
11
+ @part = part
12
+ super(**)
13
+ end
14
+
15
+ def tag = locals.fetch :tag, part
16
+
17
+ def call
18
+ tag.signature ? render("milestones/tag-secure") : render("milestones/tag-insecure")
19
+ end
20
+
21
+ private
22
+
23
+ attr_reader :part
24
+ end
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ require "hanami/view"
4
+
5
+ module Milestoner
6
+ module Views
7
+ module Scopes
8
+ # Provides users specific behavior for partials.
9
+ class Users < Hanami::View::Scope
10
+ def call = users.any? ? render("milestones/users", users:) : render("milestones/none")
11
+ end
12
+ end
13
+ end
14
+ 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.4.0"
5
+ spec.version = "18.6.0"
6
6
  spec.authors = ["Brooke Kuhlmann"]
7
7
  spec.email = ["brooke@alchemists.io"]
8
8
  spec.homepage = "https://alchemists.io/projects/milestoner"
@@ -37,6 +37,7 @@ Gem::Specification.new do |spec|
37
37
  spec.add_dependency "lode", "~> 1.8"
38
38
  spec.add_dependency "redcarpet", "~> 3.6"
39
39
  spec.add_dependency "refinements", "~> 12.8"
40
+ spec.add_dependency "rouge", "~> 4.4"
40
41
  spec.add_dependency "rss", "~> 0.3"
41
42
  spec.add_dependency "runcom", "~> 11.5"
42
43
  spec.add_dependency "sanitize", "~> 6.1"
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.0
4
+ version: 18.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-09-07 00:00:00.000000000 Z
38
+ date: 2024-09-20 00:00:00.000000000 Z
39
39
  dependencies:
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: asciidoctor
@@ -233,6 +233,20 @@ dependencies:
233
233
  - - "~>"
234
234
  - !ruby/object:Gem::Version
235
235
  version: '12.8'
236
+ - !ruby/object:Gem::Dependency
237
+ name: rouge
238
+ requirement: !ruby/object:Gem::Requirement
239
+ requirements:
240
+ - - "~>"
241
+ - !ruby/object:Gem::Version
242
+ version: '4.4'
243
+ type: :runtime
244
+ prerelease: false
245
+ version_requirements: !ruby/object:Gem::Requirement
246
+ requirements:
247
+ - - "~>"
248
+ - !ruby/object:Gem::Version
249
+ version: '4.4'
236
250
  - !ruby/object:Gem::Dependency
237
251
  name: rss
238
252
  requirement: !ruby/object:Gem::Requirement
@@ -436,19 +450,35 @@ files:
436
450
  - lib/milestoner/templates/milestones/_commit.md.erb
437
451
  - lib/milestoner/templates/milestones/_commit.stream.erb
438
452
  - lib/milestoner/templates/milestones/_commit.xml.erb
439
- - lib/milestoner/templates/milestones/_icon.adoc.erb
440
- - lib/milestoner/templates/milestones/_icon.html.erb
441
- - lib/milestoner/templates/milestones/_icon.md.erb
442
- - lib/milestoner/templates/milestones/_icon.xml.erb
453
+ - lib/milestoner/templates/milestones/_content.adoc.erb
454
+ - lib/milestoner/templates/milestones/_content.html.erb
455
+ - lib/milestoner/templates/milestones/_content.xml.erb
456
+ - lib/milestoner/templates/milestones/_logo.adoc.erb
457
+ - lib/milestoner/templates/milestones/_logo.html.erb
458
+ - lib/milestoner/templates/milestones/_logo.md.erb
459
+ - lib/milestoner/templates/milestones/_logo.xml.erb
460
+ - lib/milestoner/templates/milestones/_none.adoc.erb
461
+ - lib/milestoner/templates/milestones/_none.html.erb
462
+ - lib/milestoner/templates/milestones/_none.xml.erb
443
463
  - lib/milestoner/templates/milestones/_profile.adoc.erb
444
464
  - lib/milestoner/templates/milestones/_profile.html.erb
445
465
  - lib/milestoner/templates/milestones/_profile.md.erb
446
466
  - lib/milestoner/templates/milestones/_profile.xml.erb
467
+ - lib/milestoner/templates/milestones/_tag-insecure.html.erb
468
+ - lib/milestoner/templates/milestones/_tag-secure.html.erb
447
469
  - lib/milestoner/templates/milestones/_tag.adoc.erb
448
470
  - lib/milestoner/templates/milestones/_tag.html.erb
449
471
  - lib/milestoner/templates/milestones/_tag.md.erb
450
472
  - lib/milestoner/templates/milestones/_tag.stream.erb
451
473
  - lib/milestoner/templates/milestones/_tag.xml.erb
474
+ - lib/milestoner/templates/milestones/_user.adoc.erb
475
+ - lib/milestoner/templates/milestones/_user.html.erb
476
+ - lib/milestoner/templates/milestones/_user.md.erb
477
+ - lib/milestoner/templates/milestones/_user.xml.erb
478
+ - lib/milestoner/templates/milestones/_users.adoc.erb
479
+ - lib/milestoner/templates/milestones/_users.html.erb
480
+ - lib/milestoner/templates/milestones/_users.md.erb
481
+ - lib/milestoner/templates/milestones/_users.xml.erb
452
482
  - lib/milestoner/templates/milestones/show.adoc.erb
453
483
  - lib/milestoner/templates/milestones/show.html.erb
454
484
  - lib/milestoner/templates/milestones/show.md.erb
@@ -459,6 +489,12 @@ files:
459
489
  - lib/milestoner/views/milestones/show.rb
460
490
  - lib/milestoner/views/parts/commit.rb
461
491
  - lib/milestoner/views/parts/tag.rb
492
+ - lib/milestoner/views/parts/user.rb
493
+ - lib/milestoner/views/scope_builder.rb
494
+ - lib/milestoner/views/scopes/content.rb
495
+ - lib/milestoner/views/scopes/logo.rb
496
+ - lib/milestoner/views/scopes/tag_signature.rb
497
+ - lib/milestoner/views/scopes/users.rb
462
498
  - milestoner.gemspec
463
499
  homepage: https://alchemists.io/projects/milestoner
464
500
  licenses:
@@ -489,7 +525,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
489
525
  - !ruby/object:Gem::Version
490
526
  version: '0'
491
527
  requirements: []
492
- rubygems_version: 3.5.18
528
+ rubygems_version: 3.5.19
493
529
  signing_key:
494
530
  specification_version: 4
495
531
  summary: A command line interface for automated Git repository milestones.
metadata.gz.sig CHANGED
Binary file
@@ -1 +0,0 @@
1
- image::https://alchemists.io/images/projects/milestoner/icons/<%= name %>[<%= alt %>,24,24]
@@ -1,6 +0,0 @@
1
- <img src="https://alchemists.io/images/projects/milestoner/icons/<%= name %>.png"
2
- alt="<%= alt %>"
3
- class="icon"
4
- width="24"
5
- height="24"
6
- loading="lazy">
@@ -1,5 +0,0 @@
1
- <img src="https://alchemists.io/images/projects/milestoner/icons/<%= name %>.png"
2
- alt="<%= alt %>"
3
- width="24"
4
- height="24"
5
- loading="lazy">
@@ -1,5 +0,0 @@
1
- <img src="https://alchemists.io/images/projects/milestoner/icons/<%= name %>.png"
2
- alt="<%= alt %>"
3
- width="24"
4
- height="24"
5
- loading="lazy">