lense 0.2.10 → 0.2.11
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 +2 -2
- 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: a8a2ff85f2d0387074199a1a943929a9dbe8dad6
|
4
|
+
data.tar.gz: e9a68d59792f893e687137e0050e95603a5f3657
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bbf46243b28667a015eb07487fc349f566f5a32d39434cb158520f0a1934a980f3f31a2cc8b6d0653faac0348492a3d460dcdd8d552039146a6bb344c0736be9
|
7
|
+
data.tar.gz: 959cb899b96352c7d244c26c962b0ba08e13af20e7308bb2d2dfb9eb596773b5031756143a978834f9a42059a83a8251f63d565ad2e6e364731ab7f59ede6853
|
data/lib/lense.rb
CHANGED
@@ -7,7 +7,7 @@ require 'base64'
|
|
7
7
|
class LENSE
|
8
8
|
attr_reader :config, :current_course, :lense_file_hash
|
9
9
|
|
10
|
-
VERSION = '0.2.
|
10
|
+
VERSION = '0.2.11'
|
11
11
|
LENSE_DIR = File.join(ENV['HOME'],'.lense')
|
12
12
|
COURSES_DIR = File.join(LENSE_DIR,'courses')
|
13
13
|
CURRENT_COURSE_FILE = File.join(LENSE_DIR,'current_course')
|
@@ -260,7 +260,7 @@ class LENSE
|
|
260
260
|
def pull()
|
261
261
|
exit_now!("Not in a lense project.") unless File.directory? '.lense'
|
262
262
|
exit_now!("No repo found.") unless File.file? ".lense/repository"
|
263
|
-
repo = File.read
|
263
|
+
repo = File.read('.lense/repository').strip()
|
264
264
|
exit_now!("Invalid repo name.") unless repo =~ /\A\w+\/\w+\Z/
|
265
265
|
|
266
266
|
install_repo repo, 'pull'
|