storable 0.5.4 → 0.5.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,10 @@
1
1
  STORABLE, CHANGES
2
2
 
3
+
4
+ #### 0.5.5 (2009-07-17) #############################
5
+
6
+ * FIXED: require 'time' for Time.parse.
7
+
3
8
  #### 0.5.4 (2009-05-25) #############################
4
9
 
5
10
  * CHANGE: Removed RedCloth dependency from gemspec.
@@ -14,6 +14,7 @@ end
14
14
 
15
15
  require 'yaml'
16
16
  require 'fileutils'
17
+ require 'time'
17
18
 
18
19
  # Storable makes data available in multiple formats and can
19
20
  # re-create objects from files. Fields are defined using the
@@ -22,7 +23,7 @@ require 'fileutils'
22
23
  class Storable
23
24
  require 'storable/orderedhash' if USE_ORDERED_HASH
24
25
  unless defined?(SUPPORTED_FORMATS) # We can assume all are defined
25
- VERSION = "0.5.4"
26
+ VERSION = "0.5.5"
26
27
  NICE_TIME_FORMAT = "%Y-%m-%d@%H:%M:%S".freeze
27
28
  SUPPORTED_FORMATS = [:tsv, :csv, :yaml, :json, :s, :string].freeze
28
29
  end
@@ -135,7 +136,7 @@ class Storable
135
136
  stored_value = from[key] || from[key.to_s] # support for symbol keys and string keys
136
137
 
137
138
  # TODO: Correct this horrible implementation
138
- # (sorry, me. It's just one of those days.) -- circa 2009-09-15
139
+ # (sorry, me. It's just one of those days.) -- circa 2008-09-15
139
140
 
140
141
  if field_types[index] == Array
141
142
  ((value ||= []) << stored_value).flatten
@@ -91,10 +91,10 @@ class Storable::OrderedHash < ::Hash
91
91
  hsh2
92
92
  end
93
93
  def reject &block
94
- self.dup.delete_if &block
94
+ self.dup.delete_if( &block)
95
95
  end
96
96
  def reject! &block
97
- hsh2 = reject &block
97
+ hsh2 = reject( &block)
98
98
  self == hsh2 ? nil : hsh2
99
99
  end
100
100
  def replace hsh2
@@ -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"
4
+ s.version = "0.5.5"
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
4
+ version: 0.5.5
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-06-25 00:00:00 -04:00
12
+ date: 2009-07-17 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies: []
15
15