right_support 2.6.1 → 2.6.2

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.
@@ -1,6 +1,20 @@
1
+ # Copyright (c) 2012- RightScale, Inc, All Rights Reserved Worldwide.
2
+ #
3
+ # THIS PROGRAM IS CONFIDENTIAL AND PROPRIETARY TO RIGHTSCALE
4
+ # AND CONSTITUTES A VALUABLE TRADE SECRET. Any unauthorized use,
5
+ # reproduction, modification, or disclosure of this program is
6
+ # strictly prohibited. Any use of this program by an authorized
7
+ # licensee is strictly subject to the terms and conditions,
8
+ # including confidentiality obligations, set forth in the applicable
9
+ # License Agreement between RightScale.com, Inc. and the licensee.
10
+
11
+ # Cucumber naïvely requires JUST this file without necessarily requiring
12
+ # RightSupport's main file. Make up for Cucumber's shortcomings.
13
+ require 'right_support'
14
+
1
15
  module RightSupport::CI
2
16
  if require_succeeds?('cucumber/formatter/junit')
3
- class JUnitCucumberFormatter < Cucumber::Formatter::Junit
17
+ class JavaCucumberFormatter < Cucumber::Formatter::Junit
4
18
  private
5
19
 
6
20
  def build_testcase(duration, status, exception = nil, suffix = "")
@@ -1,4 +1,4 @@
1
- # Copyright (c) 2009-2011 RightScale, Inc, All Rights Reserved Worldwide.
1
+ # Copyright (c) 2012- RightScale, Inc, All Rights Reserved Worldwide.
2
2
  #
3
3
  # THIS PROGRAM IS CONFIDENTIAL AND PROPRIETARY TO RIGHTSCALE
4
4
  # AND CONSTITUTES A VALUABLE TRADE SECRET. Any unauthorized use,
@@ -13,7 +13,7 @@ require 'time'
13
13
  module RightSupport::CI
14
14
  if require_succeeds?('spec/runner/formatter/base_text_formatter')
15
15
  # RSpec 1.x
16
- class JUnitRSpecFormatter < Spec::Runner::Formatter::BaseTextFormatter
16
+ class JavaSpecFormatter < Spec::Runner::Formatter::BaseTextFormatter
17
17
  def initialize(*args)
18
18
  begin
19
19
  require 'builder'
@@ -100,7 +100,7 @@ module RightSupport::CI
100
100
  end
101
101
  elsif require_succeeds?('rspec/core/formatters/base_formatter')
102
102
  # RSpec 2.x
103
- class JUnitRSpecFormatter < RSpec::Core::Formatters::BaseFormatter
103
+ class JavaSpecFormatter < RSpec::Core::Formatters::BaseFormatter
104
104
  def initialize(*args)
105
105
  begin
106
106
  require 'builder'
@@ -1,3 +1,24 @@
1
+ # Copyright (c) 2012- RightScale Inc
2
+ #
3
+ # Permission is hereby granted, free of charge, to any person obtaining
4
+ # a copy of this software and associated documentation files (the
5
+ # "Software"), to deal in the Software without restriction, including
6
+ # without limitation the rights to use, copy, modify, merge, publish,
7
+ # distribute, sublicense, and/or sell copies of the Software, and to
8
+ # permit persons to whom the Software is furnished to do so, subject to
9
+ # the following conditions:
10
+ #
11
+ # The above copyright notice and this permission notice shall be
12
+ # included in all copies or substantial portions of the Software.
13
+ #
14
+ # THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ # EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ # MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ # NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ # LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ # OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ # WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
21
+
1
22
  require 'rake/tasklib'
2
23
 
3
24
  # Make sure the rest of RightSupport is required, since this file can be
@@ -30,31 +51,22 @@ module RightSupport::CI
30
51
  namespace @ci_namespace do
31
52
  task :prep do
32
53
  FileUtils.mkdir_p('measurement')
33
-
34
- # Tweak RUBYOPT so RubyGems and RightSupport are automatically required.
35
- # This is necessary because Cucumber doesn't have a -r equivalent we can
36
- # use to inject ourselves into its process. (There is an -r, but it disables
37
- # auto-loading.)
38
- rubyopt = '-rright_support'
39
- if ENV.key?('RUBYOPT')
40
- rubyopt = ENV['RUBYOPT'] + ' ' + rubyopt
41
- rubyopt = '-rrubygems ' + rubyopt unless (rubyopt =~ /ubygems/)
42
- end
43
- ENV['RUBYOPT'] = rubyopt
44
54
  end
45
55
 
46
56
  if require_succeeds?('rspec/core/rake_task')
47
57
  # RSpec 2
48
58
  desc "Run RSpec examples"
49
59
  RSpec::Core::RakeTask.new(:spec => :prep) do |t|
50
- t.rspec_opts = ['-f', JUnitRSpecFormatter.name,
60
+ t.rspec_opts = ['-r', 'right_support/ci',
61
+ '-f', JavaSpecFormatter.name,
51
62
  '-o', File.join(@output_path, 'rspec', 'rspec.xml')]
52
63
  end
53
64
  elsif require_succeeds?('spec/rake/spectask')
54
65
  # RSpec 1
55
66
  Spec::Rake::SpecTask.new(:spec => :prep) do |t|
56
67
  desc "Run RSpec Examples"
57
- t.spec_opts = ['-f', JUnitRSpecFormatter.name + ":" + File.join(@output_path, 'rspec', 'rspec.xml')]
68
+ t.spec_opts = ['-r', 'right_support/ci',
69
+ '-f', JavaSpecFormatter.name + ":" + File.join(@output_path, 'rspec', 'rspec.xml')]
58
70
  end
59
71
  end
60
72
 
@@ -62,7 +74,7 @@ module RightSupport::CI
62
74
  desc "Run Cucumber features"
63
75
  Cucumber::Rake::Task.new do |t|
64
76
  t.cucumber_opts = ['--no-color',
65
- '--format', JUnitCucumberFormatter.name,
77
+ '--format', JavaCucumberFormatter.name,
66
78
  '--out', File.join(@output_path, 'cucumber')]
67
79
  end
68
80
  task :cucumber => [:prep]
@@ -3,9 +3,9 @@ module RightSupport
3
3
  end
4
4
  end
5
5
 
6
- require 'right_support/ci/junit_cucumber_formatter'
7
- require 'right_support/ci/junit_rspec_formatter'
6
+ require 'right_support/ci/java_cucumber_formatter'
7
+ require 'right_support/ci/java_spec_formatter'
8
8
 
9
9
  # Don't auto-require the Rake task; it mixes the Rake DSL into everything!
10
- # Must defer loading of the Rake task to the Rakefiles
10
+ # Must defer loading of the Rake task to the Rakefiles themselves.
11
11
  #require 'right_support/ci/rake_task'
@@ -7,8 +7,8 @@ spec = Gem::Specification.new do |s|
7
7
  s.required_ruby_version = Gem::Requirement.new(">= 1.8.7")
8
8
 
9
9
  s.name = 'right_support'
10
- s.version = '2.6.1'
11
- s.date = '2012-11-07'
10
+ s.version = '2.6.2'
11
+ s.date = '2012-11-08'
12
12
 
13
13
  s.authors = ['Tony Spataro', 'Sergey Sergyenko', 'Ryan Williamson', 'Lee Kirchhoff', 'Sergey Enin', 'Alexey Karpik']
14
14
  s.email = 'support@rightscale.com'
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: right_support
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 2
8
8
  - 6
9
- - 1
10
- version: 2.6.1
9
+ - 2
10
+ version: 2.6.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Tony Spataro
@@ -20,7 +20,7 @@ autorequire:
20
20
  bindir: bin
21
21
  cert_chain: []
22
22
 
23
- date: 2012-11-07 00:00:00 -08:00
23
+ date: 2012-11-08 00:00:00 -08:00
24
24
  default_executable:
25
25
  dependencies: []
26
26
 
@@ -37,8 +37,8 @@ files:
37
37
  - README.rdoc
38
38
  - lib/right_support.rb
39
39
  - lib/right_support/ci.rb
40
- - lib/right_support/ci/junit_cucumber_formatter.rb
41
- - lib/right_support/ci/junit_rspec_formatter.rb
40
+ - lib/right_support/ci/java_cucumber_formatter.rb
41
+ - lib/right_support/ci/java_spec_formatter.rb
42
42
  - lib/right_support/ci/rake_task.rb
43
43
  - lib/right_support/config.rb
44
44
  - lib/right_support/config/feature_set.rb