capybara-screenshot_config 0.1.0 → 0.2.0

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: dee833709a135b06070713b52f8a2ac2851cbcc8
4
- data.tar.gz: b8684c3afb9afbc7d173b68fa0cc43639fcacd62
3
+ metadata.gz: d3e2773a2034dcca5044493e03b0e49044333be0
4
+ data.tar.gz: 8006791bac6ace8b34f6fc06a9f9196c012a8855
5
5
  SHA512:
6
- metadata.gz: 662101b0b7946e759fff46ceb158a81701be06e5aef6bc7f95fcc8025d32cca9127265f4fad1c6c6c776b4344a42ea459a36cedd92f3f1c26b737ef348599363
7
- data.tar.gz: 629f94b3b520d2c2de6314953bfe708607b1cd87b0b38e2c43455d44990c88979f4c1ad31cc3b8b6cd8091a11857794b3f574c39ffac280e59444f41ca2ecb45
6
+ metadata.gz: ea7623ae87a49f69dfa9e52ef82c49fb924ff5d2fd4494845acc0af8013a1744ef41f888752c17b8a80f65358ed1a09d711a9c150cb21b874278431811319be0
7
+ data.tar.gz: b5627f9fc0fa34893400056d557bcdbc61580771e3b470a2e577553c1ba5f606c83dee5e21187c28aa80895897a1586a338551123a6bf6de87263120d52c48a4
data/.travis.yml CHANGED
@@ -1,4 +1,5 @@
1
1
  language: ruby
2
+ cache: bundler
2
3
  rvm:
3
- - 2.2.2
4
- before_install: gem install bundler -v 1.10.6
4
+ - 2.2.5
5
+ - 2.3.1
data/README.md CHANGED
@@ -15,11 +15,15 @@ gem 'capybara-screenshot_config'
15
15
 
16
16
  And then execute:
17
17
 
18
- $ bundle
18
+ ```
19
+ $ bundle
20
+ ```
19
21
 
20
22
  Or install it yourself as:
21
23
 
22
- $ gem install capybara-screenshot_config
24
+ ```
25
+ $ gem install capybara-screenshot_config
26
+ ```
23
27
 
24
28
  ## Requirement
25
29
  - capybara 2.x or more
@@ -15,14 +15,15 @@ module Capybara
15
15
  end
16
16
  end
17
17
 
18
- # monkey patching Capybara::Session#save_screenshot
19
- class Session
20
- alias_method :old_save_screenshot, :save_screenshot
21
-
18
+ module SaveScreenshotPatch
22
19
  def save_screenshot(path, options={})
23
20
  options = ScreenshotConfig.configuration.options.merge(options)
24
21
 
25
- old_save_screenshot("#{ScreenshotConfig.configuration.save_dir}/#{path}", options)
22
+ super("#{ScreenshotConfig.configuration.save_dir}/#{path}", options)
26
23
  end
27
24
  end
25
+
26
+ class Session
27
+ prepend SaveScreenshotPatch
28
+ end
28
29
  end
@@ -1,5 +1,5 @@
1
1
  module Capybara
2
2
  module ScreenshotConfig
3
- VERSION = "0.1.0"
3
+ VERSION = "0.2.0"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capybara-screenshot_config
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - toshimaru
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-02-08 00:00:00.000000000 Z
11
+ date: 2016-09-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capybara
@@ -118,7 +118,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
118
118
  version: '0'
119
119
  requirements: []
120
120
  rubyforge_project:
121
- rubygems_version: 2.4.5
121
+ rubygems_version: 2.5.1
122
122
  signing_key:
123
123
  specification_version: 4
124
124
  summary: Easier Capybara screenshot configuration