fuubar 2.1.1 → 2.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/LICENSE.txt +0 -1
- data/lib/fuubar.rb +6 -6
- data/spec/fuubar_spec.rb +5 -5
- metadata +33 -5
- metadata.gz.sig +0 -0
- data/Rakefile +0 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ddf54b4c579c32bbd4cbdf14cb70268207516cca
|
4
|
+
data.tar.gz: b3d92bd30de59be3101bc466d7aaf9ddac6ab4a8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 905c5d07754f19bc22a5ed8b703bb3369c6b18fb9a6f0b3e7dfd66518507053bb5a6da6068b1e566f6f2db11deb6010b6827e2a5d1e2d38f1259d01605ea108e
|
7
|
+
data.tar.gz: c6e6a21b668654d46654b1309641c88fd22cc21ed8801a63f14ef5ee41c8dbef6fbc7b97d1ca183519deb8c890441e83d7c88ed2c6ddaeb54cebd27b78422a63
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/LICENSE.txt
CHANGED
data/lib/fuubar.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
|
-
require 'rspec'
|
2
|
+
require 'rspec/core'
|
3
3
|
require 'rspec/core/formatters/base_text_formatter'
|
4
4
|
require 'ruby-progressbar'
|
5
5
|
require 'fuubar/output'
|
@@ -35,11 +35,11 @@ class Fuubar < RSpec::Core::Formatters::BaseTextFormatter
|
|
35
35
|
|
36
36
|
def start(notification)
|
37
37
|
progress_bar_options = DEFAULT_PROGRESS_BAR_OPTIONS.
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
38
|
+
merge(:throttle_rate => continuous_integration? ? 1.0 : nil).
|
39
|
+
merge(configuration.fuubar_progress_bar_options).
|
40
|
+
merge(:total => notification.count,
|
41
|
+
:output => output,
|
42
|
+
:autostart => false)
|
43
43
|
|
44
44
|
self.progress = ProgressBar.create(progress_bar_options)
|
45
45
|
self.passed_count = 0
|
data/spec/fuubar_spec.rb
CHANGED
@@ -8,14 +8,14 @@ describe Fuubar do
|
|
8
8
|
let(:output) do
|
9
9
|
io = StringIO.new
|
10
10
|
|
11
|
-
allow(io).to
|
12
|
-
|
11
|
+
allow(io).to receive(:tty?).
|
12
|
+
and_return(true)
|
13
13
|
|
14
14
|
io
|
15
15
|
end
|
16
16
|
|
17
17
|
let(:formatter) { Fuubar.new(output) }
|
18
|
-
let(:example) {
|
18
|
+
let(:example) { self.class.example }
|
19
19
|
let(:example_count) { 2 }
|
20
20
|
let(:start_notification) { RSpec::Core::Notifications::StartNotification.new(example_count, Time.now) }
|
21
21
|
let(:message_notification) { RSpec::Core::Notifications::MessageNotification.new('My Message') }
|
@@ -29,7 +29,7 @@ describe Fuubar do
|
|
29
29
|
"/my/filename.rb:4:in `some_method'",
|
30
30
|
]
|
31
31
|
|
32
|
-
example =
|
32
|
+
example = self.class.example
|
33
33
|
|
34
34
|
example.metadata[:file_path] = '/my/example/spec.rb'
|
35
35
|
example.metadata[:execution_result].status = :failed
|
@@ -39,7 +39,7 @@ describe Fuubar do
|
|
39
39
|
end
|
40
40
|
|
41
41
|
let(:pending_example) do
|
42
|
-
example =
|
42
|
+
example = self.class.example
|
43
43
|
example.metadata[:execution_result].pending_fixed = true
|
44
44
|
example
|
45
45
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fuubar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nicholas Evans
|
@@ -33,10 +33,10 @@ cert_chain:
|
|
33
33
|
QwSfDGz6+zsImi5N3UT71+mk7YcviQSgvMRl3VkAv8MZ6wcJ5SQRpf9w0OeFH6Ln
|
34
34
|
nNbCoHiYeXX/lz/M6AIbxDIZZTwxcyvF7bdrQ2fbH5MsfQ==
|
35
35
|
-----END CERTIFICATE-----
|
36
|
-
date: 2016-
|
36
|
+
date: 2016-08-23 00:00:00.000000000 Z
|
37
37
|
dependencies:
|
38
38
|
- !ruby/object:Gem::Dependency
|
39
|
-
name: rspec
|
39
|
+
name: rspec-core
|
40
40
|
requirement: !ruby/object:Gem::Requirement
|
41
41
|
requirements:
|
42
42
|
- - "~>"
|
@@ -63,6 +63,34 @@ dependencies:
|
|
63
63
|
- - "~>"
|
64
64
|
- !ruby/object:Gem::Version
|
65
65
|
version: '1.4'
|
66
|
+
- !ruby/object:Gem::Dependency
|
67
|
+
name: rspec
|
68
|
+
requirement: !ruby/object:Gem::Requirement
|
69
|
+
requirements:
|
70
|
+
- - "~>"
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
version: '3.0'
|
73
|
+
type: :development
|
74
|
+
prerelease: false
|
75
|
+
version_requirements: !ruby/object:Gem::Requirement
|
76
|
+
requirements:
|
77
|
+
- - "~>"
|
78
|
+
- !ruby/object:Gem::Version
|
79
|
+
version: '3.0'
|
80
|
+
- !ruby/object:Gem::Dependency
|
81
|
+
name: chamber
|
82
|
+
requirement: !ruby/object:Gem::Requirement
|
83
|
+
requirements:
|
84
|
+
- - "~>"
|
85
|
+
- !ruby/object:Gem::Version
|
86
|
+
version: '2.3'
|
87
|
+
type: :development
|
88
|
+
prerelease: false
|
89
|
+
version_requirements: !ruby/object:Gem::Requirement
|
90
|
+
requirements:
|
91
|
+
- - "~>"
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: '2.3'
|
66
94
|
- !ruby/object:Gem::Dependency
|
67
95
|
name: awesome_print
|
68
96
|
requirement: !ruby/object:Gem::Requirement
|
@@ -85,7 +113,6 @@ extra_rdoc_files: []
|
|
85
113
|
files:
|
86
114
|
- LICENSE.txt
|
87
115
|
- README.md
|
88
|
-
- Rakefile
|
89
116
|
- lib/fuubar.rb
|
90
117
|
- lib/fuubar/output.rb
|
91
118
|
- spec/fuubar/output_spec.rb
|
@@ -93,7 +120,8 @@ files:
|
|
93
120
|
homepage: https://github.com/thekompanee/fuubar
|
94
121
|
licenses:
|
95
122
|
- MIT
|
96
|
-
metadata:
|
123
|
+
metadata:
|
124
|
+
allowed_push_host: https://rubygems.org
|
97
125
|
post_install_message:
|
98
126
|
rdoc_options: []
|
99
127
|
require_paths:
|
metadata.gz.sig
CHANGED
Binary file
|
data/Rakefile
DELETED