This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- encoding: utf-8 -*- | |
# | |
# The current require dance for different Ruby versions. | |
# Change this to suit your requirements. | |
# | |
if Kernel.respond_to?(:require_relative) | |
require_relative("./stomp_common") | |
else | |
$LOAD_PATH << File.dirname(__FILE__) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- encoding: utf-8 -*- | |
# | |
require 'stomp' | |
if ENV['STOMP_NOSSL'] | |
use_ssl = false | |
$stderr.write "#{Time.now()} use_ssl=false\n" | |
else | |
urc = ENV['STOMP_RUBYCIPHERS'] ? true : false |