rspec_junit 3.0.1 → 3.0.2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: e08b1968cd845a33baec492e4991bd5110a517ad
4
- data.tar.gz: 547e96c2219632c764c986c74e836685d5a3d64a
3
+ metadata.gz: d937177f0e2455b2d5c0b7a939d6463aa2b45a07
4
+ data.tar.gz: 47f1322d02c9bf69bba52aeb969546d863cbacf1
5
5
  SHA512:
6
- metadata.gz: 1e5025caac34fc5670b725c408b47bf4a7c300acebfda19a696a558905f1d21df5532da90e4c9e688d8c454a0ae99cda71195f7d8e802b131c4ec5b5c0f9c715
7
- data.tar.gz: a19bf0b6814c78bfb0bf00ef40d4b65379c1c0eaf5ceb093242db0e2510ed1514624838f1227f7d3a5036cdf4f524a967ee5249f5333f2fca29df94432ba0579
6
+ metadata.gz: ca2ec69902581ef6fd3202877e80ddc79a1800ae20a2623b484ffcd8406a1b72dd9a839d60a9e151112e8821808c8c1b4773b82f3913070458796daf5b277d23
7
+ data.tar.gz: cd1e5addb365022cbc7fcf7714e97f4a8139a674179d5f1c0af63361759515e7859625f316846815e39e8f070b50ae76dc1085e04d71528db19e920e0a9bb0be
data/.travis.yml CHANGED
@@ -1,7 +1,10 @@
1
1
  language: ruby
2
2
  cache: bundler
3
3
  rvm:
4
- - 2.2
4
+ - 2.2.3
5
+ script:
6
+ - bundle exec thor cuke
7
+ - bundle exec thor spec
5
8
  notifications:
6
9
  email:
7
10
  on_success: never
data/Thorfile ADDED
@@ -0,0 +1,31 @@
1
+ require 'rubygems'
2
+ require 'appium_thor'
3
+
4
+ Appium::Thor::Config.set do
5
+ gem_name 'rspec_junit'
6
+ github_owner 'bootstraponline'
7
+ end
8
+
9
+ # Must use '::' otherwise Default will point to Thor::Sandbox::Default
10
+ # Debug by calling Thor::Base.subclass_files via Pry
11
+ #
12
+ # https://github.com/erikhuda/thor/issues/484
13
+ #
14
+ # rubocop:disable Style/ClassAndModuleChildren
15
+ class ::Default < Thor
16
+ desc 'spec', 'Run RSpec tests'
17
+ def spec
18
+ exec 'bundle exec rspec spec'
19
+ end
20
+
21
+ desc 'cuke', 'Run cucumber tests'
22
+ def cuke
23
+ exec 'bundle exec cucumber -f progress'
24
+ end
25
+
26
+ # so many errors.
27
+ desc 'cop', 'Execute rubocop'
28
+ def cop
29
+ exec 'bundle exec rubocop --display-cop-names'
30
+ end
31
+ end
@@ -1,9 +1,9 @@
1
1
  # An RSpec formatter for generating results in JUnit format
2
- class JUnit
2
+ class JUnit < RSpec::Core::Formatters::BaseFormatter
3
3
  RSpec::Core::Formatters.register self, :example_passed, :example_failed, :example_pending, :dump_summary
4
4
 
5
5
  def initialize(output)
6
- @output = output
6
+ super
7
7
  @test_suite_results = {}
8
8
  @builder = Builder::XmlMarkup.new :indent => 2
9
9
  end
@@ -1,3 +1,4 @@
1
1
  module RspecJunit
2
- VERSION = '3.0.1'
2
+ VERSION = '3.0.2' unless defined? ::RspecJunit::VERSION
3
+ DATE = '2015-10-14' unless defined? ::RspecJunit::DATE
3
4
  end
data/lib/rspec_junit.rb CHANGED
@@ -4,6 +4,7 @@ require 'time'
4
4
  require 'builder'
5
5
  require 'rspec/core'
6
6
  require 'rspec/core/formatters'
7
+ require 'rspec/core/formatters/base_formatter'
7
8
 
8
9
  # internal dependencies
9
10
  require 'rspec_junit/junit'
data/rspec_junit.gemspec CHANGED
@@ -3,7 +3,6 @@ require_relative 'lib/rspec_junit/version'
3
3
  Gem::Specification.new do |gem|
4
4
  gem.name = 'rspec_junit'
5
5
  gem.version = RspecJunit::VERSION
6
- gem.platform = Gem::Platform::RUBY
7
6
  gem.authors = ['Nat Ritmeyer', 'Ben Snape']
8
7
  gem.email = ['nat@natontesting.com']
9
8
  gem.homepage = 'http://github.com/bootstraponline/rspec_junit'
@@ -15,11 +14,13 @@ Gem::Specification.new do |gem|
15
14
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
16
15
  gem.require_paths = ['lib']
17
16
 
18
- gem.add_runtime_dependency('rspec', '>= 3.2.0')
17
+ gem.add_runtime_dependency('rspec', '>= 3.3.0')
19
18
  gem.add_runtime_dependency('builder', '>= 3.2.2')
20
19
 
21
- gem.add_development_dependency('nokogiri', '~> 1.5.10') # for Ruby 1.8.7
22
- gem.add_development_dependency('rake', '~> 10.3.2')
20
+
21
+ gem.add_development_dependency('rubocop', '~> 0.34.2')
22
+ gem.add_development_dependency('appium_thor', '~> 1.0.1')
23
+ gem.add_development_dependency('nokogiri', '~> 1.6.6.2') # for Ruby 1.8.7
23
24
  gem.add_development_dependency('cucumber', '~> 1.3.16')
24
25
  gem.add_development_dependency('aruba', '~> 0.6.0')
25
26
  gem.add_development_dependency('coveralls', '~> 0.8.1')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec_junit
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.1
4
+ version: 3.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nat Ritmeyer
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2015-08-11 00:00:00.000000000 Z
12
+ date: 2015-10-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
@@ -17,14 +17,14 @@ dependencies:
17
17
  requirements:
18
18
  - - ">="
19
19
  - !ruby/object:Gem::Version
20
- version: 3.2.0
20
+ version: 3.3.0
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - ">="
26
26
  - !ruby/object:Gem::Version
27
- version: 3.2.0
27
+ version: 3.3.0
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: builder
30
30
  requirement: !ruby/object:Gem::Requirement
@@ -40,33 +40,47 @@ dependencies:
40
40
  - !ruby/object:Gem::Version
41
41
  version: 3.2.2
42
42
  - !ruby/object:Gem::Dependency
43
- name: nokogiri
43
+ name: rubocop
44
44
  requirement: !ruby/object:Gem::Requirement
45
45
  requirements:
46
46
  - - "~>"
47
47
  - !ruby/object:Gem::Version
48
- version: 1.5.10
48
+ version: 0.34.2
49
49
  type: :development
50
50
  prerelease: false
51
51
  version_requirements: !ruby/object:Gem::Requirement
52
52
  requirements:
53
53
  - - "~>"
54
54
  - !ruby/object:Gem::Version
55
- version: 1.5.10
55
+ version: 0.34.2
56
56
  - !ruby/object:Gem::Dependency
57
- name: rake
57
+ name: appium_thor
58
+ requirement: !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - "~>"
61
+ - !ruby/object:Gem::Version
62
+ version: 1.0.1
63
+ type: :development
64
+ prerelease: false
65
+ version_requirements: !ruby/object:Gem::Requirement
66
+ requirements:
67
+ - - "~>"
68
+ - !ruby/object:Gem::Version
69
+ version: 1.0.1
70
+ - !ruby/object:Gem::Dependency
71
+ name: nokogiri
58
72
  requirement: !ruby/object:Gem::Requirement
59
73
  requirements:
60
74
  - - "~>"
61
75
  - !ruby/object:Gem::Version
62
- version: 10.3.2
76
+ version: 1.6.6.2
63
77
  type: :development
64
78
  prerelease: false
65
79
  version_requirements: !ruby/object:Gem::Requirement
66
80
  requirements:
67
81
  - - "~>"
68
82
  - !ruby/object:Gem::Version
69
- version: 10.3.2
83
+ version: 1.6.6.2
70
84
  - !ruby/object:Gem::Dependency
71
85
  name: cucumber
72
86
  requirement: !ruby/object:Gem::Requirement
@@ -152,7 +166,7 @@ files:
152
166
  - HISTORY.txt
153
167
  - LICENSE.txt
154
168
  - README.md
155
- - Rakefile
169
+ - Thorfile
156
170
  - features/basic.feature
157
171
  - features/individual_suites.feature
158
172
  - features/individual_tests.feature
@@ -187,7 +201,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
187
201
  version: '0'
188
202
  requirements: []
189
203
  rubyforge_project:
190
- rubygems_version: 2.4.6
204
+ rubygems_version: 2.4.8
191
205
  signing_key:
192
206
  specification_version: 4
193
207
  summary: Yet Another RSpec JUnit Formatter (for Hudson/Jenkins)
data/Rakefile DELETED
@@ -1,25 +0,0 @@
1
- require 'bundler/gem_tasks'
2
- require 'cucumber/rake/task'
3
- require 'rspec/core/rake_task'
4
- require 'coveralls/rake/task'
5
- Coveralls::RakeTask.new
6
-
7
- namespace :cuke do
8
- Cucumber::Rake::Task.new(:all) do |t|
9
- t.cucumber_opts = "--format pretty"
10
- end
11
-
12
- Cucumber::Rake::Task.new(:wip) do |t|
13
- t.cucumber_opts = "--format pretty -t @wip"
14
- end
15
- end
16
-
17
- namespace :spec do
18
- RSpec::Core::RakeTask.new(:all) do |t|
19
- t.pattern = "spec/**/*_spec.rb"
20
- t.ruby_opts = "-I lib"
21
- end
22
- end
23
-
24
- task :default => ['spec:all', 'cuke:all', 'coveralls:push']
25
-