codersdojo 1.2.11 → 1.2.12

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.
@@ -0,0 +1,17 @@
1
+ class MetaConfigFile
2
+
3
+ PROPERTY_FILENAME = '.meta'
4
+
5
+ def initialize shell
6
+ @shell = shell
7
+ end
8
+
9
+ def framework_property
10
+ properties['framework']
11
+ end
12
+
13
+ def properties
14
+ @shell.read_properties PROPERTY_FILENAME
15
+ end
16
+
17
+ end
data/app/scheduler.rb CHANGED
@@ -27,7 +27,7 @@ class Scheduler
27
27
  @view.show_kata_exit_message
28
28
  @last_action = @view.read_user_input.downcase
29
29
  @commands.each do |command|
30
- if @last_action == command.command_key
30
+ if @last_action.start_with? command.command_key
31
31
  command.execute
32
32
  end
33
33
  end
data/app/start_command.rb CHANGED
@@ -1,8 +1,12 @@
1
+ require 'meta_config_file'
2
+ require 'scheduler'
3
+
1
4
  class StartCommand
2
5
 
3
6
  def initialize shell, view, upload_command
4
7
  @shell = shell
5
8
  @view = view
9
+ @meta_file = MetaConfigFile.new @shell
6
10
  @upload_command = upload_command
7
11
  end
8
12
 
@@ -14,7 +18,7 @@ class StartCommand
14
18
  unless command then @view.show_missing_command_argument_error "start", "shell_command"; return end
15
19
  unless file then @view.show_missing_command_argument_error "start", "kata_file"; return end
16
20
  command = expand_run_command command
17
- @view.show_start_kata command, file, framework_property
21
+ @view.show_start_kata command, file, @meta_file.framework_property
18
22
  dojo = Runner.new @shell, SessionIdGenerator.new
19
23
  dojo.file = file
20
24
  dojo.run_command = command
@@ -34,12 +38,4 @@ class StartCommand
34
38
  end
35
39
  end
36
40
 
37
- def framework_property
38
- properties['framework']
39
- end
40
-
41
- def properties
42
- @shell.read_properties PROPERTY_FILENAME
43
- end
44
-
45
41
  end
@@ -1,9 +1,8 @@
1
+ require 'meta_config_file'
1
2
  require 'uploader'
2
3
 
3
4
  class UploadCommand
4
5
 
5
- PROPERTY_FILENAME = '.meta'
6
-
7
6
  attr_accessor :uploader
8
7
 
9
8
  def initialize shell, view, hostname
@@ -11,10 +10,11 @@ class UploadCommand
11
10
  @view = view
12
11
  @hostname = hostname
13
12
  @uploader = Uploader.new(hostname, '', '')
13
+ @meta_file = MetaConfigFile.new @shell
14
14
  end
15
15
 
16
16
  def execute
17
- upload nil, nil
17
+ upload nil
18
18
  end
19
19
 
20
20
  def execute_from_shell params
@@ -23,7 +23,7 @@ class UploadCommand
23
23
 
24
24
  def upload session_directory, open_browser=true
25
25
  formatter = FilenameFormatter.new
26
- framework = framework_property
26
+ framework = @meta_file.framework_property
27
27
  if not session_directory then
28
28
  session_directory = formatter.session_dir @shell.newest_dir_entry(FilenameFormatter.codersdojo_workspace)
29
29
  end
@@ -46,12 +46,4 @@ class UploadCommand
46
46
  command == 'upload'
47
47
  end
48
48
 
49
- def framework_property
50
- properties['framework']
51
- end
52
-
53
- def properties
54
- @shell.read_properties PROPERTY_FILENAME
55
- end
56
-
57
49
  end
@@ -9,3 +9,5 @@ Assumptions:
9
9
  - The whole kata source code is in the one %kata_file%.clj.
10
10
  - Java is installed on your system and 'java' is in the path.
11
11
  - clojure.jar and clojure-contrib.jar are placed in the 'lib' directory.
12
+
13
+ The support for Clojure/Is-Test was contributed by Stefan Roock.
@@ -12,3 +12,4 @@ Assumptions:
12
12
  - If your IDE does the compilation and linking, you should remove the first 3 lines
13
13
  in the run-once.%sh% file.
14
14
 
15
+ The support for C++/GTest was contributed by Stefan Roock.
@@ -12,3 +12,5 @@ Assumptions:
12
12
  nunit-console (possible path=C:\Programme\NUnit 2.5.9\bin\net-2.0\)
13
13
  - nunit.framework.dll is in the same directory as %Kata_file%.cs.
14
14
  - The whole kata source code is in the one %Kata_file%.cs.
15
+
16
+ The support for C#/NUnit was contributed by Meike Mertsch.
@@ -7,3 +7,5 @@ Run run-endless.%sh% and start your kata. (On Mac/Linux you have to call ./run-e
7
7
 
8
8
  Assumptions:
9
9
  - The whole kata source code is in the one %kata_file%.fth.
10
+
11
+ The support for Forth/Tester was contributed by Stefan Roock.
@@ -9,3 +9,5 @@ Assumptions:
9
9
  - Java and Groovy is installed on your system, 'groovy' is in the path and GROOVY_HOME is set.
10
10
  - groovy.jar is placed in the 'lib' directory.
11
11
  - The whole kata source code is in the one %Kata_file%Test.groovy.
12
+
13
+ The support for Groovy/GUnit was contributed by Stefan Roock.
@@ -15,3 +15,5 @@ Assumptions:
15
15
  - The kata source file has a main method that starts the tests.
16
16
  - If your IDE (like Eclipse) compiles the source file, you should remove the first two lines
17
17
  in the run-once.%sh% file.
18
+
19
+ The support for Java/JUnit was contributed by Stefan Roock.
@@ -6,4 +6,6 @@ These files were created:
6
6
  Run run-endless.%sh% and start your kata. (On Mac/Linux you have to call ./run-endless.%sh%.)
7
7
 
8
8
  Assumptions:
9
- - The whole kata source code is in the one spec.js.
9
+ - The whole kata source code is in the one spec.js.
10
+
11
+ The support for JavaScript/JSpec was contributed by Marko Schulz.
@@ -5,4 +5,6 @@ These files were created:
5
5
  Run run-endless.%sh% and start your kata. (On Mac/Linux you have to call ./run-endless.%sh%.)
6
6
 
7
7
  Assumptions:
8
- - The whole kata source code is in the one %kata_file%.js.
8
+ - The whole kata source code is in the one %kata_file%.js.
9
+
10
+ The support for JavaScript/Vows was contributed by Matthias Lübken.
@@ -7,3 +7,5 @@ Run run-endless.%sh% and start your kata. (On Mac/Linux you have to call ./run-e
7
7
 
8
8
  Assumptions:
9
9
  - The whole kata source code is in the one %kata_file%.pl.
10
+
11
+ The support for Perl/Test was contributed by Stefan Roock.
@@ -7,3 +7,5 @@ Run run-endless.%sh% and start your kata. (On Mac/Linux you have to call ./run-e
7
7
 
8
8
  Assumptions:
9
9
  - The whole kata source code is in the one %kata_file%.py.
10
+
11
+ The support for Python/PyTest was contributed by Sebastian Sanitz (github.com/sanitz).
@@ -7,3 +7,5 @@ Run run-endless.%sh% and start your kata. (On Mac/Linux you have to call ./run-e
7
7
 
8
8
  Assumptions:
9
9
  - The whole kata source code is in the one %kata_file%.py.
10
+
11
+ The support for Python/PyUnit was contributed by Steven Collins.
@@ -7,3 +7,5 @@ Run run-endless.%sh% and start your kata. (On Mac/Linux you have to call ./run-e
7
7
 
8
8
  Assumptions:
9
9
  - The whole kata source code is in the one %kata_file%.rb.
10
+
11
+ The support for Ruby/RSpec was contributed by Stefan Roock.
@@ -7,3 +7,5 @@ Run run-endless.%sh% and start your kata. (On Mac/Linux you have to call ./run-e
7
7
 
8
8
  Assumptions:
9
9
  - The whole kata source code is in the one %kata_file%.rb.
10
+
11
+ The support for Ruby/TestUnit was contributed by Stefan Roock.
@@ -15,3 +15,5 @@ Assumptions:
15
15
  - The kata source file has a main method that starts the tests.
16
16
  - If your IDE (like Eclipse) compiles the source file, you should remove the first two lines
17
17
  in the run-once.%sh% file.
18
+
19
+ The support for Scala/JUnit was contributed by Manuel Küblböck (Twitter: http://twitter.com/#!/ManuelKublbock, Web: http://qualityswdev.com).
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: 7
5
5
  prerelease: false
6
6
  segments:
7
7
  - 1
8
8
  - 2
9
- - 11
10
- version: 1.2.11
9
+ - 12
10
+ version: 1.2.12
11
11
  platform: ruby
12
12
  authors:
13
13
  - CodersDojo-Team
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-05-07 00:00:00 +02:00
18
+ date: 2011-05-09 00:00:00 +02:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -66,6 +66,7 @@ files:
66
66
  - app/generate_command.rb
67
67
  - app/help_command.rb
68
68
  - app/info_property_file.rb
69
+ - app/meta_config_file.rb
69
70
  - app/progress.rb
70
71
  - app/property_file_missing_exception.rb
71
72
  - app/runner.rb