CanCanCanSee 0.1.6 → 0.1.8

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: 9e8e0a9db00636d7cdc756c8713193400f7ef3c2
4
- data.tar.gz: d5f716a972e8a89781e1668a79241cc053bbc757
3
+ metadata.gz: 86d21722071025a2fc592a06223de22c8deea06d
4
+ data.tar.gz: c26b027ed491f44a851aef4fb4056646038b4584
5
5
  SHA512:
6
- metadata.gz: 08f144f4698a0011340e658e974a530db4faba22d600f78e702878814c70b9739dcbbdd0010ecceb27e54b1829ae6d3cf892fdad031a0238a2f84ca92f0d857d
7
- data.tar.gz: df65d2135c983eb9f833b6b049d794476c6cd94ee59b8a1691f75feed900f320ca168b963214450bb0a9ef75841382c5f9c3450b2a0ef5c82c11d01cfd9c5341
6
+ metadata.gz: 76eed1e2c3cd149ba0e410b56c9bf2f91b78a159508876acc1d18470117ee859721008fb2a535076fe7948ff119c8ec1990e0c66a7b2952ab0addf418cc46991
7
+ data.tar.gz: be1b40685f55a70eb03d13568811a6947329e658348503e90e7aac694ba4be01b8651f096bd59d577749a390c839fdb1c527b2adc111218b09050a0b766fb93f
@@ -1,3 +1,3 @@
1
1
  module CanCanCanSee
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.8"
3
3
  end
data/lib/CanCanCanSee.rb CHANGED
@@ -128,12 +128,8 @@ module CanCanCanSee
128
128
 
129
129
  can_abilities.each do |can_ability|
130
130
  can_ability = can_ability[0]
131
- if can_ability.include?("do")
132
- begin
133
- can_ability = "#{/(.*) do/.match(can_ability)[1]} WITH BLOCK"
134
- rescue
135
- binding.pry
136
- end
131
+ if can_ability.include?(" do ")
132
+ can_ability = "#{/(.*) do/.match(can_ability)[1]} WITH BLOCK"
137
133
  end
138
134
  array_of_can << can_ability.gsub(/[^0-9a-z ]/i, '')
139
135
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: CanCanCanSee
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Schwaderer