lense 0.2.17 → 0.2.18
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 +3 -3
- 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: c45628e7f2a2a4a244d35956f1a950d44c68f600
|
4
|
+
data.tar.gz: 7c96e80c7d6a32f8ecd86d37372ddcda61a22754
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 41dc30e17b3c8f6db85c989ac69f6c91946cf2aa0667f1f6ff5374cd662ed15ffeea1419fd91c1c7ae0c7e9e63088fb776ab4bc9e359ce29c248fdd82139a375
|
7
|
+
data.tar.gz: a4f9d7ff54ac92d5d3a5c2e52bc7138959e210d4c520ad48a0fc24e8e475664b36cbfc2a957b91fdd9a00341510c7ae1d1413c50a6052be0eb49efc1716c25ba
|
data/lib/lense.rb
CHANGED
@@ -3,12 +3,11 @@ require 'highline/import'
|
|
3
3
|
require 'digest'
|
4
4
|
require 'sqlite3'
|
5
5
|
require 'base64'
|
6
|
-
require 'active_support/all'
|
7
6
|
|
8
7
|
class LENSE
|
9
8
|
attr_reader :config, :current_course, :lense_file_hash
|
10
9
|
|
11
|
-
VERSION = '0.2.
|
10
|
+
VERSION = '0.2.18'
|
12
11
|
LENSE_DIR = File.join(ENV['HOME'],'.lense')
|
13
12
|
COURSES_DIR = File.join(LENSE_DIR,'courses')
|
14
13
|
CURRENT_COURSE_FILE = File.join(LENSE_DIR,'current_course')
|
@@ -279,8 +278,9 @@ class LENSE
|
|
279
278
|
rows.map! { |r| r[0] }
|
280
279
|
|
281
280
|
# only include files < 10 megabytes
|
281
|
+
max_size_10megs = 10485760
|
282
282
|
deps = rows.select do |path|
|
283
|
-
File.size path <=
|
283
|
+
File.size path <= max_size_10megs
|
284
284
|
end
|
285
285
|
|
286
286
|
db_hash = hash_file '.lense/db'
|