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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5ca9a9451cff2cc399deb61e11c3fd1f18bff01a
4
- data.tar.gz: 4d3aabcee015d1579598430f3d4c3f6834d61d31
3
+ metadata.gz: 85948a3b5772cbcacc557bb58361e2664373c948
4
+ data.tar.gz: 81873d5f45d683853570239f6f0ac59a284e3e56
5
5
  SHA512:
6
- metadata.gz: 56fe978d7c64ce752396bc1c09dcccc5deab326568c1eccc7f9cee00036e7200a75cd07ac48c227d7c172e0e7f36e1e6bc7049d389636bf40644857aa421173f
7
- data.tar.gz: 679738bbf228d54c4b788b9b2618cc7ecc185ebe5ffc788c8eeb7071d60448649fa34f0c72031a98cc6b0062abf3d12f52d72738811da568d92df1cbf72e7284
6
+ metadata.gz: ea65c791ad3d72cd11eb200f3ef94980448ce1b02c9b37c21814dbaef3f880e8f6724f50d9c3a71d0de1012fc4a2c08cb5d91d6340ea6bc13c611ad0a1e1c2e7
7
+ data.tar.gz: 2e08c86a1780b3da1643f6956a3d3cc9324ad4b4b2bcdd68ff22ed4cbe12e55c44f7d46a0a1f6cd889e2e032f3c71254ae37c42b2551089a657df1ec34c1889e
@@ -0,0 +1,5 @@
1
+ language: ruby
2
+ rvm:
3
+ - "2.1.2"
4
+ script: bundle exec rspec spec
5
+
@@ -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(12345)
157
+ my_server = Shoot::Ngrok.new
157
158
  visit my_server.url
158
159
  end
159
160
  ```
160
161
 
161
- Where `12345` is the port of your local server. The default is `3000`, since I believe you're probably using [Rails](http://rubyonrails.org/).
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
 
@@ -0,0 +1,3 @@
1
+ - Allow to define the path for the browsers file
2
+ - Have some sort of built in support for AppliTools
3
+ - Improve performance
@@ -7,17 +7,22 @@ module Shoot
7
7
  extend Forwardable
8
8
  def_delegators :@process, :start, :stop, :exited?
9
9
 
10
- def initialize(port = 3000)
11
- @process = ChildProcess.build("ngrok", "-log=stdout", "-subdomain=#{subdomain}", port.to_s)
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 subdomain
16
- @subdomain ||= "shoot-#{Time.now.to_i}-#{SecureRandom.random_number(10**8)}"
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.com"
25
+ @url ||= "http://#{@subdomain}.ngrok.io"
21
26
  end
22
27
  end
23
28
  end
@@ -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.default_wait_time = 10
43
+ Capybara.default_max_wait_time = 10
44
44
  Capybara.current_driver = platform_name
45
45
  end
46
46
 
@@ -1,3 +1,3 @@
1
1
  module Shoot
2
- VERSION = "3.0.0"
2
+ VERSION = "4.0.0"
3
3
  end
@@ -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", "~> 1.7"
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: 3.0.0
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: 2015-11-10 00:00:00.000000000 Z
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.7'
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.7'
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