storable 0.8.1 → 0.8.2

Sign up to get free protection for your applications and to get access to all the features.
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.8.2 (2010-09-05) #############################
7
+
8
+ * FIXED: undefined method `each_pair' for nil:NilClass for hash_proc_processor
9
+
6
10
  #### 0.8.1 (2010-07-31) #############################
7
11
 
8
12
  * CHANGE: to_delimited and from_delimited are sensitive. This means you need to keep
data/Rakefile CHANGED
@@ -41,6 +41,7 @@ Rake::GemPackageTask.new(@spec) do |p|
41
41
  p.need_tar = true if RUBY_PLATFORM !~ /mswin/
42
42
  end
43
43
 
44
+ task :build => [ :package ]
44
45
  task :release => [ :rdoc, :package ]
45
46
  task :install => [ :rdoc, :package ] do
46
47
  sh %{sudo gem install pkg/#{name}-#{version}.gem}
data/lib/storable.rb CHANGED
@@ -1,8 +1,3 @@
1
- #--
2
- # TODO: Handle nested hashes and arrays.
3
- # TODO: to_xml, see: http://codeforpeople.com/lib/ruby/xx/xx-2.0.0/README
4
- # TODO: from_args([HASH or ordered params])
5
- #++
6
1
 
7
2
 
8
3
  YAJL_LOADED = begin
@@ -40,7 +35,7 @@ class Storable
40
35
  require 'proc_source'
41
36
  require 'storable/orderedhash' if USE_ORDERED_HASH
42
37
  unless defined?(SUPPORTED_FORMATS) # We can assume all are defined
43
- VERSION = "0.8.1"
38
+ VERSION = "0.8.2"
44
39
  NICE_TIME_FORMAT = "%Y-%m-%d@%H:%M:%S".freeze
45
40
  SUPPORTED_FORMATS = [:tsv, :csv, :yaml, :json, :s, :string].freeze
46
41
  end
@@ -484,9 +479,11 @@ class Storable
484
479
  def hash_proc_processor
485
480
  Proc.new do |procs|
486
481
  a = {}
487
- procs.each_pair { |n,v|
488
- a[n] = (Proc === v) ? v.source : v
489
- }
482
+ unless procs.nil?
483
+ procs.each_pair { |n,v|
484
+ a[n] = (Proc === v) ? v.source : v
485
+ }
486
+ end
490
487
  a
491
488
  end
492
489
  end
@@ -509,3 +506,9 @@ class Storable
509
506
  extend Storable::DefaultProcessors
510
507
  end
511
508
 
509
+
510
+ #--
511
+ # TODO: Handle nested hashes and arrays.
512
+ # TODO: to_xml, see: http://codeforpeople.com/lib/ruby/xx/xx-2.0.0/README
513
+ # TODO: from_args([HASH or ordered params])
514
+ #++
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.8.1"
4
+ s.version = "0.8.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,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: storable
3
3
  version: !ruby/object:Gem::Version
4
- hash: 61
4
+ hash: 59
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 8
9
- - 1
10
- version: 0.8.1
9
+ - 2
10
+ version: 0.8.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Delano Mandelbaum
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-07-31 00:00:00 -04:00
18
+ date: 2010-09-05 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies: []
21
21