gamefic 4.2.3 → 4.2.4

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: a1ac6076d220397fbc78a3052bb6fbb9e83dfb3fda11aff3843abf6d3a39cd50
4
- data.tar.gz: 0a32fbb92c7104dc778eaa9b748e65d7e568f46a587eeef6d07fa96d972bf6f1
3
+ metadata.gz: f776dec915d0df8f5863e57b8295dd908daf5b008601054447c103f664716323
4
+ data.tar.gz: 4936ac30153ae8ec2ba4cf55dec6cee5b31fef5b05eed04a7ec429d178543c5e
5
5
  SHA512:
6
- metadata.gz: db41d14514e7e73e9dc2b4c0bd5696a18da9635c4b2556d0930d01402aecb5bf68681226f410d5437a051bb709da7ee46b40c65885238b32d7a32f4f8676bc5c
7
- data.tar.gz: b6a8819cca8b2e66804f67cfea8841e0f3b07736116210f58e07e9bbe23ebe015ad1ab7c7ca1e040c0a0972cb59d27846d08800c7da42822c77056d58e721f64
6
+ metadata.gz: 0c36a1c8d1cd9aa786bc1033e6cc1fb4a39c8b1519efcd062cbc6a893c09d7cbe4a235bcbbfad3b059175816800b3504f33920d47d4f3224b56d5d1f23861093
7
+ data.tar.gz: 91a6430b08efd56abe301c2e78d61ba7a4e9dbc7730faa73090298ece961e8686470365f278bd16c3e48b77251ebe0a9b4b511eb91aec0294e105c37987e0d08
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 4.2.4 - November 26, 2026
2
+ - Cue#output does not freeze data sources
3
+
1
4
  ## 4.2.3 - July 23, 2026
2
5
  - Add logger dependency
3
6
  - Cue does not freeze actor queue
@@ -43,9 +43,16 @@ module Gamefic
43
43
  scene.finish
44
44
  end
45
45
 
46
+ # A frozen snapshout of the current output.
47
+ #
46
48
  # @return [Props::Output]
47
49
  def output
48
- props&.output.clone.freeze || Props::Output::EMPTY
50
+ data = props.output
51
+ .raw_data
52
+ .clone
53
+ .transform_values! { |val| val.clone.freeze }
54
+ .freeze
55
+ Props::Output.new(**data).freeze
49
56
  end
50
57
 
51
58
  # @return [Cue]
@@ -86,12 +86,6 @@ module Gamefic
86
86
  raw_data.replace data
87
87
  end
88
88
 
89
- def freeze
90
- raw_data.freeze
91
- raw_data.each_value(&:freeze)
92
- super
93
- end
94
-
95
89
  def method_missing method, *args
96
90
  return raw_data[method] if READER_METHODS.include?(method)
97
91
 
@@ -8,6 +8,7 @@ module Gamefic
8
8
  class MultipleChoice < Base
9
9
  use_props_class Props::MultipleChoice
10
10
 
11
+ # @param options [Array<String>]
11
12
  def initialize(...)
12
13
  super
13
14
  props.options.concat(context[:options] || [])
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Gamefic
4
- VERSION = '4.2.3'
4
+ VERSION = '4.2.4'
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gamefic
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.2.3
4
+ version: 4.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Fred Snyder
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2026-07-23 00:00:00.000000000 Z
10
+ date: 2026-11-26 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: base64