cyborg 0.5.5 → 0.5.6

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: 852f059f43939e757f557a6f44bbd9968501d3a0
4
- data.tar.gz: 2eb164b5f3bd040a994c710a80fd386131f4b12f
3
+ metadata.gz: b7d533894292036156a20865c0c9ee46a006da50
4
+ data.tar.gz: 9623baf95ba1e56a0baa71077d251e162b6fed5e
5
5
  SHA512:
6
- metadata.gz: 8cd46edb83aa13c4c48504caa15b7f6466acb0111a55ab36d23edc3d47a9d56d1bf774503e96e4f621b1eade466aa8d8308cef48fcce8d6680657318faef57c9
7
- data.tar.gz: 80765213c29c3f173ab1bff9139ee049f255eae18a195c09c527d07c547478642c29f552952eab709f354f2223e767425f3dc8b1a5f50eab0084eb56ba754280
6
+ metadata.gz: efb7ffd1585fd1284858ffe9930a4876961c40decb41ea81658461f265ab9ff2be4d84cfc79ded5c427e72551ca96d69f6e1e1bb8edab6c4ac5a52a812df62b5
7
+ data.tar.gz: b85071187ebdf210a818400f062be540529394f1cd1106e7e200ff6be1bdb95b49a45b6e8b01b746723d2b4d67dd91d89614a9e20c94270f2891ef67ffd32526
@@ -32,14 +32,18 @@ module Cyborg
32
32
  end
33
33
  end
34
34
 
35
+ def npm_path( cmd )
36
+ File.join Cyborg.gem_path, "node_modules/.bin", cmd
37
+ end
38
+
35
39
  def build_command(file)
36
40
  dest = destination(file).sub(/\.js$/,'')
37
41
  options = " -t babelify --standalone #{plugin.name} -o #{dest}.js -d"
38
42
 
39
43
  cmd = if Cyborg.production?
40
- "browserify #{file} #{options}"
44
+ npm_path "browserify #{file} #{options}"
41
45
  else
42
- "browserifyinc --cachefile #{cache_file(File.basename(dest))} #{file} #{options}"
46
+ npm_path "browserifyinc --cachefile #{cache_file(File.basename(dest))} #{file} #{options}"
43
47
  end
44
48
 
45
49
  if Cyborg.production?
@@ -1,3 +1,3 @@
1
1
  module Cyborg
2
- VERSION = "0.5.5"
2
+ VERSION = "0.5.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cyborg
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.5
4
+ version: 0.5.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brandon Mathis