attache-rails 3.0.1 → 3.0.2

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: 6d147ab4a31056ade95ec4d221a48d5507eb031a
4
- data.tar.gz: d0c4ce378dc523037f907a45d4170398016d68eb
3
+ metadata.gz: 5042c7589e9875e183391c475ea3b4d6970e19ac
4
+ data.tar.gz: 3e37a79cafd9a14b88ca67891d3a5c5908e56cc8
5
5
  SHA512:
6
- metadata.gz: cd648b0fd5f2c8e13d7c2a70adfa16a1009cc5968b12b394d29b09871faa8e08a2cd2b5b48235061febf7667f9dcf5a73c7840f7541133a316205d7b4886cef5
7
- data.tar.gz: f9312648efeaa872dc5b638261a5673fb2a55c81a72082f19ecd77912106ee7275a5b8d0fedc82da6a6a07ab2853dfdc706c86f018f054c9ed5e1adecc89b266
6
+ metadata.gz: 42609278d232413d8b0ee468a83bc7b4e06e881e8ec3e39df8f65f1d3632642fd8a8a96d9aff3b97469d81491a1ff0f4ae4b012824f8295471994b1f1db4f44b
7
+ data.tar.gz: 0eb74392cf3b3c32637bb3815ffff93e20d645d13e447c5ce7ba6f48e11ba577db44fc38570127278bcb9b75eb40595fce4dce19251c07b4dbf1d365b10f82b5
data/README.md CHANGED
@@ -55,10 +55,10 @@ If you want to customize the file upload look and feel, define your own React `<
55
55
  //= require attache
56
56
  ```
57
57
 
58
- The `AttacheRails.upgrade_fileinputs` idempotent function is setup to find all the elements with `enable-attache` css class and upgrade them to use the direct upload & preview javascript. If you wish to re-run this function any other time, e.g. hookup the `cocoon:after-insert` event, you may
58
+ The `attache_file_input.AttacheFileInput` idempotent function is setup to find all the elements with `enable-attache` css class and upgrade them to use the direct upload & preview javascript. If you wish to re-run this function any other time, e.g. hookup the `cocoon:after-insert` event, you may
59
59
 
60
60
  ``` javascript
61
- $(document).on('cocoon:after-insert', AttacheRails.upgrade_fileinputs);
61
+ $(document).on('cocoon:after-insert', attache_file_input.AttacheFileInput);
62
62
  ```
63
63
 
64
64
 
@@ -44,7 +44,7 @@ var upgradeFileInput = exports.upgradeFileInput = function upgradeFileInput() {
44
44
 
45
45
  window.attache_cors_upload = { CORSUpload: _cors_upload.CORSUpload };
46
46
  window.attache_bootstrap3 = { Bootstrap3Header: _bootstrap.Bootstrap3Header, Bootstrap3FilePreview: _bootstrap.Bootstrap3FilePreview, Bootstrap3Placeholder: _bootstrap.Bootstrap3Placeholder };
47
- window.attache_file_input = { AttacheFileInput: _file_input.AttacheFileInput };
47
+ window.attache_file_input = { AttacheFileInput: _file_input.AttacheFileInput, upgradeFileInput: upgradeFileInput };
48
48
  $(document).on('page:change turbolinks:load', upgradeFileInput);
49
49
  $(upgradeFileInput);
50
50
 
@@ -1,5 +1,5 @@
1
1
  module Attache
2
2
  module Rails
3
- VERSION = "3.0.1"
3
+ VERSION = "3.0.2"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: attache-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1
4
+ version: 3.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - choonkeat
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-26 00:00:00.000000000 Z
11
+ date: 2016-08-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -150,7 +150,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
150
150
  version: '0'
151
151
  requirements: []
152
152
  rubyforge_project:
153
- rubygems_version: 2.4.6
153
+ rubygems_version: 2.5.1
154
154
  signing_key:
155
155
  specification_version: 4
156
156
  summary: Client lib to use attache server