jquery-fileapi-rails 0.0.4 → 0.0.5
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d6e7d7a02fc9195b9c00ea99cbe08b71ba39ba16
|
4
|
+
data.tar.gz: b2640ef34fbfe9c17dbdfed60fda8da498a57442
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 589587b2c9920265b9d526d2d082a016d8be9990449732d1f4cfef2b2b12b3730f7329eb41d40662d3ea4ce014a081d77bb7c0eb9f67a0715b0bb23dd077a043
|
7
|
+
data.tar.gz: 39ef1bccbb4d8f1850b3567f975ddd6fca55c0e378794a63c75a0abf5f5f796d19be49cdab42aedeeed31c9c93d6be91323dc329e76509a99433f78554444c84
|
data/README.md
CHANGED
@@ -1,6 +1,5 @@
|
|
1
|
-
#
|
2
|
-
|
3
|
-
TODO: Write a gem description
|
1
|
+
# jQuery Fileapi for Rails
|
2
|
+
[jQuery.FileAPI](https://github.com/RubaXa/jquery.fileapi) jQuery plugin for FileAPI (multiupload, image upload, crop, resize and etc.)
|
4
3
|
|
5
4
|
## Installation
|
6
5
|
|
@@ -16,9 +15,11 @@ Or install it yourself as:
|
|
16
15
|
|
17
16
|
$ gem install jquery-fileapi-rails
|
18
17
|
|
19
|
-
##
|
18
|
+
## Using the javascripts
|
19
|
+
|
20
|
+
Require jquery-fileapi in your app/assets/application.js file.
|
20
21
|
|
21
|
-
|
22
|
+
//= require jquery-fileapi
|
22
23
|
|
23
24
|
## Contributing
|
24
25
|
|
@@ -0,0 +1,14 @@
|
|
1
|
+
(function($, api){
|
2
|
+
_fileapi = jQuery.fn.fileapi;
|
3
|
+
_tpl = $.fn.fileapi.tpl
|
4
|
+
_version = $.fn.fileapi.version
|
5
|
+
|
6
|
+
jQuery.fn.fileapi = function(options, value){
|
7
|
+
token = $("meta[name='csrf-token']").attr("content");
|
8
|
+
if(options['data'] == undefined){options['data'] = {}};
|
9
|
+
options['data']['authenticity_token'] = token
|
10
|
+
return _fileapi.apply(this, arguments);
|
11
|
+
};
|
12
|
+
$.fn.fileapi.tpl = _tpl
|
13
|
+
$.fn.fileapi.version = _version
|
14
|
+
})(jQuery, FileAPI);
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jquery-fileapi-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Anton Taraev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-11-
|
11
|
+
date: 2013-11-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -38,6 +38,20 @@ dependencies:
|
|
38
38
|
- - '>='
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: jquery-rails
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - '>='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
41
55
|
description: jQuery.FileAPI for Rails Asset Pipeline
|
42
56
|
email:
|
43
57
|
- anti191@gmail.com
|
@@ -61,6 +75,7 @@ files:
|
|
61
75
|
- vendor/assets/javascripts/jquery-fileapi/FileAPI.min.js
|
62
76
|
- vendor/assets/javascripts/jquery-fileapi/index.js.erb
|
63
77
|
- vendor/assets/javascripts/jquery-fileapi/jquery.fileapi.js
|
78
|
+
- vendor/assets/javascripts/jquery-fileapi/owerride.js
|
64
79
|
homepage: https://github.com/headmade/jquery-fileapi-rails
|
65
80
|
licenses:
|
66
81
|
- MIT
|