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 +1 -1
- data/README.rdoc +4 -0
- data/VERSION +1 -1
- data/comma.gemspec +5 -5
- data/lib/comma/extractors.rb +1 -1
- metadata +29 -29
data/Gemfile
CHANGED
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.
|
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.
|
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-
|
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
|
data/lib/comma/extractors.rb
CHANGED
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:
|
4
|
+
hash: 9
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 4
|
9
|
-
-
|
10
|
-
version: 0.4.
|
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-
|
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
|
-
|
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:
|
50
|
-
|
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
|
-
-
|
63
|
-
|
64
|
-
|
65
|
-
|
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
|
-
-
|
77
|
-
-
|
78
|
-
|
79
|
-
|
80
|
-
|
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
|
-
|
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: []
|