rspec-uuid 0.2.1 → 0.3.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: 86976570717b28f357f79552d53198d57041efc2ac7e96706d0c8415bdd85782
4
- data.tar.gz: c561df77eb3e2867b3ff3818ce2c865c8ba1d03354814116c844faea74ca58c0
3
+ metadata.gz: caa7afca895de94cad4ceea528171b93482976b45b6a59e96103d14fcf42c2e6
4
+ data.tar.gz: fd24385339537457902c4a6750e0847f4c1face45d7bf9d47ab26a2a194c6c38
5
5
  SHA512:
6
- metadata.gz: 0616ab1c8402b8f4c0977778a38a0a59cb5a511173d30433d920a2aa521a651272046fb135ef478cfa231c7526c904382bace79b95042efc7bf912d1a38c5f3e
7
- data.tar.gz: 2e453940a2a49faa22f2b3933e300b4b986f16080934aca2d0c0acaf39cab022221d9a7ba22609c8abb90c3b5cdb384763b1331bffc52f76832326407d5536c4
6
+ metadata.gz: c5f3f2e09137b49762079e80abd5d0f4962b25dd783db6c8cd3bf2750ad976fc962341f4fdec938d346521696a5f1f4ab4f15e0f35993470d43d570f3b4275cd
7
+ data.tar.gz: 5e8327d444a20dc4c1e393ca642b8d9cdb35059a335bfc3ab9f50937a9804df5f13b392bed25d0be8ab3168705e4ac3077bf1fafbbb3877f9eca2a39e916073f
@@ -1,7 +1,7 @@
1
1
  module RSpecUUID
2
2
  module Matchers
3
3
  class UUIDMatcher
4
- def initialize(version = nil)
4
+ def initialize(version: nil)
5
5
  @version = version
6
6
  end
7
7
 
@@ -1,3 +1,3 @@
1
1
  module RSpecUUID
2
- VERSION = "0.2.1"
2
+ VERSION = "0.3.0"
3
3
  end
@@ -37,16 +37,16 @@ describe RSpecUUID::Matchers do
37
37
  let(:uuid_v4) { SecureRandom.uuid }
38
38
  let(:uuid_v5) { Digest::UUID.uuid_v5(namespace, "123") }
39
39
 
40
- specify { expect(uuid_v3).to be_a_uuid(3) }
41
- specify { expect(uuid_v3).not_to be_a_uuid(4) }
42
- specify { expect(uuid_v3).not_to be_a_uuid(5) }
40
+ specify { expect(uuid_v3).to be_a_uuid(version: 3) }
41
+ specify { expect(uuid_v3).not_to be_a_uuid(version: 4) }
42
+ specify { expect(uuid_v3).not_to be_a_uuid(version: 5) }
43
43
 
44
- specify { expect(uuid_v4).to be_a_uuid(4) }
45
- specify { expect(uuid_v5).to be_a_uuid(5) }
44
+ specify { expect(uuid_v4).to be_a_uuid(version: 4) }
45
+ specify { expect(uuid_v5).to be_a_uuid(version: 5) }
46
46
 
47
47
  it "fails with a useful message" do
48
48
  expect {
49
- expect(uuid_v3).to be_a_uuid(4)
49
+ expect(uuid_v3).to be_a_uuid(version: 4)
50
50
  }.to fail_including("expected a UUID v4, found a UUID v3")
51
51
  end
52
52
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-uuid
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Pepper
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-05-17 00:00:00.000000000 Z
11
+ date: 2022-05-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec
@@ -24,20 +24,6 @@ dependencies:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
- - !ruby/object:Gem::Dependency
28
- name: rspec-expectations
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - ">="
32
- - !ruby/object:Gem::Version
33
- version: '0'
34
- type: :runtime
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - ">="
39
- - !ruby/object:Gem::Version
40
- version: '0'
41
27
  - !ruby/object:Gem::Dependency
42
28
  name: activesupport
43
29
  requirement: !ruby/object:Gem::Requirement