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 +4 -4
- data/.travis.yml +3 -2
- data/README.md +6 -2
- data/lib/capybara/screenshot_config.rb +6 -5
- data/lib/capybara/screenshot_config/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d3e2773a2034dcca5044493e03b0e49044333be0
|
4
|
+
data.tar.gz: 8006791bac6ace8b34f6fc06a9f9196c012a8855
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ea7623ae87a49f69dfa9e52ef82c49fb924ff5d2fd4494845acc0af8013a1744ef41f888752c17b8a80f65358ed1a09d711a9c150cb21b874278431811319be0
|
7
|
+
data.tar.gz: b5627f9fc0fa34893400056d557bcdbc61580771e3b470a2e577553c1ba5f606c83dee5e21187c28aa80895897a1586a338551123a6bf6de87263120d52c48a4
|
data/.travis.yml
CHANGED
data/README.md
CHANGED
@@ -15,11 +15,15 @@ gem 'capybara-screenshot_config'
|
|
15
15
|
|
16
16
|
And then execute:
|
17
17
|
|
18
|
-
|
18
|
+
```
|
19
|
+
$ bundle
|
20
|
+
```
|
19
21
|
|
20
22
|
Or install it yourself as:
|
21
23
|
|
22
|
-
|
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
|
-
|
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
|
-
|
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
|
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.
|
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-
|
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.
|
121
|
+
rubygems_version: 2.5.1
|
122
122
|
signing_key:
|
123
123
|
specification_version: 4
|
124
124
|
summary: Easier Capybara screenshot configuration
|