jextend 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9dd35310c27ca4ff6232164ae64480508b7aa6d0
|
4
|
+
data.tar.gz: 0efa8b8768235bc2894e7714c9f2bff1f44fd653
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b16560b4991cbe64edcfc63dd7feccfecfa435bbd59f9df291b52d2c9c0dc22e1904d104f74e4d3e1a0fcac576db31143aae828c37efd15e880b8863c1683b79
|
7
|
+
data.tar.gz: a2066936beff1b661301102d831b64fa43a87f6f1af3428a1133ab735a453c16b8294b44b6f63861fad18eefaeb22340d2a5bf8ad8d35accd29025eb3463aa8d
|
data/.gitignore
CHANGED
data/lib/jextend/version.rb
CHANGED
@@ -4,7 +4,7 @@ Math.n_pow = function(number,n){
|
|
4
4
|
result = result*number;
|
5
5
|
}
|
6
6
|
return result;
|
7
|
-
}
|
7
|
+
};
|
8
8
|
|
9
9
|
Math.decimal_point = function(str,point_number){
|
10
10
|
var float = parseFloat(str);
|
@@ -13,4 +13,4 @@ Math.decimal_point = function(str,point_number){
|
|
13
13
|
}
|
14
14
|
var point = Math.n_pow(10,point_number);
|
15
15
|
return Math.round(float * point) / point;
|
16
|
-
}
|
16
|
+
};
|
@@ -0,0 +1,22 @@
|
|
1
|
+
window.location.params = function () {
|
2
|
+
var map = new Array();
|
3
|
+
|
4
|
+
var url = window.location.search;
|
5
|
+
if (!url || url.length <= 0) {
|
6
|
+
return map;
|
7
|
+
}
|
8
|
+
|
9
|
+
var pos = url.indexOf('?');
|
10
|
+
if (-1 == pos) {
|
11
|
+
return map;
|
12
|
+
}
|
13
|
+
var paras = url.substring(pos + 1);
|
14
|
+
paras = paras.split('&');
|
15
|
+
for (var n = 0; n < paras.length; n++) {
|
16
|
+
var pos = paras[n].indexOf('=');
|
17
|
+
var key = paras[n].substring(0, pos);
|
18
|
+
var value = (pos + 1 ) >= paras[n].length ? "" : paras[n].substring(pos + 1);
|
19
|
+
map[key] = value;
|
20
|
+
}
|
21
|
+
return map;
|
22
|
+
};
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jextend
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- saxer
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-04-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -77,6 +77,7 @@ files:
|
|
77
77
|
- vendor/assets/javascripts/jextend/date.js
|
78
78
|
- vendor/assets/javascripts/jextend/math.js
|
79
79
|
- vendor/assets/javascripts/jextend/string.js
|
80
|
+
- vendor/assets/javascripts/jextend/window.location.params.js
|
80
81
|
homepage: https://github.com/mumaoxi/jextend-rails
|
81
82
|
licenses:
|
82
83
|
- MIT
|
@@ -98,7 +99,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
98
99
|
version: '0'
|
99
100
|
requirements: []
|
100
101
|
rubyforge_project:
|
101
|
-
rubygems_version: 2.4.
|
102
|
+
rubygems_version: 2.4.3
|
102
103
|
signing_key:
|
103
104
|
specification_version: 4
|
104
105
|
summary: javascript extend
|