gmalamid-key_value_store 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -40,3 +40,6 @@ stores. Objects are serialized in JSON on storage and deserialized on retrieval.
40
40
 
41
41
  #iterate
42
42
  store.each {|guitar| puts guitar.color}
43
+
44
+
45
+ A word of caution: KeyValueStore doesn't support HashWithIndifferentAccess/Mash type of functionality, so hash keys will be strings on unmarshaling, even if the storage hash was created with symbols.
@@ -1,6 +1,6 @@
1
1
  GEMSPEC =Gem::Specification.new do |s|
2
2
  s.name = 'key_value_store'
3
- s.version = '0.0.1'
3
+ s.version = '0.0.2'
4
4
  s.platform = Gem::Platform::RUBY
5
5
  s.rubyforge_project = "key_value_store"
6
6
  s.summary, s.description = 'Simple Tokyo Cabinet interface'
@@ -55,6 +55,10 @@ module KeyValueStore
55
55
  def sync
56
56
  connection.sync
57
57
  end
58
+
59
+ def copy(path)
60
+ connection.copy(path)
61
+ end
58
62
 
59
63
  def rm_f
60
64
  path = connection.path
@@ -143,7 +147,7 @@ module KeyValueStore
143
147
  end
144
148
 
145
149
  class MemoryHash
146
- def initialize(type)
150
+ def initialize(store_name, type, permission = :write)
147
151
  @type = type
148
152
  end
149
153
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gmalamid-key_value_store
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Jones, Andy Kent, George Malamidis
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-04-01 00:00:00 -07:00
12
+ date: 2009-04-08 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15