codersdojo 1.0.15 → 1.0.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
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
- Personal CodersDojo, Version #{@@VERSION}, http://www.codersdojo.com, Copyright by it-agile GmbH (http://www.it-agile.de)
14
- PersonalCodersDojo automatically runs your tests of a code kata.
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
- p uploader.upload
48
+ @view.show_upload_result uploader.upload
49
49
  else
50
50
  @view.show_missing_command_argument_error "upload"
51
51
  end
@@ -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(File::Separator).last
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: 9
4
+ hash: 55
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 15
10
- version: 1.0.15
9
+ - 16
10
+ version: 1.0.16
11
11
  platform: ruby
12
12
  authors:
13
13
  - CodersDojo-Team