tabularasa 0.2.2.1 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -7,7 +7,7 @@ rescue LoadError
7
7
  end
8
8
 
9
9
  require 'rake'
10
- require 'rake/rdoctask'
10
+ require 'rdoc/task'
11
11
 
12
12
  require 'rake/testtask'
13
13
 
data/lib/tabularasa.rb CHANGED
@@ -34,7 +34,7 @@ class Tabularasa
34
34
  end
35
35
 
36
36
  def collect_active_record(object)
37
- @keys.collect{|key| object[key]}
37
+ @keys.collect{|key| object[key] || object.key}
38
38
  end
39
39
 
40
40
  def collect_hash(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.2.1"
5
+ s.version = "0.2.3"
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}]
@@ -10,14 +10,13 @@ Gem::Specification.new do |s|
10
10
  s.description = %q{This Rails gem gives you the ability to call to_csv to a collection of homogenous activerecords and/or hashes}
11
11
  s.email = %q{callenrosario@gmail.com}
12
12
  s.extra_rdoc_files = [%q{README.rdoc}, %q{lib/tabularasa.rb}]
13
- s.files = [%q{MIT-LICENSE}, %q{README.rdoc}, %q{Rakefile}, %q{init.rb}, %q{lib/tabularasa.rb}, %q{test/active_record.rb}, %q{test/array.rb}, %q{test/hash.rb}, %q{test/test_helper.rb}, %q{Manifest}, %q{tabularasa.gemspec}]
13
+ s.files = [%q{MIT-LICENSE}, %q{README.rdoc}, %q{Rakefile}, %q{init.rb}, %q{lib/tabularasa.rb}, %q{tabularasa.gemspec}]
14
14
  s.homepage = %q{https://github.com/callenrosario/tabularasa}
15
15
  s.rdoc_options = [%q{--line-numbers}, %q{--inline-source}, %q{--title}, %q{Tabularasa}, %q{--main}, %q{README.rdoc}]
16
16
  s.require_paths = [%q{lib}]
17
17
  s.rubyforge_project = %q{tabularasa}
18
18
  s.rubygems_version = %q{1.8.6}
19
19
  s.summary = %q{Gives the ability to convert homogeneous activerecord and/or hash objects into csv}
20
- s.test_files = [%q{test/test_helper.rb}]
21
20
  s.add_runtime_dependency(%q<activerecord>, [">= 0"])
22
21
  s.add_runtime_dependency(%q<fastercsv>, [">= 0"])
23
22
  end
metadata CHANGED
@@ -1,110 +1,92 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: tabularasa
3
- version: !ruby/object:Gem::Version
4
- hash: 85
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.2.3
5
5
  prerelease:
6
- segments:
7
- - 0
8
- - 2
9
- - 2
10
- - 1
11
- version: 0.2.2.1
12
6
  platform: ruby
13
- authors:
7
+ authors:
14
8
  - Chris Rosario
15
9
  autorequire:
16
10
  bindir: bin
17
11
  cert_chain: []
18
-
19
- date: 2011-11-29 00:00:00 Z
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
12
+ date: 2011-11-29 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
22
15
  name: activerecord
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
25
17
  none: false
26
- requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- hash: 3
30
- segments:
31
- - 0
32
- version: "0"
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
33
22
  type: :runtime
34
- version_requirements: *id001
35
- - !ruby/object:Gem::Dependency
36
- name: fastercsv
37
23
  prerelease: false
38
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
30
+ - !ruby/object:Gem::Dependency
31
+ name: fastercsv
32
+ requirement: !ruby/object:Gem::Requirement
39
33
  none: false
40
- requirements:
41
- - - ">="
42
- - !ruby/object:Gem::Version
43
- hash: 3
44
- segments:
45
- - 0
46
- version: "0"
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: '0'
47
38
  type: :runtime
48
- version_requirements: *id002
49
- description: This Rails gem gives you the ability to call to_csv to a collection of homogenous activerecords and/or hashes
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
46
+ description: This Rails gem gives you the ability to call to_csv to a collection of
47
+ homogenous activerecords and/or hashes
50
48
  email: callenrosario@gmail.com
51
49
  executables: []
52
-
53
50
  extensions: []
54
-
55
- extra_rdoc_files:
51
+ extra_rdoc_files:
56
52
  - README.rdoc
57
53
  - lib/tabularasa.rb
58
- files:
54
+ files:
59
55
  - MIT-LICENSE
60
56
  - README.rdoc
61
57
  - Rakefile
62
58
  - init.rb
63
59
  - lib/tabularasa.rb
64
- - test/active_record.rb
65
- - test/array.rb
66
- - test/hash.rb
67
- - test/test_helper.rb
68
- - Manifest
69
60
  - tabularasa.gemspec
70
61
  homepage: https://github.com/callenrosario/tabularasa
71
62
  licenses: []
72
-
73
63
  post_install_message:
74
- rdoc_options:
64
+ rdoc_options:
75
65
  - --line-numbers
76
66
  - --inline-source
77
67
  - --title
78
68
  - Tabularasa
79
69
  - --main
80
70
  - README.rdoc
81
- require_paths:
71
+ require_paths:
82
72
  - lib
83
- required_ruby_version: !ruby/object:Gem::Requirement
73
+ required_ruby_version: !ruby/object:Gem::Requirement
84
74
  none: false
85
- requirements:
86
- - - ">="
87
- - !ruby/object:Gem::Version
88
- hash: 3
89
- segments:
90
- - 0
91
- version: "0"
92
- required_rubygems_version: !ruby/object:Gem::Requirement
75
+ requirements:
76
+ - - ! '>='
77
+ - !ruby/object:Gem::Version
78
+ version: '0'
79
+ required_rubygems_version: !ruby/object:Gem::Requirement
93
80
  none: false
94
- requirements:
95
- - - ">="
96
- - !ruby/object:Gem::Version
97
- hash: 11
98
- segments:
99
- - 1
100
- - 2
101
- version: "1.2"
81
+ requirements:
82
+ - - ! '>='
83
+ - !ruby/object:Gem::Version
84
+ version: '1.2'
102
85
  requirements: []
103
-
104
86
  rubyforge_project: tabularasa
105
- rubygems_version: 1.8.6
87
+ rubygems_version: 1.8.24
106
88
  signing_key:
107
89
  specification_version: 3
108
- summary: Gives the ability to convert homogeneous activerecord and/or hash objects into csv
109
- test_files:
110
- - test/test_helper.rb
90
+ summary: Gives the ability to convert homogeneous activerecord and/or hash objects
91
+ into csv
92
+ test_files: []
data/Manifest DELETED
@@ -1,10 +0,0 @@
1
- MIT-LICENSE
2
- README.rdoc
3
- Rakefile
4
- init.rb
5
- lib/tabularasa.rb
6
- test/active_record.rb
7
- test/array.rb
8
- test/hash.rb
9
- test/test_helper.rb
10
- Manifest
File without changes
data/test/array.rb DELETED
File without changes
data/test/hash.rb DELETED
@@ -1,16 +0,0 @@
1
- require 'tabularasa'
2
-
3
- rows = [
4
- { :a => 2,
5
- :b => 10,
6
- :c => 11,
7
- :d => 12
8
- },
9
- { "1" => "b",
10
- "4" => "q",
11
- "7" => "b",
12
- "6" => "o"
13
- }
14
- ]
15
-
16
- p rows.to_csv
data/test/test_helper.rb DELETED
@@ -1,8 +0,0 @@
1
- require 'tabularasa'
2
- require 'active_support'
3
-
4
- class User
5
- end
6
-
7
- a = User.new
8
- p a.class.baseclass