lense 0.3.1 → 0.3.3

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 +1 -1
  3. data/lib/lense.rb +4 -4
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f309132dfc4a0e81dfed37bcbb91b5bc7df3612d
4
- data.tar.gz: c26d530addec8b59cdd144df4c13dd19e3110b76
3
+ metadata.gz: 3ceb5de301433f049554c90535753dfc61f3b0e0
4
+ data.tar.gz: ada916cb969086e3f936550e34d6901e267cc383
5
5
  SHA512:
6
- metadata.gz: 680c146d3b2dd16ec021cf6509151e77bd6a1181ea0781bf992db33eadc9d4b498b2353fc842b77ec8a823fa55188bdafc45a6c6b6260331d0564e500c866e15
7
- data.tar.gz: 854b2379cc8668434e6c7a85fdf84e217e7284b37b3e5764dfb4ef1b302cda8da07003238af0abac8f982fe51048295f37b823675ed2156d4547ea1f4d4dc7b8
6
+ metadata.gz: 0892df93dee9eee19d9faa6a6514d39a012c730ae0157cadc848c47e34a75ae99ae579e8a8c2a00db7089c037ea26dcda979c3c8d4ed88dacdab6b1fe1f5a55a
7
+ data.tar.gz: 59e3490e5c7b213cf2b9e0d898367537b0de358f56517867f0cf12bb5404976504060c6292fd6712ab35e9d976a21540f3cc1da1b95aa892a5bf36d7502b4bdf
data/bin/lense CHANGED
@@ -48,7 +48,7 @@ end
48
48
 
49
49
  command :version do |c|
50
50
  c.action do
51
- say "Version: #{LENSE_APP::VERSION}"
51
+ say "Version: #{LENSE::VERSION}"
52
52
  say "Lightweight Environment for Network Security Education (LENSE)"
53
53
  end
54
54
  end
data/lib/lense.rb CHANGED
@@ -8,7 +8,7 @@ require 'psych'
8
8
  class LENSE
9
9
  attr_reader :config, :current_course, :lense_file_hash
10
10
 
11
- VERSION = '0.3.1'
11
+ VERSION = '0.3.3'
12
12
  LENSE_DIR = File.join(ENV['HOME'],'.lense')
13
13
  COURSES_DIR = File.join(LENSE_DIR,'courses')
14
14
  CURRENT_COURSE_FILE = File.join(LENSE_DIR,'current_course')
@@ -64,9 +64,9 @@ class LENSE
64
64
  response = RestClient.get "#{API_BASE}/lessons", { params: { format: 'json', text: term } }
65
65
  courses = JSON.parse(response)
66
66
  courses.each do |c|
67
- puts "---"
68
- puts "Title: #{c['title']}"
69
- puts "Description: #{c['description']}"
67
+ say "<%= color('---',:green) %>"
68
+ say "Repository: #{c['repo_name']}"
69
+ say "Title: #{c['title']}"
70
70
  print "Difficulty: "
71
71
  c['difficulty'].times { print '*' }
72
72
  puts ""
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.3.1
4
+ version: 0.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manuel Zubieta