mag 0.1.0

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.
@@ -0,0 +1,4 @@
1
+ *.gem
2
+ .bundle
3
+ Gemfile.lock
4
+ pkg/*
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source "http://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in mag.gemspec
4
+ gemspec
data/README ADDED
File without changes
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
@@ -0,0 +1,21 @@
1
+ require "mag/version"
2
+
3
+ module Mag
4
+ def push
5
+ Maglev.commit_transaction
6
+ end
7
+
8
+ def pull
9
+ Maglev.abort_transaction
10
+ end
11
+
12
+ def box
13
+ Maglev::PERSISTENT_ROOT[:box] ||= []
14
+ end
15
+
16
+ def box= this
17
+ Maglev::PERSISTENT_ROOT[:box] = this
18
+ end
19
+ end
20
+
21
+ extend Mag
@@ -0,0 +1,3 @@
1
+ module Mag
2
+ VERSION = "0.1.0"
3
+ end
@@ -0,0 +1,20 @@
1
+ # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require "mag/version"
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = "mag"
7
+ s.version = Mag::VERSION
8
+ s.authors = ["Shannon Skipper"]
9
+ s.email = ["shannonskipper@gmail.com"]
10
+ s.homepage = ""
11
+ s.summary = %q{Shortcuts for Maglev's Persistent Store'}
12
+ s.description = %q{Load a tiny gem to save typing a few characters when committing or aborting in Maglev? Why not!? =P}
13
+
14
+ s.rubyforge_project = "mag"
15
+
16
+ s.files = `git ls-files`.split("\n")
17
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
18
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
19
+ s.require_paths = ["lib"]
20
+ end
metadata ADDED
@@ -0,0 +1,54 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: mag
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Shannon Skipper
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2011-12-06 00:00:00.000000000 Z
13
+ dependencies: []
14
+ description: Load a tiny gem to save typing a few characters when committing or aborting
15
+ in Maglev? Why not!? =P
16
+ email:
17
+ - shannonskipper@gmail.com
18
+ executables: []
19
+ extensions: []
20
+ extra_rdoc_files: []
21
+ files:
22
+ - .gitignore
23
+ - Gemfile
24
+ - README
25
+ - Rakefile
26
+ - lib/mag.rb
27
+ - lib/mag/version.rb
28
+ - mag.gemspec
29
+ homepage: ''
30
+ licenses: []
31
+ post_install_message:
32
+ rdoc_options: []
33
+ require_paths:
34
+ - lib
35
+ required_ruby_version: !ruby/object:Gem::Requirement
36
+ none: false
37
+ requirements:
38
+ - - ! '>='
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ required_rubygems_version: !ruby/object:Gem::Requirement
42
+ none: false
43
+ requirements:
44
+ - - ! '>='
45
+ - !ruby/object:Gem::Version
46
+ version: '0'
47
+ requirements: []
48
+ rubyforge_project: mag
49
+ rubygems_version: 1.8.12
50
+ signing_key:
51
+ specification_version: 3
52
+ summary: Shortcuts for Maglev's Persistent Store'
53
+ test_files: []
54
+ has_rdoc: