codersdojo 0.9.6 → 0.9.7

Sign up to get free protection for your applications and to get access to all the features.
data/app/codersdojo.rb CHANGED
@@ -1,8 +1,8 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require "rubygems"
4
3
  require "tempfile"
5
4
  require "rexml/document"
5
+ require 'rest_client'
6
6
 
7
7
  class Scheduler
8
8
 
@@ -260,11 +260,6 @@ class Uploader
260
260
  end
261
261
 
262
262
  def upload
263
- begin
264
- require 'rest_client'
265
- rescue LoadError
266
- return 'Cant find gem rest-client. Please install it.'
267
- end
268
263
  return upload_kata_and_states if @state_reader.enough_states?
269
264
  return "You need at least two states"
270
265
  end
@@ -420,9 +415,6 @@ Examples:
420
415
  :/dojo/my_kata% #{$0} setup ruby.test/unit prime
421
416
  Show the instructions how to setup the environment for kata execution with ruby.
422
417
 
423
- :/dojo/my_kata$ #{$0} start ruby prime.rb
424
- Run the tests of prime.rb. The test runs automatically every second if prime.rb was modified.
425
-
426
418
  :/dojo/my_kata$ #{$0} upload ruby.test/unit .codersdojo/2010-11-02_16-21-53
427
419
  Upload the kata (written in Ruby with the test/unit framework) located in directory ".codersdojo/2010-11-02_16-21-53" to codersdojo.com.
428
420
  helptext
@@ -1,6 +1,5 @@
1
1
  ARGV[0] = "spec" # to be first line to suppress help text output of shell command
2
- require 'rubygems'
3
- require "app/personal_codersdojo"
2
+ require "app/codersdojo"
4
3
  require "restclient"
5
4
  require "spec"
6
5
 
@@ -124,12 +123,6 @@ describe Uploader do
124
123
  @uploader = Uploader.new "http://dummy_host", "dummy.framework", "path_to_kata", @state_reader_mock
125
124
  end
126
125
 
127
- it "should return error message if rest-client not installed" do
128
- @uploader.stub(:require).and_raise(LoadError)
129
- message = @uploader.upload
130
- message.should == 'Cant find gem rest-client. Please install it.'
131
- end
132
-
133
126
  it "should upload a kata through a rest-interface" do
134
127
  RestClient.should_receive(:post).with('http://dummy_host/katas', {:framework => "dummy.framework"}).and_return '<id>222</id>'
135
128
  @uploader.upload_kata
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: 55
4
+ hash: 53
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 9
9
- - 6
10
- version: 0.9.6
9
+ - 7
10
+ version: 0.9.7
11
11
  platform: ruby
12
12
  authors:
13
13
  - CodersDojo-Team
@@ -17,8 +17,21 @@ cert_chain: []
17
17
 
18
18
  date: 2010-12-10 00:00:00 +01:00
19
19
  default_executable:
20
- dependencies: []
21
-
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
22
+ name: rest-client
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ hash: 3
30
+ segments:
31
+ - 0
32
+ version: "0"
33
+ type: :runtime
34
+ version_requirements: *id001
22
35
  description: Client executes tests in an endless loop and logs source code and test result.
23
36
  email: codersdojo@it-agile.de
24
37
  executables:
@@ -29,7 +42,7 @@ extra_rdoc_files: []
29
42
 
30
43
  files:
31
44
  - app/codersdojo.rb
32
- - spec/personal_codersdojo_spec.rb
45
+ - spec/codersdojo_spec.rb
33
46
  - bin/codersdojo
34
47
  has_rdoc: true
35
48
  homepage: http://www.codersdojo.org/
@@ -66,4 +79,4 @@ signing_key:
66
79
  specification_version: 3
67
80
  summary: Client for CodersDojo.org
68
81
  test_files:
69
- - spec/personal_codersdojo_spec.rb
82
+ - spec/codersdojo_spec.rb