dijon 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -0
- data/lib/dijon/rails/version.rb +1 -1
- data/vendor/assets/javascripts/dijon.js +6 -2
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bb69bdf0d770655dc375e3370864585f2a680934
|
4
|
+
data.tar.gz: 392cdb059a0040efb4f4deabc58e190dc12d5527
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d61d20bba08ea7aeb9cc7efcefe33a71425001779544ad29322c3bb3746a892304571a376cb17f27280ae758a4b07e042a932e4de420efe286c33f58f0cb317
|
7
|
+
data.tar.gz: 32cccf4ffc767656adfd732cd2c62b7847fdf53a86e4582ae0d72b1975608ee658e433018d8540429ab7f67a32f9e587376e694a8cdcb961201b7d4d961160cc
|
data/README.md
CHANGED
data/lib/dijon/rails/version.rb
CHANGED
@@ -4,7 +4,7 @@ function ajax(method, url, data, callback) {
|
|
4
4
|
method = method.toUpperCase();
|
5
5
|
var request = new XMLHttpRequest();
|
6
6
|
if (data) {
|
7
|
-
if (method == '
|
7
|
+
if (method == 'GET' && data) {
|
8
8
|
url += '?';
|
9
9
|
for (var p in data) url += p + '=' + encodeURIComponent(data[p]) + '&';
|
10
10
|
}
|
@@ -14,7 +14,7 @@ function ajax(method, url, data, callback) {
|
|
14
14
|
}
|
15
15
|
request.open(method, url, true);
|
16
16
|
if (callback) request.onload = function() {callback.call(this);};
|
17
|
-
if (method == '
|
17
|
+
if (method == 'GET' || method == 'DELETE' || !data) {
|
18
18
|
request.send();
|
19
19
|
}
|
20
20
|
else {
|
@@ -37,6 +37,10 @@ Element.prototype.getClass = function(name) {
|
|
37
37
|
return this.getElementsByClassName(name);
|
38
38
|
};
|
39
39
|
|
40
|
+
Element.prototype.getName = function(name) {
|
41
|
+
return this.getElementsByName(name);
|
42
|
+
};
|
43
|
+
|
40
44
|
Element.prototype.getTag = function(name) {
|
41
45
|
return this.getElementsByTagName(name);
|
42
46
|
};
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dijon
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dylan Waits
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-04-
|
11
|
+
date: 2015-04-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -24,7 +24,8 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '4.2'
|
27
|
-
description:
|
27
|
+
description: Simple performance-focused Javascript DOM extensions and utilities. For
|
28
|
+
those times when jQuery is too much.
|
28
29
|
email:
|
29
30
|
- dylan@waits.io
|
30
31
|
executables: []
|
@@ -86,9 +87,9 @@ require_paths:
|
|
86
87
|
- lib
|
87
88
|
required_ruby_version: !ruby/object:Gem::Requirement
|
88
89
|
requirements:
|
89
|
-
- - "
|
90
|
+
- - "~>"
|
90
91
|
- !ruby/object:Gem::Version
|
91
|
-
version: '
|
92
|
+
version: '2.1'
|
92
93
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
93
94
|
requirements:
|
94
95
|
- - ">="
|