lense 0.3.3 → 0.3.4

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/lense.rb +5 -3
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3ceb5de301433f049554c90535753dfc61f3b0e0
4
- data.tar.gz: ada916cb969086e3f936550e34d6901e267cc383
3
+ metadata.gz: a985317c752318434cd125d50af9e3edb429097d
4
+ data.tar.gz: 10bb8e6d02530157ae24f49b7fc6ac87715c0590
5
5
  SHA512:
6
- metadata.gz: 0892df93dee9eee19d9faa6a6514d39a012c730ae0157cadc848c47e34a75ae99ae579e8a8c2a00db7089c037ea26dcda979c3c8d4ed88dacdab6b1fe1f5a55a
7
- data.tar.gz: 59e3490e5c7b213cf2b9e0d898367537b0de358f56517867f0cf12bb5404976504060c6292fd6712ab35e9d976a21540f3cc1da1b95aa892a5bf36d7502b4bdf
6
+ metadata.gz: 30c9418559c0fef59d6259489315aa0f9c927e87b3274699b389e2abee19463fe1ff216d83870842e4b1e35044804259d5bf1300c4dc5564cad0d29d5a2df987
7
+ data.tar.gz: b1b6f9bced70692fe184e2eccba16a85c67916e8095a0b59252e19a9ed7cd5d3cb15672168d0997e76c46d84e2e7cf38ef33a9b61718301369ba640d22362d00
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.3'
11
+ VERSION = '0.3.4'
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')
@@ -149,11 +149,13 @@ class LENSE
149
149
  end
150
150
 
151
151
  rows = @DB.execute 'select path from dependencies where not deleted;'
152
- if rows.length >0
152
+ if rows.length > 0
153
153
  say "\nUnstaged Modified Files:\n"
154
154
  rows.each do |row|
155
155
  path = row[0]
156
- say "\t<%= color('Modified: #{path}',:red) %>"
156
+ dependency = get_dependency(path)
157
+ hash = hash_file(path)
158
+ say "\t<%= color('Modified: #{path}',:red) %>" unless hash = dependency[:file_hash]
157
159
  end
158
160
  end
159
161
 
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.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manuel Zubieta
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-04-27 00:00:00.000000000 Z
12
+ date: 2015-04-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rest-client