juggernaut 0.5.2 → 0.5.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -4,7 +4,7 @@ require 'json'
4
4
  $:.unshift(File.dirname(__FILE__))
5
5
 
6
6
  module Juggernaut
7
- VERSION = '0.5.2'
7
+ VERSION = '0.5.3'
8
8
 
9
9
  class JuggernautError < StandardError #:nodoc:
10
10
  end
@@ -104,6 +104,10 @@ module Juggernaut
104
104
 
105
105
  # Port is mandatory
106
106
  :port: 5001
107
+
108
+ # Defaults to value of :port. If you are doing port forwarding you'll need to configure this to the same
109
+ # value as :public_port in the juggernaut_hosts.yml file
110
+ # :public_port: 5001
107
111
 
108
112
  EOF
109
113
 
@@ -95,7 +95,7 @@ module Juggernaut
95
95
 
96
96
  if ln == POLICY_REQUEST
97
97
  logger.debug "Sending crossdomain file"
98
- send_data POLICY_FILE.gsub('PORT', options[:port].to_s)
98
+ send_data POLICY_FILE.gsub('PORT', (options[:public_port]||options[:port]).to_s)
99
99
  close_connection_after_writing
100
100
  return
101
101
  end
metadata CHANGED
@@ -3,7 +3,7 @@ rubygems_version: 0.9.4
3
3
  specification_version: 1
4
4
  name: juggernaut
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.5.2
6
+ version: 0.5.3
7
7
  date: 2008-03-29 00:00:00 +00:00
8
8
  summary: FIX (describe your package)
9
9
  require_paths: