brwy_rails 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/brwy_rails/railtie.rb +2 -0
- data/lib/brwy_rails/runner.rb +5 -1
- data/lib/brwy_rails/version.rb +1 -1
- data/test/dummy/config/application.rb +1 -0
- data/test/dummy/tmp/pids/server.pid +1 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 8268f3fbc780651f02579a1e4f8b838222eb00e4
|
4
|
+
data.tar.gz: 0e03e7e3286a971adbc63f0874a4827d83c0f249
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 93ea0116910ecf921b270a7691f86f5dc1d73518772b092d14d29ce5d7b5257a6ea035a56a61ce4e728e7fcdf9f2c5bc21529e59c3c2bd95636e9eff7e1fde65
|
7
|
+
data.tar.gz: 1bd0c27fbd2b3147695dd16f75f80068b6c92f2590bd722a594d101d24c87a40f5167f65f7219e8c40ad8984a9d002ca66a7f7b72d9e7febe7402cd87ea312bf
|
data/lib/brwy_rails/railtie.rb
CHANGED
@@ -6,6 +6,8 @@ module BrwyRails
|
|
6
6
|
config.brwy_rails.tmpdir = "tmp/cache/brwy_rails"
|
7
7
|
config.brwy_rails.targets = []
|
8
8
|
config.brwy_rails.verbose = true
|
9
|
+
config.brwy_rails.poll = false
|
10
|
+
config.brwy_rails.polling_interval = 1000
|
9
11
|
config.brwy_rails.target_suffix = ".bundle"
|
10
12
|
config.brwy_rails.watch = Rails.env.development?
|
11
13
|
|
data/lib/brwy_rails/runner.rb
CHANGED
@@ -26,6 +26,10 @@ module BrwyRails
|
|
26
26
|
@config.watch
|
27
27
|
end
|
28
28
|
|
29
|
+
def polling?
|
30
|
+
@config.poll
|
31
|
+
end
|
32
|
+
|
29
33
|
def run_with_watchify(target)
|
30
34
|
ensure_output_dir!
|
31
35
|
spawn watchify_cmd(target), chdir: Rails.root
|
@@ -41,7 +45,7 @@ module BrwyRails
|
|
41
45
|
end
|
42
46
|
|
43
47
|
def watchify_cmd(target)
|
44
|
-
"node_modules/.bin/watchify #{cmd target} #{verbose? ? "-v" : ""}"
|
48
|
+
"node_modules/.bin/watchify #{cmd target} #{verbose? ? "-v" : ""} #{polling? ? "--poll=#{@config.polling_interval}" : ""}"
|
45
49
|
end
|
46
50
|
|
47
51
|
def cmd(target)
|
data/lib/brwy_rails/version.rb
CHANGED
@@ -0,0 +1 @@
|
|
1
|
+
29518
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: brwy_rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Koutarou Chikuba
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-04-
|
11
|
+
date: 2016-04-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -3509,6 +3509,7 @@ files:
|
|
3509
3509
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/zI/zIbGJnyvo82IdqN3qeDlUhCkOWl-pQrNMkZNIdhRlkc.cache
|
3510
3510
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/zM/zMmNV8qLYtC5Kc4wv-ahWM_JnjWAUPw6eFv37DtOtB0.cache
|
3511
3511
|
- test/dummy/tmp/cache/brwy_rails/application.bundle.js
|
3512
|
+
- test/dummy/tmp/pids/server.pid
|
3512
3513
|
- test/test_helper.rb
|
3513
3514
|
homepage: https://github.com/mischi
|
3514
3515
|
licenses:
|
@@ -6991,4 +6992,5 @@ test_files:
|
|
6991
6992
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/Zs/Zs90wzhgMjvsuhGd93f0bARG16x5iHaN2P7Ri6gYDxI.cache
|
6992
6993
|
- test/dummy/tmp/cache/assets/sprockets/v3.0/Zv/ZvxoBbzc5ML9c2gNOUHuo_Yh_XCVDD6hdlQC4EOK08c.cache
|
6993
6994
|
- test/dummy/tmp/cache/brwy_rails/application.bundle.js
|
6995
|
+
- test/dummy/tmp/pids/server.pid
|
6994
6996
|
- test/test_helper.rb
|