watir_shot 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/tasks/watir_shot_tasks.rake +2 -2
- data/lib/watir_shot/version.rb +1 -1
- metadata +2 -3
- data/README.rdoc +0 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 395918ff11b5971fa47ccd45ef57923526238980
|
4
|
+
data.tar.gz: dabf54dc43acc396ad56b11c90346abf4197eb04
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 58889de2a3d25c3a49ba4ad77af363c26b07edec092ba14f987f119b9dcc75fc758c809153b30101e28c7c3f3e557f278afa92a2958f6d5c2360cfdb4b368126
|
7
|
+
data.tar.gz: 506cddb51669be037ae999edf88d55fb7f5d6fffcb5493a0703d1348e8666b499384e16568e10aedcac6074d5402d905a0f0f5d5f6b3fddb55e116e21666abd0
|
@@ -33,13 +33,13 @@ namespace :watir_shot do
|
|
33
33
|
# clean screenshot directory before capture.
|
34
34
|
FileUtils.rm(Dir.glob(tmp_dir.to_s + '/**/*.png'))
|
35
35
|
# do pre-processing
|
36
|
-
WatirShot.befores[key.to_sym].call(browser)
|
36
|
+
WatirShot.befores[key.to_sym].call(browser) if WatirShot.befores[key.to_sym]
|
37
37
|
watir_shot_pages[key].each.with_index(1) do |page, index|
|
38
38
|
browser.goto WatirShot.base_url + page['path']
|
39
39
|
browser.screenshot.save "#{tmp_dir}/#{sprintf('%04d', index)}-#{page['title']}.png"
|
40
40
|
end
|
41
41
|
# do post-processing
|
42
|
-
WatirShot.afters[key.to_sym].call(browser)
|
42
|
+
WatirShot.afters[key.to_sym].call(browser) if WatirShot.afters[key.to_sym]
|
43
43
|
end
|
44
44
|
browser.close
|
45
45
|
end
|
data/lib/watir_shot/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: watir_shot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Toyoaki Oko
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-10-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: pry
|
@@ -60,7 +60,6 @@ extensions: []
|
|
60
60
|
extra_rdoc_files: []
|
61
61
|
files:
|
62
62
|
- MIT-LICENSE
|
63
|
-
- README.rdoc
|
64
63
|
- Rakefile
|
65
64
|
- lib/railtie.rb
|
66
65
|
- lib/tasks/watir_shot_tasks.rake
|
data/README.rdoc
DELETED