filestack-rails 5.3.0 → 5.5.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: 57781b6e2ebf56ea89b081d980cabb546988db87d5c64a4665119936ce9b961e
4
- data.tar.gz: 5fa1201d2a7d62db01233c4ceab7d2e3fba046604258e42c12e8fe35a2571472
3
+ metadata.gz: 445a6b25cdbcafb010a6ce69b8eb527acc112d4274c7fb45ab24ee40071c26cb
4
+ data.tar.gz: 9f71dd97938a4826a04cebc811664d0dcdb7feedd29cb7ec8e8f20c0cc3e3405
5
5
  SHA512:
6
- metadata.gz: 83d3041077e970fc428aed7767b873f8834310149c50070c2a70a6e9c64ca0ad0c93cccfdf0253636c082d2fcb214bae203c2c5a70250ea3b41652812e7cb25b
7
- data.tar.gz: da87059aa68c5c4c7daea24185d588b4fe6a33d594bb20c4b6c7faf90ecc7c250f622aaef9520c6934009171a8f054d37db5c254b22cd6f0707761e31ce0de6f
6
+ metadata.gz: 9820528c8a3918c02fb0fd3785f7e1c79a4f23e3ab27ff91803f9ecfb3d38ed0a963e806f522dae15fee893ba5d2a78a30d91c4b5ab05d4d5620ebf9a2f301dd
7
+ data.tar.gz: 497757497dfa4cc37c01c13184a83adb85dd696bc38cbe7a2e4ea2afe818683e9d571810d57a54d787e26febf82a3acdcddb9f6e927ff8d1dc35fabf5856e5b6
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.0'
2
+ VERSION = '5.5.1'
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.0
4
+ version: 5.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - filestack
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-09-24 00:00:00.000000000 Z
11
+ date: 2021-05-05 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.6.5
33
+ version: '2.9'
34
+ - - ">="
35
+ - !ruby/object:Gem::Version
36
+ version: 2.9.2
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.6.5
43
+ version: '2.9'
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: 2.9.2
41
47
  - !ruby/object:Gem::Dependency
42
48
  name: coveralls
43
49
  requirement: !ruby/object:Gem::Requirement