mag 0.2.2 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/README.md +1 -1
  2. data/lib/mag.rb +8 -0
  3. data/lib/mag/version.rb +1 -1
  4. metadata +2 -2
data/README.md CHANGED
@@ -19,7 +19,7 @@ require 'rubygems'
19
19
  require 'mag'
20
20
  ```
21
21
 
22
- ### Now you have Mag's shorten Maglev commands:
22
+ ### Now you have Mag's shorter Maglev commands:
23
23
 
24
24
  ```ruby
25
25
  Mag.commit # Maglev.commit_transaction
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
@@ -1,3 +1,3 @@
1
1
  class Mag
2
- VERSION = "0.2.2"
2
+ VERSION = "0.3.0"
3
3
  end
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.2.2
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-07 00:00:00.000000000 Z
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