portpublisher 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore ADDED
@@ -0,0 +1,4 @@
1
+ *.gem
2
+ .bundle
3
+ Gemfile.lock
4
+ pkg/*
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source "http://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in portpublisher.gemspec
4
+ gemspec
data/README.rdoc ADDED
@@ -0,0 +1,17 @@
1
+ = Portpublisher - it publishes ports!
2
+
3
+ Make a local port from your machine publicly available in a second
4
+
5
+ == usecases
6
+
7
+ * Show off your newest cool project to your friends as-it-is
8
+ * alpha testing with livechanges
9
+ * testing callbackfunctions from paymentproviders - it is such a relief
10
+
11
+ == what you need
12
+
13
+ * You totally need a server for this and it must authenticate you via public key
14
+
15
+ == Installation
16
+
17
+ % gem install portpublisher
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require 'bundler/gem_tasks'
data/bin/portpublisher ADDED
@@ -0,0 +1,18 @@
1
+ #!/usr/bin/env ruby
2
+ def usage
3
+ puts "portpublisher localport externport server"
4
+ puts "\texample: for publishing a local railsserver on example.com:5000"
5
+ puts "\tportpublisher.rb example.com 3000 5000"
6
+ end
7
+
8
+
9
+
10
+ if ARGV.size < 2
11
+ usage
12
+ else
13
+ server, localport, externport = ARGV
14
+ externport = localhost unless externport
15
+ s = "ssh -A -g -R 36750:localhost:#{localport} #{server} ssh -g -L #{externport}:localhost:36750 #{server}"
16
+ puts s
17
+ system(s)
18
+ end
@@ -0,0 +1,3 @@
1
+ module Portpublisher
2
+ VERSION = "0.0.1"
3
+ end
@@ -0,0 +1,20 @@
1
+ # -*- encoding: utf-8 -*-
2
+ $:.push File.expand_path("../lib", __FILE__)
3
+ require "portpublisher/version"
4
+
5
+ Gem::Specification.new do |s|
6
+ s.name = "portpublisher"
7
+ s.version = Portpublisher::VERSION
8
+ s.authors = ["Jan Steinmetz"]
9
+ s.email = ["jan@kopfmaschine.com"]
10
+ s.homepage = ""
11
+ s.summary = %q{allows you to forward a local port through one of your ssh servers}
12
+ s.description = %q{the portpublisher makes a local port from your computer publicly available}
13
+
14
+ s.rubyforge_project = "portpublisher"
15
+
16
+ s.files = `git ls-files`.split("\n")
17
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
18
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
19
+ s.require_paths = ["lib"]
20
+ end
metadata ADDED
@@ -0,0 +1,74 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: portpublisher
3
+ version: !ruby/object:Gem::Version
4
+ hash: 29
5
+ prerelease:
6
+ segments:
7
+ - 0
8
+ - 0
9
+ - 1
10
+ version: 0.0.1
11
+ platform: ruby
12
+ authors:
13
+ - Jan Steinmetz
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2011-06-17 00:00:00 +02:00
19
+ default_executable:
20
+ dependencies: []
21
+
22
+ description: the portpublisher makes a local port from your computer publicly available
23
+ email:
24
+ - jan@kopfmaschine.com
25
+ executables:
26
+ - portpublisher
27
+ extensions: []
28
+
29
+ extra_rdoc_files: []
30
+
31
+ files:
32
+ - .gitignore
33
+ - Gemfile
34
+ - README.rdoc
35
+ - Rakefile
36
+ - bin/portpublisher
37
+ - lib/portpublisher/version.rb
38
+ - portpublisher.gemspec
39
+ has_rdoc: true
40
+ homepage: ""
41
+ licenses: []
42
+
43
+ post_install_message:
44
+ rdoc_options: []
45
+
46
+ require_paths:
47
+ - lib
48
+ required_ruby_version: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ hash: 3
54
+ segments:
55
+ - 0
56
+ version: "0"
57
+ required_rubygems_version: !ruby/object:Gem::Requirement
58
+ none: false
59
+ requirements:
60
+ - - ">="
61
+ - !ruby/object:Gem::Version
62
+ hash: 3
63
+ segments:
64
+ - 0
65
+ version: "0"
66
+ requirements: []
67
+
68
+ rubyforge_project: portpublisher
69
+ rubygems_version: 1.6.2
70
+ signing_key:
71
+ specification_version: 3
72
+ summary: allows you to forward a local port through one of your ssh servers
73
+ test_files: []
74
+