omf_common 6.0.8.pre.3 → 6.0.8.pre.4

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2935646d99805e1bfee37d54048dc9f38d86ac95
4
- data.tar.gz: 08a166445c5f9416791daa78a9d81568a8037149
3
+ metadata.gz: e4bfa8166495c5962d189613fcbe98ab1fc5396f
4
+ data.tar.gz: 2be8f9a1695a773b08babd8cceb6a735447eedca
5
5
  SHA512:
6
- metadata.gz: 95d4412b66bd738b92fc5ea47a773b8028d64e11a4455f159740961a6ab187d48a4b04c717499fa57fef2edcfc505aa4f677076254a1e8dd8647339fcb6f3093
7
- data.tar.gz: 05d54b318b582a550429e0d2fee26d93dc35bc079a7bd36f4683dd35ca345b433bae5cda0b97b1687e86d7f06ed491fb56b56ba0382166511795bec590488429
6
+ metadata.gz: 1dc1f006ba79075722d1ec06398dfecb0db0e91696f934b86767c5638f897c411a186e416f7b3bb65dae20f13c8da90ad22d31897ed071e8aabe6d685f431ed8
7
+ data.tar.gz: 7c021c9d288f370267a7f17f1955752c5e4d83f3442f2f3ae95413e17181e28cb5c61f803f251ac0f7a6fc277a2e51c50bb38101399ef2ccc9b1628d3eada4ab
data/bin/omf_send_create CHANGED
@@ -78,14 +78,14 @@ rest.each do |s|
78
78
  sa = s.split(':')
79
79
  if sa.length == 2
80
80
  err_exit if key
81
- resource_properties[sa[0]] = sa[1]
81
+ resource_properties[sa[0].to_sym] = sa[1]
82
82
  else
83
83
  if s.end_with?(':')
84
84
  err_exit if key
85
85
  key = s[0]
86
86
  else
87
87
  err_exit unless key
88
- resource_properties[key] = s[0]
88
+ resource_properties[key.to_sym] = s[0]
89
89
  key = nil
90
90
  end
91
91
  end
@@ -78,7 +78,7 @@ module OmfCommon
78
78
  if topic.start_with? 'amqp:'
79
79
  # absolute address
80
80
  unless topic.start_with? @address_prefix
81
- raise "Cannot subscribe to a topic from different domain (#{topic})"
81
+ raise "Cannot subscribe to a topic from different domain (#{topic}) - #{@address_prefix}"
82
82
  end
83
83
  opts[:address] = topic
84
84
  topic = topic.split(@address_prefix).last
@@ -64,7 +64,7 @@ module OmfCommon
64
64
  # warn "Exchange #{ex.name} detected connection interruption"
65
65
  # @exchange = nil
66
66
  # end
67
- channel.queue("", :exclusive => true) do |queue|
67
+ channel.queue("", :exclusive => true, :auto_delete => true) do |queue|
68
68
  #puts "QQ1(#{id}): #{queue}"
69
69
  queue.bind(@exchange)
70
70
  queue.subscribe do |headers, payload|
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omf_common
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.0.8.pre.3
4
+ version: 6.0.8.pre.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - NICTA
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-12-20 00:00:00.000000000 Z
11
+ date: 2014-01-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: minitest