persist 0.0.9 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data.tar.gz.sig +3 -0
- data/README.md +11 -9
- data/lib/persist/version.rb +1 -5
- data/persist.gemspec +5 -2
- metadata +35 -5
- metadata.gz.sig +0 -0
data.tar.gz.sig
ADDED
data/README.md
CHANGED
@@ -54,6 +54,17 @@ Persist[:pie]
|
|
54
54
|
#=> ["Key Lime", "Strawberry Rhubarb", "Blackberry Cobbler"]
|
55
55
|
```
|
56
56
|
|
57
|
+
## Transactions
|
58
|
+
|
59
|
+
Transactions succeed or fail together to ensure that data is not left in a transitory state:
|
60
|
+
|
61
|
+
```ruby
|
62
|
+
Persist.transaction do |db|
|
63
|
+
db[:cake] = 'pie is better!'
|
64
|
+
db.delete :pie
|
65
|
+
end
|
66
|
+
```
|
67
|
+
|
57
68
|
## Helper Methods
|
58
69
|
|
59
70
|
Each of Persist.db's tables is stored as a key:
|
@@ -83,15 +94,6 @@ Persist.path
|
|
83
94
|
#=> ".db.pstore"
|
84
95
|
```
|
85
96
|
|
86
|
-
Transactions succeed or fail together to ensure that data is not left in a transitory state:
|
87
|
-
|
88
|
-
```ruby
|
89
|
-
Persist.transaction do
|
90
|
-
Persist.db[:cake] = 'pie is better!'
|
91
|
-
Persist.db.delete :pie
|
92
|
-
end
|
93
|
-
```
|
94
|
-
|
95
97
|
[Additional documentation](https://github.com/Havenwood/persist/blob/master/lib/persist/persist.rb) in the code.
|
96
98
|
|
97
99
|
## Supported Platforms
|
data/lib/persist/version.rb
CHANGED
data/persist.gemspec
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
require File.expand_path('../lib/persist/version', __FILE__)
|
3
3
|
|
4
4
|
Gem::Specification.new do |gem|
|
5
|
-
gem.authors = ['Shannon']
|
5
|
+
gem.authors = ['Shannon Skipper']
|
6
6
|
gem.email = ['shannonskipper@gmail.com']
|
7
7
|
gem.description = %q{A DSL for storing Ruby Objects transactionally in a persistent NoSQL database}
|
8
8
|
gem.summary = %q{Persist.db is a DSL implemented around Ruby Standard Library's PStore to facilitate simple file-persistant storage of Ruby objects in a transactional NoSQL database.}
|
@@ -13,7 +13,10 @@ Gem::Specification.new do |gem|
|
|
13
13
|
gem.test_files = gem.files.grep(%r{^test/})
|
14
14
|
gem.name = 'persist'
|
15
15
|
gem.require_paths = ['lib']
|
16
|
-
gem.version = Persist
|
16
|
+
gem.version = Persist::VERSION
|
17
17
|
|
18
18
|
gem.add_development_dependency 'minitest'
|
19
|
+
|
20
|
+
gem.signing_key = '/Users/shannonskipper/.gem/private/gem-private_key.pem'
|
21
|
+
gem.cert_chain = ['/Users/shannonskipper/.gem/private/gem-public_cert.pem']
|
19
22
|
end
|
metadata
CHANGED
@@ -1,15 +1,45 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: persist
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
|
-
- Shannon
|
8
|
+
- Shannon Skipper
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
|
-
cert_chain:
|
12
|
-
|
11
|
+
cert_chain:
|
12
|
+
- !binary |-
|
13
|
+
LS0tLS1CRUdJTiBDRVJUSUZJQ0FURS0tLS0tCk1JSURpakNDQW5LZ0F3SUJB
|
14
|
+
Z0lCQVRBTkJna3Foa2lHOXcwQkFRVUZBREJGTVJjd0ZRWURWUVFEREE1emFH
|
15
|
+
RnUKYm05dWMydHBjSEJsY2pFVk1CTUdDZ21TSm9tVDhpeGtBUmtXQldkdFlX
|
16
|
+
bHNNUk13RVFZS0NaSW1pWlB5TEdRQgpHUllEWTI5dE1CNFhEVEV6TURJd01q
|
17
|
+
SXlNalExTUZvWERURTBNREl3TWpJeU1qUTFNRm93UlRFWE1CVUdBMVVFCkF3
|
18
|
+
d09jMmhoYm01dmJuTnJhWEJ3WlhJeEZUQVRCZ29Ka2lhSmsvSXNaQUVaRmdW
|
19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1Rnd1cVhaclcxQitjY3JqNzZWVzdsalpkNnJyYTkxMjBmSC9KOUN0
|
35
|
+
R0ZYSExOYmJGYnFyCk03Tkd4N0p4eVBVbFdTQ0VDYUVIeDF3UkFzc3Y2aU9p
|
36
|
+
TzlpZWozU1pGS2VrQWZDVDNWUG1Kb2s1OXR2dGtHL1MKWGRsYkZGekQwclMw
|
37
|
+
MEdaZEEyaHBzSmJ2ck1IcmNlclJsSTNXRnR1dk9RT2VGN01ndDNmMnNJQjVl
|
38
|
+
RkZQR2huZgp6MjJXUXliTStmbGpBek1FcE1qYkdUaFdtdy9nS3FIV09NT1Ey
|
39
|
+
WjlTOWpjR2pFZUVzK3EzTFJhdlJDelJCQnptCnVZSWIwbWtUcGg0M3lxOVp4
|
40
|
+
T3h3VDNmYld0RkorUDAwNEl2ZnFwUmpqelgvRXFTRTVBUi94RjFwYTUyRjd3
|
41
|
+
PT0KLS0tLS1FTkQgQ0VSVElGSUNBVEUtLS0tLQo=
|
42
|
+
date: 2013-02-05 00:00:00.000000000 Z
|
13
43
|
dependencies:
|
14
44
|
- !ruby/object:Gem::Dependency
|
15
45
|
name: minitest
|
@@ -65,7 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
65
95
|
version: '0'
|
66
96
|
requirements: []
|
67
97
|
rubyforge_project:
|
68
|
-
rubygems_version: 1.8.
|
98
|
+
rubygems_version: 1.8.25
|
69
99
|
signing_key:
|
70
100
|
specification_version: 3
|
71
101
|
summary: Persist.db is a DSL implemented around Ruby Standard Library's PStore to
|
metadata.gz.sig
ADDED
Binary file
|