activemessaging-kestrel-adapter 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -1,3 +1,4 @@
1
1
  pkg
2
2
  *.swp
3
3
  doc
4
+ announcement.txt
@@ -1,3 +1,6 @@
1
+ == 1.0.3 / 2012-02-10
2
+ * Bugfix: Properly denormalize queue names when receiving messages and getting stats.
3
+
1
4
  == 1.0.2 / 2012-02-10
2
5
  * Scrub queue names of illegal characters (according to kestrel v2.1.5). The illegal
3
6
  chars are '.', '/', '~'.
data/README.md CHANGED
@@ -88,7 +88,7 @@ License
88
88
 
89
89
  The MIT License
90
90
 
91
- Copyright (c) 2011 Douglas A. Seifert
91
+ Copyright (c) 2011-2012 Douglas A. Seifert
92
92
 
93
93
  Permission is hereby granted, free of charge, to any person obtaining
94
94
  a copy of this software and associated documentation files (the
@@ -110,7 +110,7 @@ module ActiveMessaging
110
110
  queues.each do |queue|
111
111
  KESTREL_STATS_QUEUE_KEYS.each do |key|
112
112
  stats_key = "queue_#{queue}_#{key}"
113
- denormalized_name = queue.gsub('FS', '/') # denormalize the name ...
113
+ denormalized_name = denormalize_name(queue) # denormalize the name ...
114
114
  return_hash[server_def][denormalized_name][key] = stats_hash[stats_key]
115
115
  end
116
116
  end
@@ -120,7 +120,7 @@ module ActiveMessaging
120
120
 
121
121
  # Connect to the kestrel server using a Memcached client
122
122
  def connect
123
- logger.debug("Creating connection to Kestrel using config #{@config.inspect}") if logger && logger.level <= Logger::DEBUG
123
+ logger.debug("Creating connection to Kestrel using config #{@config.inspect}") if logger && logger.debug?
124
124
  @kestrel = MemCache.new(@config)
125
125
  @kestrel.servers = @config[:servers]
126
126
  end
@@ -172,7 +172,7 @@ module ActiveMessaging
172
172
  if item = @kestrel.get(normalize(queue))
173
173
  # TODO: ActiveMessaging ought to provide a way to do messaging
174
174
  # without having to wrap the messages in another object
175
- #logger.debug("Got message from queue #{queue}: #{item}") if logger.level <= Logger::DEBUG
175
+ #logger.debug("Got message from queue #{queue}: #{item}") if logger && logger.debug?
176
176
  return Message.new({'destination' => queue}, item, queue)
177
177
  end
178
178
  end
@@ -1 +1 @@
1
- 1.0.2
1
+ 1.0.3
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: activemessaging-kestrel-adapter
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -14,7 +14,7 @@ default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: memcache-client
17
- requirement: &70195407021820 !ruby/object:Gem::Requirement
17
+ requirement: &70165237319560 !ruby/object:Gem::Requirement
18
18
  none: false
19
19
  requirements:
20
20
  - - ! '>='
@@ -22,10 +22,10 @@ dependencies:
22
22
  version: 1.8.5
23
23
  type: :runtime
24
24
  prerelease: false
25
- version_requirements: *70195407021820
25
+ version_requirements: *70165237319560
26
26
  - !ruby/object:Gem::Dependency
27
27
  name: activemessaging
28
- requirement: &70195407020720 !ruby/object:Gem::Requirement
28
+ requirement: &70165237318780 !ruby/object:Gem::Requirement
29
29
  none: false
30
30
  requirements:
31
31
  - - ! '>='
@@ -33,10 +33,10 @@ dependencies:
33
33
  version: 0.7.1
34
34
  type: :runtime
35
35
  prerelease: false
36
- version_requirements: *70195407020720
36
+ version_requirements: *70165237318780
37
37
  - !ruby/object:Gem::Dependency
38
38
  name: activesupport
39
- requirement: &70195407019240 !ruby/object:Gem::Requirement
39
+ requirement: &70165237317820 !ruby/object:Gem::Requirement
40
40
  none: false
41
41
  requirements:
42
42
  - - ! '>='
@@ -44,10 +44,10 @@ dependencies:
44
44
  version: 3.1.3
45
45
  type: :runtime
46
46
  prerelease: false
47
- version_requirements: *70195407019240
47
+ version_requirements: *70165237317820
48
48
  - !ruby/object:Gem::Dependency
49
49
  name: i18n
50
- requirement: &70195407018060 !ruby/object:Gem::Requirement
50
+ requirement: &70165237316860 !ruby/object:Gem::Requirement
51
51
  none: false
52
52
  requirements:
53
53
  - - ! '>='
@@ -55,10 +55,10 @@ dependencies:
55
55
  version: 0.6.0
56
56
  type: :runtime
57
57
  prerelease: false
58
- version_requirements: *70195407018060
58
+ version_requirements: *70165237316860
59
59
  - !ruby/object:Gem::Dependency
60
60
  name: bones
61
- requirement: &70195407016720 !ruby/object:Gem::Requirement
61
+ requirement: &70165237315760 !ruby/object:Gem::Requirement
62
62
  none: false
63
63
  requirements:
64
64
  - - ! '>='
@@ -66,7 +66,7 @@ dependencies:
66
66
  version: 3.7.3
67
67
  type: :development
68
68
  prerelease: false
69
- version_requirements: *70195407016720
69
+ version_requirements: *70165237315760
70
70
  description: ! "This is an adapter to the kestrel messaging server for the ActiveMessaging
71
71
  framework. It is \nin the early stages of development."
72
72
  email: doug@dseifert.net