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 +4 -4
- data/.rubocop.yml +5 -0
- data/Gemfile.lock +15 -11
- data/key_vortex-contract.gemspec +1 -1
- data/lib/key_vortex/contract/version.rb +1 -1
- data/lib/key_vortex/contract.rb +6 -1
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 95334ae02aa19de56dbbc6ff95bd3f3ac67d0ec485233e8c095a8ffdef9f8e66
|
4
|
+
data.tar.gz: f66f64cf6c98f39188760cc991bfbb6d3980e47b3dda547a2074921ce778a625
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 47a50a6faf16acc302d0906ef7a98e43d349ac9bc7d31e3e9b553d0de18c5724777b4a4201af5f4ea4200d4ee9c75da79a957843d354ce3d13af2e6cebb22f17
|
7
|
+
data.tar.gz: bf8a492b1a487ada9f53661b475c680b631e119dff158374ac387fce79351677df5b9bca8121fdcc1bd64512c43db3dd80e99683d87d23995448b420c3b37ee7
|
data/.rubocop.yml
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
key_vortex-contract (0.2.
|
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
|
-
|
15
|
-
|
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.
|
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.
|
29
|
+
rspec-core (3.12.2)
|
27
30
|
rspec-support (~> 3.12.0)
|
28
|
-
rspec-expectations (3.12.
|
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.
|
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.
|
35
|
-
rubocop (1.
|
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.
|
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.
|
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)
|
data/key_vortex-contract.gemspec
CHANGED
@@ -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
|
data/lib/key_vortex/contract.rb
CHANGED
@@ -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
|
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.
|
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-
|
11
|
+
date: 2023-07-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name:
|
14
|
+
name: rantly
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
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:
|
26
|
+
version: 2.0.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: rspec
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version:
|
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:
|
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:
|