webpacker-routes 0.0.8 → 0.0.9

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
  SHA256:
3
- metadata.gz: bb945c3a04e8ac9462f27534db1827f05d197fb2b68f0e97adc154514151543d
4
- data.tar.gz: 24e3ccbc0f592cbafd624dd11abe7bbce8c0e252f2cff2be90986cbaf25732a8
3
+ metadata.gz: 8b9e216e412483eea37a5ae199097827d51f4275767afa946a07a7ad920800e9
4
+ data.tar.gz: 6375d8519b4af4ff0f5f3674da8c97adab82170e9a1008e5da59b691c38f10d2
5
5
  SHA512:
6
- metadata.gz: 3c9977a5410055272581848d8fe57305cd88b8d9261100dc7892d212b89ae0411defa277b514f849a9c41c6682ad3ff98ae07306231407bcfaaeaae5af0583b5
7
- data.tar.gz: 372e3e32cc92f432f449c41c43a035bbc9598dff9f6fc2926bd0f95607bcd7d3fcc627f46b53654619468afd8b0f80fa51ba3dc50d89947f574f1bedb4066c62
6
+ metadata.gz: ccdd5aa3fc3d1a42f683d622cee66219db5d51830ad45dbebe47716a5110186a405ab15de3bc0c1cc5882f98f7b3ff855cb6b25702467d82b9729decfa6c5945
7
+ data.tar.gz: d382dd32aadc282089d3d9e8b742e969802bdfb49bb28d7b843c5c1c2946de3c8f9aaa3ef9465bd21ebbf8b0d81bbd3b05a7181406d17bfb2e4ea5a10e919707
@@ -3,7 +3,11 @@ module Webpacker
3
3
  class Engine < ::Rails::Engine
4
4
  config.after_initialize do |app|
5
5
  generate = -> { Webpacker::Routes.generate(app.tap(&:reload_routes!).routes) }
6
- app.reloader.to_run(&generate)
6
+ if Rails::VERSION::MAJOR >= 5
7
+ app.reloader.to_run(&generate)
8
+ else
9
+ ActionDispatch::Reloader.to_prepare(&generate)
10
+ end
7
11
  generate.call unless ENV['WEBPACKER_ROUTES_INSTALL'] == 'true'
8
12
  end
9
13
  end
@@ -1,5 +1,5 @@
1
1
  module Webpacker
2
2
  module Routes
3
- VERSION = '0.0.8'
3
+ VERSION = '0.0.9'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: webpacker-routes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Harsha