key-vortex 0.2.0 → 0.2.1

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: a34f3ac120e1d77828821334095974c96448d82df26ab5464370e46bc610adb2
4
- data.tar.gz: dd955d832e5a15a37362cd8fe536e0851377e7e2fd0812aebd47b64944fc8039
3
+ metadata.gz: f43cf073bdd351c00643d8efadeca2cb832cba972ca21fdeb2cd8e7f96e0b305
4
+ data.tar.gz: 121850a5e65071c2b1b7d88a00768c2768c815c94b9bde9adacaf86468b78b35
5
5
  SHA512:
6
- metadata.gz: e2ffcd6c05e930f8faba12aacf5ccfc2a004b5e27d8ec0785f0b9c939e61347bec7ff4e339fab98f31b948d966a4722bfd1831bbbc4da53a23d9c0a2ab115c31
7
- data.tar.gz: 3bc5641c8b9bc9c5e55dc5dbf299e968e9793a53aba261410885d4fda9689829aaa3c052169c7b79367d414a389fc5dd33a36a87e47545869ba3fa10d5023bd6
6
+ metadata.gz: f3674b7796e65a5cc6f01a0b51c53a960fc52d4502438cf184b5cbd977b234a68b404225545f5d4dac8b2ca64acffe396556fc6a2ef96e3741ee329b0b88461a
7
+ data.tar.gz: 51505756b9515790e6b8a5071ceb6fc2db46ab6890e6a22118e6dccd2e28b44bd4876ca7317f6ab08ed4c6ad6884f2ac6cdab3098c283006ab3bfa58ff6da50a
data/.rubocop.yml CHANGED
@@ -20,3 +20,4 @@ Style/Documentation:
20
20
  Metrics/BlockLength:
21
21
  AllowedMethods:
22
22
  - describe
23
+ - context
data/Gemfile CHANGED
@@ -17,6 +17,6 @@ gem "guard-rspec"
17
17
  gem "guard-rubocop"
18
18
 
19
19
  gem "byebug"
20
- gem "stashify-contract"
20
+ gem "key_vortex-contract"
21
21
 
22
22
  gem "yard"
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- key-vortex (0.2.0)
4
+ key-vortex (0.2.1)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -33,6 +33,7 @@ GEM
33
33
  guard (~> 2.0)
34
34
  rubocop (< 2.0)
35
35
  json (2.6.3)
36
+ key_vortex-contract (0.2.0)
36
37
  kwalify (0.7.2)
37
38
  listen (3.8.0)
38
39
  rb-fsevent (~> 0.10, >= 0.10.3)
@@ -51,7 +52,6 @@ GEM
51
52
  method_source (~> 1.0)
52
53
  rainbow (3.1.1)
53
54
  rake (13.0.6)
54
- rantly (2.0.0)
55
55
  rb-fsevent (0.11.2)
56
56
  rb-inotify (0.10.1)
57
57
  ffi (~> 1.0)
@@ -88,9 +88,6 @@ GEM
88
88
  parser (>= 3.2.1.0)
89
89
  ruby-progressbar (1.13.0)
90
90
  shellany (0.0.1)
91
- stashify-contract (1.0.1)
92
- rantly (~> 2.0.0)
93
- rspec (~> 3.0)
94
91
  thor (1.2.2)
95
92
  unicode-display_width (2.4.2)
96
93
  yard (0.9.34)
@@ -105,11 +102,11 @@ DEPENDENCIES
105
102
  guard-rspec
106
103
  guard-rubocop
107
104
  key-vortex!
105
+ key_vortex-contract
108
106
  rake (~> 13.0)
109
107
  reek (~> 6.1.4)
110
108
  rspec (~> 3.0)
111
109
  rubocop (~> 1.21)
112
- stashify-contract
113
110
  yard
114
111
 
115
112
  BUNDLED WITH
@@ -51,11 +51,17 @@ class KeyVortex
51
51
  # Long enough to accomodate a GUID
52
52
  field :key, String, length: 36
53
53
 
54
+ attr_reader :values
55
+
54
56
  def initialize(values = {})
55
57
  @values = {}
56
58
  values.each do |name, value|
57
59
  send("#{name}=", value)
58
60
  end
59
61
  end
62
+
63
+ def ==(other)
64
+ self.class == other.class && values == other.values
65
+ end
60
66
  end
61
67
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class KeyVortex
4
- VERSION = "0.2.0"
4
+ VERSION = "0.2.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: key-vortex
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
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-10 00:00:00.000000000 Z
11
+ date: 2023-07-11 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Defines abstractions that can be built on top of for key/value storage
14
14
  on different technologies (file, s3, sql, redis, etc.)