comma 2.1.2 → 2.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +1 -1
- data/gemfiles/active2.3.14.gemfile.lock +2 -2
- data/gemfiles/active2.3.15.gemfile.lock +2 -2
- data/gemfiles/active2.3.2.gemfile.lock +2 -2
- data/gemfiles/active2.3.5.gemfile.lock +2 -2
- data/gemfiles/active2.3.7.gemfile.lock +2 -2
- data/gemfiles/rails2.3.14.gemfile.lock +2 -2
- data/gemfiles/rails2.3.15.gemfile.lock +2 -2
- data/gemfiles/rails2.3.2.gemfile.lock +2 -2
- data/gemfiles/rails2.3.5.gemfile.lock +2 -2
- data/gemfiles/rails2.3.7.gemfile.lock +2 -2
- data/lib/comma/render_as_csv.rb +4 -4
- data/lib/comma/version.rb +1 -1
- metadata +4 -4
data/Gemfile.lock
CHANGED
data/lib/comma/render_as_csv.rb
CHANGED
@@ -32,14 +32,14 @@ module RenderAsCSV
|
|
32
32
|
content = options[:content]
|
33
33
|
style = options[:style]
|
34
34
|
|
35
|
-
|
36
|
-
|
35
|
+
if self.respond_to?(:status=)
|
36
|
+
self.status = status
|
37
|
+
self.response_body = proc { |response, output|
|
37
38
|
output.write CSV_HANDLER.generate_line(content.first.to_comma_headers(style))
|
38
39
|
content.each { |line| output.write CSV_HANDLER.generate_line(line.to_comma(style)) }
|
39
40
|
}
|
40
41
|
else
|
41
|
-
|
42
|
-
self.response_body = proc { |response, output|
|
42
|
+
render :status => status, :text => Proc.new { |response, output|
|
43
43
|
output.write CSV_HANDLER.generate_line(content.first.to_comma_headers(style))
|
44
44
|
content.each { |line| output.write CSV_HANDLER.generate_line(line.to_comma(style)) }
|
45
45
|
}
|
data/lib/comma/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: comma
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2013-
|
13
|
+
date: 2013-05-14 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: fastercsv
|
@@ -164,7 +164,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
164
164
|
version: '0'
|
165
165
|
segments:
|
166
166
|
- 0
|
167
|
-
hash: -
|
167
|
+
hash: -3789187626327987822
|
168
168
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
169
169
|
none: false
|
170
170
|
requirements:
|
@@ -173,7 +173,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
173
173
|
version: '0'
|
174
174
|
segments:
|
175
175
|
- 0
|
176
|
-
hash: -
|
176
|
+
hash: -3789187626327987822
|
177
177
|
requirements: []
|
178
178
|
rubyforge_project: comma
|
179
179
|
rubygems_version: 1.8.23
|