shindo 0.3.9 → 0.3.10

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
  SHA256:
3
- metadata.gz: 0e242a66a1e32f046b9679b17b4bfc81e6c96acca406c59a142a315192f18f91
4
- data.tar.gz: 1b24e9ce0a145f077b3e30eb2bc2b6e6ea5f76a855adec26ebde472f9c139db3
3
+ metadata.gz: 888bcf6781e3e4d16d3c58277eb19c992ee939a57e38aea00fe82cf0c7d0890c
4
+ data.tar.gz: cdfe64692891230c776c77b3bdf19ddd132c6186a55f082bfb2d504f620c2f90
5
5
  SHA512:
6
- metadata.gz: cfcc6bc96a24b0f0a986b53a587c27a1dbe391531206206ad29a908185e616f54f374b22970f1876becebc39a6365dba82c06e01bd380eac04a24959cc8f45dd
7
- data.tar.gz: 8da45cf108ab6a42195f01d5d7b272c4bd9070bd177662ec8ef557c1f7bf24c68abde37fda0a3b14184a8249badc20f9ad3074403d0f196d94e43f5d6da67f20
6
+ metadata.gz: b97f6871025c5be6baab36c4f957839badf929a2665141abd637c356945fc0b5047520385b621e9be929866277e838dd65a0bc5ca3cca4c3d3035c877c1d054a
7
+ data.tar.gz: 38dd3fc1958d55ddceb266e0b991142f1e7dc20d05897318e97093614cf2b2bd854cd2f11bd6f50845484e98788c6f66f8321913aa2d21e3f2291199a8a9c1f6
data/lib/shindo.rb CHANGED
@@ -5,7 +5,7 @@ module Shindo
5
5
  class Pending < StandardError; end
6
6
 
7
7
  unless const_defined?(:VERSION)
8
- VERSION = '0.3.9'
8
+ VERSION = '0.3.10'
9
9
  end
10
10
 
11
11
  def self.tests(description = nil, tags = [], &block)
data/lib/shindo/bin.rb CHANGED
@@ -74,11 +74,11 @@ run_in_thread(helpers, tests, @thread_locals.merge({:tags => tags}))
74
74
  @totals ||= { :failed => 0, :errored => 0, :pending => 0, :succeeded => 0 }
75
75
  @success = @totals[:failed] + @totals[:errored] == 0
76
76
  status = []
77
- status << "[red]#{@totals[:failed]} failed[/]," if @totals[:failed] > 0
78
- status << "[red]#{@totals[:errored]} errored[/]," if @totals[:errored] > 0
79
- status << "[yellow]#{@totals[:pending]} pending[/]," if @totals[:pending] > 0
77
+ status << "[red]#{@totals[:failed]} failed[/]" if @totals[:failed] > 0
78
+ status << "[red]#{@totals[:errored]} errored[/]" if @totals[:errored] > 0
79
+ status << "[yellow]#{@totals[:pending]} pending[/]" if @totals[:pending] > 0
80
80
  status << "[green]#{@totals[:succeeded]} succeeded[/]"
81
- status = status[0...-2].join(', ') << ' and ' << status[-1] if status.length > 3
81
+ status = [status[0...-1].join(', '), 'and', status[-1]] if status.length >= 2
82
82
  status << "in [bold]#{Time.now - @started_at}[/] seconds"
83
83
  Formatador.display_lines(['', status.join(' '), ''])
84
84
 
data/shindo.gemspec CHANGED
@@ -13,8 +13,8 @@ Gem::Specification.new do |s|
13
13
  ## If your rubyforge_project name is different, then edit it and comment out
14
14
  ## the sub! line in the Rakefile
15
15
  s.name = 'shindo'
16
- s.version = '0.3.9'
17
- s.date = '2020-12-04'
16
+ s.version = '0.3.10'
17
+ s.date = '2021-03-01'
18
18
  s.rubyforge_project = 'shindo'
19
19
 
20
20
  ## Make sure your summary is short. The description may be as long
@@ -53,13 +53,8 @@ Gem::Specification.new do |s|
53
53
  ## List your development dependencies here. Development dependencies are
54
54
  ## those that are only needed during development
55
55
  # s.add_development_dependency('DEVDEPNAME', [">= 1.1.0", "< 2.0.0"])
56
-
57
- if RUBY_VERSION.to_f <= 1.8
58
- s.add_development_dependency('rake', '~> 10.5')
59
- else
60
- s.add_development_dependency('rake')
61
- end
62
56
 
57
+ s.add_development_dependency('rake')
63
58
  s.add_development_dependency('rdoc')
64
59
 
65
60
  ## Leave this section as-is. It will be automatically generated from the
data/tests/bin_tests.rb CHANGED
@@ -30,16 +30,16 @@ Shindo.tests('bin') do
30
30
 
31
31
  tests('error') do
32
32
  @output = bin(path('error'))
33
- includes('ok + returns true') { @output }
34
- includes('1 errored, 1 succeeded') { @output }
33
+ includes('ok + returns true') { @output }
34
+ includes('1 errored and 1 succeeded') { @output }
35
35
 
36
36
  tests('$?.exitstatus').returns(1) { $?.exitstatus }
37
37
  end
38
38
 
39
39
  tests('contained-error') do
40
40
  @output = bin(path('contained-error'))
41
- includes('ok + returns true') { @output }
42
- includes('1 failed, 1 errored, 1 succeeded') { @output }
41
+ includes('ok + returns true') { @output }
42
+ includes('1 failed, 1 errored and 1 succeeded') { @output }
43
43
 
44
44
  tests('$?.exitstatus').returns(1) { $?.exitstatus }
45
45
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shindo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.9
4
+ version: 0.3.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - geemus (Wesley Beary)
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-12-04 00:00:00.000000000 Z
11
+ date: 2021-03-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: formatador
@@ -91,7 +91,7 @@ files:
91
91
  homepage: http://github.com/geemus/shindo
92
92
  licenses: []
93
93
  metadata: {}
94
- post_install_message:
94
+ post_install_message:
95
95
  rdoc_options:
96
96
  - "--charset=UTF-8"
97
97
  require_paths:
@@ -107,8 +107,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
107
107
  - !ruby/object:Gem::Version
108
108
  version: '0'
109
109
  requirements: []
110
- rubygems_version: 3.1.4
111
- signing_key:
110
+ rubygems_version: 3.1.2
111
+ signing_key:
112
112
  specification_version: 2
113
113
  summary: Simple depth first Ruby testing.
114
114
  test_files: []