shoot 3.0.0 → 4.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +5 -0
- data/Changelog.md +10 -0
- data/README.md +9 -2
- data/Roadmap.md +3 -0
- data/lib/shoot/ngrok.rb +10 -5
- data/lib/shoot/scenario.rb +2 -2
- data/lib/shoot/version.rb +1 -1
- data/shoot.gemspec +1 -1
- metadata +8 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 85948a3b5772cbcacc557bb58361e2664373c948
|
4
|
+
data.tar.gz: 81873d5f45d683853570239f6f0ac59a284e3e56
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ea65c791ad3d72cd11eb200f3ef94980448ce1b02c9b37c21814dbaef3f880e8f6724f50d9c3a71d0de1012fc4a2c08cb5d91d6340ea6bc13c611ad0a1e1c2e7
|
7
|
+
data.tar.gz: 2e08c86a1780b3da1643f6956a3d3cc9324ad4b4b2bcdd68ff22ed4cbe12e55c44f7d46a0a1f6cd889e2e032f3c71254ae37c42b2551089a657df1ec34c1889e
|
data/.travis.yml
ADDED
data/Changelog.md
CHANGED
@@ -1,3 +1,13 @@
|
|
1
|
+
# 4.0.0 [Talya.Stern]
|
2
|
+
- Supports ngrok 2.X (support for ngrok 1.X removed)
|
3
|
+
- Shoot::Ngrok initializer changed to accept named parameters.
|
4
|
+
|
5
|
+
# 3.0.0
|
6
|
+
|
7
|
+
- Allows scenarios to be run with specific browsers
|
8
|
+
- Removes interactive mode
|
9
|
+
- Adds some important capabilities for very specific browsers
|
10
|
+
|
1
11
|
# 2.1.0
|
2
12
|
|
3
13
|
- Adds Ngrok and NgrokPow class to make forwarding much easier;
|
data/README.md
CHANGED
@@ -1,5 +1,6 @@
|
|
1
1
|
![](https://img.shields.io/gem/v/shoot.svg)
|
2
2
|
![](https://img.shields.io/codeclimate/github/joaomilho/shoot.svg)
|
3
|
+
[![Build Status](https://travis-ci.org/joaomilho/shoot.svg?branch=master)](https://travis-ci.org/joaomilho/shoot)
|
3
4
|
|
4
5
|
# Shoot
|
5
6
|
|
@@ -153,12 +154,18 @@ In order to access your local development environment on [BrowserStack](https://
|
|
153
154
|
|
154
155
|
``` ruby
|
155
156
|
def my_test
|
156
|
-
my_server = Shoot::Ngrok.new
|
157
|
+
my_server = Shoot::Ngrok.new
|
157
158
|
visit my_server.url
|
158
159
|
end
|
159
160
|
```
|
160
161
|
|
161
|
-
|
162
|
+
`Shoot::Ngrok.new` accepts a hash of options:
|
163
|
+
|
164
|
+
* `port`: the port of your local server. Optional. The default is `3000`, since I believe you're probably using [Rails](http://rubyonrails.org/).
|
165
|
+
|
166
|
+
* `auth_token`: an authtoken for the ngrok tunnel. Optional.
|
167
|
+
|
168
|
+
* `subdomain`: a subdomain of your choosing. Optional.
|
162
169
|
|
163
170
|
#### What if I'm using [pow](http://pow.cx)?
|
164
171
|
|
data/Roadmap.md
ADDED
data/lib/shoot/ngrok.rb
CHANGED
@@ -7,17 +7,22 @@ module Shoot
|
|
7
7
|
extend Forwardable
|
8
8
|
def_delegators :@process, :start, :stop, :exited?
|
9
9
|
|
10
|
-
def initialize(
|
11
|
-
|
10
|
+
def initialize(options)
|
11
|
+
port = options[:port] || 3000
|
12
|
+
@subdomain = options[:subdomain] || generate_subdomain
|
13
|
+
params = ["ngrok", "http", port.to_s, "-log=stdout", "-subdomain=#{@subdomain}"]
|
14
|
+
params << "-authtoken=#{options[:auth_token]}" if options[:auth_token]
|
15
|
+
@process = ChildProcess.build(*params)
|
16
|
+
|
12
17
|
start
|
13
18
|
end
|
14
19
|
|
15
|
-
def
|
16
|
-
|
20
|
+
def generate_subdomain
|
21
|
+
"shoot-#{Time.now.to_i}-#{SecureRandom.random_number(10**8)}"
|
17
22
|
end
|
18
23
|
|
19
24
|
def url
|
20
|
-
@url ||= "http://#{subdomain}.ngrok.
|
25
|
+
@url ||= "http://#{@subdomain}.ngrok.io"
|
21
26
|
end
|
22
27
|
end
|
23
28
|
end
|
data/lib/shoot/scenario.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
require 'selenium-webdriver'
|
2
|
-
require 'capybara'
|
2
|
+
require 'capybara/dsl'
|
3
3
|
require 'timeout'
|
4
4
|
|
5
5
|
class Shoot::Scenario
|
@@ -40,7 +40,7 @@ class Shoot::Scenario
|
|
40
40
|
Capybara.run_server = false
|
41
41
|
@platform_name = :poltergeist
|
42
42
|
end
|
43
|
-
Capybara.
|
43
|
+
Capybara.default_max_wait_time = 10
|
44
44
|
Capybara.current_driver = platform_name
|
45
45
|
end
|
46
46
|
|
data/lib/shoot/version.rb
CHANGED
data/shoot.gemspec
CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
|
-
spec.add_development_dependency "bundler", "
|
21
|
+
spec.add_development_dependency "bundler", ">= 1.6"
|
22
22
|
spec.add_development_dependency "rake", "~> 10.0"
|
23
23
|
spec.add_development_dependency "rspec", "~> 2"
|
24
24
|
|
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shoot
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 4.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Juan Lulkin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-03-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '1.
|
19
|
+
version: '1.6'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '1.
|
26
|
+
version: '1.6'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -160,12 +160,14 @@ extensions: []
|
|
160
160
|
extra_rdoc_files: []
|
161
161
|
files:
|
162
162
|
- ".gitignore"
|
163
|
+
- ".travis.yml"
|
163
164
|
- Changelog.md
|
164
165
|
- Gemfile
|
165
166
|
- LICENSE
|
166
167
|
- LICENSE.txt
|
167
168
|
- README.md
|
168
169
|
- Rakefile
|
170
|
+
- Roadmap.md
|
169
171
|
- bin/shoot
|
170
172
|
- lib/shoot.rb
|
171
173
|
- lib/shoot/browser.rb
|