capybara-screenshot_config 0.0.1.beta → 0.0.1

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
  SHA1:
3
- metadata.gz: a6792aed5d6f9d4f99aafc378ea8824fe55db274
4
- data.tar.gz: bbcde9bd87eb76caf6c46f36ef5802f7187415c4
3
+ metadata.gz: f2c1baa6f54121510bde832f87b21d7378fed5e4
4
+ data.tar.gz: ce193a56f6b87c35751dc7ae96e15ae36ca3b8e1
5
5
  SHA512:
6
- metadata.gz: 8c73d05991105f089e6d35c89d1e3732b543839ff78c5afaa8c8b35e247951b9a0485a4e7a26b76888b5adc8807d993ccb16bae37b6cb8844821525e8cce686e
7
- data.tar.gz: fd2923238cbf6e446bb89c10796078c983faa3af98e000d082362dd31ecbc2760358d19bffff3c0698f11d318091b2bc3465c6c876d781c1bb093634b1758c45
6
+ metadata.gz: c96d45e44d3f701585b1cbc845cb5c46bee9aee8d950a1451210b3635bde4e8e5109b8c81589d450d6be147133c4c6bb967e7405d56b11b43d94b7150f2e7897
7
+ data.tar.gz: 32901efd45321a1c7243adaf6b2c926d25a54cd618bef3842398060d21e428d28b079c9b46c88d6b2f0110e92eae78acf5c420e54e81aec0bae3caa8b292aba9
@@ -20,7 +20,7 @@ module Capybara
20
20
  alias_method :old_save_screenshot, :save_screenshot
21
21
 
22
22
  def save_screenshot(path, options={})
23
- # TODO: merge options
23
+ options = ScreenshotConfig.configuration.options.merge(options)
24
24
 
25
25
  old_save_screenshot("#{ScreenshotConfig.configuration.save_dir}/#{path}", options)
26
26
  end
@@ -4,9 +4,15 @@ module Capybara
4
4
  attr_accessor :save_dir, :full
5
5
 
6
6
  def initialize
7
- @save_dir ||= "screenshot";
7
+ @save_dir ||= "screenshot"
8
8
  @full ||= false
9
9
  end
10
+
11
+ def options
12
+ {
13
+ full: @full
14
+ }
15
+ end
10
16
  end
11
17
  end
12
18
  end
@@ -1,5 +1,5 @@
1
1
  module Capybara
2
2
  module ScreenshotConfig
3
- VERSION = "0.0.1.beta"
3
+ VERSION = "0.0.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capybara-screenshot_config
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1.beta
4
+ version: 0.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - toshimaru
@@ -113,9 +113,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
113
113
  version: '0'
114
114
  required_rubygems_version: !ruby/object:Gem::Requirement
115
115
  requirements:
116
- - - ">"
116
+ - - ">="
117
117
  - !ruby/object:Gem::Version
118
- version: 1.3.1
118
+ version: '0'
119
119
  requirements: []
120
120
  rubyforge_project:
121
121
  rubygems_version: 2.4.5