gmalamid-key_value_store 0.0.2 → 0.0.3

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.
@@ -1,6 +1,6 @@
1
1
  GEMSPEC =Gem::Specification.new do |s|
2
2
  s.name = 'key_value_store'
3
- s.version = '0.0.2'
3
+ s.version = '0.0.3'
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'
@@ -9,19 +9,7 @@ module KeyValueStore
9
9
  end
10
10
 
11
11
  def self.datadir
12
- if @datadir
13
- "#{@datadir}/#{environment}"
14
- else
15
- "#{ENV['HOME']}/.data/#{environment}"
16
- end
17
- end
18
-
19
- def self.environment=(environment)
20
- @environment = environment
21
- end
22
-
23
- def self.environment
24
- @environment || :development
12
+ @datadir || File.expand_path(File.join(ENV['HOME'], '.data'))
25
13
  end
26
14
 
27
15
  module API
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.2
4
+ version: 0.0.3
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-08 00:00:00 -07:00
12
+ date: 2009-05-16 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15