filestack-rails 5.3.1 → 5.5.2

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: 3891ffae68fc4a5d34adadef88373d2579a426b9326c20e25dce3c5aa50bbc1f
4
+ data.tar.gz: 01032ee1c312920df4fddc47ae384d438c3fc15a428b1260127ff2dce880d10b
5
5
  SHA512:
6
- metadata.gz: 2e42dc9c415471c880f29c8df4ae26d9320c90bf31384777418a80e987210ea9a4f72dceaae758aedc3f11015b4486aad860a800d63daf60b3b2bcf0a67bd582
7
- data.tar.gz: bfd1fe7db0cb0f86017eb2a9bb38beabbc18e895adc71b93b5cefc52e76467bc230329c264a1eae12cd00fa409bf8f20caeb9415582f5fa8be2e21608a63c39b
6
+ metadata.gz: f77b3c67837ce1b8a9bc80ef97b3e8efda589679809873cba81f74fa123f816ba0191199f5989d3b9da2de46eb51025329e085425748c2f2cc0d496d445204a3
7
+ data.tar.gz: 5c49077c0addf43755b7287a1a2f5ebea56a8f4d947617a3c0d9b9c63a2d7e29cb3df24d6d4e5d8a38c01ebd16ae816c5aa9ed824d9d202bb1845e084a3929e5
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.5.2'
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.5.2
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: 2021-06-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -30,14 +30,20 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 2.8.1
33
+ version: '2.9'
34
+ - - ">="
35
+ - !ruby/object:Gem::Version
36
+ version: 2.9.3
34
37
  type: :runtime
35
38
  prerelease: false
36
39
  version_requirements: !ruby/object:Gem::Requirement
37
40
  requirements:
38
41
  - - "~>"
39
42
  - !ruby/object:Gem::Version
40
- version: 2.8.1
43
+ version: '2.9'
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: 2.9.3
41
47
  - !ruby/object:Gem::Dependency
42
48
  name: coveralls
43
49
  requirement: !ruby/object:Gem::Requirement