hexlet 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bae440f25a294fd496bbf754f83ee2aa84af58c0
4
- data.tar.gz: 83cdea6e812a8eb690b166f4c04428b27cfd04e9
3
+ metadata.gz: 85f43ba9d8dec4680f643f4c39e4134f88ef046d
4
+ data.tar.gz: 510aef2f08c71149985ce5737a39eeda5f2794e8
5
5
  SHA512:
6
- metadata.gz: 730fa1f5a941521fba5d75d0de52ba6b932a10f8dfa5053a494205d212feea0cffe6fb18e2b247a27d4b0d8e8d40949e019ebc77895a88b36b7b6f7579c9e359
7
- data.tar.gz: d11399bb3d5f8e9ae4142e361551a7d13f8e2a45f65d7a861cf53b5e110da71cef67eeaf4fcf3a28d09434c9daa7d134e727fe79d097733d077fea88d43bf64c
6
+ metadata.gz: 5897ec999e3d8a603aad89c87a3837dfb7b3cc0fafea088fd7db8b6cd10cd2e280e9083cc6b8494493d3e47f5b569c79383bd0cba9b473f1b8c7ba697ec178b8
7
+ data.tar.gz: 9d41310903a7ae6aaf336122defb0cc7d931da6eb05208f97a90d4bc7e3bc72e5b5a1919856346556b1c9b03f08a0b2f8ff7fa34f0a30f5787f1a5a258590320
@@ -2,7 +2,8 @@ module Hexlet
2
2
  class MemberCLI < BaseCLI
3
3
  desc "submit PATH_TO_EXERCISE", "submit exercise"
4
4
  def submit(path)
5
- lesson_path, exercise_folder_name = File.split(path)
5
+ expanded_path = File.expand_path(path)
6
+ lesson_path, exercise_folder_name = File.split(expanded_path)
6
7
  lesson_folder_name = File.split(lesson_path)[1]
7
8
  parts = lesson_folder_name.split("_")
8
9
 
@@ -12,7 +12,8 @@ module Hexlet
12
12
 
13
13
  desc "submit PATH_TO_LESSON", "submit lesson"
14
14
  def submit(path)
15
- lesson_folder = File.split(path)[1]
15
+ expanded_path = File.expand_path(path)
16
+ lesson_folder = File.split(expanded_path)[1]
16
17
  parts = lesson_folder.split("_")
17
18
 
18
19
  if parts.last != "lesson"
@@ -1,3 +1,3 @@
1
1
  module Hexlet
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
@@ -2,8 +2,10 @@ en:
2
2
  membercli:
3
3
  submit:
4
4
  created: exercise result has been sent
5
+ wrong_lesson_folder: wrong folder, please submit the exercise folder
5
6
  fetch:
6
7
  ok: exercise has been downloaded
8
+ not_found: lesson or exercise not found
7
9
  login:
8
10
  ok: login has been succesfull
9
11
  not_found: User has not been found
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hexlet
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kirill Mokevnin