filestack-rails 5.3.1 → 5.4.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
  SHA256:
3
- metadata.gz: 5552cc2bca2433a129013994ca3cc84a87a9921faf22bf1736546b3c07211f6e
4
- data.tar.gz: a3714640635244fe1dfc03b0789f2aea8492755037df7ba0eeff27979b3d77bc
3
+ metadata.gz: b8d4b048a84d95da691409af0cddb0fed8b84742f4727882959cc97ea1e4ffee
4
+ data.tar.gz: 24b8b3bdfd42fe57585c9a07d07e55b41f6bd8595a9b9947e81c8970ddd9788a
5
5
  SHA512:
6
- metadata.gz: 2e42dc9c415471c880f29c8df4ae26d9320c90bf31384777418a80e987210ea9a4f72dceaae758aedc3f11015b4486aad860a800d63daf60b3b2bcf0a67bd582
7
- data.tar.gz: bfd1fe7db0cb0f86017eb2a9bb38beabbc18e895adc71b93b5cefc52e76467bc230329c264a1eae12cd00fa409bf8f20caeb9415582f5fa8be2e21608a63c39b
6
+ metadata.gz: 32cf6fcbe623af0eed119d818eea4a916dd957612d315646ce44f5c4439e1a6de9c092131ac6d403d607180ed1ab8aba98bc435708e829c1bd06e5523f045376
7
+ data.tar.gz: be03c90191b725bdbc500cb6a246e4925b6d3fead3e4ef1fbed7ee2bf3070cf44ddcd256317b32ec189041e19fad7919831040cf391fd01dd7f18a9b0e21ed92
data/README.md CHANGED
@@ -119,7 +119,7 @@ You can also generate a new security object at any time, although this will only
119
119
  This is a generic button that can be added anywhere in your application and opens an instance of the File Picker. Once a user has chosen a file(s) and submitted, a callback will be executed, passing in the results. You can also pass in any options for the File Picker using the `pickerOptions` symbol:
120
120
 
121
121
  ```erb
122
- <%= filestack_picker_element 'button test', 'callbackForButton', id: 'someuniqueid', input_id: 'someuniqueinputid', pickerOptions: { 'fromSources' => 'facebook' } %>
122
+ <%= filestack_picker_element 'button test', 'callbackForButton', id: 'someuniqueid', input_id: 'someuniqueinputid', pickerOptions: { 'fromSources': 'facebook', 'maxFiles': 50 } %>
123
123
  ```
124
124
  File Picker options are exactly the same as in the Javscript SDK and can be found in the aforementioned documentation.
125
125
 
@@ -17,7 +17,7 @@ module FilestackRails
17
17
 
18
18
  form_field_callback_guts = 'const filestack_input_field' \
19
19
  "= document.getElementById('#{input_options[:id]}');" \
20
- 'filestack_input_field.value = data.filesUploaded[0].url;'
20
+ 'filestack_input_field.value = data.filesUploaded.map(e => e.url);'
21
21
 
22
22
  unless user_callback.nil?
23
23
  form_field_callback_guts = "#{form_field_callback_guts}#{user_callback}(data)"
@@ -1,3 +1,3 @@
1
1
  module FilestackRails
2
- VERSION = '5.3.1'
2
+ VERSION = '5.4.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: filestack-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.3.1
4
+ version: 5.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - filestack
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-10-20 00:00:00.000000000 Z
11
+ date: 2020-10-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails