storable 0.5.6 → 0.5.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/CHANGES.txt +4 -0
  2. data/lib/storable.rb +4 -4
  3. data/storable.gemspec +1 -1
  4. metadata +2 -2
data/CHANGES.txt CHANGED
@@ -1,6 +1,10 @@
1
1
  STORABLE, CHANGES
2
2
 
3
3
 
4
+ #### 0.5.7 (2009-09-15) #############################
5
+
6
+ * FIXED: "wrong argument type String (expected Data)" in to_yaml (finally!)
7
+
4
8
  #### 0.5.6 (2009-07-19) #############################
5
9
 
6
10
  * ADDED: has_field?
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.6"
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(with_titles=true)
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.6"
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.6
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-07-19 00:00:00 -04:00
12
+ date: 2009-09-15 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies: []
15
15