freyia 0.6.0 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9ae683b60c6522f6af8b51b15e78a0cf656c6eb6030762a41e6c68c2490468c0
4
- data.tar.gz: 66e517e9380662a71abaa0c89e1655a2b165802fb133dc93f29dcf09102e0738
3
+ metadata.gz: 57ce6fd9df172689a2cbe18dda902a2c73f04f7fe9b9298daf796a72de451164
4
+ data.tar.gz: a97f4c8415147d693585804aea6a1034b7c16f913a488d680ea88b50ff4c19d3
5
5
  SHA512:
6
- metadata.gz: 16089e296d6588fc4d622fef87d272bf03e760e23042deac1868942ae0740eb9d82317172b6abf7b01943eca3156ac5202bb7c9dfd0daf859e8a6c61d74178f9
7
- data.tar.gz: 8a1bead727f8f79ac8470935a76a4e21492928e4d6a92786b176aaa7dd51ead9d961dcf4b3d1ff2d44beec52352f14fdc6dc4be7a183d7942411b1f408196ac0
6
+ metadata.gz: b23a3f7b71bffb2211d5b14f53064b529490e62500449542a3446aeddd606936e417eff12ec29fc85f26d3897a2331cc50ceb750239bdea3da02b5e4017b8c45
7
+ data.tar.gz: 9d5345c6b0eae501fd19752680d1f6b02684fbe70513728e91e721956d0cc281b710ead534b5a9043473c109ed6b45ee3ff4af29890e1ee417888a7b0ead4b33
data/CHANGELOG.md CHANGED
@@ -4,6 +4,10 @@
4
4
 
5
5
  .
6
6
 
7
+ ## [0.6.1] - 2025-12-17
8
+
9
+ - Fix kwargs syntax errors
10
+
7
11
  ## [0.6.0] - 2025-12-14
8
12
 
9
13
  - Add support for Serbea-based templates (alternative to ERB)
@@ -9,7 +9,7 @@ module Freyia
9
9
  true
10
10
  end
11
11
 
12
- def initialize(prompt, options)
12
+ def initialize(prompt, **options)
13
13
  @prompt = prompt
14
14
  @options = options
15
15
  end
@@ -5,8 +5,8 @@ require_relative "line_editor/readline"
5
5
 
6
6
  module Freyia
7
7
  module LineEditor
8
- def self.readline(prompt, **options)
9
- best_available.new(prompt, options).readline
8
+ def self.readline(prompt, **)
9
+ best_available.new(prompt, **).readline
10
10
  end
11
11
 
12
12
  def self.best_available
@@ -194,8 +194,8 @@ module Freyia
194
194
  # ==== Options
195
195
  # indent<Integer>:: Indent each line of the printed paragraph by indent value.
196
196
  #
197
- def print_wrapped(message, **options)
198
- printer = WrappedPrinter.new(stdout, options)
197
+ def print_wrapped(message, **)
198
+ printer = WrappedPrinter.new(stdout, **)
199
199
  printer.print(message)
200
200
  end
201
201
 
@@ -333,11 +333,11 @@ module Freyia
333
333
  Terminal.unix?
334
334
  end
335
335
 
336
- def ask_simply(statement, color, options)
336
+ def ask_simply(statement, color, **options)
337
337
  default = options[:default]
338
338
  message = [statement, ("(#{default})" if default), nil].uniq.join(" ")
339
339
  message = prepare_message(message, *color)
340
- result = Freyia::LineEditor.readline(message, options)
340
+ result = Freyia::LineEditor.readline(message, **options)
341
341
 
342
342
  return unless result
343
343
 
@@ -350,13 +350,13 @@ module Freyia
350
350
  end
351
351
  end
352
352
 
353
- def ask_filtered(statement, color, options)
353
+ def ask_filtered(statement, color, **options)
354
354
  answer_set = options[:limited_to]
355
355
  case_insensitive = options.fetch(:case_insensitive, false)
356
356
  correct_answer = nil
357
357
  until correct_answer
358
358
  answers = answer_set.join(", ")
359
- answer = ask_simply("#{statement} [#{answers}]", color, options)
359
+ answer = ask_simply("#{statement} [#{answers}]", color, **options)
360
360
  correct_answer = answer_match(answer_set, answer, case_insensitive)
361
361
  say("Your response must be one of: [#{answers}]. Please try again.") unless correct_answer
362
362
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Freyia
4
- VERSION = "0.6.0"
4
+ VERSION = "0.6.1"
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: freyia
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jared White
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-12-14 00:00:00.000000000 Z
10
+ date: 2025-12-18 00:00:00.000000000 Z
11
11
  dependencies: []
12
12
  description: Define and execute automated tasks like the party girl you are.
13
13
  email: