spiderfw 0.5.1 → 0.5.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.
@@ -244,7 +244,10 @@ module Spider
244
244
  def to_hash
245
245
  h = {}
246
246
  @values.each do |k, v|
247
- v = v.to_hash if v.is_a?(self.class)
247
+ if v.is_a?(self.class)
248
+ v = v.to_hash
249
+ next if v.empty?
250
+ end
248
251
  next if v.class == Class
249
252
  h[k] = v
250
253
  end
data/spider.gemspec CHANGED
@@ -2,7 +2,7 @@ require 'rake'
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = "spiderfw"
5
- s.version = "0.5.1"
5
+ s.version = "0.5.2"
6
6
  s.date = "2010-02-18"
7
7
  s.summary = "A (web) framework"
8
8
  s.email = "abmajor7@gmail.com"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spiderfw
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Pirlik