milestoner 18.1.0 → 18.2.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: 27103ea8c0c11529358a9af74ba09984649748fd1420d5a87033935a3f7cd0c3
4
- data.tar.gz: 71b5a313d296be4198631273b6b7520c1ea1a99350a829a38e7eec0aa9cdd690
3
+ metadata.gz: 5fcc6f3ede7fdff901296a42d3df49c74122288784e6ec31269581d66281cd34
4
+ data.tar.gz: 996593d578f7d4cddd5cc57a15c4c0babc996cca92fb9c92ce3b25fdda0e547c
5
5
  SHA512:
6
- metadata.gz: 7260fdf39ccf76b5e7b65000851345b66ec85d1c2f8fd8db3337ad3bc8bef4842926ceefbd9d8da271b9a977f74eaee9fac6022a39928b67859c6f3fd34194d9
7
- data.tar.gz: 1533468fce1026cf42692d347318d4ba17732aa20549d6aa4d5ffb6ea34a576baa567b98e885c11618628092ac83628462a981fb186c12528fd7640f7950e95a
6
+ metadata.gz: 38714a95ec74eaf9121877b8f9590db3517f7034ec83781c9be719b57b077423fc434004dd01490782abdaba75d2613d3c9f39e4bcf12834cdcbe5485766b2c7
7
+ data.tar.gz: 0ec2e026f3ffedcfba5f19c84218431c0e6faa04b54ffbdf748d17d6a2c69135e5a2f5ed7bb6368d1183be3746640b4fa50f31d3e97813e08044428c6410f66b
checksums.yaml.gz.sig CHANGED
Binary file
@@ -19,7 +19,7 @@ module Milestoner
19
19
 
20
20
  default { Container[:settings].build_basename }
21
21
 
22
- def call(name = nil) = settings.build_basename = name || default
22
+ def call(name = default) = settings.build_basename = name
23
23
  end
24
24
  end
25
25
  end
@@ -16,7 +16,7 @@ module Milestoner
16
16
 
17
17
  default { Container[:settings].build_format }
18
18
 
19
- def call(kind = nil) = settings.build_format = kind || default
19
+ def call(kind = default) = settings.build_format = kind
20
20
  end
21
21
  end
22
22
  end
@@ -16,7 +16,7 @@ module Milestoner
16
16
 
17
17
  default { Container[:settings].project_label }
18
18
 
19
- def call(label = nil) = settings.project_label = label || default
19
+ def call(label = default) = settings.project_label = label
20
20
  end
21
21
  end
22
22
  end
@@ -18,16 +18,8 @@ module Milestoner
18
18
 
19
19
  default { Container[:settings].build_layout }
20
20
 
21
- def call(layout = nil) = settings.build_layout = parse(layout)
22
-
23
- private
24
-
25
- def parse value
26
- case value
27
- in "false" then false
28
- in String then value
29
- else default
30
- end
21
+ def call layout = default
22
+ settings.build_layout = layout == "false" ? false : layout
31
23
  end
32
24
  end
33
25
  end
@@ -16,7 +16,7 @@ module Milestoner
16
16
 
17
17
  default { Container[:settings].build_max }
18
18
 
19
- def call(max = nil) = settings.build_max = max || default
19
+ def call(max = default) = settings.build_max = max
20
20
  end
21
21
  end
22
22
  end
@@ -17,7 +17,7 @@ module Milestoner
17
17
 
18
18
  default { Container[:settings].build_root }
19
19
 
20
- def call(path = nil) = settings.build_root = Pathname(path || default).expand_path
20
+ def call(path = default) = settings.build_root = Pathname(path).expand_path
21
21
  end
22
22
  end
23
23
  end
@@ -18,16 +18,8 @@ module Milestoner
18
18
 
19
19
  default { Container[:settings].build_stylesheet }
20
20
 
21
- def call(name = nil) = settings.build_stylesheet = parse(name)
22
-
23
- private
24
-
25
- def parse value
26
- case value
27
- in "false" then false
28
- in String then value
29
- else default
30
- end
21
+ def call name = default
22
+ settings.build_stylesheet = name == "false" ? false : name
31
23
  end
32
24
  end
33
25
  end
@@ -18,7 +18,7 @@ module Milestoner
18
18
 
19
19
  default { Container[:settings].build_tail }
20
20
 
21
- def call(reference = nil) = settings.build_tail = reference || default
21
+ def call(reference = default) = settings.build_tail = reference
22
22
  end
23
23
  end
24
24
  end
@@ -21,8 +21,8 @@ module Milestoner
21
21
 
22
22
  default { Container[:settings].project_version }
23
23
 
24
- def call version = nil
25
- settings.project_version = Version(version || default)
24
+ def call version = default
25
+ settings.project_version = Version version
26
26
  rescue Versionaire::Error => error
27
27
  logger.error { error.message }
28
28
  end
@@ -27,10 +27,10 @@ module Milestoner
27
27
  @publisher = publisher
28
28
  end
29
29
 
30
- def call version = nil
30
+ def call version = default
31
31
  settings.build_max = 1
32
32
 
33
- case publisher.call Version(version || default)
33
+ case publisher.call Version(version)
34
34
  in Success(version) then version
35
35
  in Failure(message) then log_error message
36
36
  else log_error "Publish failed, unable to parse result."
@@ -10,7 +10,11 @@ module Milestoner
10
10
  include Import[:git, :logger]
11
11
  include Dry::Monads[:result]
12
12
 
13
- def initialize(collector: Commits::Collector.new, builder: Builders::Stream.new, **)
13
+ def initialize(
14
+ collector: Commits::Collector.new,
15
+ builder: Builders::Stream.new(io: StringIO.new),
16
+ **
17
+ )
14
18
  @collector = collector
15
19
  @builder = builder
16
20
  super(**)
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.1.0"
5
+ spec.version = "18.2.0"
6
6
  spec.authors = ["Brooke Kuhlmann"]
7
7
  spec.email = ["brooke@alchemists.io"]
8
8
  spec.homepage = "https://alchemists.io/projects/milestoner"
@@ -40,7 +40,7 @@ Gem::Specification.new do |spec|
40
40
  spec.add_dependency "rss", "~> 0.3"
41
41
  spec.add_dependency "runcom", "~> 11.5"
42
42
  spec.add_dependency "sanitize", "~> 6.1"
43
- spec.add_dependency "sod", "~> 0.12"
43
+ spec.add_dependency "sod", "~> 0.14"
44
44
  spec.add_dependency "spek", "~> 3.0"
45
45
  spec.add_dependency "versionaire", "~> 13.0"
46
46
  spec.add_dependency "zeitwerk", "~> 2.6"
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.1.0
4
+ version: 18.2.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-20 00:00:00.000000000 Z
38
+ date: 2024-08-11 00:00:00.000000000 Z
39
39
  dependencies:
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: asciidoctor
@@ -281,14 +281,14 @@ dependencies:
281
281
  requirements:
282
282
  - - "~>"
283
283
  - !ruby/object:Gem::Version
284
- version: '0.12'
284
+ version: '0.14'
285
285
  type: :runtime
286
286
  prerelease: false
287
287
  version_requirements: !ruby/object:Gem::Requirement
288
288
  requirements:
289
289
  - - "~>"
290
290
  - !ruby/object:Gem::Version
291
- version: '0.12'
291
+ version: '0.14'
292
292
  - !ruby/object:Gem::Dependency
293
293
  name: spek
294
294
  requirement: !ruby/object:Gem::Requirement
@@ -485,7 +485,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
485
485
  - !ruby/object:Gem::Version
486
486
  version: '0'
487
487
  requirements: []
488
- rubygems_version: 3.5.16
488
+ rubygems_version: 3.5.17
489
489
  signing_key:
490
490
  specification_version: 4
491
491
  summary: A command line interface for automated Git repository milestones.
metadata.gz.sig CHANGED
Binary file