bindi 0.0.6 → 0.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/README.md +10 -6
- data/bindi.gemspec +1 -1
- data/lib/bindi/version.rb +1 -1
- metadata +3 -3
data/README.md
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# Bindi
|
2
2
|
|
3
|
-
[Bindi](https://github.com/Havenwood/bindi) is a DSL for storing
|
3
|
+
[Bindi](https://github.com/Havenwood/bindi) is a DSL for storing serializable Ruby Objects in [Redis](http://redis.io/) using [Ohm](http://ohm.keyvalue.org/).
|
4
4
|
|
5
5
|
## Installation
|
6
6
|
|
@@ -28,12 +28,13 @@ And start Redis:
|
|
28
28
|
require 'bindi'
|
29
29
|
#=> true
|
30
30
|
|
31
|
-
bindi = Bindi.new YAML #
|
31
|
+
bindi = Bindi.new YAML # Choose between Marshal, YAML, JSON, etcetera for serializing.
|
32
|
+
#=> #<Redis client v3.0.2 for redis://127.0.0.1:6379/0>
|
32
33
|
|
33
34
|
bindi[:state_gemstones] = { alabama: 'Star Blue Quartz',
|
34
|
-
|
35
|
-
|
36
|
-
|
35
|
+
alaska: 'Nephrite Jade',
|
36
|
+
arizona: 'Turquoise',
|
37
|
+
arkansas: 'Diamond' }
|
37
38
|
|
38
39
|
#=> {:alabama=>"Star Blue Quartz", ...
|
39
40
|
|
@@ -45,7 +46,10 @@ Your Ruby Object is now stored in Redis.
|
|
45
46
|
```ruby
|
46
47
|
require 'bindi'
|
47
48
|
#=> true
|
48
|
-
|
49
|
+
|
50
|
+
bindi = Bindi.new YAML
|
51
|
+
#=> #<Redis client v3.0.2 for redis://127.0.0.1:6379/0>
|
52
|
+
|
49
53
|
bindi.keys
|
50
54
|
#=> "state_gemstones"
|
51
55
|
|
data/bindi.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
require File.expand_path('../lib/bindi/version', __FILE__)
|
3
3
|
|
4
4
|
Gem::Specification.new do |gem|
|
5
|
-
gem.authors = ['
|
5
|
+
gem.authors = ['Shannon Skipper']
|
6
6
|
gem.email = ['shannonskipper@gmail.com']
|
7
7
|
gem.description = %q{A DSL for saving Ruby Objects to Redis.}
|
8
8
|
gem.summary = %q{Bindi is a DSL that marshals Ruby Objects and saves them to Redis using Ohm.}
|
data/lib/bindi/version.rb
CHANGED
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bindi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.7
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
|
-
-
|
8
|
+
- Shannon Skipper
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2012-11-
|
12
|
+
date: 2012-11-30 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: ohm
|