milestoner 17.11.0 → 18.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (108) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +0 -0
  3. data/README.adoc +183 -79
  4. data/lib/milestoner/builders/ascii_doc.rb +30 -10
  5. data/lib/milestoner/builders/container.rb +1 -0
  6. data/lib/milestoner/builders/feed.rb +46 -0
  7. data/lib/milestoner/builders/markdown.rb +30 -10
  8. data/lib/milestoner/builders/stream.rb +19 -8
  9. data/lib/milestoner/builders/web.rb +46 -16
  10. data/lib/milestoner/cli/actions/build/basename.rb +27 -0
  11. data/lib/milestoner/cli/actions/build/format.rb +4 -4
  12. data/lib/milestoner/cli/actions/build/label.rb +3 -3
  13. data/lib/milestoner/cli/actions/build/layout.rb +3 -3
  14. data/lib/milestoner/cli/actions/build/max.rb +24 -0
  15. data/lib/milestoner/cli/actions/build/root.rb +3 -3
  16. data/lib/milestoner/cli/actions/build/stylesheet.rb +36 -0
  17. data/lib/milestoner/cli/actions/build/tail.rb +26 -0
  18. data/lib/milestoner/cli/actions/build/version.rb +7 -3
  19. data/lib/milestoner/cli/actions/cache/delete.rb +1 -1
  20. data/lib/milestoner/cli/actions/cache/find.rb +2 -2
  21. data/lib/milestoner/cli/actions/cache/info.rb +1 -1
  22. data/lib/milestoner/cli/actions/cache/list.rb +2 -2
  23. data/lib/milestoner/cli/actions/next.rb +2 -2
  24. data/lib/milestoner/cli/actions/publish.rb +19 -4
  25. data/lib/milestoner/cli/commands/build.rb +15 -25
  26. data/lib/milestoner/cli/commands/cache.rb +1 -1
  27. data/lib/milestoner/commits/categorizer.rb +2 -2
  28. data/lib/milestoner/commits/enricher.rb +1 -1
  29. data/lib/milestoner/commits/enrichers/body.rb +2 -2
  30. data/lib/milestoner/commits/enrichers/format.rb +2 -2
  31. data/lib/milestoner/commits/enrichers/issue.rb +2 -2
  32. data/lib/milestoner/commits/enrichers/milestone.rb +1 -1
  33. data/lib/milestoner/commits/enrichers/note.rb +2 -2
  34. data/lib/milestoner/commits/enrichers/review.rb +2 -2
  35. data/lib/milestoner/commits/enrichers/uri.rb +2 -2
  36. data/lib/milestoner/commits/tagger.rb +78 -0
  37. data/lib/milestoner/configuration/contract.rb +30 -8
  38. data/lib/milestoner/configuration/defaults.yml +49 -24
  39. data/lib/milestoner/configuration/model.rb +17 -8
  40. data/lib/milestoner/configuration/transformers/build/template_paths.rb +4 -4
  41. data/lib/milestoner/configuration/transformers/citations/description.rb +5 -3
  42. data/lib/milestoner/configuration/transformers/citations/label.rb +2 -3
  43. data/lib/milestoner/configuration/transformers/citations/uri.rb +48 -0
  44. data/lib/milestoner/configuration/transformers/gems/description.rb +8 -2
  45. data/lib/milestoner/configuration/transformers/gems/label.rb +6 -3
  46. data/lib/milestoner/configuration/transformers/gems/name.rb +8 -2
  47. data/lib/milestoner/configuration/transformers/gems/uri.rb +12 -3
  48. data/lib/milestoner/configuration/transformers/generator/label.rb +2 -2
  49. data/lib/milestoner/configuration/transformers/generator/uri.rb +2 -2
  50. data/lib/milestoner/configuration/transformers/generator/version.rb +2 -2
  51. data/lib/milestoner/configuration/transformers/project/author.rb +5 -2
  52. data/lib/milestoner/configuration/transformers/project/label.rb +2 -2
  53. data/lib/milestoner/configuration/transformers/project/version.rb +2 -2
  54. data/lib/milestoner/configuration/transformers/syndication/link.rb +33 -0
  55. data/lib/milestoner/container.rb +20 -16
  56. data/lib/milestoner/models/commit.rb +2 -0
  57. data/lib/milestoner/models/tag.rb +8 -0
  58. data/lib/milestoner/renderers/universal.rb +2 -2
  59. data/lib/milestoner/syndication/builder.rb +120 -0
  60. data/lib/milestoner/syndication/refine.rb +25 -0
  61. data/lib/milestoner/syndication/shared.rb +25 -0
  62. data/lib/milestoner/tags/creator.rb +11 -33
  63. data/lib/milestoner/tags/publisher.rb +13 -5
  64. data/lib/milestoner/tags/pusher.rb +22 -13
  65. data/lib/milestoner/templates/layouts/page.html.erb +7 -1
  66. data/lib/milestoner/templates/layouts/page.xml.erb +11 -0
  67. data/lib/milestoner/templates/milestones/_avatar.adoc.erb +1 -0
  68. data/lib/milestoner/templates/milestones/_avatar.html.erb +1 -1
  69. data/lib/milestoner/templates/milestones/_avatar.md.erb +2 -0
  70. data/lib/milestoner/templates/milestones/_avatar.xml.erb +5 -0
  71. data/lib/milestoner/templates/milestones/_commit.adoc.erb +1 -1
  72. data/lib/milestoner/templates/milestones/_commit.html.erb +18 -8
  73. data/lib/milestoner/templates/milestones/_commit.md.erb +1 -1
  74. data/lib/milestoner/templates/milestones/_commit.xml.erb +84 -0
  75. data/lib/milestoner/templates/milestones/_icon.adoc.erb +1 -0
  76. data/lib/milestoner/templates/milestones/_icon.html.erb +2 -2
  77. data/lib/milestoner/templates/milestones/_icon.md.erb +5 -0
  78. data/lib/milestoner/templates/milestones/_icon.xml.erb +5 -0
  79. data/lib/milestoner/templates/milestones/_profile.adoc.erb +1 -0
  80. data/lib/milestoner/templates/milestones/_profile.md.erb +1 -0
  81. data/lib/milestoner/templates/milestones/_profile.xml.erb +5 -0
  82. data/lib/milestoner/templates/milestones/_tag.adoc.erb +13 -0
  83. data/lib/milestoner/templates/milestones/_tag.html.erb +82 -0
  84. data/lib/milestoner/templates/milestones/_tag.md.erb +18 -0
  85. data/lib/milestoner/templates/milestones/_tag.stream.erb +14 -0
  86. data/lib/milestoner/templates/milestones/_tag.xml.erb +27 -0
  87. data/lib/milestoner/templates/milestones/show.adoc.erb +1 -11
  88. data/lib/milestoner/templates/milestones/show.html.erb +1 -46
  89. data/lib/milestoner/templates/milestones/show.md.erb +1 -11
  90. data/lib/milestoner/templates/milestones/show.stream.erb +1 -11
  91. data/lib/milestoner/templates/milestones/show.xml.erb +1 -0
  92. data/lib/milestoner/templates/public/page.css.erb +111 -60
  93. data/lib/milestoner/views/context.rb +7 -4
  94. data/lib/milestoner/views/milestones/show.rb +4 -29
  95. data/lib/milestoner/views/parts/commit.rb +8 -8
  96. data/lib/milestoner/views/parts/tag.rb +51 -0
  97. data/milestoner.gemspec +8 -7
  98. data.tar.gz.sig +0 -0
  99. metadata +58 -22
  100. metadata.gz.sig +3 -3
  101. data/lib/milestoner/configuration/transformers/project/generator.rb +0 -35
  102. data/lib/milestoner/configuration/transformers/project/name.rb +0 -21
  103. data/lib/milestoner/configuration/transformers/uri/avatar.rb +0 -20
  104. data/lib/milestoner/configuration/transformers/uri/commit.rb +0 -23
  105. data/lib/milestoner/configuration/transformers/uri/profile.rb +0 -20
  106. data/lib/milestoner/configuration/transformers/uri/review.rb +0 -23
  107. data/lib/milestoner/configuration/transformers/uri/tracker.rb +0 -23
  108. data/lib/milestoner/error.rb +0 -7
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.11.0
4
+ version: 18.0.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-07-02 00:00:00.000000000 Z
38
+ date: 2024-07-07 00:00:00.000000000 Z
39
39
  dependencies:
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: asciidoctor
@@ -85,14 +85,14 @@ dependencies:
85
85
  requirements:
86
86
  - - "~>"
87
87
  - !ruby/object:Gem::Version
88
- version: '0.0'
88
+ version: '0.2'
89
89
  type: :runtime
90
90
  prerelease: false
91
91
  version_requirements: !ruby/object:Gem::Requirement
92
92
  requirements:
93
93
  - - "~>"
94
94
  - !ruby/object:Gem::Version
95
- version: '0.0'
95
+ version: '0.2'
96
96
  - !ruby/object:Gem::Dependency
97
97
  name: core
98
98
  requirement: !ruby/object:Gem::Requirement
@@ -141,28 +141,28 @@ dependencies:
141
141
  requirements:
142
142
  - - "~>"
143
143
  - !ruby/object:Gem::Version
144
- version: '1.6'
144
+ version: '2.0'
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: '1.6'
151
+ version: '2.0'
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.2'
158
+ version: '3.6'
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.2'
165
+ version: '3.6'
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.5'
186
+ version: '3.8'
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.5'
193
+ version: '3.8'
194
194
  - !ruby/object:Gem::Dependency
195
195
  name: lode
196
196
  requirement: !ruby/object:Gem::Requirement
@@ -233,20 +233,34 @@ dependencies:
233
233
  - - "~>"
234
234
  - !ruby/object:Gem::Version
235
235
  version: '12.5'
236
+ - !ruby/object:Gem::Dependency
237
+ name: rss
238
+ requirement: !ruby/object:Gem::Requirement
239
+ requirements:
240
+ - - "~>"
241
+ - !ruby/object:Gem::Version
242
+ version: '0.3'
243
+ type: :runtime
244
+ prerelease: false
245
+ version_requirements: !ruby/object:Gem::Requirement
246
+ requirements:
247
+ - - "~>"
248
+ - !ruby/object:Gem::Version
249
+ version: '0.3'
236
250
  - !ruby/object:Gem::Dependency
237
251
  name: runcom
238
252
  requirement: !ruby/object:Gem::Requirement
239
253
  requirements:
240
254
  - - "~>"
241
255
  - !ruby/object:Gem::Version
242
- version: '11.0'
256
+ version: '11.5'
243
257
  type: :runtime
244
258
  prerelease: false
245
259
  version_requirements: !ruby/object:Gem::Requirement
246
260
  requirements:
247
261
  - - "~>"
248
262
  - !ruby/object:Gem::Version
249
- version: '11.0'
263
+ version: '11.5'
250
264
  - !ruby/object:Gem::Dependency
251
265
  name: sanitize
252
266
  requirement: !ruby/object:Gem::Requirement
@@ -267,14 +281,14 @@ dependencies:
267
281
  requirements:
268
282
  - - "~>"
269
283
  - !ruby/object:Gem::Version
270
- version: '0.8'
284
+ version: '0.12'
271
285
  type: :runtime
272
286
  prerelease: false
273
287
  version_requirements: !ruby/object:Gem::Requirement
274
288
  requirements:
275
289
  - - "~>"
276
290
  - !ruby/object:Gem::Version
277
- version: '0.8'
291
+ version: '0.12'
278
292
  - !ruby/object:Gem::Dependency
279
293
  name: spek
280
294
  requirement: !ruby/object:Gem::Requirement
@@ -333,14 +347,19 @@ files:
333
347
  - lib/milestoner.rb
334
348
  - lib/milestoner/builders/ascii_doc.rb
335
349
  - lib/milestoner/builders/container.rb
350
+ - lib/milestoner/builders/feed.rb
336
351
  - lib/milestoner/builders/import.rb
337
352
  - lib/milestoner/builders/markdown.rb
338
353
  - lib/milestoner/builders/stream.rb
339
354
  - lib/milestoner/builders/web.rb
355
+ - lib/milestoner/cli/actions/build/basename.rb
340
356
  - lib/milestoner/cli/actions/build/format.rb
341
357
  - lib/milestoner/cli/actions/build/label.rb
342
358
  - lib/milestoner/cli/actions/build/layout.rb
359
+ - lib/milestoner/cli/actions/build/max.rb
343
360
  - lib/milestoner/cli/actions/build/root.rb
361
+ - lib/milestoner/cli/actions/build/stylesheet.rb
362
+ - lib/milestoner/cli/actions/build/tail.rb
344
363
  - lib/milestoner/cli/actions/build/version.rb
345
364
  - lib/milestoner/cli/actions/cache/create.rb
346
365
  - lib/milestoner/cli/actions/cache/delete.rb
@@ -366,6 +385,7 @@ files:
366
385
  - lib/milestoner/commits/enrichers/note.rb
367
386
  - lib/milestoner/commits/enrichers/review.rb
368
387
  - lib/milestoner/commits/enrichers/uri.rb
388
+ - lib/milestoner/commits/tagger.rb
369
389
  - lib/milestoner/commits/versioner.rb
370
390
  - lib/milestoner/configuration/contract.rb
371
391
  - lib/milestoner/configuration/defaults.yml
@@ -374,6 +394,7 @@ files:
374
394
  - lib/milestoner/configuration/transformers/build/template_paths.rb
375
395
  - lib/milestoner/configuration/transformers/citations/description.rb
376
396
  - lib/milestoner/configuration/transformers/citations/label.rb
397
+ - lib/milestoner/configuration/transformers/citations/uri.rb
377
398
  - lib/milestoner/configuration/transformers/gems/description.rb
378
399
  - lib/milestoner/configuration/transformers/gems/label.rb
379
400
  - lib/milestoner/configuration/transformers/gems/name.rb
@@ -382,24 +403,21 @@ files:
382
403
  - lib/milestoner/configuration/transformers/generator/uri.rb
383
404
  - lib/milestoner/configuration/transformers/generator/version.rb
384
405
  - lib/milestoner/configuration/transformers/project/author.rb
385
- - lib/milestoner/configuration/transformers/project/generator.rb
386
406
  - lib/milestoner/configuration/transformers/project/label.rb
387
- - lib/milestoner/configuration/transformers/project/name.rb
388
407
  - lib/milestoner/configuration/transformers/project/version.rb
389
- - lib/milestoner/configuration/transformers/uri/avatar.rb
390
- - lib/milestoner/configuration/transformers/uri/commit.rb
391
- - lib/milestoner/configuration/transformers/uri/profile.rb
392
- - lib/milestoner/configuration/transformers/uri/review.rb
393
- - lib/milestoner/configuration/transformers/uri/tracker.rb
408
+ - lib/milestoner/configuration/transformers/syndication/link.rb
394
409
  - lib/milestoner/container.rb
395
- - lib/milestoner/error.rb
396
410
  - lib/milestoner/import.rb
397
411
  - lib/milestoner/models/commit.rb
398
412
  - lib/milestoner/models/link.rb
413
+ - lib/milestoner/models/tag.rb
399
414
  - lib/milestoner/models/user.rb
400
415
  - lib/milestoner/renderers/asciidoc.rb
401
416
  - lib/milestoner/renderers/markdown.rb
402
417
  - lib/milestoner/renderers/universal.rb
418
+ - lib/milestoner/syndication/builder.rb
419
+ - lib/milestoner/syndication/refine.rb
420
+ - lib/milestoner/syndication/shared.rb
403
421
  - lib/milestoner/tags/creator.rb
404
422
  - lib/milestoner/tags/publisher.rb
405
423
  - lib/milestoner/tags/pusher.rb
@@ -407,21 +425,39 @@ files:
407
425
  - lib/milestoner/templates/layouts/page.html.erb
408
426
  - lib/milestoner/templates/layouts/page.md.erb
409
427
  - lib/milestoner/templates/layouts/page.stream.erb
428
+ - lib/milestoner/templates/layouts/page.xml.erb
429
+ - lib/milestoner/templates/milestones/_avatar.adoc.erb
410
430
  - lib/milestoner/templates/milestones/_avatar.html.erb
431
+ - lib/milestoner/templates/milestones/_avatar.md.erb
432
+ - lib/milestoner/templates/milestones/_avatar.xml.erb
411
433
  - lib/milestoner/templates/milestones/_commit.adoc.erb
412
434
  - lib/milestoner/templates/milestones/_commit.html.erb
413
435
  - lib/milestoner/templates/milestones/_commit.md.erb
414
436
  - lib/milestoner/templates/milestones/_commit.stream.erb
437
+ - lib/milestoner/templates/milestones/_commit.xml.erb
438
+ - lib/milestoner/templates/milestones/_icon.adoc.erb
415
439
  - lib/milestoner/templates/milestones/_icon.html.erb
440
+ - lib/milestoner/templates/milestones/_icon.md.erb
441
+ - lib/milestoner/templates/milestones/_icon.xml.erb
442
+ - lib/milestoner/templates/milestones/_profile.adoc.erb
416
443
  - lib/milestoner/templates/milestones/_profile.html.erb
444
+ - lib/milestoner/templates/milestones/_profile.md.erb
445
+ - lib/milestoner/templates/milestones/_profile.xml.erb
446
+ - lib/milestoner/templates/milestones/_tag.adoc.erb
447
+ - lib/milestoner/templates/milestones/_tag.html.erb
448
+ - lib/milestoner/templates/milestones/_tag.md.erb
449
+ - lib/milestoner/templates/milestones/_tag.stream.erb
450
+ - lib/milestoner/templates/milestones/_tag.xml.erb
417
451
  - lib/milestoner/templates/milestones/show.adoc.erb
418
452
  - lib/milestoner/templates/milestones/show.html.erb
419
453
  - lib/milestoner/templates/milestones/show.md.erb
420
454
  - lib/milestoner/templates/milestones/show.stream.erb
455
+ - lib/milestoner/templates/milestones/show.xml.erb
421
456
  - lib/milestoner/templates/public/page.css.erb
422
457
  - lib/milestoner/views/context.rb
423
458
  - lib/milestoner/views/milestones/show.rb
424
459
  - lib/milestoner/views/parts/commit.rb
460
+ - lib/milestoner/views/parts/tag.rb
425
461
  - milestoner.gemspec
426
462
  homepage: https://alchemists.io/projects/milestoner
427
463
  licenses:
metadata.gz.sig CHANGED
@@ -1,3 +1,3 @@
1
- ���A#��@Jy�(6塏��qM��Pa_{8
2
- ON���QDƹ�����b[��)�ر�g�z�cs
3
- M��`�����qct�+('����&9�������69XM��ػ5*��7Gq^�f#
1
+ B�_I�,�CС8ZgE��(� Nk-_���͏f�?�}S0(�
2
+ ���$s
3
+ ���~PZqy2u5�`QX�yV?�W�Ma�)���3�"+ϧ�ïEn �zd��x5��d�vL�v�ysmΚ�wG��K��WR��{�~*:;�O��d��5�*��pqTK0+Z|���xI8]�=���#�W
@@ -1,35 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "dry/monads"
4
-
5
- module Milestoner
6
- module Configuration
7
- module Transformers
8
- module Project
9
- # Conditionally updates generator based on gem specification.
10
- class Generator
11
- include Import[:specification]
12
- include Dry::Monads[:result]
13
-
14
- def initialize(key = :project_generator, **)
15
- @key = key
16
- super(**)
17
- end
18
-
19
- def call attributes
20
- warn "`#{self.class}##{__method__}` is deprecated, use " \
21
- "`Milestoner::Configuration::Transformers::Generator::Label` or " \
22
- "`Milestoner::Configuration::Transformers::Generator::URI` instead.",
23
- category: :deprecated
24
-
25
- Success({key => specification.labeled_version}.merge!(attributes))
26
- end
27
-
28
- private
29
-
30
- attr_reader :key
31
- end
32
- end
33
- end
34
- end
35
- end
@@ -1,21 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "dry/monads"
4
- require "pathname"
5
- require "refinements/hash"
6
-
7
- module Milestoner
8
- module Configuration
9
- module Transformers
10
- # Conditionally updates name based on current directory.
11
- module Project
12
- using Refinements::Hash
13
-
14
- Name = lambda do |attributes, key = :project_name, default: Pathname.pwd.basename.to_s|
15
- attributes.fetch_value(key) { default }
16
- .then { |value| Dry::Monads::Success attributes.merge!(key => value) }
17
- end
18
- end
19
- end
20
- end
21
- end
@@ -1,20 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "dry/monads"
4
-
5
- module Milestoner
6
- module Configuration
7
- module Transformers
8
- module URI
9
- Avatar = lambda do |attributes, key = :avatar_uri|
10
- uri, domain = attributes.values_at key, :avatar_domain
11
-
12
- return Dry::Monads::Success attributes unless uri
13
-
14
- attributes[key] = format uri, domain:, id: "%<id>s"
15
- Dry::Monads::Success attributes
16
- end
17
- end
18
- end
19
- end
20
- end
@@ -1,23 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "dry/monads"
4
-
5
- module Milestoner
6
- module Configuration
7
- module Transformers
8
- module URI
9
- Commit = lambda do |attributes, key = :commit_uri|
10
- uri, owner, name, domain = attributes.values_at key,
11
- :project_owner,
12
- :project_name,
13
- :commit_domain
14
-
15
- return Dry::Monads::Success attributes unless uri
16
-
17
- attributes[key] = format uri, domain:, owner:, name:, id: "%<id>s"
18
- Dry::Monads::Success attributes
19
- end
20
- end
21
- end
22
- end
23
- end
@@ -1,20 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "dry/monads"
4
-
5
- module Milestoner
6
- module Configuration
7
- module Transformers
8
- module URI
9
- Profile = lambda do |attributes, key = :profile_uri|
10
- uri, domain = attributes.values_at key, :profile_domain
11
-
12
- return Dry::Monads::Success attributes unless uri
13
-
14
- attributes[key] = format uri, domain:, id: "%<id>s"
15
- Dry::Monads::Success attributes
16
- end
17
- end
18
- end
19
- end
20
- end
@@ -1,23 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "dry/monads"
4
-
5
- module Milestoner
6
- module Configuration
7
- module Transformers
8
- module URI
9
- Review = lambda do |attributes, key = :review_uri|
10
- uri, owner, name, domain = attributes.values_at key,
11
- :project_owner,
12
- :project_name,
13
- :review_domain
14
-
15
- return Dry::Monads::Success attributes unless uri
16
-
17
- attributes[key] = format uri, domain:, owner:, name:, id: "%<id>s"
18
- Dry::Monads::Success attributes
19
- end
20
- end
21
- end
22
- end
23
- end
@@ -1,23 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "dry/monads"
4
-
5
- module Milestoner
6
- module Configuration
7
- module Transformers
8
- module URI
9
- Tracker = lambda do |attributes, key = :tracker_uri|
10
- uri, owner, name, domain = attributes.values_at key,
11
- :project_owner,
12
- :project_name,
13
- :tracker_domain
14
-
15
- return Dry::Monads::Success attributes unless uri
16
-
17
- attributes[key] = format uri, domain:, owner:, name:, id: "%<id>s"
18
- Dry::Monads::Success attributes
19
- end
20
- end
21
- end
22
- end
23
- end
@@ -1,7 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module Milestoner
4
- # The base class for all Milestoner related errors.
5
- class Error < StandardError
6
- end
7
- end