key_vortex-contract 0.2.1.1 → 0.2.3

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: f685fa1ebff6a12fea1868fe808302f2db70d43cf09b13b32aa485855f81ec00
4
- data.tar.gz: 93755b9effff1fd1d15b05cd817cbb756a5f6e2a2c67e7e839f5fdfe6d343478
3
+ metadata.gz: 95334ae02aa19de56dbbc6ff95bd3f3ac67d0ec485233e8c095a8ffdef9f8e66
4
+ data.tar.gz: f66f64cf6c98f39188760cc991bfbb6d3980e47b3dda547a2074921ce778a625
5
5
  SHA512:
6
- metadata.gz: 48b9c38b27e053c2e96a928febc2456b372f5062ef01fb57d22380cbe9a5a31e02e1d4993786e65bb92d960c5bd47a9aa395cb930814d33aa8f18ae2511051d1
7
- data.tar.gz: efd7dcc22f13f506667967deddcdba8ff280cd6619c9b1cee1139ff515076c1f081e19c117e50cb5b19e18d659c0da22ba3e5805fc29d1093ca8768dde3bfc86
6
+ metadata.gz: 47a50a6faf16acc302d0906ef7a98e43d349ac9bc7d31e3e9b553d0de18c5724777b4a4201af5f4ea4200d4ee9c75da79a957843d354ce3d13af2e6cebb22f17
7
+ data.tar.gz: bf8a492b1a487ada9f53661b475c680b631e119dff158374ac387fce79351677df5b9bca8121fdcc1bd64512c43db3dd80e99683d87d23995448b420c3b37ee7
data/.rubocop.yml CHANGED
@@ -16,3 +16,8 @@ Layout/LineLength:
16
16
  Style/Documentation:
17
17
  AllowedConstants:
18
18
  - SampleRecord
19
+ - SampleRecordTwo
20
+
21
+ Metrics/BlockLength:
22
+ AllowedMethods:
23
+ - shared_context
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- key_vortex-contract (0.2.1.1)
4
+ key_vortex-contract (0.2.3)
5
5
  rantly (~> 2.0.0)
6
6
  rspec (~> 3.0)
7
7
 
@@ -11,38 +11,42 @@ GEM
11
11
  ast (2.4.2)
12
12
  diff-lcs (1.5.0)
13
13
  json (2.6.3)
14
- parallel (1.22.1)
15
- parser (3.2.2.0)
14
+ language_server-protocol (3.17.0.3)
15
+ parallel (1.23.0)
16
+ parser (3.2.2.3)
16
17
  ast (~> 2.4.1)
18
+ racc
19
+ racc (1.7.1)
17
20
  rainbow (3.1.1)
18
21
  rake (13.0.6)
19
22
  rantly (2.0.0)
20
- regexp_parser (2.7.0)
23
+ regexp_parser (2.8.1)
21
24
  rexml (3.2.5)
22
25
  rspec (3.12.0)
23
26
  rspec-core (~> 3.12.0)
24
27
  rspec-expectations (~> 3.12.0)
25
28
  rspec-mocks (~> 3.12.0)
26
- rspec-core (3.12.1)
29
+ rspec-core (3.12.2)
27
30
  rspec-support (~> 3.12.0)
28
- rspec-expectations (3.12.2)
31
+ rspec-expectations (3.12.3)
29
32
  diff-lcs (>= 1.2.0, < 2.0)
30
33
  rspec-support (~> 3.12.0)
31
- rspec-mocks (3.12.5)
34
+ rspec-mocks (3.12.6)
32
35
  diff-lcs (>= 1.2.0, < 2.0)
33
36
  rspec-support (~> 3.12.0)
34
- rspec-support (3.12.0)
35
- rubocop (1.49.0)
37
+ rspec-support (3.12.1)
38
+ rubocop (1.54.1)
36
39
  json (~> 2.3)
40
+ language_server-protocol (>= 3.17.0)
37
41
  parallel (~> 1.10)
38
- parser (>= 3.2.0.0)
42
+ parser (>= 3.2.2.3)
39
43
  rainbow (>= 2.2.2, < 4.0)
40
44
  regexp_parser (>= 1.8, < 3.0)
41
45
  rexml (>= 3.2.5, < 4.0)
42
46
  rubocop-ast (>= 1.28.0, < 2.0)
43
47
  ruby-progressbar (~> 1.7)
44
48
  unicode-display_width (>= 2.4.0, < 3.0)
45
- rubocop-ast (1.28.0)
49
+ rubocop-ast (1.29.0)
46
50
  parser (>= 3.2.1.0)
47
51
  ruby-progressbar (1.13.0)
48
52
  unicode-display_width (2.4.2)
@@ -30,8 +30,8 @@ Gem::Specification.new do |spec|
30
30
  spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
31
31
  spec.require_paths = ["lib"]
32
32
 
33
- spec.add_dependency "rspec", "~> 3.0"
34
33
  spec.add_dependency "rantly", "~> 2.0.0"
34
+ spec.add_dependency "rspec", "~> 3.0"
35
35
 
36
36
  # For more information and examples about making a new gem, checkout our
37
37
  # guide at: https://bundler.io/guides/creating_gem.html
@@ -2,6 +2,6 @@
2
2
 
3
3
  module KeyVortex
4
4
  module Contract
5
- VERSION = "0.2.1.1"
5
+ VERSION = "0.2.3"
6
6
  end
7
7
  end
@@ -42,6 +42,11 @@ RSpec.shared_context "an adapter" do
42
42
  )
43
43
  end
44
44
 
45
+ it "registers a symbol on KeyVortex" do
46
+ vortex = KeyVortex.vortex(described_class.symbol, SampleRecord)
47
+ expect(vortex.adapter).to be_a(described_class)
48
+ end
49
+
45
50
  it "stores and removes a key" do
46
51
  store.save(record1)
47
52
  expect(store.find(record1.key)).to eq(record1)
@@ -50,7 +55,7 @@ RSpec.shared_context "an adapter" do
50
55
  end
51
56
 
52
57
  it "recreates the class that was provided" do
53
- store.save(record1.key)
58
+ store.save(record1)
54
59
  expect(store.find(record1.key)).to be_a(SampleRecord)
55
60
  store.save(record2)
56
61
  expect(store.find(record2.key)).to be_a(SampleRecordTwo)
metadata CHANGED
@@ -1,43 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: key_vortex-contract
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1.1
4
+ version: 0.2.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lambda Null
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-07-12 00:00:00.000000000 Z
11
+ date: 2023-07-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
- name: rspec
14
+ name: rantly
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '3.0'
19
+ version: 2.0.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '3.0'
26
+ version: 2.0.0
27
27
  - !ruby/object:Gem::Dependency
28
- name: rantly
28
+ name: rspec
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 2.0.0
33
+ version: '3.0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 2.0.0
40
+ version: '3.0'
41
41
  description: Provides a portable suite of tests that can be dropped into any KeyVortex
42
42
  implementation so that functionality built on top of them can make certain assumptions
43
43
  email: