activestorage_legacy 0.1.2 → 0.2.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: a5a6b490a30383734d1d6eaf78d8c4f44c753666
4
- data.tar.gz: 259c1e82e4f1b6fa3cb4567c88ee68e5df0f1644
3
+ metadata.gz: 3743eea5d188c871799c439dfd9529e82e32bed2
4
+ data.tar.gz: 63797e07d995d5406ac8338618d030809bc0a7f9
5
5
  SHA512:
6
- metadata.gz: 8ee36a68f659c69563433d40a432d17f8cf1f58e7791161a0c17d437d8f0f8ff8183a0873bd9219773414b51fe6f7370899938b46b7f5938f12fa1f19737be9c
7
- data.tar.gz: 47da16c3057c67941e138701c33c1f27c74c22486c021c3a9210ccdb8d67e11b890177e8e2fcaa44aad858562a985c3835ddebdda1f788eb33210ada1ec6002a
6
+ metadata.gz: '0481f91a446cf828c5a5561f0d8f9b523d30070ea1e054aedb7e3cbe9eccf54646dba996830051c8f9b2d6c10dac872c8c68880549783fb78a6158c2434caa68'
7
+ data.tar.gz: da98fccea54febef22f48b6b496ed4b8fd5975709059ea5ae1472fedbee930f87bb81c9a24b6b23fbbe49728f20563792c4c3f1ed2ae774c174308081dbf059f
@@ -11,14 +11,13 @@ Gem::Specification.new do |s|
11
11
  s.authors = "David Heinemeier Hansson"
12
12
  s.email = "david@basecamp.com"
13
13
  s.summary = "Attach cloud and local files in Rails applications"
14
- s.homepage = "https://github.com/rails/activestorage"
14
+ s.homepage = "https://github.com/iagopiimenta/activestorage_legacy"
15
15
  s.license = "MIT"
16
16
 
17
17
  s.required_ruby_version = ">= 2.2.2"
18
18
 
19
19
  s.add_dependency "rails", ">= 3.2.22.4"
20
20
  s.add_dependency "sidekiq", ">= 4.2.0"
21
- s.add_dependency "mini_magick", ">= 4.0"
22
21
  s.add_dependency "marcel", ">= 1.0"
23
22
 
24
23
  s.files = `git ls-files`.split("\n")
@@ -2,17 +2,17 @@ module ActiveStorage
2
2
  # Temporary hack to overwrite the default file_field_tag and Form#file_field to accept a direct_upload: true option
3
3
  # that then gets replaced with a data-direct-upload-url attribute with the route prefilled.
4
4
  module FileFieldWithDirectUploadHelper
5
- def file_field_tag(name, options = {})
6
- text_field_tag(name, nil, convert_direct_upload_option_to_url(options.merge(type: :file)))
7
- end
8
-
9
- def file_field(object_name, method, options = {})
10
- ActionView::Helpers::Tags::FileField.new(object_name, method, self, convert_direct_upload_option_to_url(options)).render
11
- end
12
-
13
- private
14
- def convert_direct_upload_option_to_url(options)
15
- options.merge('data-direct-upload-url': options.delete(:direct_upload) ? rails_direct_uploads_url : nil).compact
16
- end
5
+ # def file_field_tag(name, options = {})
6
+ # text_field_tag(name, nil, convert_direct_upload_option_to_url(options.merge(type: :file)))
7
+ # end
8
+ #
9
+ # def file_field(object_name, method, options = {})
10
+ # ActionView::Helpers::Tags::FileField.new(object_name, method, self, convert_direct_upload_option_to_url(options)).render
11
+ # end
12
+ #
13
+ # private
14
+ # def convert_direct_upload_option_to_url(options)
15
+ # options.merge('data-direct-upload-url': options.delete(:direct_upload) ? rails_direct_uploads_url : nil).compact
16
+ # end
17
17
  end
18
18
  end
@@ -6,8 +6,8 @@ module ActiveStorage
6
6
 
7
7
  module VERSION
8
8
  MAJOR = 0
9
- MINOR = 1
10
- TINY = 2
9
+ MINOR = 2
10
+ TINY = 0
11
11
  PRE = nil
12
12
 
13
13
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activestorage_legacy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Heinemeier Hansson
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-06-30 00:00:00.000000000 Z
11
+ date: 2023-07-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -38,20 +38,6 @@ dependencies:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: 4.2.0
41
- - !ruby/object:Gem::Dependency
42
- name: mini_magick
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ">="
46
- - !ruby/object:Gem::Version
47
- version: '4.0'
48
- type: :runtime
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ">="
53
- - !ruby/object:Gem::Version
54
- version: '4.0'
55
41
  - !ruby/object:Gem::Dependency
56
42
  name: marcel
57
43
  requirement: !ruby/object:Gem::Requirement
@@ -205,7 +191,7 @@ files:
205
191
  - test/test_helper.rb
206
192
  - webpack.config.js
207
193
  - yarn.lock
208
- homepage: https://github.com/rails/activestorage
194
+ homepage: https://github.com/iagopiimenta/activestorage_legacy
209
195
  licenses:
210
196
  - MIT
211
197
  metadata: {}