comma 0.4.2 → 0.4.3

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,10 +1,10 @@
1
1
  source :rubygems
2
2
 
3
3
  gem "activesupport", ">= 2.2.2"
4
- gem "rspec", "~> 2.3.0"
5
4
  gem "fastercsv"
6
5
 
7
6
  group :development do
8
7
  gem "jeweler", "~> 1.6"
8
+ gem "rspec", "~> 2.3.0"
9
9
  gem "activerecord", ">= 2.2.2"
10
10
  end
data/README.rdoc CHANGED
@@ -198,6 +198,10 @@ You can specify which output format you would like to use by specifying a style
198
198
 
199
199
  end
200
200
 
201
+ With the Rails renderer you can supply any of the regular parameters that you would use with to_comma such as :filename,
202
+ :write_headers, :force_quotes, etc. The parameters just need to be supplied after you specify the collection for the csv as demonstrated
203
+ above.
204
+
201
205
  When used with Rails 2.3.*, Comma also adds support for exporting named scopes:
202
206
 
203
207
  class Book < ActiveRecord::Base
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.4.2
1
+ 0.4.3
data/comma.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{comma}
8
- s.version = "0.4.2"
8
+ s.version = "0.4.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Marcus Crafter"]
12
- s.date = %q{2011-10-14}
12
+ s.date = %q{2011-10-29}
13
13
  s.description = %q{Ruby Comma Seperated Values generation library}
14
14
  s.email = %q{crafterm@redartisan.com}
15
15
  s.extra_rdoc_files = [
@@ -49,22 +49,22 @@ Gem::Specification.new do |s|
49
49
 
50
50
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
51
51
  s.add_runtime_dependency(%q<activesupport>, [">= 2.2.2"])
52
- s.add_runtime_dependency(%q<rspec>, ["~> 2.3.0"])
53
52
  s.add_runtime_dependency(%q<fastercsv>, [">= 0"])
54
53
  s.add_development_dependency(%q<jeweler>, ["~> 1.6"])
54
+ s.add_development_dependency(%q<rspec>, ["~> 2.3.0"])
55
55
  s.add_development_dependency(%q<activerecord>, [">= 2.2.2"])
56
56
  else
57
57
  s.add_dependency(%q<activesupport>, [">= 2.2.2"])
58
- s.add_dependency(%q<rspec>, ["~> 2.3.0"])
59
58
  s.add_dependency(%q<fastercsv>, [">= 0"])
60
59
  s.add_dependency(%q<jeweler>, ["~> 1.6"])
60
+ s.add_dependency(%q<rspec>, ["~> 2.3.0"])
61
61
  s.add_dependency(%q<activerecord>, [">= 2.2.2"])
62
62
  end
63
63
  else
64
64
  s.add_dependency(%q<activesupport>, [">= 2.2.2"])
65
- s.add_dependency(%q<rspec>, ["~> 2.3.0"])
66
65
  s.add_dependency(%q<fastercsv>, [">= 0"])
67
66
  s.add_dependency(%q<jeweler>, ["~> 1.6"])
67
+ s.add_dependency(%q<rspec>, ["~> 2.3.0"])
68
68
  s.add_dependency(%q<activerecord>, [">= 2.2.2"])
69
69
  end
70
70
  end
@@ -19,7 +19,7 @@ module Comma
19
19
  end
20
20
 
21
21
  class HeaderExtractor < Extractor
22
-
22
+
23
23
  def method_missing(sym, *args, &block)
24
24
  @results << sym.to_s.humanize if args.blank?
25
25
  args.each do |arg|
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: comma
3
3
  version: !ruby/object:Gem::Version
4
- hash: 11
4
+ hash: 9
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 2
10
- version: 0.4.2
9
+ - 3
10
+ version: 0.4.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Marcus Crafter
@@ -15,11 +15,10 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-10-14 00:00:00 +11:00
18
+ date: 2011-10-29 00:00:00 +11:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
- name: activesupport
23
22
  requirement: &id001 !ruby/object:Gem::Requirement
24
23
  none: false
25
24
  requirements:
@@ -31,41 +30,40 @@ dependencies:
31
30
  - 2
32
31
  - 2
33
32
  version: 2.2.2
34
- type: :runtime
35
- version_requirements: *id001
33
+ name: activesupport
36
34
  prerelease: false
35
+ version_requirements: *id001
36
+ type: :runtime
37
37
  - !ruby/object:Gem::Dependency
38
- name: rspec
39
38
  requirement: &id002 !ruby/object:Gem::Requirement
40
39
  none: false
41
40
  requirements:
42
- - - ~>
41
+ - - ">="
43
42
  - !ruby/object:Gem::Version
44
43
  hash: 3
45
44
  segments:
46
- - 2
47
- - 3
48
45
  - 0
49
- version: 2.3.0
50
- type: :runtime
51
- version_requirements: *id002
46
+ version: "0"
47
+ name: fastercsv
52
48
  prerelease: false
49
+ version_requirements: *id002
50
+ type: :runtime
53
51
  - !ruby/object:Gem::Dependency
54
- name: fastercsv
55
52
  requirement: &id003 !ruby/object:Gem::Requirement
56
53
  none: false
57
54
  requirements:
58
- - - ">="
55
+ - - ~>
59
56
  - !ruby/object:Gem::Version
60
57
  hash: 3
61
58
  segments:
62
- - 0
63
- version: "0"
64
- type: :runtime
65
- version_requirements: *id003
59
+ - 1
60
+ - 6
61
+ version: "1.6"
62
+ name: jeweler
66
63
  prerelease: false
64
+ version_requirements: *id003
65
+ type: :development
67
66
  - !ruby/object:Gem::Dependency
68
- name: jeweler
69
67
  requirement: &id004 !ruby/object:Gem::Requirement
70
68
  none: false
71
69
  requirements:
@@ -73,14 +71,15 @@ dependencies:
73
71
  - !ruby/object:Gem::Version
74
72
  hash: 3
75
73
  segments:
76
- - 1
77
- - 6
78
- version: "1.6"
79
- type: :development
80
- version_requirements: *id004
74
+ - 2
75
+ - 3
76
+ - 0
77
+ version: 2.3.0
78
+ name: rspec
81
79
  prerelease: false
80
+ version_requirements: *id004
81
+ type: :development
82
82
  - !ruby/object:Gem::Dependency
83
- name: activerecord
84
83
  requirement: &id005 !ruby/object:Gem::Requirement
85
84
  none: false
86
85
  requirements:
@@ -92,9 +91,10 @@ dependencies:
92
91
  - 2
93
92
  - 2
94
93
  version: 2.2.2
95
- type: :development
96
- version_requirements: *id005
94
+ name: activerecord
97
95
  prerelease: false
96
+ version_requirements: *id005
97
+ type: :development
98
98
  description: Ruby Comma Seperated Values generation library
99
99
  email: crafterm@redartisan.com
100
100
  executables: []