useful_renderers 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a8eaac762861879e9ba676ef24d40e093ecea7ca
4
- data.tar.gz: 18d301948ae29c816ef1c28a855c9ccc3b1d49e7
3
+ metadata.gz: 63c4b461671436a8635c0dcb32cf225d0e348ce6
4
+ data.tar.gz: 8372d535dd0b4a04a083d2c7fc9cb326d436f039
5
5
  SHA512:
6
- metadata.gz: 62d11b80d849da88962f0dd1ab1a2ea59119af07c694dedbf0776dcf2abd108db5353e96f3751f9db7d05bae9b3dae140b6db7302545b43c9f6cd4324081c9ad
7
- data.tar.gz: ca07ed5daf59ce57078f76d86d691f355ee20c2281f007ffa59a40ee876dd0a75026016e1cb6e54992270fc5e962057a6ec9d70e95788bcfa67c702827d0cd97
6
+ metadata.gz: 2c5d3fd4049896dc2309faf428467de4486dd9e8c190f71d16bab39a5bc7f5b6483d213f05357e3a3d3dbfdb8155b0d8f3c60b9e696c9fb63c251eee104c7981
7
+ data.tar.gz: 36bd0e1b55359baf50e907a6eba4f4d846c0c4d6edfad8360fa6e604e268181263014c473d4be760a8d77ee9c81a708ec7d3d015308ec3e42f31b199452ef42c
@@ -1,3 +1,3 @@
1
1
  module UsefulRenderers
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -14,7 +14,7 @@ module UsefulRenderers
14
14
  send_data data, type: Mime::CSV, disposition: "attachment; filename=#{filename}.csv"
15
15
  end
16
16
 
17
- ActionController.add_renderer :csv do |csv, options|
17
+ ActionController.add_renderer :zip do |csv, options|
18
18
  filename = options[:filename] || options[:template]
19
19
  csv.extend UsefulRenderers::ZipRenderable
20
20
  data = csv.respond_to?(:to_zip) ? csv.to_csv(options) : csv
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: useful_renderers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ondrej Bartas