lense 0.1.51 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lense.rb +9 -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: e32262380083f6b4eb502995aeeab2302602210f
|
4
|
+
data.tar.gz: 1af80ef9b84eb9034bed99b7a70ed2a85adc0f4f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9f45e4d240500abc50f5792d58a7b54371a8c0da87d7cf5cb30cf75dc4bdd0068cc9fc5a12612069eb234d369334d33725adf119bef43bc29fea2b46b7aa48ca
|
7
|
+
data.tar.gz: 4af98e26a5a05fd8868ce3f1398f218333dcd9b3e06d06067f162dbaa0e4c35523c2e528ec0818eadeef2a9d95b2425aa12400024055d4eb665fe2fbd71691e3
|
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.1
|
9
|
+
VERSION = '0.2.1'
|
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,10 +137,14 @@ 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
|
-
@DB.execute("select path from staging;").each do
|
141
|
-
|
142
|
-
|
143
|
-
|
140
|
+
@DB.execute("select path from staging;").each do |row|
|
141
|
+
path = row[0]
|
142
|
+
dependency = get_dependency(path)
|
143
|
+
if dependency.nil?
|
144
|
+
say "<%= color('New File: #{path}',:green) %>"
|
145
|
+
else
|
146
|
+
say "<%= color('Modified: #{path}',:red) %>"
|
147
|
+
end
|
144
148
|
end
|
145
149
|
|
146
150
|
# check changes in depenancy files
|