filestack-rails 4.0.6 → 4.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: df27060e0b79e5d8e1211369caf7c78e5c24e595
4
- data.tar.gz: e898572530f16c1a0163484920da3306a9546ed2
3
+ metadata.gz: 1bad0153c8be3d93667eab2aaff101faa8314a04
4
+ data.tar.gz: 50f7223d85f45c9cca7119ea963d6985592c6715
5
5
  SHA512:
6
- metadata.gz: 9cafcf5b2e0da02126df2671746a75caf6ae73fcac9f3e8d695fb73524c80d28b5d864c57f668dafac68796c4a7510e2f44749b2af94c519b83e72dced398787
7
- data.tar.gz: '06269c6ec68ec86739e0f4471be581eba1c666abd0cb03f92ce884e92bc807487cd2fbcc5e513925066da92244c05d1a3f34df3e919c25a08ae8c5956fb38280'
6
+ metadata.gz: 4e277fa546e32a55e5191956fe99e7158142181bdb769213570871df6d8fe3ba7ba7487eaff64e757424885e6280b176fac8bcf1744c7fdce652e0839b766e59
7
+ data.tar.gz: ec8963c733fe13bf05033a55b8790e790868856a80ea2698be42dba604b12ce10a001ef74108b8a15a2b75728651be259c555c697d287679d72b82e711b89542
data/README.md CHANGED
@@ -1,4 +1,4 @@
1
- <p align="center"><img src="https://filestack.com/themes/filestack/assets/images/press-articles/color.svg" align="center" width="100"/></p>
1
+ <p align="center"><img src="logo.svg" align="center" width="100"/></p>
2
2
  <h1 align="center">Filestack::Rails SDK</h1>
3
3
  <p align="center">
4
4
  <a href="https://travis-ci.org/filestack/filestack-rails">
@@ -140,7 +140,13 @@ url = data.filesUploaded[0].url
140
140
  For version `v3`, you can add following callbacks: `onOpen`, `onClose`, `onFileUploadFinished`, `onFileSelected`, `onUploadStarted`, to `pickerOptions`.
141
141
 
142
142
  ```erb
143
- <%= filestack_picker_element 'button test', 'callbackForButton', id: 'someuniqueid', input_id: 'someuniqueinputid', pickerOptions: { onClose: 'callbackOnClose', onOpen: 'callbackOnOpen' } %>
143
+ <%= filestack_picker_element 'button test', 'callbackForButton', id: 'someuniqueid', input_id: 'someuniqueinputid', pickerOptions: { onClose: 'callbackOnClose', onOpen: 'callbackOnOpen', onFileUploadFinished: 'callbackOnFileUploadFinished' } %>
144
+ ```
145
+
146
+ where following callbacks `callbackOnClose`, `callbackOnOpen`, `callbackOnFileUploadFinished` are javascript function's name and refer to your own created function. For instance:
147
+
148
+ ```js
149
+ function onFileUploadFinishedCallback(data) {console.log(data);}
144
150
  ```
145
151
 
146
152
  ### Filestack Form Helper
@@ -14,7 +14,7 @@ class FilestackVersion
14
14
  end
15
15
 
16
16
  module FilestackRails
17
- VERSION = '4.0.6'
17
+ VERSION = '4.0.7'
18
18
 
19
19
  module Version
20
20
  def get_filestack_js_result(results)
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: 4.0.6
4
+ version: 4.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - filestack
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-06-26 00:00:00.000000000 Z
11
+ date: 2019-07-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails