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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6e0f9a09acfd2c9c0b1c603a150c5576ac894c98
4
- data.tar.gz: 7161a0927e1194a3b848497656fc62291d2d4cc2
3
+ metadata.gz: 395918ff11b5971fa47ccd45ef57923526238980
4
+ data.tar.gz: dabf54dc43acc396ad56b11c90346abf4197eb04
5
5
  SHA512:
6
- metadata.gz: 6b00d6170190797637a6a75365545f22a19466ac0ad522654281db3178b7d0d0f1176b64de2eeb05bc156b739011793f354c10eba4936345b4947de6faf3b476
7
- data.tar.gz: c68ebe45b0e4884e166fd7430e34f7badbe75858dc2e44e3fd813b0557ca84416b2f0f45ecf17f6b938241ef63500b1ab1828e0623b26f071f43f848f0be8fb6
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) unless WatirShot.befores[key.to_sym]
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) unless WatirShot.afters[key.to_sym]
42
+ WatirShot.afters[key.to_sym].call(browser) if WatirShot.afters[key.to_sym]
43
43
  end
44
44
  browser.close
45
45
  end
@@ -1,3 +1,3 @@
1
1
  module WatirShot
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
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.1
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-09-30 00:00:00.000000000 Z
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
@@ -1,3 +0,0 @@
1
- = WatirShot
2
-
3
- This project rocks and uses MIT-LICENSE.