bower_vendor 0.0.12 → 0.0.13

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: 360be5578e46d4452b8286e71a5c2438117e203f
4
- data.tar.gz: 35e51e6bc02d67df7c0721d3aaf0d2e817f30413
3
+ metadata.gz: e685ebf7820b97812bae22b23c8f1e1226247307
4
+ data.tar.gz: 60e8f9a0468899f07585ab5280def92ddd3c19df
5
5
  SHA512:
6
- metadata.gz: 9f68e5a0346be93442f44fb409763474bc62879bbd6037c19fb8a0ceb4d68658383cee57fbdca1f0ed9a52934ef3702a9050c4dc0417f1ddf25284fcaeef8b04
7
- data.tar.gz: cd6f86f66f1d8efeb65a85f2e991364f39818c17e2c33023f42e97a36805c3eccdf02c65706931084a5f09d63a633f4c14e45750783765d614adcddecaba5e74
6
+ metadata.gz: 9c03d825a41c9140cc7c180bf4948398d0c708b4d50ff62d0d0ebc8802e0c2c63ffa9fdda732e94c0363a7be0c65a8384971bfbbcc7b83dca49e1010acc2c4f3
7
+ data.tar.gz: e2fdbafa048a08cdf05cd6c7133adc7dbcf1a92d5d7bdfca5d8be93ff1fb7e1382adf83a2b2e02c0c889f922af96b23add11914742fea7370698425203f11b08
@@ -41,5 +41,9 @@ module BowerVendor
41
41
  'tmp'
42
42
  end
43
43
  end
44
+
45
+ def local_node_bin
46
+ "#{Rails.root}/node_modules/.bin"
47
+ end
44
48
  end
45
49
  end
@@ -2,11 +2,18 @@ module BowerVendor
2
2
  class Check < Base
3
3
  def execute
4
4
  Dir.chdir(work_dir) do
5
+ script = executable
6
+ puts "excutable: #{script}"
5
7
  fork do
6
- exec "bcu"
8
+ exec "#{script}"
7
9
  end
8
10
  Process.wait
9
11
  end
10
12
  end
13
+
14
+ def executable
15
+ f = "#{local_node_bin}/bcu"
16
+ File.exists?(f) ? f : 'bcu'
17
+ end
11
18
  end
12
19
  end
@@ -1,12 +1,20 @@
1
1
  module BowerVendor
2
2
  class Fetch < Base
3
3
  def execute
4
+ script = executable
5
+ puts "excutable: #{script}"
6
+
4
7
  Dir.chdir(work_dir) do
5
8
  fork do
6
- exec "bower install"
9
+ exec "#{script} install"
7
10
  end
8
11
  Process.wait
9
12
  end
10
13
  end
14
+
15
+ def executable
16
+ f = "#{local_node_bin}/bower"
17
+ File.exists?(f) ? f : 'bower'
18
+ end
11
19
  end
12
20
  end
@@ -1,3 +1,3 @@
1
1
  module BowerVendor
2
- VERSION = "0.0.12"
2
+ VERSION = "0.0.13"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bower_vendor
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.12
4
+ version: 0.0.13
5
5
  platform: ruby
6
6
  authors:
7
7
  - kari
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-12 00:00:00.000000000 Z
11
+ date: 2016-08-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler