CanCanCanSee 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/CanCanCanSee.rb +5 -2
- data/lib/CanCanCanSee/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9e8e0a9db00636d7cdc756c8713193400f7ef3c2
|
4
|
+
data.tar.gz: d5f716a972e8a89781e1668a79241cc053bbc757
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 08f144f4698a0011340e658e974a530db4faba22d600f78e702878814c70b9739dcbbdd0010ecceb27e54b1829ae6d3cf892fdad031a0238a2f84ca92f0d857d
|
7
|
+
data.tar.gz: df65d2135c983eb9f833b6b049d794476c6cd94ee59b8a1691f75feed900f320ca168b963214450bb0a9ef75841382c5f9c3450b2a0ef5c82c11d01cfd9c5341
|
data/lib/CanCanCanSee.rb
CHANGED
@@ -73,7 +73,6 @@ module CanCanCanSee
|
|
73
73
|
counter += 1
|
74
74
|
end
|
75
75
|
#BREAKING NOT PICKING UP REGISTRAR BEFORE HERE
|
76
|
-
binding.pry
|
77
76
|
#capture text of ability
|
78
77
|
# cannot_abilities = all_text[[" 'Assistant Registrar'"]].scan(/cannot(.*)($|[ do])/)
|
79
78
|
#=> [[" :create_csr, Vessel do |vessel|"], [" [:create, :destroy, :update], [SpecificCertificate, PortStateControl, Certificate, Violation,"], [" [:create, :destroy], Document do |d|"], [" :update, Document do |d|"], [" [:create], [GeneratedCertificates::GeneratedCertificate] do |b|"], [" :read, ExternalNotification do |e|"], [" :manual_verified, Vessel do |e|"], [" [:update], SpecificCertificate do |e|"], [" :manage_inspection_resources, Inspection do |inspection|"], [" [:update, :destroy], Vessel do |v|"], [" [:create], MinimumSafeManning do |msm|"], [" [:update], MinimumSafeManning do |msm|"], [" [:create], MlcShipowner do |ms|"], [" [:update, :destroy], MlcShipowner do |ms|"], [" :update_classification_society, Vessel"], [" :upload_original, [GeneratedCertificates::MlcCertificate, GeneratedCertificates::DocOfComplianceCertificate] do |c|"], [" :destroy, [GeneratedCertificates::MlcCertificate, GeneratedCertificates::DmlcCertificate] do |c|"]]
|
@@ -130,7 +129,11 @@ module CanCanCanSee
|
|
130
129
|
can_abilities.each do |can_ability|
|
131
130
|
can_ability = can_ability[0]
|
132
131
|
if can_ability.include?("do")
|
133
|
-
|
132
|
+
begin
|
133
|
+
can_ability = "#{/(.*) do/.match(can_ability)[1]} WITH BLOCK"
|
134
|
+
rescue
|
135
|
+
binding.pry
|
136
|
+
end
|
134
137
|
end
|
135
138
|
array_of_can << can_ability.gsub(/[^0-9a-z ]/i, '')
|
136
139
|
end
|
data/lib/CanCanCanSee/version.rb
CHANGED