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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e31dfc4a87e56c0b8878d7f911fee27ffa669953
4
- data.tar.gz: 18d062a32a3b18a2462a12f91956ccb7c46bd71f
3
+ metadata.gz: d4cc0e25e2da4afd30b9328ea2b968e8b8164ed6
4
+ data.tar.gz: 7d06d8d91830e2c81d1bde58a1330d1d37f32f13
5
5
  SHA512:
6
- metadata.gz: 469b6a3e18c6133975500977322e9346d13c5fd6ca7947fffa14c82410055dd5edd7ab2cc6e18a4d7c35ade1e793a0ae3310fdc27cb24574d9e7ba769a9e9bf2
7
- data.tar.gz: 44cc1ef8d03beaa7407aebfd013520dde157da2e47e646c46a22f8c5e4c5a038f15d52a609f98aedc353f05fc10dea10d48ad7ca1bc3ab35c41036a4089af280
6
+ metadata.gz: fbff36bec0c5856e1566ed9d154f36233ef0ab97201dbcf69034f6b42713088b8a92ee9368076fd7decc90aeabdf9a0546efe1736b3c968ab0f7cebae563b84d
7
+ data.tar.gz: 9a6498cfa4376f5ece5f6bb6f6af5edc4bdb63834986608ff5468cdbf5e6f68f37297c3040367d7304a5db2f1b50b9601b2e8324acf7fc0af5b5832894d073ae
data/.gitignore CHANGED
@@ -1,7 +1,7 @@
1
1
  .DS_Store
2
2
  /.bundle/
3
3
  /.yardoc
4
- /Gemfile.lock
4
+ Gemfile.lock
5
5
  /_yardoc/
6
6
  /coverage/
7
7
  /doc/
@@ -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::CSV, disposition: "attachment; filename=#{filename}.csv"
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|
@@ -1,3 +1,3 @@
1
1
  module UsefulRenderers
2
- VERSION = "0.0.5"
2
+ VERSION = "0.1.0"
3
3
  end
@@ -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', '>= 3.0'
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.5
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: 2014-12-05 00:00:00.000000000 Z
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: '3.0'
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: '3.0'
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.2.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