lense 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/lense.rb +13 -5
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e32262380083f6b4eb502995aeeab2302602210f
4
- data.tar.gz: 1af80ef9b84eb9034bed99b7a70ed2a85adc0f4f
3
+ metadata.gz: 78932afa4684c1fa18a26bdd2ca385ed01a5428b
4
+ data.tar.gz: 856b8ab670b7ddf023272d6f47d24de4832ddb45
5
5
  SHA512:
6
- metadata.gz: 9f45e4d240500abc50f5792d58a7b54371a8c0da87d7cf5cb30cf75dc4bdd0068cc9fc5a12612069eb234d369334d33725adf119bef43bc29fea2b46b7aa48ca
7
- data.tar.gz: 4af98e26a5a05fd8868ce3f1398f218333dcd9b3e06d06067f162dbaa0e4c35523c2e528ec0818eadeef2a9d95b2425aa12400024055d4eb665fe2fbd71691e3
6
+ metadata.gz: 51a3491063476462500e1fd767b519be8874a3772f6c4191a0b2bbcfaac421869d0ca3a90ba02cec18907e921e953a9499b41ce7af187ff72b578eec6937c5c5
7
+ data.tar.gz: a7948351f0a1cc2fef9577b4e794d33493ba7aa3aecc2f65b1313cd48d652a4fd99310b4c6fa2d7d6a0ad6b75986109da2e0f4404d80f6592ec610fa0ec7222a
data/lib/lense.rb CHANGED
@@ -6,7 +6,7 @@ require 'sqlite3'
6
6
  class LENSE
7
7
  attr_reader :config, :current_course, :lense_file_hash
8
8
 
9
- VERSION = '0.2.1'
9
+ VERSION = '0.2.2'
10
10
  LENSE_DIR = File.join(ENV['HOME'],'.lense')
11
11
  COURSES_DIR = File.join(LENSE_DIR,'courses')
12
12
  CURRENT_COURSE_FILE = File.join(LENSE_DIR,'current_course')
@@ -137,13 +137,21 @@ class LENSE
137
137
  def status()
138
138
  #say "Hash : #{@lense_file_hash}"
139
139
  exit_now!("Not a LENSE project: .lense") unless File.directory?(LOCAL_LENSE_DIR)
140
+
141
+ say "Staged Files:\n"
140
142
  @DB.execute("select path from staging;").each do |row|
141
143
  path = row[0]
142
144
  dependency = get_dependency(path)
143
- if dependency.nil?
144
- say "<%= color('New File: #{path}',:green) %>"
145
- else
146
- say "<%= color('Modified: #{path}',:red) %>"
145
+ action = dependency.nil? ? 'New File' : 'Modified'
146
+ say "\t<%= color('#{action}: #{path}',:green) %>"
147
+ end
148
+
149
+ rows = @DB.execute 'select path from dependencies where not deleted;'
150
+ if rows.length >0
151
+ say "\nUnstaged Modified Files:\n"
152
+ rows.each do |row|
153
+ path = row[0]
154
+ say "\t<%= color('Modified: #{path}',:red) %>"
147
155
  end
148
156
  end
149
157
 
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.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manuel Zubieta