useful_renderers 0.0.5 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -1
- data/lib/useful_renderers.rb +1 -1
- data/lib/useful_renderers/version.rb +1 -1
- data/useful_renderers.gemspec +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d4cc0e25e2da4afd30b9328ea2b968e8b8164ed6
|
4
|
+
data.tar.gz: 7d06d8d91830e2c81d1bde58a1330d1d37f32f13
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fbff36bec0c5856e1566ed9d154f36233ef0ab97201dbcf69034f6b42713088b8a92ee9368076fd7decc90aeabdf9a0546efe1736b3c968ab0f7cebae563b84d
|
7
|
+
data.tar.gz: 9a6498cfa4376f5ece5f6bb6f6af5edc4bdb63834986608ff5468cdbf5e6f68f37297c3040367d7304a5db2f1b50b9601b2e8324acf7fc0af5b5832894d073ae
|
data/.gitignore
CHANGED
data/lib/useful_renderers.rb
CHANGED
@@ -11,7 +11,7 @@ module UsefulRenderers
|
|
11
11
|
filename = options[:filename] || options[:template]
|
12
12
|
csv.extend UsefulRenderers::CsvRenderable
|
13
13
|
data = csv.respond_to?(:to_csv) ? csv.to_csv(options) : csv
|
14
|
-
send_data data, type: Mime
|
14
|
+
send_data data, type: Mime[:csv], disposition: "attachment; filename=#{filename}.csv"
|
15
15
|
end
|
16
16
|
|
17
17
|
ActionController.add_renderer :zip do |zip, options|
|
data/useful_renderers.gemspec
CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
|
-
spec.add_dependency 'rails', '>=
|
21
|
+
spec.add_dependency 'rails', '>= 5.0'
|
22
22
|
spec.add_dependency 'rubyzip', '>= 1.0.0'
|
23
23
|
|
24
24
|
spec.add_development_dependency 'rspec-rails', '>= 2.12'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: useful_renderers
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ondrej Bartas
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-11-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '5.0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '5.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rubyzip
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -155,7 +155,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
155
155
|
version: '0'
|
156
156
|
requirements: []
|
157
157
|
rubyforge_project:
|
158
|
-
rubygems_version: 2.
|
158
|
+
rubygems_version: 2.6.11
|
159
159
|
signing_key:
|
160
160
|
specification_version: 4
|
161
161
|
summary: Adds a custom CSV and ZIP renderer to Rails applications
|