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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 966ba7df8726b10f7eb60c06e8dcd853d83314df3f6b32864f6f664c6232bd3a
4
- data.tar.gz: 4de295c7dbf7b745e25479dc14cb6ea7e0820de91af42624dcc0e2d2c9ba2032
3
+ metadata.gz: 2e8bd7c03d00db97d4d1079809a0bc5776055f6d493b2199a6366c8bdb3a55e9
4
+ data.tar.gz: 77a509201b03aa9b7921c84f0c5f042a5f974136b9c9949fc4ecd286e9afe5ce
5
5
  SHA512:
6
- metadata.gz: b33e45e395f5afefa479cb379d415186180d8c0841eaa3eb7ac37a935e982e7ef726c1b1b1c5aa7fb789b975d78403b21028a5db9c0f6b01e238bdc2f2200737
7
- data.tar.gz: 0afb7ed7c8b781bde6b8673e6d5d2536e6891deb6c35959b18944d5ee2f3977ea3c39720a1de1a0c93d2311e4ee2d10ddbde0d94d2292f023ff2cecda4b1446d
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.3.4)
4
+ active_storage-send_zip (0.4.0)
5
5
  rails (> 5.2)
6
- rubyzip (< 3.0)
6
+ rubyzip (>= 2.1.0, < 4.0)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- actioncable (6.0.3.2)
12
- actionpack (= 6.0.3.2)
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
- actionmailbox (6.0.3.2)
16
- actionpack (= 6.0.3.2)
17
- activejob (= 6.0.3.2)
18
- activerecord (= 6.0.3.2)
19
- activestorage (= 6.0.3.2)
20
- activesupport (= 6.0.3.2)
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
- actionmailer (6.0.3.2)
23
- actionpack (= 6.0.3.2)
24
- actionview (= 6.0.3.2)
25
- activejob (= 6.0.3.2)
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
- rails-dom-testing (~> 2.0)
28
- actionpack (6.0.3.2)
29
- actionview (= 6.0.3.2)
30
- activesupport (= 6.0.3.2)
31
- rack (~> 2.0, >= 2.0.8)
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.0)
34
- rails-html-sanitizer (~> 1.0, >= 1.2.0)
35
- actiontext (6.0.3.2)
36
- actionpack (= 6.0.3.2)
37
- activerecord (= 6.0.3.2)
38
- activestorage (= 6.0.3.2)
39
- activesupport (= 6.0.3.2)
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 (6.0.3.2)
42
- activesupport (= 6.0.3.2)
54
+ actionview (7.1.3.2)
55
+ activesupport (= 7.1.3.2)
43
56
  builder (~> 3.1)
44
- erubi (~> 1.4)
45
- rails-dom-testing (~> 2.0)
46
- rails-html-sanitizer (~> 1.1, >= 1.2.0)
47
- activejob (6.0.3.2)
48
- activesupport (= 6.0.3.2)
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 (6.0.3.2)
51
- activesupport (= 6.0.3.2)
52
- activerecord (6.0.3.2)
53
- activemodel (= 6.0.3.2)
54
- activesupport (= 6.0.3.2)
55
- activestorage (6.0.3.2)
56
- actionpack (= 6.0.3.2)
57
- activejob (= 6.0.3.2)
58
- activerecord (= 6.0.3.2)
59
- marcel (~> 0.3.1)
60
- activesupport (6.0.3.2)
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
- i18n (>= 0.7, < 2)
63
- minitest (~> 5.1)
64
- tzinfo (~> 1.1)
65
- zeitwerk (~> 2.2, >= 2.2.2)
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.1.6)
88
+ concurrent-ruby (1.2.3)
89
+ connection_pool (2.4.1)
68
90
  crass (1.0.6)
69
- erubi (1.9.0)
70
- globalid (0.4.2)
71
- activesupport (>= 4.2.0)
72
- i18n (1.8.5)
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
- loofah (2.6.0)
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.5.9)
77
- mail (2.7.1)
105
+ nokogiri (>= 1.12.0)
106
+ mail (2.8.1)
78
107
  mini_mime (>= 0.1.1)
79
- marcel (0.3.3)
80
- mimemagic (~> 0.3.2)
81
- method_source (1.0.0)
82
- mimemagic (0.3.5)
83
- mini_mime (1.0.2)
84
- mini_portile2 (2.4.0)
85
- minitest (5.14.1)
86
- nio4r (2.5.2)
87
- nokogiri (1.10.10)
88
- mini_portile2 (~> 2.4.0)
89
- rack (2.2.3)
90
- rack-test (1.1.0)
91
- rack (>= 1.0, < 3)
92
- rails (6.0.3.2)
93
- actioncable (= 6.0.3.2)
94
- actionmailbox (= 6.0.3.2)
95
- actionmailer (= 6.0.3.2)
96
- actionpack (= 6.0.3.2)
97
- actiontext (= 6.0.3.2)
98
- actionview (= 6.0.3.2)
99
- activejob (= 6.0.3.2)
100
- activemodel (= 6.0.3.2)
101
- activerecord (= 6.0.3.2)
102
- activestorage (= 6.0.3.2)
103
- activesupport (= 6.0.3.2)
104
- bundler (>= 1.3.0)
105
- railties (= 6.0.3.2)
106
- sprockets-rails (>= 2.0.0)
107
- rails-dom-testing (2.0.3)
108
- activesupport (>= 4.2.0)
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.3.0)
111
- loofah (~> 2.3)
112
- railties (6.0.3.2)
113
- actionpack (= 6.0.3.2)
114
- activesupport (= 6.0.3.2)
115
- method_source
116
- rake (>= 0.8.7)
117
- thor (>= 0.20.3, < 2.0)
118
- rake (13.0.1)
119
- rubyzip (2.3.0)
120
- sprockets (4.0.2)
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
- rack (> 1, < 3)
123
- sprockets-rails (3.2.1)
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.4.0)
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.4
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', '< 3.0'
44
+ spec.add_dependency 'rubyzip', ['>= 2.1.0', '< 4.0']
45
45
  end
@@ -3,6 +3,6 @@
3
3
  module ActiveStorage
4
4
  module SendZip
5
5
  # The version of this gem
6
- VERSION = '0.3.4'
6
+ VERSION = '0.4.0'
7
7
  end
8
8
  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, Zip::File::CREATE) do |zip|
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.3.4
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: 2020-07-30 00:00:00.000000000 Z
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: '3.0'
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: '3.0'
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.0.8
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: []