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: 11755b0661932b47423bca3ed68d3b0f5908d4d7
4
- data.tar.gz: ccef54fc36595c9a5e514a9ff49c03b14d591a5d
3
+ metadata.gz: d6e7d7a02fc9195b9c00ea99cbe08b71ba39ba16
4
+ data.tar.gz: b2640ef34fbfe9c17dbdfed60fda8da498a57442
5
5
  SHA512:
6
- metadata.gz: 46d1cfff4ba8d4028779e2bb3b45762c210e47bafd24a6defa8d10aae82e98f05228de70bb9c9f4eabbf38a5852751b89e48043499c5ccc1794c5d3fc6dc242e
7
- data.tar.gz: 480d1cf2235a45c1862b71f037184a6f200462c45f2b4334fb025884f4bc00250a5db95cc2407ab15677aa70fecc9602f48bd711185282afbcb04fc9850d7246
6
+ metadata.gz: 589587b2c9920265b9d526d2d082a016d8be9990449732d1f4cfef2b2b12b3730f7329eb41d40662d3ea4ce014a081d77bb7c0eb9f67a0715b0bb23dd077a043
7
+ data.tar.gz: 39ef1bccbb4d8f1850b3567f975ddd6fca55c0e378794a63c75a0abf5f5f796d19be49cdab42aedeeed31c9c93d6be91323dc329e76509a99433f78554444c84
data/README.md CHANGED
@@ -1,6 +1,5 @@
1
- # Jquery::Fileapi::Rails
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
- ## Usage
18
+ ## Using the javascripts
19
+
20
+ Require jquery-fileapi in your app/assets/application.js file.
20
21
 
21
- TODO: Write usage instructions here
22
+ //= require jquery-fileapi
22
23
 
23
24
  ## Contributing
24
25
 
@@ -20,4 +20,5 @@ Gem::Specification.new do |spec|
20
20
 
21
21
  spec.add_development_dependency "bundler", "~> 1.3"
22
22
  spec.add_development_dependency "rake"
23
+ spec.add_development_dependency "jquery-rails"
23
24
  end
@@ -1,7 +1,7 @@
1
1
  module Jquery
2
2
  module Fileapi
3
3
  module Rails
4
- VERSION = "0.0.4"
4
+ VERSION = "0.0.5"
5
5
  end
6
6
  end
7
7
  end
@@ -2,4 +2,5 @@
2
2
  //= require jquery-fileapi/FileAPI.min
3
3
  //= require jquery-fileapi/FileAPI.exif
4
4
  //= require jquery-fileapi/jquery.fileapi
5
+ //= require jquery-fileapi/owerride
5
6
  window.FileAPI = {staticPath: '/FileAPI/'};
@@ -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
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-01 00:00:00.000000000 Z
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