CanCanCanSee 0.1.5 → 0.1.6

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e220cd57c7dc83512abac602b890c74047e239a5
4
- data.tar.gz: 7b112a45260ee474c6f3096bf460edecaac7bf26
3
+ metadata.gz: 9e8e0a9db00636d7cdc756c8713193400f7ef3c2
4
+ data.tar.gz: d5f716a972e8a89781e1668a79241cc053bbc757
5
5
  SHA512:
6
- metadata.gz: a2ccc0e843987d8b7aaa26236a2dbc4d8fd4ac3519b2d979213edee2fb9d79926bce4259d1e2ae2703cd6175640fc8e5396726a5871fb64be04bbe104a5519d5
7
- data.tar.gz: 01e2e6a91b35f9d7cc8d6f54267a1bb7d53fe692a5ac6d4aadf012392bb0189c130ad9e21ba46c6b8964bf24112983bfadab5b7855f68cbb0148635baaff653f
6
+ metadata.gz: 08f144f4698a0011340e658e974a530db4faba22d600f78e702878814c70b9739dcbbdd0010ecceb27e54b1829ae6d3cf892fdad031a0238a2f84ca92f0d857d
7
+ data.tar.gz: df65d2135c983eb9f833b6b049d794476c6cd94ee59b8a1691f75feed900f320ca168b963214450bb0a9ef75841382c5f9c3450b2a0ef5c82c11d01cfd9c5341
@@ -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
- can_ability = "#{/(.*) do/.match(can_ability)[1]} WITH BLOCK"
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
@@ -1,3 +1,3 @@
1
1
  module CanCanCanSee
2
- VERSION = "0.1.5"
2
+ VERSION = "0.1.6"
3
3
  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.5
4
+ version: 0.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Schwaderer