send_csv 0.3 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/send_csv.rb +2 -2
  2. metadata +4 -3
data/lib/send_csv.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  module SendCsv
2
- VERSION = '0.3'
2
+ VERSION = '0.3.1'
3
3
  end
4
4
 
5
5
  # Based on http://stackoverflow.com/questions/3468858/rails-3-0-engine-execute-code-in-actioncontroller/3484141#3484141
@@ -27,7 +27,7 @@ ActionController::Base.class_eval do
27
27
 
28
28
  options = {
29
29
  :disposition => "attachment",
30
- :type => 'text/plain',
30
+ :type => 'text/csv',
31
31
  }.merge(options)
32
32
 
33
33
  csv = generate_csv(lines, options)
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: send_csv
3
3
  version: !ruby/object:Gem::Version
4
- hash: 13
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- version: "0.3"
9
+ - 1
10
+ version: 0.3.1
10
11
  platform: ruby
11
12
  authors:
12
13
  - Ouvrages
@@ -14,7 +15,7 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2011-06-23 00:00:00 +02:00
18
+ date: 2011-06-24 00:00:00 +02:00
18
19
  default_executable:
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency