storable 0.8.8 → 0.8.9
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGES.txt +4 -1
- data/lib/storable.rb +2 -2
- data/storable.gemspec +1 -1
- metadata +2 -2
data/CHANGES.txt
CHANGED
@@ -1,8 +1,11 @@
|
|
1
1
|
STORABLE, CHANGES
|
2
2
|
|
3
3
|
* TODO: https://github.com/delano/storable/pull/2
|
4
|
-
* TODO: Handle nested hashes and arrays.
|
4
|
+
* TODO: Handle nested hashes and arrays.
|
5
5
|
|
6
|
+
#### 0.8.9 (GREAT RAPTURE) ##########################
|
7
|
+
|
8
|
+
* FIXED: Removed bad default value setting.
|
6
9
|
|
7
10
|
#### 0.8.8 (2011-05-20) #############################
|
8
11
|
|
data/lib/storable.rb
CHANGED
@@ -35,7 +35,7 @@ class Storable
|
|
35
35
|
require 'proc_source'
|
36
36
|
require 'storable/orderedhash' if USE_ORDERED_HASH
|
37
37
|
unless defined?(SUPPORTED_FORMATS) # We can assume all are defined
|
38
|
-
VERSION = "0.8.
|
38
|
+
VERSION = "0.8.9"
|
39
39
|
NICE_TIME_FORMAT = "%Y-%m-%d@%H:%M:%S".freeze
|
40
40
|
SUPPORTED_FORMATS = [:tsv, :csv, :yaml, :json, :s, :string].freeze
|
41
41
|
end
|
@@ -104,7 +104,7 @@ class Storable
|
|
104
104
|
STDERR.puts "method exists: #{self}##{fname}" if Storable.debug
|
105
105
|
else
|
106
106
|
define_method(fname) do
|
107
|
-
ret = instance_variable_get("@#{fname}")
|
107
|
+
ret = instance_variable_get("@#{fname}")
|
108
108
|
if ret.nil?
|
109
109
|
if opts[:default]
|
110
110
|
ret = opts[:default]
|
data/storable.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
@spec = Gem::Specification.new do |s|
|
2
2
|
s.name = "storable"
|
3
3
|
s.rubyforge_project = "storable"
|
4
|
-
s.version = "0.8.
|
4
|
+
s.version = "0.8.9"
|
5
5
|
s.summary = "Storable: Marshal Ruby classes into and out of multiple formats (yaml, json, csv, tsv)"
|
6
6
|
s.description = s.summary
|
7
7
|
s.author = "Delano Mandelbaum"
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: storable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.8.
|
5
|
+
version: 0.8.9
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Delano Mandelbaum
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date: 2011-05-
|
13
|
+
date: 2011-05-21 00:00:00 -04:00
|
14
14
|
default_executable:
|
15
15
|
dependencies: []
|
16
16
|
|