key-vortex 0.2.3 → 0.2.4

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: 5f5d707741ec015d0e2b2550267246b8d59ba9adf324cdbfd2502a81aedecfa1
4
- data.tar.gz: f852c54e10c99863649639ab7974e81a93dc91403969d9cfaabd35ff068bdc67
3
+ metadata.gz: dc49e3b37bc928e227b99983919d05c1e2da5fc06a3c545229dbc8d26c4b3457
4
+ data.tar.gz: a8356f1144d194f56818375243348aeffd0ed2221b99f9e39dea4610e8be335f
5
5
  SHA512:
6
- metadata.gz: c2d55b7eadf96acaacab4e9b81b52042c5809716d3536a76768c387f72353190a3ba15c38aded87b7ab6af357f0e8402fb8a8169b7f08271ca1e7ead84cae6f5
7
- data.tar.gz: b8e30dca290040a2030b4d0b0583a5c63ee4087207635e584f116a716be472953bdc442e4be5270cd4614b5eba2021fbd9c011359f3b952e860815985bf1adb5
6
+ metadata.gz: 601d86c191a60adbb6015a66d5fdee969902c211f8c4f2071d5ef84f1014661e4d4fc4522d162260e629b630327674977288e081ec66a0b84d0e1cbdea4890b1
7
+ data.tar.gz: 66416fd173dabd98442bd38164a8e79afdce5fd2e393d74068bee34f15d0dc4a7ac78b2534d8336729c742989a07e57421a21e2cacc5baad5b1d488bde3d155c
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- key-vortex (0.2.3)
4
+ key-vortex (0.2.4)
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.3)
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,6 +30,10 @@ 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.
34
+
35
+ ```
36
+ > require "key_vortex/adapter/memory"
33
37
 
34
38
 
35
39
  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.
@@ -15,7 +15,7 @@ class KeyVortex
15
15
  end
16
16
 
17
17
  def self.symbol
18
- name.downcase
18
+ name.split(":").last.downcase.to_sym
19
19
  end
20
20
  end
21
21
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  class KeyVortex
4
- VERSION = "0.2.3"
4
+ VERSION = "0.2.4"
5
5
  end
data/lib/key_vortex.rb CHANGED
@@ -11,6 +11,7 @@ class KeyVortex
11
11
  end
12
12
 
13
13
  def self.vortex(adapter_symbol, record_class, **options)
14
+ puts @adapter_registry
14
15
  new(
15
16
  @adapter_registry[adapter_symbol].build(**options),
16
17
  record_class
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.3
4
+ version: 0.2.4
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-13 00:00:00.000000000 Z
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.)