happy_path 0.0.5 → 0.0.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,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MDc1N2YxODBhNjgxYTllM2UyYjk2NTk4ZWI3MjllMjdjYzU1ZmQwNA==
4
+ MzFmNWRlY2M5YjI0ZWMxODU2ODgwYzMxZTk3NTA5YmMzNTZiZThhNw==
5
5
  data.tar.gz: !binary |-
6
- NWRlOTAzY2MyZjk0NzE0NjNkZTk3NTEwOGU2YTNlNzRhZDJjNmIxMg==
6
+ ZDM2NTQ3Y2UyNGE1NzBmNmEzMzUwOTFkMjMwNGZiODc3MmFjNDc0Yw==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MWQyY2I0ZTg0ZDA1YTc0NzU0ZWUwMmI2Y2RiODdlNDMyMTk4MjM1MzlmZDNk
10
- MzI0ZjhjNzkzMTg1ZjA0MWQ5ZTQzNzVmMzVlNzRkYTQ3MGVkNjNiZmMwNDBi
11
- ZWNjNTYwNjc0MjU5NzY4OTA3OTFjMzUwNWFkNTQ4OTk1ZTRmN2Y=
9
+ OWZiOTc3YzdjNjRlNjFlOTdmMzgzMWIyNWNkMzE2M2FmZTE2Y2IxNzI2ODEy
10
+ ZWUxYzU3ZmFkY2M3NWJjYjI4ZDM1NDk2ZTNmMmY3MmE5OTg3MTIxN2Y0ZjNm
11
+ NjNmYmY3NzI1YTZkY2IyNTg4NTRlMjZmYzNkNzgyOWE4NzY5ZjA=
12
12
  data.tar.gz: !binary |-
13
- N2M0MzYzMGZlODYwZWIwNTI5Y2Y4MTcxZTA3M2I5NWIzYjQ1YmY1NTFjZTFm
14
- NTQzOTVkOGIyZDdlMmFmOTMwMzUzYjVhOTAyN2M5M2Q0OGUwYjZiM2ZhZTg3
15
- NmVmYTFiZDQ5ZTFiYzdiMzQzZDRhYjJlZDA5ZDYzYzlhMWE3MzU=
13
+ ZGM4YTk0YzkyNjdmZDJlNmQ0NTY3ZTI5MGMwZmJlMjIyYTU0MTRmMzBmYmEz
14
+ YjNhYWMwODg5MDQ5OTdiZjJjNzUxYzViOGQ4ZWEwZWFhMDc2YTZkZjlkNjA4
15
+ MzA2YmI0YWJlMGI2MTU5YTViZWJjOTY4ZWJmY2ZiNDM0YmQ3OWU=
@@ -1,3 +1,3 @@
1
1
  module HappyPath
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
data/lib/happy_path.rb CHANGED
@@ -3,7 +3,7 @@ module HappyPath
3
3
 
4
4
  def setup_happy_path
5
5
  rescue_from ActiveRecord::RecordNotFound do |e|
6
- raise e unless class_constant = controller_name.classify.try(:constantize) && self.respond_to?(:happy_paths) && HappyPath::PATHS.include?(params[:id]) && !class_constant.count.zero?
6
+ raise e unless controller_name.classify.constantize rescue nil && self.respond_to?(:happy_paths) && HappyPath::PATHS.include?(params[:id]) && !class_constant.count.zero?
7
7
  self.happy_paths(e, class_constant)
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: happy_path
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - danReynolds