learn-test 2.3.2 → 2.3.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/learn_test/dependencies/nodejs.rb +14 -5
- data/lib/learn_test/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9b86bdac0ef9eef67c3c46c1639d72917aaf19e6
|
4
|
+
data.tar.gz: 52f358796c2d48094a2c29de4fd417e707783021
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9532e8a6730a64f43f91af741ac08229d9b8c0dbf95ab3a8694e0b8bfca97c5a1e6e7fc5659bb8b75d95d148255fccd4cc7410ec6fc4602dccff8bb6b802485e
|
7
|
+
data.tar.gz: 59ee606f3370b3f39c14bbcd0c01681db9d570a09fe694291b0fd756f3681f0c5c1d5f666526d33d4417986e1eb6cadc3939872314f19756b258fd6683d36a60
|
@@ -6,11 +6,15 @@ module LearnTest
|
|
6
6
|
end
|
7
7
|
|
8
8
|
def install
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
9
|
+
if !mac?
|
10
|
+
die('Please install NodeJS: https://nodejs.org/en/download')
|
11
|
+
else
|
12
|
+
puts('Checking for homebrew...'.green)
|
13
|
+
die('You must have Homebrew installed') unless brew_installed?
|
14
|
+
puts('Updating brew...'.green)
|
15
|
+
print_installing('node')
|
16
|
+
run_install('brew install node')
|
17
|
+
end
|
14
18
|
end
|
15
19
|
|
16
20
|
private
|
@@ -18,6 +22,11 @@ module LearnTest
|
|
18
22
|
def brew_installed?
|
19
23
|
!`which brew`.empty?
|
20
24
|
end
|
25
|
+
|
26
|
+
def die(message)
|
27
|
+
puts message
|
28
|
+
exit
|
29
|
+
end
|
21
30
|
end
|
22
31
|
end
|
23
32
|
end
|
data/lib/learn_test/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: learn-test
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.3.
|
4
|
+
version: 2.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Flatiron School
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-05-
|
11
|
+
date: 2016-05-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|