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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c5c8127b7871c95d6b79f5be5a9034bdc0275f759b7e6a8111797cc836ac0d1a
4
- data.tar.gz: af47e23f5c6c6e328c61b9fc914692d1e0d7837ac01ed425e5e22944090cc94d
3
+ metadata.gz: dc092e3f56ca3cc6ced2816d687b67790dd6fe571226ddde5e9ce0a2c0e6307e
4
+ data.tar.gz: 9f3b68ca170a184f19415dd4576db00d6dd122e35f5dc6cc32f4c0e16ba7da16
5
5
  SHA512:
6
- metadata.gz: 1b0f79b3cb25a32c990d3c62d56cd058323f7f59071c013ef817ac0f4798392738ced226987916fcb7f9c2dae62229ef14a9bca2dd84923e7167422ab7450752
7
- data.tar.gz: 83530d41db510502c5201018ebd9c369759d4c5410dda5e2c552e924df6a2820ba3f2a0fce77b803e4016d6bd13d60c29614f9e59bbcf9ff79e03c99eabe585e
6
+ metadata.gz: '096b6e8fb195e017153c2b3b3f87ad693e492179924dd5c3216f0027da9a96c7d437d91cea5c978e4bd1a061f8653e69e2ab266db6d41e06ad0eb61117225ed9'
7
+ data.tar.gz: 3ed348a021138756530b38c96a0800ff85c1c645b33bbbe335d2e5b1bd7b8b49fa7a7151ef51a034a660b815a77424ad9f75dec210baa034b0f922d7bcc782a4
data/HISTORY.md CHANGED
@@ -1,3 +1,11 @@
1
+ # 0.13.2
2
+ Release Date: 2024-12-20
3
+ * drop support for poltergeist
4
+
5
+ # 0.13.1
6
+ Release Date: 2024-11-10
7
+ * use --publish-quiet option
8
+
1
9
  # 0.13.0
2
10
  Release Date: 2024-11-10
3
11
  * add support for cucumber-4
@@ -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.0'
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
data/lib/tasks/close.rake CHANGED
@@ -44,6 +44,7 @@ task :close => dependencies do |t, args|
44
44
  "--require #{feature_dir}",
45
45
  '--guess',
46
46
  '--no-multiline',
47
+ '--publish-quiet',
47
48
  format_arg
48
49
  ]
49
50
  args << '--dry-run' if ENV['DRY_RUN'] or ENV['DR']
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.0
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-10 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