dropzone_input 2.0.0 → 2.0.4

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
  SHA256:
3
- metadata.gz: b769e1c9e608c81220cdf2347457b4a473c76e0fd7b1ee73deb4e0d90d38cf1d
4
- data.tar.gz: bf793f5d943d8b0b2d5e140b2fb0546ee9dac55dcc8da7897f9d5083982a0a93
3
+ metadata.gz: a9395e6d6add2aaa38fc8cb68b9fef859fc4eadaddf03556eb34504fa86d1e6c
4
+ data.tar.gz: 52b9edc7c8aef7baa3e2939ceb0ad257fcc9d5c8385ced9a2beb70bafc80c562
5
5
  SHA512:
6
- metadata.gz: ba69bbb62d9950ac32a2f6bcc4c0e6436be0ba76e1602cabe2992f7919ffd88046a20a4839cd041694a86dad1a801183949f7db7c0b041beff04b06944148a34
7
- data.tar.gz: 89701e527dbe42d752ca1a444c0915246f21c71a516075a481fbe3b2aa5b3c4d5d3654df13384d61b4b2e445b0669f87918d11696dc9664959ebc781120565f3
6
+ metadata.gz: 715ff71bd106da50de50f1f8531769f0118787925eca13b9a83d30399076272b1c3eaaaecbdefe07299e2d3cacf589aa3c9002b368056eb6b0f59f72596f1081
7
+ data.tar.gz: 623e5250a49bd7123e8d2d198980d142d7294b57a5a7baeab62ba94e7d37da96def6cee089ad262650dd5695edc4c407c772768aaa270370398fde42cd0083ad
@@ -10,7 +10,7 @@ module DropzoneInput
10
10
 
11
11
  data = {
12
12
  controller: 'dropzone',
13
- dropzone_accepted_files: ActiveStorage.variable_content_types.join(',')
13
+ dropzone_accepted_files: options.delete(:accepted_files) || ActiveStorage.variable_content_types.join(',')
14
14
  }
15
15
  %i(
16
16
  croppable
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DropzoneInput
4
- VERSION = '2.0.0'
4
+ VERSION = '2.0.4'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dropzone_input
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Trae Robrock
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-11 00:00:00.000000000 Z
11
+ date: 2021-12-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '5'
20
20
  - - "<"
21
21
  - !ruby/object:Gem::Version
22
- version: '7'
22
+ version: '8'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '5'
30
30
  - - "<"
31
31
  - !ruby/object:Gem::Version
32
- version: '7'
32
+ version: '8'
33
33
  description: A rails helper to easily add Dropzone to forms.
34
34
  email:
35
35
  - trobrock@gmail.com
@@ -65,7 +65,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
65
65
  - !ruby/object:Gem::Version
66
66
  version: '0'
67
67
  requirements: []
68
- rubygems_version: 3.1.4
68
+ rubygems_version: 3.1.6
69
69
  signing_key:
70
70
  specification_version: 4
71
71
  summary: A rails helper to easily add Dropzone to forms.