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 +4 -4
- data/lib/hexlet/member_cli.rb +2 -1
- data/lib/hexlet/teacher_cli.rb +2 -1
- data/lib/hexlet/version.rb +1 -1
- data/locales/en.membercli.yml +2 -0
- 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: 85f43ba9d8dec4680f643f4c39e4134f88ef046d
|
4
|
+
data.tar.gz: 510aef2f08c71149985ce5737a39eeda5f2794e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5897ec999e3d8a603aad89c87a3837dfb7b3cc0fafea088fd7db8b6cd10cd2e280e9083cc6b8494493d3e47f5b569c79383bd0cba9b473f1b8c7ba697ec178b8
|
7
|
+
data.tar.gz: 9d41310903a7ae6aaf336122defb0cc7d931da6eb05208f97a90d4bc7e3bc72e5b5a1919856346556b1c9b03f08a0b2f8ff7fa34f0a30f5787f1a5a258590320
|
data/lib/hexlet/member_cli.rb
CHANGED
@@ -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
|
-
|
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
|
|
data/lib/hexlet/teacher_cli.rb
CHANGED
@@ -12,7 +12,8 @@ module Hexlet
|
|
12
12
|
|
13
13
|
desc "submit PATH_TO_LESSON", "submit lesson"
|
14
14
|
def submit(path)
|
15
|
-
|
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"
|
data/lib/hexlet/version.rb
CHANGED
data/locales/en.membercli.yml
CHANGED
@@ -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
|