spreadsheet_architect 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -2
- data/Rakefile +0 -4
- data/lib/spreadsheet_architect/action_controller_renderers.rb +3 -3
- data/lib/spreadsheet_architect/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c70bffeb66b07a08e65d84e41b84a47595926571
|
4
|
+
data.tar.gz: f70ea264d22245f9771e36eb9bc46d22c05e5f7e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 72c104868f8995b133f3337646ef59f739017ba8306bc31ad0d1d263341ef9c6984730adb3904484563c2f6553d82c8bb3d6b90e61970e3ccbcefe0828caa7c1
|
7
|
+
data.tar.gz: 2d7dbe940b6e56f54b902845fc21a94f75c14296aeb075aff2bc13ab9278a3d1c2f5a6706e497759c47dcd97f906ad24d9dccd3424b133d085b9210920072803
|
data/CHANGELOG.md
CHANGED
data/Rakefile
CHANGED
@@ -1,12 +1,12 @@
|
|
1
1
|
if defined? ActionController
|
2
2
|
ActionController::Renderers.add :xlsx do |data, options|
|
3
|
-
send_data data, type: :xlsx, disposition: :attachment, filename: "#{options[:filename] ? options[:filename].sub(
|
3
|
+
send_data data, type: :xlsx, disposition: :attachment, filename: "#{options[:filename] ? options[:filename].sub('.xlsx','') : 'data'}.xlsx"
|
4
4
|
end
|
5
5
|
ActionController::Renderers.add :ods do |data, options|
|
6
|
-
send_data data, type: :ods, disposition: :attachment, filename: "#{options[:filename] ? options[:filename].sub(
|
6
|
+
send_data data, type: :ods, disposition: :attachment, filename: "#{options[:filename] ? options[:filename].sub('.ods','') : 'data'}.ods"
|
7
7
|
end
|
8
8
|
ActionController::Renderers.add :csv do |data, options|
|
9
|
-
send_data data, type: :csv, disposition: :attachment, filename: "#{options[:filename] ? options[:filename].sub(
|
9
|
+
send_data data, type: :csv, disposition: :attachment, filename: "#{options[:filename] ? options[:filename].sub('.csv','') : 'data'}.csv"
|
10
10
|
end
|
11
11
|
|
12
12
|
|