mag 0.2.2 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +1 -1
- data/lib/mag.rb +8 -0
- data/lib/mag/version.rb +1 -1
- metadata +2 -2
data/README.md
CHANGED
data/lib/mag.rb
CHANGED
@@ -5,17 +5,25 @@ class Mag
|
|
5
5
|
def commit
|
6
6
|
Maglev.commit_transaction
|
7
7
|
end
|
8
|
+
|
9
|
+
alias push commit
|
8
10
|
|
9
11
|
def abort
|
10
12
|
Maglev.abort_transaction
|
11
13
|
end
|
14
|
+
|
15
|
+
alias pull abort
|
12
16
|
|
13
17
|
def box
|
14
18
|
Maglev::PERSISTENT_ROOT
|
15
19
|
end
|
16
20
|
|
21
|
+
alias store box
|
22
|
+
|
17
23
|
def box= this
|
18
24
|
Maglev::PERSISTENT_ROOT.replace this
|
19
25
|
end
|
26
|
+
|
27
|
+
alias store= box=
|
20
28
|
end
|
21
29
|
end
|
data/lib/mag/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mag
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2011-12-
|
12
|
+
date: 2011-12-08 00:00:00.000000000 Z
|
13
13
|
dependencies: []
|
14
14
|
description: Load a tiny gem to save typing a few characters when committing or aborting
|
15
15
|
in Maglev? Why not!? =P
|