alaska 1.1.0 → 1.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/alaska/runtime.rb +8 -2
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 75e8c82b9e03893c4ea44a2ef469ca97a8b3dbe2
4
- data.tar.gz: 0a76932b180f653d6ee169efc9537e66afe90232
3
+ metadata.gz: ad2839fe2dfff754d2ba74cc2db6cfcd998eaf21
4
+ data.tar.gz: 037bacf0a2a95fc6e914f1fc96d158a70efa419b
5
5
  SHA512:
6
- metadata.gz: 528e50d3880adb758449b0c8bad2c4804bcca0b99cc0068269e2355483e33256e4e9e10c0c1a1ab84d99cc7d49caabd2e25f77fb46a417dc45c16813386348eb
7
- data.tar.gz: fa0fe30d4c40cb64049a393c2d16663e3410346d84414e4c8984bd70b5c86750a0591df389fcf604f4ba301e9c6aa76b00bbcd61bdb1aa7b466abd7f0c206ea0
6
+ metadata.gz: 7eaa4661a862b6de337c993e4545c1479b27351993361bc110abccaced4bd8b20fd9d0a989008192a8285ce045e7b3496bbbbc0f174828864a9723e7caf66102
7
+ data.tar.gz: 02d46d4eab9c20b86f15f8a2ce7c9d6995a91bee45fb0ad9cdf5279d144fef0713570dbb4c43061fd1fa09daf22f64a954f2b1f725e81f04e6a0433e8833d437
@@ -23,8 +23,14 @@ module Alaska
23
23
  end
24
24
 
25
25
  def available?
26
- #NOTE: this is brittle in terms of cross platform detection of node executable
27
- `which #{@nodejs_cmd}`.strip.length > 0 # this must return true to be enabled
26
+ ENV["PATH"].split(":").detect do |path|
27
+ %w{
28
+ nodejs
29
+ node
30
+ }.detect do |node|
31
+ File.exist?(File.join(path, node)) || File.symlink?(File.join(path, node))
32
+ end
33
+ end
28
34
  end
29
35
 
30
36
  def deprecated?
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alaska
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jon Bardin
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2016-05-28 00:00:00.000000000 Z
14
+ date: 2016-12-08 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: execjs
@@ -84,7 +84,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
84
84
  version: '0'
85
85
  requirements: []
86
86
  rubyforge_project:
87
- rubygems_version: 2.4.8
87
+ rubygems_version: 2.5.2
88
88
  signing_key:
89
89
  specification_version: 4
90
90
  summary: persistent ExecJS runtime