tabularasa 0.2.3.1 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/lib/tabularasa.rb +5 -3
  2. data/tabularasa.gemspec +1 -1
  3. metadata +1 -1
data/lib/tabularasa.rb CHANGED
@@ -34,15 +34,17 @@ class Tabularasa
34
34
  end
35
35
 
36
36
  def collect_active_record(object)
37
- @keys.collect{|key| object[key] || object.send(key)}
37
+ @keys.collect{|key| object[key] || object.respond_to?(key) ? object.send(key) : object.send(object.gsub(")","").split(/\(|,/))}
38
38
  end
39
39
 
40
40
  def collect_hash(object)
41
- @keys.collect{|key| object[key]}
41
+ #@keys.collect{|key| object[key]}
42
+ @keys.collect{|key| object[key] || object.respond_to?(key) ? object.send(key) : object.send(object.gsub(")","").split(/\(|,/))}
42
43
  end
43
44
 
44
45
  def collect_array(object)
45
- @keys.collect{|key| object[key]}
46
+ #@keys.collect{|key| object[key]}
47
+ @keys.collect{|key| object[key] || object.respond_to?(key) ? object.send(key) : object.send(object.gsub(")","").split(/\(|,/))}
46
48
  end
47
49
 
48
50
  def collect_unsupported(object)
data/tabularasa.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{tabularasa}
5
- s.version = "0.2.3.1"
5
+ s.version = "0.2.4"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = [%q{Chris Rosario}]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tabularasa
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3.1
4
+ version: 0.2.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: