lense 0.2.22 → 0.2.23

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 +8 -11
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1600eccb4435dc9031c968850163514a7bcf9fe2
4
- data.tar.gz: acd90d1e4330cf7b3b1a76b43aa0c9711124339a
3
+ metadata.gz: adf69174e23dff706fed2ea509f3fb20fe53871e
4
+ data.tar.gz: da7e3f913231021247d2d97c86364509f244cc95
5
5
  SHA512:
6
- metadata.gz: d37bd774bf8747ef6da5870ab7afd1f64c287b5f0e595fe4826a494bd2944d65188b7718aa2bbbde0cf6cb85512cbe4d96b3d414075c18d57ff1a3f92a658080
7
- data.tar.gz: b01a6f6a87716cc631edbfd37e770765bcc13f358669bdac5ad4d46311e53a7630b620dd5430f081590ca9ba2e1089a3d25f7e6acf1e4ade38cbd7401ba96f46
6
+ metadata.gz: a790ef99482ab6e65e60c9bc6b74eacfd0a1d6e4fcbf7f9f6b2e2d37c7f7fc9d66aaa6f255a77dad6b1120d9ec70f9fe6c5a190ba1c6aea93bfb949144bf0aeb
7
+ data.tar.gz: ba2f4bf5ebb41c87afb58e275b1df97dfd1cfb754bd29d0aabb6a51b8c86d8a6cc52554a4addef207447e67a647282436c5630c5982468d038572343079e9e1f
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.22'
10
+ VERSION = '0.2.23'
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')
@@ -293,16 +293,13 @@ class LENSE
293
293
  `#{cmd}`
294
294
 
295
295
  post_body = {
296
- params: {
297
- format: 'json',
298
- user_token: 'z5kqZTsKU_oXvC3d5j96',
299
- tar_file_base64: Base64::encode64(File.read(tar_path)),
300
- filename: tar_fname,
301
- content_type: "application/x-tar",
302
- lesson: {
303
- difficulty: 4
304
- }
305
-
296
+ format: 'json',
297
+ user_token: 'z5kqZTsKU_oXvC3d5j96',
298
+ tar_file_base64: Base64::encode64(File.read(tar_path)),
299
+ filename: tar_fname,
300
+ content_type: "application/x-tar",
301
+ lesson: {
302
+ difficulty: 4
306
303
  }
307
304
  }
308
305
  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.22
4
+ version: 0.2.23
5
5
  platform: ruby
6
6
  authors:
7
7
  - Manuel Zubieta