spectre-core 1.14.1 → 1.14.2

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: 3ec3e298c4efb325f628370a3855a110136cba4a9d7f870db90d95a5b39c9e8a
4
- data.tar.gz: fde6391319206d2f8d603b02be31f0f5bb72d424fcb25541b9be0597670ce49a
3
+ metadata.gz: f1d19a96bd18baeb678abc3670c744bbd8855b4680db1e05bd57dcd99dfc3f21
4
+ data.tar.gz: db9f3efd3faf3bf571845b1ae340a133ee9a95065cec2b8469d28b0a76985996
5
5
  SHA512:
6
- metadata.gz: 5fdb065d1ce08d8c4e78e164bc1caad26ed03d50f4cf6199398699859cb9a81a00260b6e3af785de4a7852aa45da1ae61a2977b0b92bbb5c0c832e6079178cce
7
- data.tar.gz: ce6b95998d3e3145876bc1d7bb8fe06ce941f1327a6a283557e9944447ffba888c3012124c474d0321f5e9eb91914b53fbdd285255f947db34dd783e084446b5
6
+ metadata.gz: dcfa21488bfce34984bac2efa1bc7fa73d703eb84d730497edef928fd9eea35be33abe9774d3becf38a1424d2e347728b5627ec1d053ac69e19b82b8b937decb
7
+ data.tar.gz: af9018490eb268a7820419e597ea2eb5d8887ed7606c28bb7180e28245347f8d4fe630e26028113a39fd8ad7b54744b20687376fa1c386102ded67bb4ee38874
@@ -101,8 +101,8 @@ module Spectre
101
101
  val = OpenStruct.new(val)
102
102
  end
103
103
 
104
- evaluate(val, "#{self} should contain #{val.to_s}") do |x|
105
- self.include? x
104
+ evaluate(val, "#{list} should contain #{val.to_s}") do |x|
105
+ list.include? x
106
106
  end
107
107
  end
108
108
 
@@ -138,7 +138,7 @@ module Spectre
138
138
  end
139
139
 
140
140
  def should_not_be(val)
141
- evaluate(value, "'#{self}' should not be '#{value}'") do |x|
141
+ evaluate(val, "'#{self}' should not be '#{val}'") do |x|
142
142
  self.to_s != x.to_s
143
143
  end
144
144
  end
@@ -128,8 +128,9 @@ class ::Array
128
128
  end
129
129
  end
130
130
 
131
- def uuid length = 5
132
- SecureRandom.uuid().gsub('-', '')[0..length-1]
131
+ def uuid length = nil
132
+ return SecureRandom.hex(length/2) if length
133
+ SecureRandom.uuid
133
134
  end
134
135
 
135
136
  def now
data/lib/spectre.rb CHANGED
@@ -2,7 +2,7 @@ module Spectre
2
2
  module Version
3
3
  MAJOR = 1
4
4
  MINOR = 14
5
- TINY = 1
5
+ TINY = 2
6
6
  end
7
7
 
8
8
  VERSION = [Version::MAJOR, Version::MINOR, Version::TINY].compact * '.'
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spectre-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.14.1
4
+ version: 1.14.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Christian Neubauer
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-09-05 00:00:00.000000000 Z
11
+ date: 2022-09-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ectoplasm