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: 2344c6b778c19b92987287199380829193b34412
4
- data.tar.gz: df17a1133caeaa539daa251bfd62c4e9ddfa8db4
3
+ metadata.gz: 9dd35310c27ca4ff6232164ae64480508b7aa6d0
4
+ data.tar.gz: 0efa8b8768235bc2894e7714c9f2bff1f44fd653
5
5
  SHA512:
6
- metadata.gz: faa62ee530f9372c0cba914b875a7e683ac7d7448e76d060d48adae4bdb40c9865416fbee971217f455c5513d421542a1b1af25c16486c229163b5607e329922
7
- data.tar.gz: 69e66cb499291365e56e31ea0e9d39410683ba1c7c1c4fc400bb4198fe450fcf28d24a88b40d4e261647ddbf310987948e0b6ebafecb2eb2e91b4e77796efef7
6
+ metadata.gz: b16560b4991cbe64edcfc63dd7feccfecfa435bbd59f9df291b52d2c9c0dc22e1904d104f74e4d3e1a0fcac576db31143aae828c37efd15e880b8863c1683b79
7
+ data.tar.gz: a2066936beff1b661301102d831b64fa43a87f6f1af3428a1133ab735a453c16b8294b44b6f63861fad18eefaeb22340d2a5bf8ad8d35accd29025eb3463aa8d
data/.gitignore CHANGED
@@ -8,6 +8,7 @@
8
8
  /test/tmp/
9
9
  /test/version_tmp/
10
10
  /tmp/
11
+ /.idea/
11
12
 
12
13
  ## Specific to RubyMotion:
13
14
  .dat*
@@ -1,3 +1,3 @@
1
1
  module Jextend
2
- VERSION = "0.1.2"
2
+ VERSION = "0.1.3"
3
3
  end
@@ -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
+ };
@@ -2,3 +2,4 @@
2
2
  //= require jextend/date
3
3
  //= require jextend/array
4
4
  //= require jextend/math
5
+ //= require jextend/window.location.params
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.2
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: 2015-09-15 00:00:00.000000000 Z
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.6
102
+ rubygems_version: 2.4.3
102
103
  signing_key:
103
104
  specification_version: 4
104
105
  summary: javascript extend