mdbm 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/LICENSE +10 -0
- data/README +5 -0
- data/lib/mdbm.rb +20 -0
- data/lib/mdbm/version.rb +3 -0
- metadata +69 -0
data/LICENSE
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2012 Daniel P. Clark & 6ft Dan(TM)
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
|
6
|
+
|
7
|
+
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
|
8
|
+
|
9
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
10
|
+
|
data/README
ADDED
data/lib/mdbm.rb
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
# Marshalling Database Manage
|
2
|
+
# Drop any object in and it'll be marshalled into the DBM
|
3
|
+
# For usage details see http://www.ruby-doc.org/stdlib-1.9.3/libdoc/dbm/rdoc/DBM.html
|
4
|
+
|
5
|
+
# Under The MIT License
|
6
|
+
# by Daniel P. Clark
|
7
|
+
# http://www.6ftdan.com
|
8
|
+
|
9
|
+
require 'mdbm/version'
|
10
|
+
require 'dbm'
|
11
|
+
|
12
|
+
class MDBM < DBM
|
13
|
+
include MDBM_Version
|
14
|
+
def []=(key,value)
|
15
|
+
super(key, Marshal.dump(value))
|
16
|
+
end
|
17
|
+
def [](key)
|
18
|
+
Marshal.load(super(key))
|
19
|
+
end
|
20
|
+
end
|
data/lib/mdbm/version.rb
ADDED
metadata
ADDED
@@ -0,0 +1,69 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: mdbm
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 27
|
5
|
+
prerelease:
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 1
|
9
|
+
- 0
|
10
|
+
version: 0.1.0
|
11
|
+
platform: ruby
|
12
|
+
authors:
|
13
|
+
- Daniel P. Clark / 6ftDan(TM)
|
14
|
+
autorequire:
|
15
|
+
bindir: bin
|
16
|
+
cert_chain: []
|
17
|
+
|
18
|
+
date: 2012-11-04 00:00:00 Z
|
19
|
+
dependencies: []
|
20
|
+
|
21
|
+
description: Drop any object into MDBM. It marshals in and out of DBM. See DBM for basic usage info as well as 'cautions'.
|
22
|
+
email: webmaster@6ftdan.com
|
23
|
+
executables: []
|
24
|
+
|
25
|
+
extensions: []
|
26
|
+
|
27
|
+
extra_rdoc_files:
|
28
|
+
- README
|
29
|
+
files:
|
30
|
+
- lib/mdbm/version.rb
|
31
|
+
- lib/mdbm.rb
|
32
|
+
- README
|
33
|
+
- LICENSE
|
34
|
+
homepage: http://www.github.com/danielpclark/mdbm
|
35
|
+
licenses:
|
36
|
+
- The MIT License (MIT)
|
37
|
+
post_install_message: Enjoy 'Marshalling Database Manager'! Use to drop any object in. Use like DBM.
|
38
|
+
rdoc_options:
|
39
|
+
- --main
|
40
|
+
- README
|
41
|
+
require_paths:
|
42
|
+
- lib
|
43
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
44
|
+
none: false
|
45
|
+
requirements:
|
46
|
+
- - ">="
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
hash: 3
|
49
|
+
segments:
|
50
|
+
- 0
|
51
|
+
version: "0"
|
52
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
53
|
+
none: false
|
54
|
+
requirements:
|
55
|
+
- - ">="
|
56
|
+
- !ruby/object:Gem::Version
|
57
|
+
hash: 3
|
58
|
+
segments:
|
59
|
+
- 0
|
60
|
+
version: "0"
|
61
|
+
requirements: []
|
62
|
+
|
63
|
+
rubyforge_project:
|
64
|
+
rubygems_version: 1.8.24
|
65
|
+
signing_key:
|
66
|
+
specification_version: 3
|
67
|
+
summary: Drop any object into MDBM. It marshals in and out of DBM.
|
68
|
+
test_files: []
|
69
|
+
|