lense 0.1.51 → 0.2.1

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 +9 -5
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b2e960ea4fdeb4bac403e8cb8092d869fb87b126
4
- data.tar.gz: fd8b78b616a20b3e767aef5f0294a4bc865260c7
3
+ metadata.gz: e32262380083f6b4eb502995aeeab2302602210f
4
+ data.tar.gz: 1af80ef9b84eb9034bed99b7a70ed2a85adc0f4f
5
5
  SHA512:
6
- metadata.gz: e1f8c413cb19c98d6691d6ee6e6494a920dc11967a2a7e83dfa41ccfdf7a16dbdeb3c7550cd2aa81f110a973e5849922eac5e5eeb10a06ffdfa507f4e77f54a7
7
- data.tar.gz: 7eaf559480565335bfd94d5dff2526dab53d4507f09ef84dc2f53d49a9dfbb1e8ec33a443c90ce631bf93c128262847252629c23f51ff4a659403e3d1fc9875a
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.51'
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
- |p| say "Staged: #{p[0]}"
142
- # determine if new file
143
- # or modified old file
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
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.51
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manuel Zubieta