shoot 0.0.2 → 0.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +3 -1
- data/lib/shoot/cli.rb +1 -1
- data/lib/shoot/version.rb +1 -1
- data/shoot-0.0.2.gem +0 -0
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: b8cdeac72398c6ad021640a455b460f2e9c03b90
|
|
4
|
+
data.tar.gz: 0b709c5258ffb4cc973ed6193bb2f049ed009119
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: bbe3a19d0669ba7c859ef1f8a784bab49dc30101e66ab2490409072369f21e07cbd9b4ec6c99543c5088bf29bac6221562a063e6c646526f76486ec1d661004c
|
|
7
|
+
data.tar.gz: a81a8f8ccb782f9a479baf9b99303cf4ef34f71c8beca8a893ed12743ead1b7e6167d841ec246f4e65c58045871b8d18ec40d2173aebf82b37ddb78092f6c7cf
|
data/README.md
CHANGED
|
@@ -16,6 +16,8 @@ And then execute:
|
|
|
16
16
|
|
|
17
17
|
$ bundle
|
|
18
18
|
|
|
19
|
+
Also add the following environment variables: `BROWSERSTACK_USER` and `BROWSERSTACK_KEY`. The way you do it is up to you (we recommend either dotenv or an export in your personal files).
|
|
20
|
+
|
|
19
21
|
## Usage
|
|
20
22
|
|
|
21
23
|
Shoot installs a binary. To inspect it, just run:
|
|
@@ -34,7 +36,7 @@ The first thing you should do is:
|
|
|
34
36
|
538 ios 7.0 iphone iPhone 5S
|
|
35
37
|
539 ios 7.0 iphone iPhone 5C
|
|
36
38
|
|
|
37
|
-
The `list` command basically fetches all browsers available on BrowserStack and caches them locally on `.browsers.json`. You can choose to add this
|
|
39
|
+
The `list` command basically fetches all browsers available on BrowserStack and caches them locally on `.screenshots/.browsers.json`. You can choose to add this folder on your `.gitignore`, since shoot will save all images there as well.
|
|
38
40
|
|
|
39
41
|
Then, you can choose to activate the browsers you wanna use, based on id. Example:
|
|
40
42
|
|
data/lib/shoot/cli.rb
CHANGED
|
@@ -81,7 +81,7 @@ module Shoot
|
|
|
81
81
|
|
|
82
82
|
def fetch_json_and_prepare
|
|
83
83
|
require 'rest_client'
|
|
84
|
-
JSON.parse(RestClient.get("https
|
|
84
|
+
JSON.parse(RestClient.get("https://#{ENV['BROWSERSTACK_USER']}:#{ENV['BROWSERSTACK_KEY']}@www.browserstack.com/automate/browsers.json")).tap do |json|
|
|
85
85
|
json.each_with_index do |browser, index|
|
|
86
86
|
browser['id'] = index
|
|
87
87
|
end
|
data/lib/shoot/version.rb
CHANGED
data/shoot-0.0.2.gem
ADDED
|
Binary file
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: shoot
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Juan Lulkin
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-02-
|
|
11
|
+
date: 2015-02-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -128,6 +128,7 @@ files:
|
|
|
128
128
|
- lib/shoot/cli.rb
|
|
129
129
|
- lib/shoot/scenario.rb
|
|
130
130
|
- lib/shoot/version.rb
|
|
131
|
+
- shoot-0.0.2.gem
|
|
131
132
|
- shoot.gemspec
|
|
132
133
|
homepage: ''
|
|
133
134
|
licenses:
|