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 +4 -4
- data/README.md +1 -1
- data/app/helpers/filestack_rails/form_helper.rb +1 -1
- data/lib/filestack_rails/version.rb +1 -1
- metadata +10 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3891ffae68fc4a5d34adadef88373d2579a426b9326c20e25dce3c5aa50bbc1f
|
4
|
+
data.tar.gz: 01032ee1c312920df4fddc47ae384d438c3fc15a428b1260127ff2dce880d10b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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'
|
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
|
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)"
|
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.
|
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:
|
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.
|
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.
|
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
|