shoot 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/shoot/cli.rb +3 -1
- data/lib/shoot/scenario.rb +3 -1
- data/lib/shoot/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc99bf8a217c9471a2f189b4b7e7cd584e5c6c94
|
4
|
+
data.tar.gz: 5d90da38b68b264ae36acb79f434d4e260999d05
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a340553e0dc0811bba77654c81f5e5070de666b1580e871cf0cf4639452d0f64a2f4f50b52ca5c025c1f4725863140aa1162646e08c39a1a60f0bab71d73a8b7
|
7
|
+
data.tar.gz: e27bb28b1d368aeffb52c3ba8a5409906ef2ac059a5e279fdc5d8e9bacd5cb586b19a3ee4225daf096739b134625ff313316defc5fb37de2644ea6caa41adec2
|
data/lib/shoot/cli.rb
CHANGED
@@ -4,7 +4,9 @@ require 'colorize'
|
|
4
4
|
|
5
5
|
module Shoot
|
6
6
|
class CLI < Thor
|
7
|
-
|
7
|
+
require 'fileutils'
|
8
|
+
FileUtils::mkdir_p '.screenshots'
|
9
|
+
BROWSERS_PATH = '.screenshots/.browsers.json'
|
8
10
|
|
9
11
|
desc 'list', 'List all platforms. Optionally pass a filter (e.g. browserstack list ie)'
|
10
12
|
def list(filter = nil)
|
data/lib/shoot/scenario.rb
CHANGED
@@ -53,6 +53,8 @@ class Shoot::Scenario
|
|
53
53
|
def shoot(method)
|
54
54
|
send(method)
|
55
55
|
sleep(1) # Just in case
|
56
|
-
|
56
|
+
require 'fileutils'
|
57
|
+
FileUtils::mkdir_p '.screenshots'
|
58
|
+
save_screenshot(".screenshots/#{method} #{platform_name}.png")
|
57
59
|
end
|
58
60
|
end
|
data/lib/shoot/version.rb
CHANGED