lense 0.2.17 → 0.2.18

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 +3 -3
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d70caab50233ebeac96062c48b778c90ea58ed6a
4
- data.tar.gz: 598f475c0ef9cf20a217452bb7571a4c7f887bc8
3
+ metadata.gz: c45628e7f2a2a4a244d35956f1a950d44c68f600
4
+ data.tar.gz: 7c96e80c7d6a32f8ecd86d37372ddcda61a22754
5
5
  SHA512:
6
- metadata.gz: 6af0ee9c28a139cb059a3684d55d58eb26affc4b8f5819a228cb590bd93638f311a315bf7ca8bc4090fa6a99644235a2819ddf376ee4b09fd26351c8c156f59b
7
- data.tar.gz: 6f54d7b138ef4589ffeae3534f4ef3284841705f30a58aa4d8b65e28bb764733bcc038e58ce3aa24b26b7c1328e3d7c8beea0355c3344fca8188b3a96cdc6c07
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.17'
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 <= 10.megabytes
283
+ File.size path <= max_size_10megs
284
284
  end
285
285
 
286
286
  db_hash = hash_file '.lense/db'
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.2.17
4
+ version: 0.2.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manuel Zubieta