dropzone_input 1.0.0 → 1.0.1

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: 79a73c081de8aecbec8eed02b344914bb476f96bc8e0c5ef642ebd585c2e9fb0
4
- data.tar.gz: 00b5c31b12ad6b2b1399572d62ea28777d269cd7b7e94204759064ab4e75541d
3
+ metadata.gz: c4f03cfcfa9114f7c9121c5c82a9d307ce69c9a0c5a27789e906ed1692969234
4
+ data.tar.gz: 3d90a1417cacd85afb1ecb3558b5bad166c38df14512bc35e23578fed8d618d8
5
5
  SHA512:
6
- metadata.gz: 16c3bbb17f48a414e2376170542d67408934155fd030ef33bfe8dcc39d2382ec6a4ab3e09692effc7a6de8b76fc91c65ec2f2a9f4b2bb6afa5c13c1c7c1fe6ea
7
- data.tar.gz: 0eabe09a33563b8b91621cf1cf3ed4e636afdf267b9134425dbc8820dbc4df5a5d429ee948df31688fb0eebc038c38f35ab06e1e77b62bea90223b78690ab09f
6
+ metadata.gz: 8466730e8d6a1fac07e1ed5b9131559958e9848ce8ea2136cea37ae9d825e41d9efb5a530dc3da4187fb3a6fce142dc2de7d65c170b320a2a8237f295c98cca0
7
+ data.tar.gz: 4715a836cd355621bfd9091c2dd493e479f2f65d24d79df264158e616cfbd4f53e9b9a49c2359bb5934b521241fb128ba6a8c24e4783f4314da60faa51a42d81
data/README.md CHANGED
@@ -6,6 +6,7 @@ A Rails helper and Stimulus Controller that makes adding dropzone to a Rails for
6
6
  <%= form_with(model: User.new) do |form| %>
7
7
  <%= dropzone form, :image,
8
8
  file_success_event: 'USER_FILE_UPLOADED',
9
+ file_progress_event: 'USER_FILE_PROGRESS',
9
10
  queue_complete_event: 'USER_FILE_UPLOAD_DONE' %>
10
11
  <% end %>
11
12
  ```
@@ -12,7 +12,16 @@ module DropzoneInput
12
12
  controller: 'dropzone',
13
13
  dropzone_accepted_files: ActiveStorage.variable_content_types.join(',')
14
14
  }
15
- %i( max_files max_file_size file_drop_event file_success_event queue_complete_event file_drop_id file_drop_over_id ).each do |key|
15
+ %i(
16
+ max_files
17
+ max_file_size
18
+ file_drop_event
19
+ file_progress_event
20
+ file_success_event
21
+ queue_complete_event
22
+ file_drop_id
23
+ file_drop_over_id
24
+ ).each do |key|
16
25
  data["dropzone_#{key}".to_sym] = options.delete(key) if options.key?(key)
17
26
  end
18
27
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module DropzoneInput
4
- VERSION = '1.0.0'
4
+ VERSION = '1.0.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dropzone_input
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Trae Robrock