rubytest 0.5.3 → 0.5.4

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/.index CHANGED
@@ -1,6 +1,6 @@
1
1
  ---
2
- type: ruby
3
2
  revision: 2013
3
+ type: ruby
4
4
  sources:
5
5
  - var
6
6
  authors:
@@ -34,19 +34,20 @@ repositories:
34
34
  scm: git
35
35
  uri: git@github.com:rubyworks/ruby-test.git
36
36
  categories: []
37
- paths:
38
- load:
39
- - lib
40
37
  copyrights:
41
38
  - holder: RubyWorks
42
39
  year: '2011'
43
40
  license: BSD-2-Clause
41
+ customs: []
42
+ paths:
43
+ lib:
44
+ - lib
44
45
  created: '2011-07-23'
45
46
  summary: Ruby Universal Test Harness
46
47
  title: Ruby Test
47
- version: 0.5.3
48
+ version: 0.5.4
48
49
  name: rubytest
49
50
  description: ! "Ruby Test is a universal test harness for Ruby. It can handle any
50
51
  compliant \ntest framework, even running tests from multiple frameworks in a single
51
52
  pass."
52
- date: '2013-01-07'
53
+ date: '2013-01-22'
data/HISTORY.md CHANGED
@@ -1,9 +1,18 @@
1
1
  # RELEASE HISTORY
2
2
 
3
+ ## 0.5.4 / 2013-01-22
4
+
5
+ This release simply updates configuraiton code to work with RC v0.4.0.
6
+
7
+ Changes:
8
+
9
+ * Call RC.configure explicitly.
10
+
11
+
3
12
  ## 0.5.3 / 2013-01-07
4
13
 
5
- Adjust Config to look for a project's `.index` file for load path, instead of
6
- a `.ruby` file. Also, this will only happen now if configured to do so,
14
+ Adjust Config to look for a project's `.index` file for load path, instead
15
+ of a `.ruby` file. Also, this will only happen now if configured to do so,
7
16
  i.e. via the `-a/--autopath` option on the command line.
8
17
 
9
18
  Changes:
data/lib/rubytest/cli.rb CHANGED
@@ -19,7 +19,7 @@ module Test
19
19
 
20
20
  Test::Config.load
21
21
 
22
- @profile = ENV['profile'] || ENV['p'] || 'default'
22
+ #@profile = ENV['profile'] || ENV['p'] || 'default'
23
23
  @config = Test.config
24
24
  @runner = Runner.new
25
25
  end
@@ -35,7 +35,14 @@ module Test
35
35
  attr :config
36
36
 
37
37
  #
38
- attr_accessor :profile
38
+ def profile
39
+ ENV['profile'] || ENV['p'] || 'default'
40
+ end
41
+
42
+ #
43
+ def profile=(name)
44
+ ENV['profile'] = name.to_s
45
+ end
39
46
 
40
47
  #
41
48
  # Run tests.
@@ -43,6 +50,10 @@ module Test
43
50
  def run(*argv)
44
51
  options.parse!(argv)
45
52
 
53
+ if Object.const_get(:RC)
54
+ RC.configure('rubytest')
55
+ end
56
+
46
57
  run_profile
47
58
 
48
59
  runner.files.replace(argv) unless argv.empty?
@@ -56,6 +67,7 @@ module Test
56
67
  rescue => error
57
68
  raise error if $DEBUG
58
69
  $stderr.puts('ERROR: ' + error.to_s)
70
+ exit -1
59
71
  end
60
72
  end
61
73
 
data/lib/rubytest/rc.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  begin
2
2
  require 'rc/api'
3
- RC.configure 'rubytest' do |config|
3
+ RC.setup 'rubytest' do |config|
4
4
  Test.run(config.profile, &config)
5
5
  end
6
6
  rescue LoadError
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubytest
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ version: 0.5.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-01-07 00:00:00.000000000 Z
12
+ date: 2013-01-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: ansi
@@ -133,9 +133,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
133
133
  version: '0'
134
134
  requirements: []
135
135
  rubyforge_project:
136
- rubygems_version: 1.8.23
136
+ rubygems_version: 1.8.24
137
137
  signing_key:
138
138
  specification_version: 3
139
139
  summary: Ruby Universal Test Harness
140
140
  test_files:
141
141
  - test/basic_case.rb
142
+ has_rdoc: