js_routes_watcher 0.1.1 → 0.1.2
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 +4 -4
- data/lib/js_routes_watcher/version.rb +1 -1
- data/lib/tasks/js_routes_watcher_tasks.rake +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 986c42141e6eeaad6c81fc813ae84e094babd87e8589b3638b1f8f93d1c65fcf
|
|
4
|
+
data.tar.gz: 405433089df6fe2fefd489cf58ba0226220cc1e9a1ed6452e1b9ceecf8f1e560
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 98bec18816fa8ccf379eefea4c3d26de64ec31535f0d9655a2ca16891387d942b57b30b87867483269aa51ef62aa2459be541909e985f9bb0e4f70c387eec845
|
|
7
|
+
data.tar.gz: 5669f6a2c4cf82da0f0f4ddd72b04d854df54cabe6d04870d2683b79be153a7f9a1c43f79b51049f1bd9c5fa46a74e507b6699bbc6965c74ccd72339e15a59b3
|
|
@@ -1,7 +1,8 @@
|
|
|
1
|
+
config = YAML.load_file'config/webpacker.yml'
|
|
1
2
|
namespace :js_routes_watcher do
|
|
2
3
|
desc "Generate routes for javascript"
|
|
3
4
|
task :generate => :environment do
|
|
4
|
-
path = Rails.root.join '
|
|
5
|
+
path = Rails.root.join "#{config['production']['source_path']}/#{config['production']['source_entry_path']}/routes.js"
|
|
5
6
|
File.delete path if File.exist? path
|
|
6
7
|
JsRoutes.generate!(path)
|
|
7
8
|
end
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: js_routes_watcher
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Dmitriy Beliaev
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-06
|
|
11
|
+
date: 2018-07-06 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: rails
|