mingle_keyvalue_store 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +15 -0
- data/lib/mingle_keyvalue_store.rb +2 -3
- metadata +5 -5
data/README.md
CHANGED
@@ -1 +1,16 @@
|
|
1
1
|
[![Build Status](https://snap-ci.com/Xepi1GC1RH-xljlY0aGThFoqOtmpsgse_xt-leosres/build_image)](https://snap-ci.com/projects/ThoughtWorksStudios/mingle_keyvalue_store/build_history)
|
2
|
+
|
3
|
+
|
4
|
+
# Mingle Keyvalue Store
|
5
|
+
|
6
|
+
A key value store with a PStore and a DynamoDB endpoint - both with the same behavior. This is useful when you have to run tests in your application and does not want to hit DynamoDB in every test.
|
7
|
+
|
8
|
+
## Usage
|
9
|
+
```ruby
|
10
|
+
if Rails.env.test?
|
11
|
+
keystore = Mingle::KeyvalueStore::PStoreBased.new("/tmp/foostore", table_name, :key, :value)
|
12
|
+
else
|
13
|
+
keystore = Mingle::KeyvalueStore::DynamodbBased.new(table_name, :key, :value)
|
14
|
+
end
|
15
|
+
```
|
16
|
+
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mingle_keyvalue_store
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 17
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 5
|
10
|
+
version: 0.1.5
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Ian
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2013-10-
|
19
|
+
date: 2013-10-28 00:00:00 Z
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
22
22
|
name: aws-sdk
|
@@ -90,7 +90,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
90
90
|
requirements: []
|
91
91
|
|
92
92
|
rubyforge_project:
|
93
|
-
rubygems_version: 1.8.
|
93
|
+
rubygems_version: 1.8.25
|
94
94
|
signing_key:
|
95
95
|
specification_version: 3
|
96
96
|
summary: A key value store implentation that uses DynamoDB or Pstore underneath.
|