storable 0.5.7 → 0.5.8

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 +7 -0
  2. data/lib/storable.rb +5 -5
  3. data/storable.gemspec +1 -1
  4. metadata +2 -2
@@ -1,6 +1,13 @@
1
1
  STORABLE, CHANGES
2
2
 
3
3
 
4
+ #### 0.5.8 (2009-10-06) #############################
5
+
6
+ * FIXED: "wrong argument type false (expected Hash)". I think
7
+ that's the last of it.
8
+ * CHANGE: Removed with_titles argument for Storable#dump.
9
+
10
+
4
11
  #### 0.5.7 (2009-09-15) #############################
5
12
 
6
13
  * FIXED: "wrong argument type String (expected Data)" in to_yaml (finally!)
@@ -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.7"
26
+ VERSION = "0.5.8"
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
@@ -104,7 +104,7 @@ class Storable
104
104
  format &&= format.to_sym
105
105
  format ||= 's' # as in, to_s
106
106
  raise "Format not defined (#{format})" unless SUPPORTED_FORMATS.member?(format)
107
- send("to_#{format}", with_titles)
107
+ send("to_#{format}")
108
108
  end
109
109
 
110
110
  def to_string(*args)
@@ -182,7 +182,7 @@ class Storable
182
182
  end
183
183
  # Return the object data as a hash
184
184
  # +with_titles+ is ignored.
185
- def to_hash(with_titles=true)
185
+ def to_hash
186
186
  tmp = USE_ORDERED_HASH ? Storable::OrderedHash.new : {}
187
187
  field_names.each do |fname|
188
188
  tmp[fname] = self.send(fname)
@@ -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(*args)
202
- to_hash.to_yaml(*args)
201
+ def to_yaml
202
+ to_hash.to_yaml
203
203
  end
204
204
 
205
205
  # Create a new instance of the object from a JSON string.
@@ -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.7"
4
+ s.version = "0.5.8"
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.7
4
+ version: 0.5.8
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-09-15 00:00:00 -04:00
12
+ date: 2009-10-08 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies: []
15
15