xlsxtream_rails 0.1.0 → 0.2.0

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
  SHA256:
3
- metadata.gz: f95f772a88e172129234f4283c232efc799fe20b752675e6b44d8f96d6fbf582
4
- data.tar.gz: 0e910d29f10e28c3ea51c7ec10e32708199118cfc803bafc0b17f28a5e00ee28
3
+ metadata.gz: 2356d39bc93f7932ff1ebcf31f4e79d0feb38c31521227c9524ac745ccaaff3a
4
+ data.tar.gz: e3cacfb6c7bcf4cb76ba7bcb1469222631f36e1c8343ae717f8420eb76bc4468
5
5
  SHA512:
6
- metadata.gz: f2d2e2d691e850a3b6d50637ee3b97f186b66172af768273ff73ab091db36619f2399063e9724fc38668f2c179ca518eab6ada601189465830189c60b969920b
7
- data.tar.gz: dc0a03fe157d825c586f6af81a59083ac33fe0599115ba9baa43b2e8c3678b691b9c26dbd625d6d1cdeeab8739662947abfba48cebf428bc5397b5ea06a86bb9
6
+ metadata.gz: 317eb0b72e5c04d913ba5054450e90b4de0ff27067276740ece5f1b4af24f5f5c55df9b4984d25f92da1839f30328cd1379a3bd6941a9faad80e96c603a20fb1
7
+ data.tar.gz: adc28f4c75706991af808e076d3f5049d67a8e1b3c688e8788d5ed32b6b7ff418a6b08ac7b449eaed0c481fa5da1f8101ece6d23585158c7c360557de07b6085
data/README.md CHANGED
@@ -27,7 +27,7 @@ class PostsController < ApplicationController
27
27
  def index
28
28
  @posts = Post.all
29
29
  respond_to do |format|
30
- format.xlsx
30
+ format.xlsx { render xlsx: @posts }
31
31
  end
32
32
  end
33
33
  end
@@ -14,7 +14,6 @@ ActionController::Renderers.add :xlsx do |data, options|
14
14
  end
15
15
 
16
16
  options[:filename] = options[:filename] ? options[:filename].strip.sub(/\.xlsx$/i, "") : "data"
17
- options[:filename] += ".xlsx"
18
17
 
19
18
  headers["Content-Type"] = "application/vnd.openxmlformats-officedocument.spreadsheetml.sheet"
20
19
  headers["Content-disposition"] = "attachment; filename=\"#{options[:filename]}.xlsx\""
@@ -1,3 +1,3 @@
1
1
  module XlsxtreamRails
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: xlsxtream_rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - doabit