varar 0.6.1 → 0.7.0

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/lib/varar/dsl.rb +4 -5
  3. data/lib/varar.rb +1 -1
  4. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ee64017a43094bf2e093bcd7fe52a9fb12d290468a1141ca3943de49c390b8b7
4
- data.tar.gz: c2aa9087d5e792620d67ead512e101304ab52270314983a0bd0307a68cdfa3f2
3
+ metadata.gz: 33e1bb173b4ff42bb5b90335b74d78e369449fec56cd219a41a321d641501276
4
+ data.tar.gz: 5bf303b92fde845455676e500478d92ff8e3b1c8c9a800b83b8eb77b28d20e50
5
5
  SHA512:
6
- metadata.gz: de6f3a043086edded5a961be771109310126f1aac7d153fc71f61c77a3b90ebcbaba3ae457c13ff66e5fe74a3295c76edb9692222953188100090b968c2cd212
7
- data.tar.gz: 5d9f7a3cc37cb247cb2a724bce51c24b0bd18494ad614cbd8195693a2e0fe3efac17c351cf1d12017786e72d46778a815920a454f306393c8c4b1f9b41573461
6
+ metadata.gz: 223e64ecd32aa919e69d04872f399ce97f562177b9baac457699ce2d1f7f568c32c5500aae5f13563a8cb4e388e6d372f774873271e1bbb89f666a4ecd6da68f
7
+ data.tar.gz: 5b8ed1cd7b37a11380b73ae369b5cefb6963c92cf4ed1839aa55c2632062cf6d5fb098adad7e1c89dc5492caf67baf6e750dcae8d395001e9276d7f0b67828cc
data/lib/varar/dsl.rb CHANGED
@@ -15,11 +15,10 @@ require 'varar/internal'
15
15
  # The initial state is optional — omit it entirely for stateless step files —
16
16
  # but when given it MUST be a Proc/lambda, called fresh for every example. A
17
17
  # Hash was previously accepted and closed over a single object shared by every
18
- # example in the file; nested values `deep_freeze` does not recurse into (it
19
- # only descends Hash and Array) were then mutable and shared. Requiring a
20
- # factory makes freshness structural rather than something the deep-freeze has
21
- # to defend. The state is keyed by the calling file so contexts never bleed
22
- # across step files.
18
+ # example in the file, so one example could see another's mutations. Requiring
19
+ # a factory makes freshness structural which is the whole guarantee, since
20
+ # Varar hands the state to handlers untouched and never freezes it. The state
21
+ # is keyed by the calling file so contexts never bleed across step files.
23
22
  module Kernel
24
23
  private
25
24
 
data/lib/varar.rb CHANGED
@@ -7,5 +7,5 @@ require 'varar/dsl'
7
7
  module Varar
8
8
  # The author facade: `steps` (top-level DSL) → [param, stimulus, sensor],
9
9
  # backed by the module-scope accumulator in Internal.
10
- VERSION = '0.6.1'
10
+ VERSION = '0.7.0'
11
11
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: varar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aslak Hellesøy
@@ -29,15 +29,15 @@ dependencies:
29
29
  requirements:
30
30
  - - '='
31
31
  - !ruby/object:Gem::Version
32
- version: 0.6.1
32
+ version: 0.7.0
33
33
  type: :runtime
34
34
  prerelease: false
35
35
  version_requirements: !ruby/object:Gem::Requirement
36
36
  requirements:
37
37
  - - '='
38
38
  - !ruby/object:Gem::Version
39
- version: 0.6.1
40
- description: 'The Vár author facade: define_state and the step-registration accumulator.'
39
+ version: 0.7.0
40
+ description: 'The Varar author facade: define_state and the step-registration accumulator.'
41
41
  email:
42
42
  - aslak@oselvar.com
43
43
  executables: []