storable 0.7.1 → 0.7.2

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.
Files changed (4) hide show
  1. data/CHANGES.txt +4 -0
  2. data/lib/storable.rb +2 -2
  3. data/storable.gemspec +1 -1
  4. metadata +2 -2
data/CHANGES.txt CHANGED
@@ -3,6 +3,10 @@ STORABLE, CHANGES
3
3
  * TODO: Handle nested hashes and arrays.
4
4
  * TODO: to_xml, see: http://codeforpeople.com/lib/ruby/xx/xx-2.0.0/README
5
5
 
6
+ #### 0.7.2 (2010-04-06) #############################
7
+
8
+ * FIXED: Handle empty symbols like in Storable 0.6.4. Fixes "interning empty string" error. [Diego Elio 'Flameeyes' Pettenò]
9
+
6
10
  #### 0.7.1 (2010-04-04) #############################
7
11
 
8
12
  * FIXED: Missing proc_source.rb in gemspec.
data/lib/storable.rb CHANGED
@@ -39,7 +39,7 @@ class Storable
39
39
  require 'proc_source'
40
40
  require 'storable/orderedhash' if USE_ORDERED_HASH
41
41
  unless defined?(SUPPORTED_FORMATS) # We can assume all are defined
42
- VERSION = "0.7.1"
42
+ VERSION = "0.7.2"
43
43
  NICE_TIME_FORMAT = "%Y-%m-%d@%H:%M:%S".freeze
44
44
  SUPPORTED_FORMATS = [:tsv, :csv, :yaml, :json, :s, :string].freeze
45
45
  end
@@ -178,7 +178,7 @@ class Storable
178
178
 
179
179
  next if value_orig.nil?
180
180
 
181
- if ftype == String && value_orig.to_s.empty?
181
+ if ( ftype == String or ftype == Symbol ) && value_orig.to_s.empty?
182
182
  value = ''
183
183
  elsif ftype == Array
184
184
  value = Array === value_orig ? value_orig : [value_orig]
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.7.1"
4
+ s.version = "0.7.2"
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.7.1
4
+ version: 0.7.2
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: 2010-04-04 00:00:00 -04:00
12
+ date: 2010-04-06 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies: []
15
15