closer 0.13.0 → 0.13.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/HISTORY.md +8 -0
- data/lib/closer/helpers/capture.rb +5 -10
- data/lib/closer/version.rb +1 -1
- data/lib/closer.rb +1 -2
- data/lib/tasks/close.rake +1 -0
- metadata +3 -4
- data/lib/closer/coverage/rcov_formatter.rb +0 -18
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dc092e3f56ca3cc6ced2816d687b67790dd6fe571226ddde5e9ce0a2c0e6307e
|
4
|
+
data.tar.gz: 9f3b68ca170a184f19415dd4576db00d6dd122e35f5dc6cc32f4c0e16ba7da16
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '096b6e8fb195e017153c2b3b3f87ad693e492179924dd5c3216f0027da9a96c7d437d91cea5c978e4bd1a061f8653e69e2ab266db6d41e06ad0eb61117225ed9'
|
7
|
+
data.tar.gz: 3ed348a021138756530b38c96a0800ff85c1c645b33bbbe335d2e5b1bd7b8b49fa7a7151ef51a034a660b815a77424ad9f75dec210baa034b0f922d7bcc782a4
|
data/HISTORY.md
CHANGED
@@ -27,12 +27,12 @@ module Closer
|
|
27
27
|
@@_screen_count += 1
|
28
28
|
|
29
29
|
image = File.join(IMAGE_DIR, "#{@@_screen_count}.png")
|
30
|
-
page.driver.save_screenshot(image, :
|
30
|
+
page.driver.save_screenshot(image, full: true)
|
31
31
|
|
32
32
|
attrs = {
|
33
|
-
:
|
34
|
-
:
|
35
|
-
:
|
33
|
+
class: 'screenshot',
|
34
|
+
src: "#{File.basename(IMAGE_DIR)}/#{File.basename(image)}",
|
35
|
+
alt: url
|
36
36
|
}
|
37
37
|
attrs[:title] = options[:title] if options[:title]
|
38
38
|
|
@@ -58,12 +58,7 @@ module Closer
|
|
58
58
|
end
|
59
59
|
|
60
60
|
def resize_window(width, height)
|
61
|
-
|
62
|
-
when :poltergeist
|
63
|
-
Capybara.current_session.driver.resize(width, height)
|
64
|
-
when :selenium
|
65
|
-
Capybara.current_session.driver.browser.manage.window.resize_to(width, height)
|
66
|
-
end
|
61
|
+
page.driver.browser.manage.window.resize_to(width, height)
|
67
62
|
end
|
68
63
|
|
69
64
|
def flash_image_tags
|
data/lib/closer/version.rb
CHANGED
data/lib/closer.rb
CHANGED
@@ -14,8 +14,7 @@ end
|
|
14
14
|
if Closer.config.coverage_enabled?
|
15
15
|
require 'simplecov'
|
16
16
|
require 'simplecov-rcov'
|
17
|
-
|
18
|
-
SimpleCov.formatter = Closer::Coverage::RcovFormatter
|
17
|
+
SimpleCov.formatter = SimpleCov::Formatter::RcovFormatter
|
19
18
|
SimpleCov.command_name(ENV['COMMAND_NAME'] || 'Cucumber')
|
20
19
|
SimpleCov.merge_timeout(Closer.config.merge_timeout)
|
21
20
|
SimpleCov.start
|
data/lib/tasks/close.rake
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: closer
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.13.
|
4
|
+
version: 0.13.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- ichy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-12-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cucumber
|
@@ -110,7 +110,6 @@ files:
|
|
110
110
|
- closer.gemspec
|
111
111
|
- lib/closer.rb
|
112
112
|
- lib/closer/config.rb
|
113
|
-
- lib/closer/coverage/rcov_formatter.rb
|
114
113
|
- lib/closer/cucumber_ext.rb
|
115
114
|
- lib/closer/cucumber_ext/compiler.rb
|
116
115
|
- lib/closer/formatter/html.rb
|
@@ -144,7 +143,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
144
143
|
- !ruby/object:Gem::Version
|
145
144
|
version: '0'
|
146
145
|
requirements: []
|
147
|
-
rubygems_version: 3.
|
146
|
+
rubygems_version: 3.3.26
|
148
147
|
signing_key:
|
149
148
|
specification_version: 4
|
150
149
|
summary: Cucumber test execution tool
|
@@ -1,18 +0,0 @@
|
|
1
|
-
require 'simplecov-rcov'
|
2
|
-
|
3
|
-
module Closer
|
4
|
-
module Coverage
|
5
|
-
class RcovFormatter < SimpleCov::Formatter::RcovFormatter
|
6
|
-
|
7
|
-
private
|
8
|
-
|
9
|
-
def write_file(template, output_filename, binding)
|
10
|
-
rcov_result = template.result(binding).force_encoding('UTF-8')
|
11
|
-
|
12
|
-
File.open( output_filename, "w" ) do |file_result|
|
13
|
-
file_result.write rcov_result
|
14
|
-
end
|
15
|
-
end
|
16
|
-
end
|
17
|
-
end
|
18
|
-
end
|