active_storage-send_zip 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +8 -0
- data/.travis.yml +7 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Gemfile +10 -0
- data/Gemfile.lock +130 -0
- data/LICENSE.txt +21 -0
- data/README.md +68 -0
- data/Rakefile +10 -0
- data/active_storage-send_zip.gemspec +41 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/active_storage/send_zip.rb +73 -0
- data/lib/active_storage/send_zip/version.rb +5 -0
- metadata +103 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: b7486688b7fedf6040f5c36b5fa24547bb16d9426e0e61b5a00c88bb3bf87d17
|
4
|
+
data.tar.gz: 712e6d73af9d4515a367192f11bec18a0a0c7f5581a5ca0f8665503e9d95fbd6
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 60c8312e5c80fb0663cfd396dfcbb4a72ad3e2575184ce476c27108d28b1803b7a37308d8b50618bd32787a8c780aa8fd5a5dd56554ee5ff5703f9e7099cf992
|
7
|
+
data.tar.gz: 57326de525bd8cceab5005c975b89a78bc01939a8a2ee359b9591c20ff41baf9dd47e9a36ffdeadbbaa316461a366f7e7aaa7ec4b0c4a0b4ce98a07886bdd883
|
data/.gitignore
ADDED
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,74 @@
|
|
1
|
+
# Contributor Covenant Code of Conduct
|
2
|
+
|
3
|
+
## Our Pledge
|
4
|
+
|
5
|
+
In the interest of fostering an open and welcoming environment, we as
|
6
|
+
contributors and maintainers pledge to making participation in our project and
|
7
|
+
our community a harassment-free experience for everyone, regardless of age, body
|
8
|
+
size, disability, ethnicity, gender identity and expression, level of experience,
|
9
|
+
nationality, personal appearance, race, religion, or sexual identity and
|
10
|
+
orientation.
|
11
|
+
|
12
|
+
## Our Standards
|
13
|
+
|
14
|
+
Examples of behavior that contributes to creating a positive environment
|
15
|
+
include:
|
16
|
+
|
17
|
+
* Using welcoming and inclusive language
|
18
|
+
* Being respectful of differing viewpoints and experiences
|
19
|
+
* Gracefully accepting constructive criticism
|
20
|
+
* Focusing on what is best for the community
|
21
|
+
* Showing empathy towards other community members
|
22
|
+
|
23
|
+
Examples of unacceptable behavior by participants include:
|
24
|
+
|
25
|
+
* The use of sexualized language or imagery and unwelcome sexual attention or
|
26
|
+
advances
|
27
|
+
* Trolling, insulting/derogatory comments, and personal or political attacks
|
28
|
+
* Public or private harassment
|
29
|
+
* Publishing others' private information, such as a physical or electronic
|
30
|
+
address, without explicit permission
|
31
|
+
* Other conduct which could reasonably be considered inappropriate in a
|
32
|
+
professional setting
|
33
|
+
|
34
|
+
## Our Responsibilities
|
35
|
+
|
36
|
+
Project maintainers are responsible for clarifying the standards of acceptable
|
37
|
+
behavior and are expected to take appropriate and fair corrective action in
|
38
|
+
response to any instances of unacceptable behavior.
|
39
|
+
|
40
|
+
Project maintainers have the right and responsibility to remove, edit, or
|
41
|
+
reject comments, commits, code, wiki edits, issues, and other contributions
|
42
|
+
that are not aligned to this Code of Conduct, or to ban temporarily or
|
43
|
+
permanently any contributor for other behaviors that they deem inappropriate,
|
44
|
+
threatening, offensive, or harmful.
|
45
|
+
|
46
|
+
## Scope
|
47
|
+
|
48
|
+
This Code of Conduct applies both within project spaces and in public spaces
|
49
|
+
when an individual is representing the project or its community. Examples of
|
50
|
+
representing a project or community include using an official project e-mail
|
51
|
+
address, posting via an official social media account, or acting as an appointed
|
52
|
+
representative at an online or offline event. Representation of a project may be
|
53
|
+
further defined and clarified by project maintainers.
|
54
|
+
|
55
|
+
## Enforcement
|
56
|
+
|
57
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be
|
58
|
+
reported by contacting the project team at TODO: Write your email address. All
|
59
|
+
complaints will be reviewed and investigated and will result in a response that
|
60
|
+
is deemed necessary and appropriate to the circumstances. The project team is
|
61
|
+
obligated to maintain confidentiality with regard to the reporter of an incident.
|
62
|
+
Further details of specific enforcement policies may be posted separately.
|
63
|
+
|
64
|
+
Project maintainers who do not follow or enforce the Code of Conduct in good
|
65
|
+
faith may face temporary or permanent repercussions as determined by other
|
66
|
+
members of the project's leadership.
|
67
|
+
|
68
|
+
## Attribution
|
69
|
+
|
70
|
+
This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
|
71
|
+
available at [http://contributor-covenant.org/version/1/4][version]
|
72
|
+
|
73
|
+
[homepage]: http://contributor-covenant.org
|
74
|
+
[version]: http://contributor-covenant.org/version/1/4/
|
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
@@ -0,0 +1,130 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
active_storage-send_zip (0.1.0)
|
5
|
+
|
6
|
+
GEM
|
7
|
+
remote: https://rubygems.org/
|
8
|
+
specs:
|
9
|
+
actioncable (5.2.1.1)
|
10
|
+
actionpack (= 5.2.1.1)
|
11
|
+
nio4r (~> 2.0)
|
12
|
+
websocket-driver (>= 0.6.1)
|
13
|
+
actionmailer (5.2.1.1)
|
14
|
+
actionpack (= 5.2.1.1)
|
15
|
+
actionview (= 5.2.1.1)
|
16
|
+
activejob (= 5.2.1.1)
|
17
|
+
mail (~> 2.5, >= 2.5.4)
|
18
|
+
rails-dom-testing (~> 2.0)
|
19
|
+
actionpack (5.2.1.1)
|
20
|
+
actionview (= 5.2.1.1)
|
21
|
+
activesupport (= 5.2.1.1)
|
22
|
+
rack (~> 2.0)
|
23
|
+
rack-test (>= 0.6.3)
|
24
|
+
rails-dom-testing (~> 2.0)
|
25
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
26
|
+
actionview (5.2.1.1)
|
27
|
+
activesupport (= 5.2.1.1)
|
28
|
+
builder (~> 3.1)
|
29
|
+
erubi (~> 1.4)
|
30
|
+
rails-dom-testing (~> 2.0)
|
31
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
32
|
+
activejob (5.2.1.1)
|
33
|
+
activesupport (= 5.2.1.1)
|
34
|
+
globalid (>= 0.3.6)
|
35
|
+
activemodel (5.2.1.1)
|
36
|
+
activesupport (= 5.2.1.1)
|
37
|
+
activerecord (5.2.1.1)
|
38
|
+
activemodel (= 5.2.1.1)
|
39
|
+
activesupport (= 5.2.1.1)
|
40
|
+
arel (>= 9.0)
|
41
|
+
activestorage (5.2.1.1)
|
42
|
+
actionpack (= 5.2.1.1)
|
43
|
+
activerecord (= 5.2.1.1)
|
44
|
+
marcel (~> 0.3.1)
|
45
|
+
activesupport (5.2.1.1)
|
46
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
47
|
+
i18n (>= 0.7, < 2)
|
48
|
+
minitest (~> 5.1)
|
49
|
+
tzinfo (~> 1.1)
|
50
|
+
arel (9.0.0)
|
51
|
+
builder (3.2.3)
|
52
|
+
concurrent-ruby (1.1.3)
|
53
|
+
crass (1.0.4)
|
54
|
+
erubi (1.7.1)
|
55
|
+
globalid (0.4.1)
|
56
|
+
activesupport (>= 4.2.0)
|
57
|
+
i18n (1.1.1)
|
58
|
+
concurrent-ruby (~> 1.0)
|
59
|
+
loofah (2.2.3)
|
60
|
+
crass (~> 1.0.2)
|
61
|
+
nokogiri (>= 1.5.9)
|
62
|
+
mail (2.7.1)
|
63
|
+
mini_mime (>= 0.1.1)
|
64
|
+
marcel (0.3.3)
|
65
|
+
mimemagic (~> 0.3.2)
|
66
|
+
method_source (0.9.2)
|
67
|
+
mimemagic (0.3.2)
|
68
|
+
mini_mime (1.0.1)
|
69
|
+
mini_portile2 (2.3.0)
|
70
|
+
minitest (5.11.3)
|
71
|
+
nio4r (2.3.1)
|
72
|
+
nokogiri (1.8.5)
|
73
|
+
mini_portile2 (~> 2.3.0)
|
74
|
+
rack (2.0.6)
|
75
|
+
rack-test (1.1.0)
|
76
|
+
rack (>= 1.0, < 3)
|
77
|
+
rails (5.2.1.1)
|
78
|
+
actioncable (= 5.2.1.1)
|
79
|
+
actionmailer (= 5.2.1.1)
|
80
|
+
actionpack (= 5.2.1.1)
|
81
|
+
actionview (= 5.2.1.1)
|
82
|
+
activejob (= 5.2.1.1)
|
83
|
+
activemodel (= 5.2.1.1)
|
84
|
+
activerecord (= 5.2.1.1)
|
85
|
+
activestorage (= 5.2.1.1)
|
86
|
+
activesupport (= 5.2.1.1)
|
87
|
+
bundler (>= 1.3.0)
|
88
|
+
railties (= 5.2.1.1)
|
89
|
+
sprockets-rails (>= 2.0.0)
|
90
|
+
rails-dom-testing (2.0.3)
|
91
|
+
activesupport (>= 4.2.0)
|
92
|
+
nokogiri (>= 1.6)
|
93
|
+
rails-html-sanitizer (1.0.4)
|
94
|
+
loofah (~> 2.2, >= 2.2.2)
|
95
|
+
railties (5.2.1.1)
|
96
|
+
actionpack (= 5.2.1.1)
|
97
|
+
activesupport (= 5.2.1.1)
|
98
|
+
method_source
|
99
|
+
rake (>= 0.8.7)
|
100
|
+
thor (>= 0.19.0, < 2.0)
|
101
|
+
rake (10.5.0)
|
102
|
+
rubyzip (1.2.2)
|
103
|
+
sprockets (3.7.2)
|
104
|
+
concurrent-ruby (~> 1.0)
|
105
|
+
rack (> 1, < 3)
|
106
|
+
sprockets-rails (3.2.1)
|
107
|
+
actionpack (>= 4.0)
|
108
|
+
activesupport (>= 4.0)
|
109
|
+
sprockets (>= 3.0.0)
|
110
|
+
thor (0.20.3)
|
111
|
+
thread_safe (0.3.6)
|
112
|
+
tzinfo (1.2.5)
|
113
|
+
thread_safe (~> 0.1)
|
114
|
+
websocket-driver (0.7.0)
|
115
|
+
websocket-extensions (>= 0.1.0)
|
116
|
+
websocket-extensions (0.1.3)
|
117
|
+
|
118
|
+
PLATFORMS
|
119
|
+
ruby
|
120
|
+
|
121
|
+
DEPENDENCIES
|
122
|
+
active_storage-send_zip!
|
123
|
+
bundler (~> 1.17)
|
124
|
+
minitest (~> 5.0)
|
125
|
+
rails (~> 5.2)
|
126
|
+
rake (~> 10.0)
|
127
|
+
rubyzip (~> 1.2)
|
128
|
+
|
129
|
+
BUNDLED WITH
|
130
|
+
1.17.1
|
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2018 Alexandre Rousseau
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in
|
13
|
+
all copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,68 @@
|
|
1
|
+
# ActiveStorage::SendZip
|
2
|
+
|
3
|
+
Create a zip from one or more Active Storage objects and return it in a rails controller
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
gem 'active_storage-send_zip'
|
11
|
+
```
|
12
|
+
|
13
|
+
And then execute:
|
14
|
+
|
15
|
+
$ bundle
|
16
|
+
|
17
|
+
Or install it yourself as:
|
18
|
+
|
19
|
+
$ gem install active_storage-send_zip
|
20
|
+
|
21
|
+
## Usage
|
22
|
+
|
23
|
+
Assuming you have an ActiveRecord model with ActiveStorage like this:
|
24
|
+
|
25
|
+
~~~ruby
|
26
|
+
# app/models/user.rb
|
27
|
+
class User < ApplicationRecord
|
28
|
+
has_many_attached :pictures
|
29
|
+
end
|
30
|
+
~~~
|
31
|
+
|
32
|
+
You simply have to include `ActiveStorage::SendZip` in your controller & use `ActiveStorage::SendZip#send_zip` method. Just pass some [`ActiveStorage::Attached`](https://edgeapi.rubyonrails.org/classes/ActiveStorage/Attached/) objects as parameters:
|
33
|
+
|
34
|
+
~~~ruby
|
35
|
+
# app/controllers/users_controller.rb
|
36
|
+
class UsersController < ApplicationController
|
37
|
+
include ActiveStorage::SendZip
|
38
|
+
|
39
|
+
# ...
|
40
|
+
|
41
|
+
# GET /users/1
|
42
|
+
# GET /users/1.zip
|
43
|
+
def show
|
44
|
+
respond_to do |format|
|
45
|
+
format.html { render }
|
46
|
+
format.zip { send_zip @user.pictures }
|
47
|
+
end
|
48
|
+
end
|
49
|
+
end
|
50
|
+
~~~
|
51
|
+
|
52
|
+
## Development
|
53
|
+
|
54
|
+
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
55
|
+
|
56
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
57
|
+
|
58
|
+
## Contributing
|
59
|
+
|
60
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/madeindjs/active_storage-send_zip. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
61
|
+
|
62
|
+
## License
|
63
|
+
|
64
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
65
|
+
|
66
|
+
## Code of Conduct
|
67
|
+
|
68
|
+
Everyone interacting in the ActiveStorage::SendZip project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/madeindjs/active_storage-send_zip/blob/master/CODE_OF_CONDUCT.md).
|
data/Rakefile
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
lib = File.expand_path('lib', __dir__)
|
2
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
|
+
require 'active_storage/send_zip/version'
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = 'active_storage-send_zip'
|
7
|
+
spec.version = ActiveStorage::SendZip::VERSION
|
8
|
+
spec.authors = ['Alexandre Rousseau']
|
9
|
+
spec.email = ['contact@rousseau-alexandre.fr']
|
10
|
+
|
11
|
+
spec.summary = 'Create a zip from one or more Active Storage objects'
|
12
|
+
spec.description = 'Create a zip from one or more Active Storage objects and return it in a rails controller'
|
13
|
+
spec.homepage = 'https://github.com/madeindjs/active_storage-send_zip'
|
14
|
+
spec.license = 'MIT'
|
15
|
+
|
16
|
+
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
17
|
+
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
18
|
+
if spec.respond_to?(:metadata)
|
19
|
+
spec.metadata['allowed_push_host'] = 'https://rubygems.org/'
|
20
|
+
|
21
|
+
spec.metadata['homepage_uri'] = spec.homepage
|
22
|
+
spec.metadata['source_code_uri'] = 'https://github.com/madeindjs/active_storage-send_zip'
|
23
|
+
# spec.metadata['changelog_uri'] = "TODO: Put your gem's CHANGELOG.md URL here."
|
24
|
+
else
|
25
|
+
raise 'RubyGems 2.0 or newer is required to protect against ' \
|
26
|
+
'public gem pushes.'
|
27
|
+
end
|
28
|
+
|
29
|
+
# Specify which files should be added to the gem when it is released.
|
30
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
31
|
+
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
32
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
33
|
+
end
|
34
|
+
spec.bindir = 'exe'
|
35
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
36
|
+
spec.require_paths = ['lib']
|
37
|
+
|
38
|
+
spec.add_development_dependency 'bundler', '~> 1.17'
|
39
|
+
spec.add_development_dependency 'minitest', '~> 5.0'
|
40
|
+
spec.add_development_dependency 'rake', '~> 10.0'
|
41
|
+
end
|
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "active_storage/send_zip"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
@@ -0,0 +1,73 @@
|
|
1
|
+
require 'active_storage/send_zip/version'
|
2
|
+
require 'rails'
|
3
|
+
require 'zip'
|
4
|
+
|
5
|
+
module ActiveStorage
|
6
|
+
module SendZip
|
7
|
+
extend ActiveSupport::Concern
|
8
|
+
|
9
|
+
protected
|
10
|
+
|
11
|
+
# Zip all given files into a zip and send it with `send_data`
|
12
|
+
#
|
13
|
+
# @param active_storages [ActiveStorage::Attached::Many] files to save
|
14
|
+
# @param filename [ActiveStorage::Attached::Many] files to save
|
15
|
+
def send_zip(active_storages, filename: 'my.zip')
|
16
|
+
require 'zip'
|
17
|
+
files = save_files_on_server active_storages
|
18
|
+
zip_data = create_temporary_zip_file files
|
19
|
+
|
20
|
+
send_data(zip_data, type: 'application/zip', filename: filename)
|
21
|
+
end
|
22
|
+
|
23
|
+
private
|
24
|
+
|
25
|
+
# Download active storage files on server in a temporary folder
|
26
|
+
#
|
27
|
+
# @param files [ActiveStorage::Attached::Many] files to save
|
28
|
+
# @return [Array<String>] files paths of saved files
|
29
|
+
def save_files_on_server(files)
|
30
|
+
require 'zip'
|
31
|
+
# get a temporary folder and create it
|
32
|
+
temp_folder = File.join(Dir.tmpdir, 'user')
|
33
|
+
FileUtils.mkdir_p(temp_folder) unless Dir.exist?(temp_folder)
|
34
|
+
|
35
|
+
# download all ActiveStorage into
|
36
|
+
files.map do |picture|
|
37
|
+
filename = picture.filename.to_s
|
38
|
+
filepath = File.join temp_folder, filename
|
39
|
+
File.open(filepath, 'wb') { |f| f.write(picture.download) }
|
40
|
+
filepath
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
# Create a temporary zip file & return the content as bytes
|
45
|
+
#
|
46
|
+
# @param filepaths [Array<String>] files paths
|
47
|
+
# @return [String] as content of zip
|
48
|
+
def create_temporary_zip_file(filepaths)
|
49
|
+
temp_file = Tempfile.new('user.zip')
|
50
|
+
|
51
|
+
begin
|
52
|
+
# Initialize the temp file as a zip file
|
53
|
+
Zip::OutputStream.open(temp_file) { |zos| }
|
54
|
+
|
55
|
+
# open the zip
|
56
|
+
Zip::File.open(temp_file.path, Zip::File::CREATE) do |zip|
|
57
|
+
filepaths.each do |filepath|
|
58
|
+
filename = File.basename filepath
|
59
|
+
# add file into the zip
|
60
|
+
zip.add filename, filepath
|
61
|
+
end
|
62
|
+
end
|
63
|
+
|
64
|
+
return File.read(temp_file.path)
|
65
|
+
ensure
|
66
|
+
# close all ressources & remove temporary files
|
67
|
+
temp_file.close
|
68
|
+
temp_file.unlink
|
69
|
+
filepaths.each { |filepath| FileUtils.rm(filepath) }
|
70
|
+
end
|
71
|
+
end
|
72
|
+
end
|
73
|
+
end
|
metadata
ADDED
@@ -0,0 +1,103 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: active_storage-send_zip
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Alexandre Rousseau
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2018-11-30 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.17'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.17'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: minitest
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '5.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '5.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '10.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '10.0'
|
55
|
+
description: Create a zip from one or more Active Storage objects and return it in
|
56
|
+
a rails controller
|
57
|
+
email:
|
58
|
+
- contact@rousseau-alexandre.fr
|
59
|
+
executables: []
|
60
|
+
extensions: []
|
61
|
+
extra_rdoc_files: []
|
62
|
+
files:
|
63
|
+
- ".gitignore"
|
64
|
+
- ".travis.yml"
|
65
|
+
- CODE_OF_CONDUCT.md
|
66
|
+
- Gemfile
|
67
|
+
- Gemfile.lock
|
68
|
+
- LICENSE.txt
|
69
|
+
- README.md
|
70
|
+
- Rakefile
|
71
|
+
- active_storage-send_zip.gemspec
|
72
|
+
- bin/console
|
73
|
+
- bin/setup
|
74
|
+
- lib/active_storage/send_zip.rb
|
75
|
+
- lib/active_storage/send_zip/version.rb
|
76
|
+
homepage: https://github.com/madeindjs/active_storage-send_zip
|
77
|
+
licenses:
|
78
|
+
- MIT
|
79
|
+
metadata:
|
80
|
+
allowed_push_host: https://rubygems.org/
|
81
|
+
homepage_uri: https://github.com/madeindjs/active_storage-send_zip
|
82
|
+
source_code_uri: https://github.com/madeindjs/active_storage-send_zip
|
83
|
+
post_install_message:
|
84
|
+
rdoc_options: []
|
85
|
+
require_paths:
|
86
|
+
- lib
|
87
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
88
|
+
requirements:
|
89
|
+
- - ">="
|
90
|
+
- !ruby/object:Gem::Version
|
91
|
+
version: '0'
|
92
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
requirements: []
|
98
|
+
rubyforge_project:
|
99
|
+
rubygems_version: 2.7.7
|
100
|
+
signing_key:
|
101
|
+
specification_version: 4
|
102
|
+
summary: Create a zip from one or more Active Storage objects
|
103
|
+
test_files: []
|