modern_times 0.2.9 → 0.2.10

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.9
1
+ 0.2.10
@@ -15,10 +15,10 @@ end
15
15
 
16
16
  config = YAML.load(ERB.new(File.read(File.join(File.dirname(__FILE__), '..', 'jms.yml'))).result(binding))
17
17
  ModernTimes::JMS::Connection.init(config)
18
- publisher = ModernTimes::JMS::Publisher.new(:queue_name => 'Foo', :marshal => :string, :time_to_live => 20000)
18
+ publisher = ModernTimes::JMS::Publisher.new(:queue_name => 'Foo', :marshal => :string)
19
19
  consumer = ModernTimes::JMS::Consumer.new(:queue_name => 'Foo', :marshal => :string)
20
20
 
21
21
  publisher.publish(ARGV[0], :jms_correlation_id => ARGV[1])
22
- #msg = consumer.receive(:jms_correlation_id => ARGV[1], :timeout => 30000)
22
+ msg = consumer.receive(:jms_correlation_id => ARGV[1], :timeout => 30000)
23
23
  #msg = consumer.receive(:timeout => 1000)
24
- #puts "msg=#{msg}"
24
+ puts "msg=#{msg}"
@@ -37,7 +37,6 @@ module ModernTimes
37
37
  options[:selector] = "JMSCorrelationID = '#{correlation_id}'" if correlation_id && !options[:selector]
38
38
  timeout = options.delete(:timeout) || 0
39
39
  obj = nil
40
- ModernTimes.logger.debug {"Perform receive for #{options.inspect} timeout=#{timeout}"}
41
40
 
42
41
  Connection.session_pool.consumer(options) do |session, consumer|
43
42
  message = consumer.get(:timeout => timeout)
@@ -37,7 +37,6 @@ module ModernTimes
37
37
 
38
38
  # Publish the given object to the address.
39
39
  def publish(object, props={})
40
- ModernTimes.logger.debug {"#{self}: Publishing #{object} with #{props.inspect}"}
41
40
  message = nil
42
41
  Connection.session_pool.producer(@real_producer_options) do |session, producer|
43
42
  producer.time_to_live = @time_to_live if @time_to_live
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: modern_times
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 0.2.9
5
+ version: 0.2.10
6
6
  platform: ruby
7
7
  authors:
8
8
  - Brad Pardee