lense 0.2.24 → 0.2.25
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 +6 -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: 62a1b20831aa45c4445897db084535927fded4c9
|
4
|
+
data.tar.gz: 2ba5492746cb786ecfc0920588966cc5d48b21ec
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1344ca9366016080ee9401523c6a8da163233e0c505a4d64a0f916128e0278e10ac52438372a6f82a5326f896e0d648166a6ecc5decaed43ac7cba81c2db2c3c
|
7
|
+
data.tar.gz: eea59ca3bdff5762dfa5389d3312c6fd4772f80a9826eb47080dc1a7ab15bf78021a076f2061c8621b1ae527582cf63386cfd477200a643853ff55b765d7d966
|
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.25'
|
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')
|
@@ -295,9 +295,11 @@ class LENSE
|
|
295
295
|
post_body = {
|
296
296
|
format: 'json',
|
297
297
|
user_token: 'z5kqZTsKU_oXvC3d5j96',
|
298
|
-
tar_file_base64:
|
299
|
-
|
300
|
-
|
298
|
+
tar_file_base64: {
|
299
|
+
data: Base64::encode64(File.read(tar_path)),
|
300
|
+
filename: tar_fname,
|
301
|
+
content_type: "application/x-tar",
|
302
|
+
},
|
301
303
|
lesson: { }
|
302
304
|
}
|
303
305
|
response = RestClient.post "#{API_BASE}/#{repo}/push", post_body
|