chusaku 1.5.0 → 1.5.1

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
  SHA256:
3
- metadata.gz: 34e6c3d99896a2ad9665c71b82575bb40491b8bcafa507560deeda2bf33b612b
4
- data.tar.gz: 0ddf816adf5f24ccd5eb29d186db0e4014cd6c349fd11b950b268dd35154c3df
3
+ metadata.gz: 9ea21f48d0e23b8f39bcf7904961102f8e18af39f88750b2cc6fb18e10911207
4
+ data.tar.gz: 4e587c49d1291555e8c083d68dc454ea918bf58dad233ab959f34ddef068cb5e
5
5
  SHA512:
6
- metadata.gz: fdec79c08e8a227a4e527c4325281a5499ecbbc3a511d9793b089da831aca609d260a60c013b770a1f2b49eb0cf643b222584af25f4f0d7ec719f2915f89a3a1
7
- data.tar.gz: f48ff79a5d78e5e7a888f99f6e19e5e2a0e11e760f1085a0ec75c17b6f4375571cf48ab52ff9781d52cf6948131ea993bb6cc096ab63eda762df8470402e1aa5
6
+ metadata.gz: eb3b5d1f65bb39f7b8488828cc3ea3eb16a3e988dd4edd3fa9a4ce8f19bb625469f506f760384857e662643e37ac3eac005e7d9f11776dc487fc4b031c29518a
7
+ data.tar.gz: e4cbb774bb3145c82e4caa5d87c16993f6371a72d5e5a3b1ea867e18c33902270df2c15d4616acbbccf27861374d0fb45eac330e38ad8c1d4a21093218eb865b
@@ -60,14 +60,14 @@ module Chusaku
60
60
  private
61
61
 
62
62
  # Recursively populate the routes hash with information from the given Rails
63
- # application. Accounts for Rails engines.
63
+ # application. Accounts for engines in Rails versions >= 5.2.
64
64
  #
65
65
  # @param app [Rails::Application] Result of `Rails.application`
66
66
  # @param routes [Hash] Collection of all route info
67
67
  # @return [void]
68
68
  def populate_routes(app, routes)
69
69
  app.routes.routes.each do |route|
70
- if route.app.engine?
70
+ if route.app.respond_to?(:engine?) && route.app.engine?
71
71
  populate_routes(route.app.app, routes)
72
72
  next
73
73
  end
@@ -1,3 +1,3 @@
1
1
  module Chusaku
2
- VERSION = "1.5.0"
2
+ VERSION = "1.5.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chusaku
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.0
4
+ version: 1.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nishiki Liu