tunnels 1.0.0 → 1.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -1,10 +1,12 @@
1
1
  Tunnels
2
2
  =======
3
3
 
4
- This tunnels https to http.
5
-
6
4
  ![image](http://i.imgur.com/5F9tJ.png)
7
5
 
6
+ Tunnels is a proxy to http from https.
7
+
8
+ You can run the [Pow](http://pow.cx/) over SSL!
9
+
8
10
  Installation
9
11
  ------------
10
12
 
@@ -13,11 +15,17 @@ Installation
13
15
  Run
14
16
  ---
15
17
 
16
- $ tunnels
18
+ $ sudo tunnels
19
+
20
+ By default, proxy to 80 port from 443 port.
17
21
 
18
- or
22
+ specify `http` port:
19
23
 
20
- $ sudo tunnels
24
+ $ sudo tunnels 4567
25
+
26
+ specify `http` port and `https` port:
27
+
28
+ $ sudo tunnels 4567 443
21
29
 
22
30
  Copyright
23
31
  ---------
data/bin/tunnels CHANGED
@@ -1,3 +1,3 @@
1
1
  #!/usr/bin/env ruby
2
2
  require 'tunnels'
3
- Tunnels.run!
3
+ Tunnels.run!('127.0.0.1', *ARGV[0..1])
data/lib/tunnels.rb CHANGED
@@ -5,7 +5,7 @@ require "eventmachine"
5
5
  # Copyright © 2012, Thin::Glazed was a Rails Camp New Zealand project, and is developed and maintained by Pat Allan. It is released under the open MIT Licence.
6
6
 
7
7
  module Tunnels
8
- def self.run!(host = '127.0.0.1', from = 443, to = 80)
8
+ def self.run!(host = '127.0.0.1', to = 80, from = 443)
9
9
  EventMachine.run do
10
10
  EventMachine.start_server(host, from, HttpsProxy, to)
11
11
  puts "Ready :)"
@@ -1,3 +1,3 @@
1
1
  module Tunnels
2
- VERSION = "1.0.0"
2
+ VERSION = "1.1.0"
3
3
  end
data/tunnels.gemspec CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |s|
9
9
  s.email = ["jugyo.org@gmail.com"]
10
10
  s.homepage = "https://github.com/jugyo/tunnels"
11
11
  s.summary = %q{https --(--)--> http}
12
- s.description = %q{tunnel https to http}
12
+ s.description = %q{This tunnels https to http.}
13
13
 
14
14
  s.rubyforge_project = "tunnels"
15
15
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tunnels
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-03-07 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: eventmachine
16
- requirement: &70238701544800 !ruby/object:Gem::Requirement
16
+ requirement: &70342271897640 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,8 +21,8 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70238701544800
25
- description: tunnel https to http
24
+ version_requirements: *70342271897640
25
+ description: This tunnels https to http.
26
26
  email:
27
27
  - jugyo.org@gmail.com
28
28
  executables: