codersdojo 1.0.15 → 1.0.16
Sign up to get free protection for your applications and to get access to all the features.
- data/app/console_view.rb +2 -4
- data/app/controller.rb +1 -1
- data/app/filename_formatter.rb +5 -1
- metadata +3 -3
data/app/console_view.rb
CHANGED
@@ -2,16 +2,14 @@ require 'shell_wrapper'
|
|
2
2
|
|
3
3
|
class ConsoleView
|
4
4
|
|
5
|
-
@@VERSION = '0.9'
|
6
|
-
|
7
5
|
def initialize scaffolder
|
8
6
|
@scaffolder = scaffolder
|
9
7
|
end
|
10
8
|
|
11
9
|
def show_help
|
12
10
|
puts <<-helptext
|
13
|
-
|
14
|
-
|
11
|
+
CodersDojo-Client, http://www.codersdojo.org, Copyright by it-agile GmbH (http://www.it-agile.de)
|
12
|
+
CodersDojo-Client automatically runs your code kata, logs the progress and uploads the kata to codersdojo.org.
|
15
13
|
|
16
14
|
helptext
|
17
15
|
show_usage
|
data/app/controller.rb
CHANGED
@@ -45,7 +45,7 @@ class Controller
|
|
45
45
|
@view.show_upload_start @hostname
|
46
46
|
if session_directory then
|
47
47
|
uploader = Uploader.new @hostname, framework, session_directory
|
48
|
-
|
48
|
+
@view.show_upload_result uploader.upload
|
49
49
|
else
|
50
50
|
@view.show_missing_command_argument_error "upload"
|
51
51
|
end
|
data/app/filename_formatter.rb
CHANGED
@@ -31,9 +31,13 @@ class FilenameFormatter
|
|
31
31
|
end
|
32
32
|
|
33
33
|
def extract_last_path_item dir_path
|
34
|
-
last = dir_path.split(
|
34
|
+
last = dir_path.split(dir_separator).last
|
35
35
|
last.nil? ? "" : last
|
36
36
|
end
|
37
|
+
|
38
|
+
def dir_separator
|
39
|
+
File::ALT_SEPARATOR ? File::ALT_SEPARATOR : File::SEPARATOR
|
40
|
+
end
|
37
41
|
|
38
42
|
end
|
39
43
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: codersdojo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 55
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 1.0.
|
9
|
+
- 16
|
10
|
+
version: 1.0.16
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- CodersDojo-Team
|