brwy_rails 0.0.1 → 0.0.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e446be2f37c6249e96a74887f2c69bea47ef3d5a
4
- data.tar.gz: af79b3b04261215ffaec88adec14c6ec854bd515
3
+ metadata.gz: 8268f3fbc780651f02579a1e4f8b838222eb00e4
4
+ data.tar.gz: 0e03e7e3286a971adbc63f0874a4827d83c0f249
5
5
  SHA512:
6
- metadata.gz: 948145eda06da6b674ba2679438908cafddd0239ed302e3bc06b1172e3777f4ac3d8d3490c7f99904c999f7bd4d9fc3a811094ef714da31175aeb7faf9e761e7
7
- data.tar.gz: 9ea55d55f7ec7e2f76114b8c5f9934f5147c9d8c9d8d7adf732ef8fe11b0dc00a4a9a5380c23be9b006e7280ecde8e1427b4ed9e137b2db27a5d8581c6a8d2a2
6
+ metadata.gz: 93ea0116910ecf921b270a7691f86f5dc1d73518772b092d14d29ce5d7b5257a6ea035a56a61ce4e728e7fcdf9f2c5bc21529e59c3c2bd95636e9eff7e1fde65
7
+ data.tar.gz: 1bd0c27fbd2b3147695dd16f75f80068b6c92f2590bd722a594d101d24c87a40f5167f65f7219e8c40ad8984a9d002ca66a7f7b72d9e7febe7402cd87ea312bf
@@ -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
 
@@ -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)
@@ -1,3 +1,3 @@
1
1
  module BrwyRails
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
@@ -15,6 +15,7 @@ module Dummy
15
15
  config.assets.js_compressor = nil
16
16
 
17
17
  # brwy_rails
18
+ config.brwy_rails.poll = true
18
19
  config.brwy_rails.targets = [
19
20
  "app/assets/javascripts/application.js"
20
21
  ]
@@ -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.1
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-20 00:00:00.000000000 Z
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