lense 0.2.1 → 0.2.2
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.
- checksums.yaml +4 -4
- data/lib/lense.rb +13 -5
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 78932afa4684c1fa18a26bdd2ca385ed01a5428b
|
4
|
+
data.tar.gz: 856b8ab670b7ddf023272d6f47d24de4832ddb45
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
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
|
|