lense 0.1.11 → 0.1.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/bin/lense +2 -1
  3. data/lib/lense.rb +2 -2
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9e3373d5fc21419c08405ce1156ec8842f6d4e1c
4
- data.tar.gz: dba406a8ae45ed923ae0a96d5cd19369435a6bf7
3
+ metadata.gz: b2f6a99dc6de96fde636673c2fbcfadf8475b6e1
4
+ data.tar.gz: a19fc904d01a61a14bc1355f81cb1666d1e1edd0
5
5
  SHA512:
6
- metadata.gz: cedf3c40b43e50d4242dd615a17e2a7c2360f40bf917d05ee5c895346cd28b474fa78e2df15127de9ad56262d8b3b3ddbe1b5db18d26fb11e28d555c17e61870
7
- data.tar.gz: f0b246ee6a4a1e5b938d63e71d692e4e63abcda50bce4bb0b4d8382a7f4c88e8922c8a0d2f94d349be366bc66530cb8912602da82f2144219935c190f9eee3f4
6
+ metadata.gz: 1e69bbc34c591b3415f30ac2ca0b738b5e0aee217a8012ce97c31e6028513bcd83955649dc8c2bdeabfaae1d2bb0544d28c0189cd21bbeba4a57bcfa59f17661
7
+ data.tar.gz: d06f776693edde06b8f35aba7acb231926f1afbd086760de5ce07e2e123774d8cebf3c362da9f9bcec18a3ec54271c6dda44c9d24ac59d97b014b4d892ee3add
data/bin/lense CHANGED
@@ -26,6 +26,7 @@ pre do |global_options,command,options,args|
26
26
  minimal_needed = found_docker || found_vagrant
27
27
  puts "ERROR: Must have either Docker or Vagrant!" unless minimal_needed
28
28
 
29
+ puts LENSE_APP.current_course
29
30
  minimal_needed
30
31
  end
31
32
 
@@ -79,7 +80,7 @@ command :select do |c|
79
80
  if res.nil?
80
81
  puts "Staying on #{course}..."
81
82
  else
82
- puts "Switched to course: #{course}."
83
+ puts "Switched to course: #{res}."
83
84
  end
84
85
  end
85
86
  end
data/lib/lense.rb CHANGED
@@ -1,7 +1,7 @@
1
1
  class LENSE
2
2
  attr_reader :config, :current_course
3
3
 
4
- VERSION = '0.1.11'
4
+ VERSION = '0.1.12'
5
5
  LENSE_DIR = File.join(ENV['HOME'],'.lense')
6
6
  COURSES_DIR = File.join(LENSE_DIR,'courses')
7
7
  CURRENT_COURSE_FILE = File.join(LENSE_DIR,'current_course')
@@ -26,7 +26,7 @@ class LENSE
26
26
 
27
27
  if course_available && course != @current_course
28
28
  File.open(CURRENT_COURSE_FILE, 'w') { |f| f.write course }
29
- course_available
29
+ course
30
30
  elsif course == @current_course
31
31
  nil
32
32
  else
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.11
4
+ version: 0.1.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manuel Zubieta