lib/amq/client/settings.rb in amq-client-0.7.0.alpha25 vs lib/amq/client/settings.rb in amq-client-0.7.0.alpha26

- old
+ new

@@ -8,11 +8,11 @@ module Settings # Default connection settings used by AMQ clients # # @see AMQ::Client::Settings.configure def self.default - { + @default ||= { # server :host => "127.0.0.1", :port => AMQ::Protocol::DEFAULT_PORT, # login @@ -34,9 +34,20 @@ :broker => nil, :frame_max => 131072 } end + + + def self.client_properties + @client_properties ||= { + :platform => ::RUBY_DESCRIPTION, + :product => "AMQ Client", + :information => "http://github.com/ruby-amqp/amq-client", + :version => AMQ::Client::VERSION + } + end + # Merges given configuration parameters with defaults and returns # the result. # # @param [Hash] Configuration parameters to use.