lense 0.2.27 → 0.2.28
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 +5 -4
- 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: 39c69917064c679a1025d6dcd88428c81377307d
|
4
|
+
data.tar.gz: 3ba14efeb6b2ca09c3b7a92e28c823d6df64dff1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7a5d63c3b0e49b15eb90421b6eb46fe2cc53118b0f64d93fe7a41a4f4895cac58fe34f85d489c6f6e5361c6484ed2281b87bc00f452d88449d9c8944b262d91d
|
7
|
+
data.tar.gz: 2b11f6bf6dbbf8d0347854486951a09f7401df507768902b428d7672db72bb0cd7e3553e683d84c9fe0882b7d33d33c9ba65328adb81cc147f6224051029c4b0
|
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.28'
|
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')
|
@@ -292,6 +292,7 @@ class LENSE
|
|
292
292
|
say "taring up with: #{cmd}"
|
293
293
|
`#{cmd}`
|
294
294
|
|
295
|
+
lense = read_lensefile
|
295
296
|
post_body = {
|
296
297
|
format: 'json',
|
297
298
|
user_token: 'z5kqZTsKU_oXvC3d5j96',
|
@@ -301,9 +302,9 @@ class LENSE
|
|
301
302
|
content_type: "application/x-tar",
|
302
303
|
},
|
303
304
|
lesson: {
|
304
|
-
title:
|
305
|
-
difficulty:
|
306
|
-
description:
|
305
|
+
title: lense['title'],
|
306
|
+
difficulty: lense['difficulty'],
|
307
|
+
description: lense['description'],
|
307
308
|
}
|
308
309
|
}
|
309
310
|
response = RestClient.post "#{API_BASE}/#{repo}/push", post_body
|