sus 0.19.1 → 0.20.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: be6340b088c8d6e160633c485f38092c1cf9d5efec5d02271a71262e564b303b
4
- data.tar.gz: a99c97b6bc58cb640abd624cfb4d74cf021707c6c92077dde8b07cb1533969e9
3
+ metadata.gz: 32d3a31b1ef9a5f80523b6d3bbe34d8fe1312fbee9f48b96eff16ee0c7755b46
4
+ data.tar.gz: 7fe132541184eb203cd93f1bb5f94288c473a70d0329b1a351d7bd70be382e41
5
5
  SHA512:
6
- metadata.gz: e19c1efd09b7233fd3e20b46206d562598587afe6088b53812658aaedb249e287189b140d2296fdac57a3fc6df429f66f59108d8607b62874578cce40483978b
7
- data.tar.gz: 493742b0eb7ea370253a51078e355535cc34e67cbfae7cadde6974f6ed5bd75196bea81334e887b5dab13ed3af423c8e3fc77d48fb7bbf277ed7192289709e23
6
+ metadata.gz: 451fa9e5cc095f4af36347f0fc5f55ffbd74ce1b03efa6985cacbcdd2aa469ec577aadc8c6fe4d197e7f323bdd7ae18ca318c2cc1861568abe2b1230525a078f
7
+ data.tar.gz: 6d9ae7c5173b87ac726f3e61b13ae3ca199adf73cb86bba9f9e2326cacc064ea395a692288d97a3898fb7ff7500ad8581303a8d3331813fd8bfd04c3665a0da6
checksums.yaml.gz.sig CHANGED
Binary file
data/lib/sus/it.rb CHANGED
@@ -7,11 +7,11 @@ require_relative 'context'
7
7
 
8
8
  module Sus
9
9
  module It
10
- def self.build(parent, description = nil, &block)
10
+ def self.build(parent, description = nil, unique: true, &block)
11
11
  base = Class.new(parent)
12
12
  base.extend(It)
13
13
  base.description = description
14
- base.identity = Identity.nested(parent.identity, base.description)
14
+ base.identity = Identity.nested(parent.identity, base.description, unique: unique)
15
15
 
16
16
  if block_given?
17
17
  base.define_method(:call, &block)
data/lib/sus/version.rb CHANGED
@@ -4,5 +4,5 @@
4
4
  # Copyright, 2021-2022, by Samuel Williams.
5
5
 
6
6
  module Sus
7
- VERSION = "0.19.1"
7
+ VERSION = "0.20.0"
8
8
  end
data/lib/sus/with.rb CHANGED
@@ -44,10 +44,10 @@ module Sus
44
44
  end
45
45
 
46
46
  module Context
47
- def with(subject = nil, **variables, &block)
47
+ def with(subject = nil, unique: true, **variables, &block)
48
48
  subject ||= variables.inspect
49
49
 
50
- add With.build(self, subject, variables, &block)
50
+ add With.build(self, subject, variables, unique: unique, &block)
51
51
  end
52
52
  end
53
53
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sus
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.19.1
4
+ version: 0.20.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -38,7 +38,7 @@ cert_chain:
38
38
  Q2K9NVun/S785AP05vKkXZEFYxqG6EW012U4oLcFl5MySFajYXRYbuUpH6AY+HP8
39
39
  voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
40
40
  -----END CERTIFICATE-----
41
- date: 2023-02-21 00:00:00.000000000 Z
41
+ date: 2023-02-24 00:00:00.000000000 Z
42
42
  dependencies:
43
43
  - !ruby/object:Gem::Dependency
44
44
  name: bake-test
metadata.gz.sig CHANGED
Binary file