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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b7f66f4f6cbb2bfc395676753d9caf658eea2a2f
4
- data.tar.gz: 30a61b20f76d2a68d9eac98675f145c056fa1b6d
3
+ metadata.gz: fc99bf8a217c9471a2f189b4b7e7cd584e5c6c94
4
+ data.tar.gz: 5d90da38b68b264ae36acb79f434d4e260999d05
5
5
  SHA512:
6
- metadata.gz: 26b92ed0a68cf7e763bd0850326580eecc22984d230a924cdc98f934896b66c78fa6e7fec5743c33bc21ed5a154321e6aeef50702ed50bdb90ebf127cf4cc94e
7
- data.tar.gz: b8b77da37f0600c7ff6eccb5e6d57d16876dced267345dcb83d93ae50ea598c2f9caf3220ccbf8d3280c18d152c45c45a27bbfe856cd70b9ca1644aa1dbd2aa9
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
- BROWSERS_PATH = '.browsers.json'
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)
@@ -53,6 +53,8 @@ class Shoot::Scenario
53
53
  def shoot(method)
54
54
  send(method)
55
55
  sleep(1) # Just in case
56
- save_screenshot("shoot/screenshots/#{method} #{platform_name}.png")
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
@@ -1,3 +1,3 @@
1
1
  module Shoot
2
- VERSION = "0.0.1"
2
+ VERSION = "0.0.2"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: shoot
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
  - Juan Lulkin