active_storage-send_zip 0.3.4 → 0.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +24 -0
- data/Gemfile.lock +160 -109
- data/active_storage-send_zip.gemspec +1 -1
- data/lib/active_storage/send_zip/version.rb +1 -1
- data/lib/active_storage/send_zip_helper.rb +1 -1
- metadata +15 -8
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 2e8bd7c03d00db97d4d1079809a0bc5776055f6d493b2199a6366c8bdb3a55e9
|
|
4
|
+
data.tar.gz: 77a509201b03aa9b7921c84f0c5f042a5f974136b9c9949fc4ecd286e9afe5ce
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 1de5bc05baf0497ed25b24efa19704dd7b334a707263fec4ae249bf489413810218e1df435d5be89102281f4a470d0c44970b01e3e4984b6e8c8b9f0bdc63f23
|
|
7
|
+
data.tar.gz: 14d1c1a5d5134ae42bcfa87fbf2f9be3498f02677b7f9fbdddee046ad2bbd9c96ea6baf655347106161030a18197a314b88cab366635ca032e4896a0f30028ed
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
name: CI
|
|
2
|
+
|
|
3
|
+
on:
|
|
4
|
+
push:
|
|
5
|
+
branches: [master]
|
|
6
|
+
pull_request:
|
|
7
|
+
branches: [master]
|
|
8
|
+
|
|
9
|
+
jobs:
|
|
10
|
+
test:
|
|
11
|
+
runs-on: ubuntu-latest
|
|
12
|
+
|
|
13
|
+
steps:
|
|
14
|
+
- uses: actions/checkout@v3
|
|
15
|
+
|
|
16
|
+
- name: Set up Ruby
|
|
17
|
+
uses: ruby/setup-ruby@v1
|
|
18
|
+
with:
|
|
19
|
+
ruby-version: 3.2.7
|
|
20
|
+
bundler-cache: true
|
|
21
|
+
|
|
22
|
+
- name: Run tests
|
|
23
|
+
run: bundle exec rake test
|
|
24
|
+
|
data/Gemfile.lock
CHANGED
|
@@ -1,137 +1,188 @@
|
|
|
1
1
|
PATH
|
|
2
2
|
remote: .
|
|
3
3
|
specs:
|
|
4
|
-
active_storage-send_zip (0.
|
|
4
|
+
active_storage-send_zip (0.4.0)
|
|
5
5
|
rails (> 5.2)
|
|
6
|
-
rubyzip (<
|
|
6
|
+
rubyzip (>= 2.1.0, < 4.0)
|
|
7
7
|
|
|
8
8
|
GEM
|
|
9
9
|
remote: https://rubygems.org/
|
|
10
10
|
specs:
|
|
11
|
-
actioncable (
|
|
12
|
-
actionpack (=
|
|
11
|
+
actioncable (7.1.3.2)
|
|
12
|
+
actionpack (= 7.1.3.2)
|
|
13
|
+
activesupport (= 7.1.3.2)
|
|
13
14
|
nio4r (~> 2.0)
|
|
14
15
|
websocket-driver (>= 0.6.1)
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
16
|
+
zeitwerk (~> 2.6)
|
|
17
|
+
actionmailbox (7.1.3.2)
|
|
18
|
+
actionpack (= 7.1.3.2)
|
|
19
|
+
activejob (= 7.1.3.2)
|
|
20
|
+
activerecord (= 7.1.3.2)
|
|
21
|
+
activestorage (= 7.1.3.2)
|
|
22
|
+
activesupport (= 7.1.3.2)
|
|
21
23
|
mail (>= 2.7.1)
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
24
|
+
net-imap
|
|
25
|
+
net-pop
|
|
26
|
+
net-smtp
|
|
27
|
+
actionmailer (7.1.3.2)
|
|
28
|
+
actionpack (= 7.1.3.2)
|
|
29
|
+
actionview (= 7.1.3.2)
|
|
30
|
+
activejob (= 7.1.3.2)
|
|
31
|
+
activesupport (= 7.1.3.2)
|
|
26
32
|
mail (~> 2.5, >= 2.5.4)
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
33
|
+
net-imap
|
|
34
|
+
net-pop
|
|
35
|
+
net-smtp
|
|
36
|
+
rails-dom-testing (~> 2.2)
|
|
37
|
+
actionpack (7.1.3.2)
|
|
38
|
+
actionview (= 7.1.3.2)
|
|
39
|
+
activesupport (= 7.1.3.2)
|
|
40
|
+
nokogiri (>= 1.8.5)
|
|
41
|
+
racc
|
|
42
|
+
rack (>= 2.2.4)
|
|
43
|
+
rack-session (>= 1.0.1)
|
|
32
44
|
rack-test (>= 0.6.3)
|
|
33
|
-
rails-dom-testing (~> 2.
|
|
34
|
-
rails-html-sanitizer (~> 1.
|
|
35
|
-
actiontext (
|
|
36
|
-
actionpack (=
|
|
37
|
-
activerecord (=
|
|
38
|
-
activestorage (=
|
|
39
|
-
activesupport (=
|
|
45
|
+
rails-dom-testing (~> 2.2)
|
|
46
|
+
rails-html-sanitizer (~> 1.6)
|
|
47
|
+
actiontext (7.1.3.2)
|
|
48
|
+
actionpack (= 7.1.3.2)
|
|
49
|
+
activerecord (= 7.1.3.2)
|
|
50
|
+
activestorage (= 7.1.3.2)
|
|
51
|
+
activesupport (= 7.1.3.2)
|
|
52
|
+
globalid (>= 0.6.0)
|
|
40
53
|
nokogiri (>= 1.8.5)
|
|
41
|
-
actionview (
|
|
42
|
-
activesupport (=
|
|
54
|
+
actionview (7.1.3.2)
|
|
55
|
+
activesupport (= 7.1.3.2)
|
|
43
56
|
builder (~> 3.1)
|
|
44
|
-
erubi (~> 1.
|
|
45
|
-
rails-dom-testing (~> 2.
|
|
46
|
-
rails-html-sanitizer (~> 1.
|
|
47
|
-
activejob (
|
|
48
|
-
activesupport (=
|
|
57
|
+
erubi (~> 1.11)
|
|
58
|
+
rails-dom-testing (~> 2.2)
|
|
59
|
+
rails-html-sanitizer (~> 1.6)
|
|
60
|
+
activejob (7.1.3.2)
|
|
61
|
+
activesupport (= 7.1.3.2)
|
|
49
62
|
globalid (>= 0.3.6)
|
|
50
|
-
activemodel (
|
|
51
|
-
activesupport (=
|
|
52
|
-
activerecord (
|
|
53
|
-
activemodel (=
|
|
54
|
-
activesupport (=
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
63
|
+
activemodel (7.1.3.2)
|
|
64
|
+
activesupport (= 7.1.3.2)
|
|
65
|
+
activerecord (7.1.3.2)
|
|
66
|
+
activemodel (= 7.1.3.2)
|
|
67
|
+
activesupport (= 7.1.3.2)
|
|
68
|
+
timeout (>= 0.4.0)
|
|
69
|
+
activestorage (7.1.3.2)
|
|
70
|
+
actionpack (= 7.1.3.2)
|
|
71
|
+
activejob (= 7.1.3.2)
|
|
72
|
+
activerecord (= 7.1.3.2)
|
|
73
|
+
activesupport (= 7.1.3.2)
|
|
74
|
+
marcel (~> 1.0)
|
|
75
|
+
activesupport (7.1.3.2)
|
|
76
|
+
base64
|
|
77
|
+
bigdecimal
|
|
61
78
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
79
|
+
connection_pool (>= 2.2.5)
|
|
80
|
+
drb
|
|
81
|
+
i18n (>= 1.6, < 2)
|
|
82
|
+
minitest (>= 5.1)
|
|
83
|
+
mutex_m
|
|
84
|
+
tzinfo (~> 2.0)
|
|
85
|
+
base64 (0.2.0)
|
|
86
|
+
bigdecimal (3.1.6)
|
|
66
87
|
builder (3.2.4)
|
|
67
|
-
concurrent-ruby (1.
|
|
88
|
+
concurrent-ruby (1.2.3)
|
|
89
|
+
connection_pool (2.4.1)
|
|
68
90
|
crass (1.0.6)
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
91
|
+
date (3.3.4)
|
|
92
|
+
drb (2.2.0)
|
|
93
|
+
ruby2_keywords
|
|
94
|
+
erubi (1.12.0)
|
|
95
|
+
globalid (1.2.1)
|
|
96
|
+
activesupport (>= 6.1)
|
|
97
|
+
i18n (1.14.1)
|
|
73
98
|
concurrent-ruby (~> 1.0)
|
|
74
|
-
|
|
99
|
+
io-console (0.7.2)
|
|
100
|
+
irb (1.11.2)
|
|
101
|
+
rdoc
|
|
102
|
+
reline (>= 0.4.2)
|
|
103
|
+
loofah (2.22.0)
|
|
75
104
|
crass (~> 1.0.2)
|
|
76
|
-
nokogiri (>= 1.
|
|
77
|
-
mail (2.
|
|
105
|
+
nokogiri (>= 1.12.0)
|
|
106
|
+
mail (2.8.1)
|
|
78
107
|
mini_mime (>= 0.1.1)
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
mini_mime (1.
|
|
84
|
-
mini_portile2 (2.
|
|
85
|
-
minitest (5.
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
108
|
+
net-imap
|
|
109
|
+
net-pop
|
|
110
|
+
net-smtp
|
|
111
|
+
marcel (1.0.2)
|
|
112
|
+
mini_mime (1.1.5)
|
|
113
|
+
mini_portile2 (2.8.5)
|
|
114
|
+
minitest (5.22.2)
|
|
115
|
+
mutex_m (0.2.0)
|
|
116
|
+
net-imap (0.4.10)
|
|
117
|
+
date
|
|
118
|
+
net-protocol
|
|
119
|
+
net-pop (0.1.2)
|
|
120
|
+
net-protocol
|
|
121
|
+
net-protocol (0.2.2)
|
|
122
|
+
timeout
|
|
123
|
+
net-smtp (0.4.0.1)
|
|
124
|
+
net-protocol
|
|
125
|
+
nio4r (2.7.0)
|
|
126
|
+
nokogiri (1.15.5)
|
|
127
|
+
mini_portile2 (~> 2.8.2)
|
|
128
|
+
racc (~> 1.4)
|
|
129
|
+
psych (5.1.2)
|
|
130
|
+
stringio
|
|
131
|
+
racc (1.7.3)
|
|
132
|
+
rack (3.0.9.1)
|
|
133
|
+
rack-session (2.0.0)
|
|
134
|
+
rack (>= 3.0.0)
|
|
135
|
+
rack-test (2.1.0)
|
|
136
|
+
rack (>= 1.3)
|
|
137
|
+
rackup (2.1.0)
|
|
138
|
+
rack (>= 3)
|
|
139
|
+
webrick (~> 1.8)
|
|
140
|
+
rails (7.1.3.2)
|
|
141
|
+
actioncable (= 7.1.3.2)
|
|
142
|
+
actionmailbox (= 7.1.3.2)
|
|
143
|
+
actionmailer (= 7.1.3.2)
|
|
144
|
+
actionpack (= 7.1.3.2)
|
|
145
|
+
actiontext (= 7.1.3.2)
|
|
146
|
+
actionview (= 7.1.3.2)
|
|
147
|
+
activejob (= 7.1.3.2)
|
|
148
|
+
activemodel (= 7.1.3.2)
|
|
149
|
+
activerecord (= 7.1.3.2)
|
|
150
|
+
activestorage (= 7.1.3.2)
|
|
151
|
+
activesupport (= 7.1.3.2)
|
|
152
|
+
bundler (>= 1.15.0)
|
|
153
|
+
railties (= 7.1.3.2)
|
|
154
|
+
rails-dom-testing (2.2.0)
|
|
155
|
+
activesupport (>= 5.0.0)
|
|
156
|
+
minitest
|
|
109
157
|
nokogiri (>= 1.6)
|
|
110
|
-
rails-html-sanitizer (1.
|
|
111
|
-
loofah (~> 2.
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
158
|
+
rails-html-sanitizer (1.6.0)
|
|
159
|
+
loofah (~> 2.21)
|
|
160
|
+
nokogiri (~> 1.14)
|
|
161
|
+
railties (7.1.3.2)
|
|
162
|
+
actionpack (= 7.1.3.2)
|
|
163
|
+
activesupport (= 7.1.3.2)
|
|
164
|
+
irb
|
|
165
|
+
rackup (>= 1.0.0)
|
|
166
|
+
rake (>= 12.2)
|
|
167
|
+
thor (~> 1.0, >= 1.2.2)
|
|
168
|
+
zeitwerk (~> 2.6)
|
|
169
|
+
rake (13.1.0)
|
|
170
|
+
rdoc (6.6.2)
|
|
171
|
+
psych (>= 4.0.0)
|
|
172
|
+
reline (0.4.3)
|
|
173
|
+
io-console (~> 0.5)
|
|
174
|
+
ruby2_keywords (0.0.5)
|
|
175
|
+
rubyzip (2.3.2)
|
|
176
|
+
stringio (3.1.0)
|
|
177
|
+
thor (1.3.1)
|
|
178
|
+
timeout (0.4.1)
|
|
179
|
+
tzinfo (2.0.6)
|
|
121
180
|
concurrent-ruby (~> 1.0)
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
actionpack (>= 4.0)
|
|
125
|
-
activesupport (>= 4.0)
|
|
126
|
-
sprockets (>= 3.0.0)
|
|
127
|
-
thor (1.0.1)
|
|
128
|
-
thread_safe (0.3.6)
|
|
129
|
-
tzinfo (1.2.7)
|
|
130
|
-
thread_safe (~> 0.1)
|
|
131
|
-
websocket-driver (0.7.3)
|
|
181
|
+
webrick (1.8.1)
|
|
182
|
+
websocket-driver (0.7.6)
|
|
132
183
|
websocket-extensions (>= 0.1.0)
|
|
133
184
|
websocket-extensions (0.1.5)
|
|
134
|
-
zeitwerk (2.
|
|
185
|
+
zeitwerk (2.6.13)
|
|
135
186
|
|
|
136
187
|
PLATFORMS
|
|
137
188
|
ruby
|
|
@@ -143,4 +194,4 @@ DEPENDENCIES
|
|
|
143
194
|
rake
|
|
144
195
|
|
|
145
196
|
BUNDLED WITH
|
|
146
|
-
2.1
|
|
197
|
+
2.4.1
|
|
@@ -41,5 +41,5 @@ Gem::Specification.new do |spec|
|
|
|
41
41
|
spec.add_development_dependency 'minitest', '~> 5.0'
|
|
42
42
|
spec.add_development_dependency 'rake'
|
|
43
43
|
spec.add_dependency 'rails', '> 5.2'
|
|
44
|
-
spec.add_dependency 'rubyzip', '<
|
|
44
|
+
spec.add_dependency 'rubyzip', ['>= 2.1.0', '< 4.0']
|
|
45
45
|
end
|
|
@@ -109,7 +109,7 @@ module ActiveStorage
|
|
|
109
109
|
Zip::OutputStream.open(temp_file) { |zos| }
|
|
110
110
|
|
|
111
111
|
# open the zip
|
|
112
|
-
Zip::File.open(temp_file.path,
|
|
112
|
+
Zip::File.open(temp_file.path, create: true) do |zip|
|
|
113
113
|
files.each do |filepath|
|
|
114
114
|
filepath_zip = filepath.sub(folderpath, '').sub(File::SEPARATOR, '')
|
|
115
115
|
zip.add filepath_zip, filepath
|
metadata
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: active_storage-send_zip
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.4.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Alexandre Rousseau
|
|
8
8
|
- Maxime `biximilien` Gauthier
|
|
9
|
-
autorequire:
|
|
9
|
+
autorequire:
|
|
10
10
|
bindir: exe
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date:
|
|
12
|
+
date: 2025-10-28 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: bundler
|
|
@@ -71,16 +71,22 @@ dependencies:
|
|
|
71
71
|
name: rubyzip
|
|
72
72
|
requirement: !ruby/object:Gem::Requirement
|
|
73
73
|
requirements:
|
|
74
|
+
- - ">="
|
|
75
|
+
- !ruby/object:Gem::Version
|
|
76
|
+
version: 2.1.0
|
|
74
77
|
- - "<"
|
|
75
78
|
- !ruby/object:Gem::Version
|
|
76
|
-
version: '
|
|
79
|
+
version: '4.0'
|
|
77
80
|
type: :runtime
|
|
78
81
|
prerelease: false
|
|
79
82
|
version_requirements: !ruby/object:Gem::Requirement
|
|
80
83
|
requirements:
|
|
84
|
+
- - ">="
|
|
85
|
+
- !ruby/object:Gem::Version
|
|
86
|
+
version: 2.1.0
|
|
81
87
|
- - "<"
|
|
82
88
|
- !ruby/object:Gem::Version
|
|
83
|
-
version: '
|
|
89
|
+
version: '4.0'
|
|
84
90
|
description: Add a `send_zip` method in your Rails controller to send a `.zip` file
|
|
85
91
|
containing one (or many) ActiveStorage object(s)
|
|
86
92
|
email:
|
|
@@ -89,6 +95,7 @@ executables: []
|
|
|
89
95
|
extensions: []
|
|
90
96
|
extra_rdoc_files: []
|
|
91
97
|
files:
|
|
98
|
+
- ".github/workflows/ci.yml"
|
|
92
99
|
- ".gitignore"
|
|
93
100
|
- ".travis.yml"
|
|
94
101
|
- CHANGELOG.yml
|
|
@@ -111,7 +118,7 @@ metadata:
|
|
|
111
118
|
allowed_push_host: https://rubygems.org/
|
|
112
119
|
homepage_uri: https://github.com/madeindjs/active_storage-send_zip
|
|
113
120
|
source_code_uri: https://github.com/madeindjs/active_storage-send_zip
|
|
114
|
-
post_install_message:
|
|
121
|
+
post_install_message:
|
|
115
122
|
rdoc_options: []
|
|
116
123
|
require_paths:
|
|
117
124
|
- lib
|
|
@@ -126,8 +133,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
126
133
|
- !ruby/object:Gem::Version
|
|
127
134
|
version: '0'
|
|
128
135
|
requirements: []
|
|
129
|
-
rubygems_version: 3.
|
|
130
|
-
signing_key:
|
|
136
|
+
rubygems_version: 3.4.19
|
|
137
|
+
signing_key:
|
|
131
138
|
specification_version: 4
|
|
132
139
|
summary: Create a zip from one or more Active Storage objects
|
|
133
140
|
test_files: []
|