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 +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: 445a6b25cdbcafb010a6ce69b8eb527acc112d4274c7fb45ab24ee40071c26cb
|
4
|
+
data.tar.gz: 9f71dd97938a4826a04cebc811664d0dcdb7feedd29cb7ec8e8f20c0cc3e3405
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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'
|
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.1
|
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-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.
|
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.
|
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
|