key-vortex 0.2.3 → 0.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/README.md +8 -0
- data/lib/key_vortex/adapter.rb +1 -1
- data/lib/key_vortex/version.rb +1 -1
- data/lib/key_vortex.rb +4 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9696a877879c820dd96922f5f300b3367fae4cc7ce37c92db6efffe32e5f3f11
|
4
|
+
data.tar.gz: 46ac4d73acc9dbef6d60e767f8d0f8a0dcfd7a44baf56a874b60aaa3634cdc97
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e2401b6a3d3d73d7122054d7511c466865d12ae2572439c9aa3905c8a255e16b3aceeb38565c214ec33c991d6b8525252c35614273f96be094b50d155b8d3235
|
7
|
+
data.tar.gz: 9ad900f47bd8756ac9a9bdbd2d2810bc76d96660fdbecdad0c6762ee305b4ea7f4054610119b4fb752dbdb8aac52f1f76efc229e4c6dc735beecec51c7005650
|
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
key-vortex (0.2.
|
4
|
+
key-vortex (0.2.5)
|
5
5
|
|
6
6
|
GEM
|
7
7
|
remote: https://rubygems.org/
|
@@ -33,7 +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.
|
36
|
+
key_vortex-contract (0.2.4)
|
37
37
|
rantly (~> 2.0.0)
|
38
38
|
rspec (~> 3.0)
|
39
39
|
kwalify (0.7.2)
|
data/README.md
CHANGED
@@ -30,7 +30,15 @@ Invalid value 1000 for b (KeyVortex::Error)
|
|
30
30
|
|
31
31
|
You may notice that a `key` field was defined as well. This can be a String up to 36 characters long, to accomodate a GUID if that's what you wish to use.
|
32
32
|
|
33
|
+
In order to save the record somewhere, you'll need to choose an adapter. To keep dependencies down, these will generally be implemented in other gems, but an in memory adapter does ship with this gem.
|
33
34
|
|
35
|
+
```
|
36
|
+
> require "key_vortex/adapter/memory"
|
37
|
+
> vortex = KeyVortex.vortex(:memory, ExampleRecord)
|
38
|
+
> vortex.save(ExampleRecord.new(key: "foo", a: "a", b: 10))
|
39
|
+
> vortex.find("foo")
|
40
|
+
=> #<ExampleRecord:0x0000560781f480b0 @values={:key=>"foo", :a=>"a", :b=>10}>
|
41
|
+
```
|
34
42
|
|
35
43
|
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/key_vortex`. To experiment with that code, run `bin/console` for an interactive prompt.
|
36
44
|
|
data/lib/key_vortex/adapter.rb
CHANGED
data/lib/key_vortex/version.rb
CHANGED
data/lib/key_vortex.rb
CHANGED
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.
|
4
|
+
version: 0.2.5
|
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-14 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.)
|