jquery-slideMatrix-rails 0.0.1 → 0.0.3
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.
data/Rakefile
CHANGED
@@ -1,4 +1,4 @@
|
|
1
1
|
task :import do
|
2
|
-
`curl https://raw.github.com/c00lryguy/jquery
|
3
|
-
`curl https://raw.github.com/c00lryguy/jquery
|
2
|
+
`curl https://raw.github.com/c00lryguy/jquery-slideMatrix/master/lib/jquery.slideMatrix.js > vendor/assets/javascripts/jquery.slideMatrix.js`
|
3
|
+
`curl https://raw.github.com/c00lryguy/jquery-slideMatrix/master/lib/jquery.slideMatrix.css > vendor/assets/stylesheets/jquery.slideMatrix.css`
|
4
4
|
end
|
@@ -1,4 +1,11 @@
|
|
1
1
|
// Generated by CoffeeScript 1.3.1
|
2
|
+
|
3
|
+
/*
|
4
|
+
jquery.slideMatrix
|
5
|
+
(c) 2012 Ryan Lewis <ryanscottlewis@gmail.com> MIT License
|
6
|
+
*/
|
7
|
+
|
8
|
+
|
2
9
|
(function() {
|
3
10
|
|
4
11
|
(function($, window) {
|
@@ -19,6 +26,10 @@
|
|
19
26
|
} else if (typeof argument === 'object') {
|
20
27
|
nextPos.x = argument.x || 0;
|
21
28
|
nextPos.y = argument.y || 0;
|
29
|
+
} else if (argument instanceof jQuery) {
|
30
|
+
nextElmData = argument.data();
|
31
|
+
nextPos.x = nextElmData.x || 0;
|
32
|
+
nextPos.y = nextElmData.y || 0;
|
22
33
|
}
|
23
34
|
nextItem = this.find(".slideMatrixItem[data-x='" + nextPos.x + "'][data-y='" + nextPos.y + "']");
|
24
35
|
if (nextItem != null) {
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jquery-slideMatrix-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-07-10 00:00:00.000000000Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: railties
|
16
|
-
requirement: &
|
16
|
+
requirement: &70275912747780 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -24,10 +24,10 @@ dependencies:
|
|
24
24
|
version: '5.0'
|
25
25
|
type: :runtime
|
26
26
|
prerelease: false
|
27
|
-
version_requirements: *
|
27
|
+
version_requirements: *70275912747780
|
28
28
|
- !ruby/object:Gem::Dependency
|
29
29
|
name: jquery-rails
|
30
|
-
requirement: &
|
30
|
+
requirement: &70275912747060 !ruby/object:Gem::Requirement
|
31
31
|
none: false
|
32
32
|
requirements:
|
33
33
|
- - ~>
|
@@ -35,7 +35,7 @@ dependencies:
|
|
35
35
|
version: '2.0'
|
36
36
|
type: :runtime
|
37
37
|
prerelease: false
|
38
|
-
version_requirements: *
|
38
|
+
version_requirements: *70275912747060
|
39
39
|
description: This gem provides jquery-slideMatrix assets for your Rails 3 application.
|
40
40
|
email:
|
41
41
|
- c00lryguy@gmail.com
|