localtunnel 1.0.0 → 1.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +29 -2
- data/lib/localtunnel/version.rb +1 -1
- data/localtunnel.gemspec +1 -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: 2a4bde484c6c8c5080e9c4d0bd18248ef8ff62c6
|
4
|
+
data.tar.gz: 1f33eca4f0c3281bbcf90216bb8522df94dfff11
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2f8d30e20b6cf805fbce77cb355e64fc63e3d8328bf4c0b7f2d20d1640c414380065652aa0c8269186492af433edd9a505d27a871da4ba6a964dd5eaf5fbf6ab
|
7
|
+
data.tar.gz: f9f08b7ecd6754a139b3f0889ea8b0be3ec4f97eb86906e3844b5861132761f1d5e437fc55f3bf5b13f79a71e724f79e21b905b7b523023c7a5594c7040be16c
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# localtunnel
|
1
|
+
# localtunnel [![Gem version](http://img.shields.io/gem/v/localtunnel.svg?style=flat-square)](http://rubygems.org/gems/localtunnel)
|
2
2
|
|
3
3
|
Ruby gem wrapping the [localtunnel](https://localtunnel.me/) npm package.
|
4
4
|
|
@@ -24,4 +24,31 @@ $ npm install -g localtunnel
|
|
24
24
|
|
25
25
|
## Usage
|
26
26
|
|
27
|
-
|
27
|
+
A basic example:
|
28
|
+
|
29
|
+
```ruby
|
30
|
+
require 'localtunnel'
|
31
|
+
|
32
|
+
Localtunnel::Client.start(port: 3000)
|
33
|
+
|
34
|
+
Localtunnel::Client.running? # => true
|
35
|
+
|
36
|
+
Localtunnel::Client.url # => https://pnevcucqgb.localtunnel.me
|
37
|
+
|
38
|
+
Localtunnel::Client.stop
|
39
|
+
```
|
40
|
+
|
41
|
+
Extra options can also be specified:
|
42
|
+
|
43
|
+
```ruby
|
44
|
+
Localtunnel::Client.start(
|
45
|
+
port: 3000,
|
46
|
+
subdomain: 'hello',
|
47
|
+
remote_host: 'http://my-domain-1.com',
|
48
|
+
local_host: 'http://my-domain-2.com'
|
49
|
+
)
|
50
|
+
```
|
51
|
+
|
52
|
+
## Related
|
53
|
+
|
54
|
+
It is also worth checking out [ngrok-tunnel](https://github.com/bogdanovich/ngrok-tunnel), a gem that is similar in function to this one and served as its inspiration.
|
data/lib/localtunnel/version.rb
CHANGED
data/localtunnel.gemspec
CHANGED
@@ -14,6 +14,7 @@ Gem::Specification.new do |spec|
|
|
14
14
|
spec.license = "MIT"
|
15
15
|
spec.files = `git ls-files -z`.split("\x0")
|
16
16
|
spec.require_paths = ["lib"]
|
17
|
+
spec.post_install_message = "Please ensure that the localtunnel npm package is installed (i.e. `npm install -g localtunnel`)."
|
17
18
|
spec.add_development_dependency "bundler", "~> 1.10"
|
18
19
|
spec.add_development_dependency "rake", "~> 10.0"
|
19
20
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: localtunnel
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Swinburne Software Innovation Lab
|
@@ -58,7 +58,8 @@ homepage: https://github.com/ssilab/localtunnel
|
|
58
58
|
licenses:
|
59
59
|
- MIT
|
60
60
|
metadata: {}
|
61
|
-
post_install_message:
|
61
|
+
post_install_message: Please ensure that the localtunnel npm package is installed
|
62
|
+
(i.e. `npm install -g localtunnel`).
|
62
63
|
rdoc_options: []
|
63
64
|
require_paths:
|
64
65
|
- lib
|