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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: aba116ce5e44e3b001f7b7106d2067a98fed0fd1
4
- data.tar.gz: 695faf3399146508234b87325214c5496d98d991
3
+ metadata.gz: 9b86bdac0ef9eef67c3c46c1639d72917aaf19e6
4
+ data.tar.gz: 52f358796c2d48094a2c29de4fd417e707783021
5
5
  SHA512:
6
- metadata.gz: e30e18c054767b5e996bf964e060d4b24008c144a70c6e90a47b1871c2cadfd89d986510a1b9310307b2b6b43cb2d7ef12f0b367490dc409a2dba2a58419a65d
7
- data.tar.gz: ad2e0ae39c1d522fed0c8a0c82c5834a144068c837c6e2020f78699014cde660d0b1cca5c37f50552d23c8e0d874025594c1689a9d036b668d0c44ed9c7ee38a
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
- puts('Checking for homebrew...'.green)
10
- die('You must have Homebrew installed') unless brew_installed?
11
- puts('Updating brew...'.green)
12
- print_installing('node')
13
- run_install('brew install node')
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
@@ -1,3 +1,3 @@
1
1
  module LearnTest
2
- VERSION = '2.3.2'
2
+ VERSION = '2.3.3'
3
3
  end
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.2
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-23 00:00:00.000000000 Z
11
+ date: 2016-05-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler