material_raingular 0.2.3 → 0.2.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/assets/javascripts/extensions.coffee +3 -3
- data/lib/material_raingular/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 57a8bd254e059dca8de101dfa913522726a94868
|
4
|
+
data.tar.gz: 33d1c6a0a6328dc2b39bd7d6d08732f3e61c7637
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 71b0c138da02b62dde5bea387ffa7de8dcd899d0f058e5b9684b7f449c6b06ee56b4f4c6f6cd0d83b7732ab5c17529978ca80d60cb5a6c56ce970fbf4437369a
|
7
|
+
data.tar.gz: a4e3c2dc8633c39fc4e958f0fa89026c7e8a0abe002f6a005d22c81a1acd9cf23538c12bd7a4ac36a921ddfbe69f6359b762356eb3acb6f38e1ea569ed41de96
|
@@ -43,7 +43,7 @@ Array.prototype.sum = ->
|
|
43
43
|
total += parseFloat(i) if i
|
44
44
|
total
|
45
45
|
Array.prototype.includes = (entry)->
|
46
|
-
unless entry.hasOwnProperty('id')
|
46
|
+
unless (entry || {}).hasOwnProperty('id')
|
47
47
|
return @.indexOf(entry) > -1
|
48
48
|
@.pluck('id').includes(entry.id)
|
49
49
|
Array.prototype.drop = (entry)->
|
@@ -107,8 +107,8 @@ Array.prototype.find = (id) ->
|
|
107
107
|
index = @.pluck('id').indexOf(id)
|
108
108
|
@[index]
|
109
109
|
Array.prototype.index = (obj) ->
|
110
|
-
return unless obj.hasOwnProperty('id')
|
110
|
+
return unless (obj || {}).hasOwnProperty('id')
|
111
111
|
@.pluck('id').indexOf(obj.id)
|
112
112
|
Array.prototype.update = (obj) ->
|
113
|
-
return unless obj.hasOwnProperty('id')
|
113
|
+
return unless (obj || {}).hasOwnProperty('id')
|
114
114
|
@[@.index(obj)] = obj
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: material_raingular
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.3
|
4
|
+
version: 0.2.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Moody
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-11-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|