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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: df739fdf0ca5bac9d3ebbc491e5061195741fb82
4
- data.tar.gz: 609bd11a694ca07ceed95ffc8862f6b6326740e6
3
+ metadata.gz: 57a8bd254e059dca8de101dfa913522726a94868
4
+ data.tar.gz: 33d1c6a0a6328dc2b39bd7d6d08732f3e61c7637
5
5
  SHA512:
6
- metadata.gz: 8cdc768afc76411520b91dd5995866e39cf4d2ad205c5e3d41d1b0d2e2db3d2aa04792d9d85c61756260cdefa534c55619224a6c2db74b5119c8f0c7ab6b251c
7
- data.tar.gz: 65bcabba1e1603b643b5329b05cd8345c029aad81221f8d687ec6b0d41b9284fcdc654b27228ea4d49bbff7e1db41eb3e04fd142b77b69ee57b1bffa50e4a466
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
@@ -1,3 +1,3 @@
1
1
  module MaterialRaingular
2
- VERSION = "0.2.3"
2
+ VERSION = "0.2.3.1"
3
3
  end
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-09-30 00:00:00.000000000 Z
11
+ date: 2016-11-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler