rjs-rails 0.0.5 → 0.0.6

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
  SHA1:
3
- metadata.gz: 82dac9627f2fe9a495c6963d916e98d34f2bed2a
4
- data.tar.gz: af8789a46ebb2b5510421e2c1b3cced1b656ace0
3
+ metadata.gz: 54b4f1d9d66985aefdb978162d187e5ff8019aad
4
+ data.tar.gz: 94cd47d4bd8010ad6ea82a85a14a97acbe75bea9
5
5
  SHA512:
6
- metadata.gz: bcd3636b39266f2f487c482caa7568d9ebe6b9a57e467e26b19f340153b329ffc91b1eb4e8b705bab129ae86e1682b9e3707ca7d268fd2f7713ae5efc0364686
7
- data.tar.gz: 83c34da7870206967a8bdff863876d09888479bf355ba1800b612d7dd8a9480c7f2ac05e1487d744df4aab6ebb29b7326970c86753806cac86cc6e4d5b17901d
6
+ metadata.gz: 90f5113c944f0e87664e8d8bab1e6b76bf8d56842a15b9ac07adafef6f423c43de5c6e9f919c05aa74718fe5985fc81470025074ebbd4afcbad3ac786af94c96
7
+ data.tar.gz: 751153725cf4b039e2d1ad57b175ee638fa2e01ceab15d5f12fc69c6f70c9bb6b0f3a08e642b5d4c5690645adc1774563107d4c2e6c2e158e051020b4879396d
@@ -20,17 +20,18 @@ module RjsRails
20
20
  end
21
21
 
22
22
  def copy_sources
23
- empty_dirs
24
- puts "=> copying sources"
25
- asset_paths.each_with_index do |logical_path, i|
26
- cr = "\r"
27
- clear = "\e[0K"
28
- print cr
29
- print clear
30
- print "#{i+1}/#{num_assets} #{logical_path}"
31
- write_asset logical_path
23
+ pid = Process.fork do
24
+ empty_dirs
25
+ puts "=> copying sources"
26
+ asset_paths.each_with_index do |logical_path, i|
27
+ clear = "\r\e[0K"
28
+ print clear
29
+ print "#{i+1}/#{num_assets} #{logical_path}"
30
+ write_asset logical_path
31
+ end
32
+ puts
32
33
  end
33
- puts
34
+ Process.wait
34
35
  end
35
36
 
36
37
 
@@ -47,7 +48,7 @@ module RjsRails
47
48
  end
48
49
 
49
50
  def optimize
50
- puts "=> optimizing "
51
+ puts "=> optimizing requirejs files "
51
52
  command = "node #{env.build_js}"
52
53
  IO.popen(command) do |f|
53
54
  f.each { |line| puts line }
@@ -24,6 +24,7 @@ module RjsRails
24
24
 
25
25
  def custom_sprockets_env
26
26
  custom_env = rails_assets_env.clone
27
+ custom_env.instance_variable_set :@bundle_processors, rails_assets_env.bundle_processors
27
28
  path = "tmp/cache/rjs_assets_#{::Rails.env}"
28
29
  custom_env.cache = ActiveSupport::Cache::FileStore.new(path)
29
30
  custom_env.js_compressor = nil
@@ -1,3 +1,3 @@
1
1
  module RjsRails
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rjs-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - neeraj