lense 0.2.27 → 0.2.28

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 +5 -4
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b187ccfed33de5133ab6d7f9c4e669deaa192ea5
4
- data.tar.gz: 9631c3241be0b5664694aab03a777ebb3593d407
3
+ metadata.gz: 39c69917064c679a1025d6dcd88428c81377307d
4
+ data.tar.gz: 3ba14efeb6b2ca09c3b7a92e28c823d6df64dff1
5
5
  SHA512:
6
- metadata.gz: 1702498697850e24e36ee5cae731f81d8f122bb67c0bca998a31cf645cbd019b1b02d767d1be69359c62dac3f115a240a482bbc68e3e917af5416f7dba7a8e61
7
- data.tar.gz: ce9e7aa98a39d03298cba2a1252bdf9c1acb6c4bd60c258228ab96ad25e640d4d609762fba916d06890fc4b9d7b26c0e4d357f8bedb079b97aa34c912e735162
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.27'
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: repo['title'],
305
- difficulty: repo['difficulty'],
306
- description: repo['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
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.27
4
+ version: 0.2.28
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manuel Zubieta