storable 0.5.6 → 0.5.7
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.
- data/CHANGES.txt +4 -0
- data/lib/storable.rb +4 -4
- data/storable.gemspec +1 -1
- metadata +2 -2
data/CHANGES.txt
CHANGED
data/lib/storable.rb
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
#--
|
|
2
|
-
# TODO: Handle nested hashes and arrays.
|
|
2
|
+
# TODO: Handle nested hashes and arrays.
|
|
3
3
|
# TODO: to_xml, see: http://codeforpeople.com/lib/ruby/xx/xx-2.0.0/README
|
|
4
4
|
#++
|
|
5
5
|
|
|
@@ -23,7 +23,7 @@ require 'time'
|
|
|
23
23
|
class Storable
|
|
24
24
|
require 'storable/orderedhash' if USE_ORDERED_HASH
|
|
25
25
|
unless defined?(SUPPORTED_FORMATS) # We can assume all are defined
|
|
26
|
-
VERSION = "0.5.
|
|
26
|
+
VERSION = "0.5.7"
|
|
27
27
|
NICE_TIME_FORMAT = "%Y-%m-%d@%H:%M:%S".freeze
|
|
28
28
|
SUPPORTED_FORMATS = [:tsv, :csv, :yaml, :json, :s, :string].freeze
|
|
29
29
|
end
|
|
@@ -198,8 +198,8 @@ class Storable
|
|
|
198
198
|
hash = from_hash(hash) if hash.kind_of?(Hash)
|
|
199
199
|
hash
|
|
200
200
|
end
|
|
201
|
-
def to_yaml(
|
|
202
|
-
to_hash.to_yaml
|
|
201
|
+
def to_yaml(*args)
|
|
202
|
+
to_hash.to_yaml(*args)
|
|
203
203
|
end
|
|
204
204
|
|
|
205
205
|
# Create a new instance of the object from a JSON string.
|
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.5.
|
|
4
|
+
s.version = "0.5.7"
|
|
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
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: storable
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Delano Mandelbaum
|
|
@@ -9,7 +9,7 @@ autorequire:
|
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
11
|
|
|
12
|
-
date: 2009-
|
|
12
|
+
date: 2009-09-15 00:00:00 -04:00
|
|
13
13
|
default_executable:
|
|
14
14
|
dependencies: []
|
|
15
15
|
|