closer 0.13.1 → 0.13.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
  SHA256:
3
- metadata.gz: 0ab4a2e742711a7019e7882ac2ed0713112545d0b04c1167b455ea573bf06097
4
- data.tar.gz: 0f4648e0ea9f93c1bc489045db5579d3e3344241b6e0d36272323567ac880dc3
3
+ metadata.gz: dc092e3f56ca3cc6ced2816d687b67790dd6fe571226ddde5e9ce0a2c0e6307e
4
+ data.tar.gz: 9f3b68ca170a184f19415dd4576db00d6dd122e35f5dc6cc32f4c0e16ba7da16
5
5
  SHA512:
6
- metadata.gz: 9d86c120eb3b645b6c156a09cccfc4cf41cfff87a8abc0a37cddd2a26a827606c792b46d73cdf61a8619a4d45415604a0c943ddef5fb859ac06dcf37baa174e4
7
- data.tar.gz: 4e81e54b70954af95094e24c30f8d58ee800010a9b9601b2d355213fa462a52e31b0bd1b8c859818faed745b80908cb712716619261a77eb295f8eaa5c5b95b2
6
+ metadata.gz: '096b6e8fb195e017153c2b3b3f87ad693e492179924dd5c3216f0027da9a96c7d437d91cea5c978e4bd1a061f8653e69e2ab266db6d41e06ad0eb61117225ed9'
7
+ data.tar.gz: 3ed348a021138756530b38c96a0800ff85c1c645b33bbbe335d2e5b1bd7b8b49fa7a7151ef51a034a660b815a77424ad9f75dec210baa034b0f922d7bcc782a4
data/HISTORY.md CHANGED
@@ -1,3 +1,7 @@
1
+ # 0.13.2
2
+ Release Date: 2024-12-20
3
+ * drop support for poltergeist
4
+
1
5
  # 0.13.1
2
6
  Release Date: 2024-11-10
3
7
  * use --publish-quiet option
@@ -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, :full => true)
30
+ page.driver.save_screenshot(image, full: true)
31
31
 
32
32
  attrs = {
33
- :class => 'screenshot',
34
- :src => "#{File.basename(IMAGE_DIR)}/#{File.basename(image)}",
35
- :alt => url
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
- case Capybara.current_driver
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
@@ -1,3 +1,3 @@
1
1
  module Closer
2
- VERSION = '0.13.1'
2
+ VERSION = '0.13.2'
3
3
  end
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
- require 'closer/coverage/rcov_formatter'
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
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.1
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-12-08 00:00:00.000000000 Z
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.4.22
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