lense 0.1.19 → 0.1.20

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/lense +3 -1
  3. data/lib/lense.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c561f54896fcd156fabe599e9207c6d397ea0605
4
- data.tar.gz: 200b1105f9a528d8dfc82b6a453a248fb64c1783
3
+ metadata.gz: e2912fe447a26bd1b7c26ccb9c2dd38a1dbed0e5
4
+ data.tar.gz: a9f65b082695991d3b62623a28127a77762aee77
5
5
  SHA512:
6
- metadata.gz: 4e58e825b1a08fa3cc06036cb611315d4c40c98978d3eec1112b477c4293c307d054c45aad7bcf27f7e3158755d17853c2380f394d75e8d5b1ab5de862c2fd22
7
- data.tar.gz: 678321ea7f32bf412afd2735fd13e6c3c98122bc3d00c75188ed11409c0a312fd1afd194cb5bd14dabb10100cf03b8cee1e865d310370a776e79c2fae01f0bdc
6
+ metadata.gz: 01146da48f9b4a16ebc8ff92cc54e8d45b8195e777493383b967ec7957dcac697e493b050bf882d33b687f3e7a4d0e76a2544572796defe959c3e63b79d00474
7
+ data.tar.gz: 73b5ba662dffc0f6262f0ae3d9cf68cd8e688516a5e079b3a08ee31a88c69cefe0612224a8989f6a4f902b852cb46ad70551946353e6945f041d09bf21ac3512
data/bin/lense CHANGED
@@ -17,6 +17,7 @@ pre do |global_options,command,options,args|
17
17
  found_docker = system_check('which docker')
18
18
  docker_running = found_docker && system_check('docker version')
19
19
  found_vagrant = system_check('which vagrant')
20
+ found_git = system_check('which git')
20
21
 
21
22
  be_quiet = global_options[:quiet] || LENSE_APP.config["quiet"]
22
23
  puts "WARNING: Docker not found. Unable to run courses that use Docker!" unless found_docker || be_quiet
@@ -24,7 +25,8 @@ pre do |global_options,command,options,args|
24
25
  puts "WARNING: Vagrant not found. Unable to run courses that use Vagrant!" unless found_vagrant || be_quiet
25
26
 
26
27
  minimal_needed = found_docker || found_vagrant
27
- puts "ERROR: Must have either Docker or Vagrant!" unless minimal_needed
28
+ exit_now!("Must have git installed!") unless found_git
29
+ exit_now!("Must have either Docker or Vagrant!") unless minimal_needed
28
30
 
29
31
  minimal_needed
30
32
  end
data/lib/lense.rb CHANGED
@@ -2,7 +2,7 @@ require 'rest-client'
2
2
  class LENSE
3
3
  attr_reader :config, :current_course
4
4
 
5
- VERSION = '0.1.19'
5
+ VERSION = '0.1.20'
6
6
  LENSE_DIR = File.join(ENV['HOME'],'.lense')
7
7
  COURSES_DIR = File.join(LENSE_DIR,'courses')
8
8
  CURRENT_COURSE_FILE = File.join(LENSE_DIR,'current_course')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lense
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.19
4
+ version: 0.1.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manuel Zubieta