rabbit-wq 0.4.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/CHANGELOG.md ADDED
@@ -0,0 +1,26 @@
1
+ # 0.5.0 / 2014-01-22
2
+
3
+ * [ENHANCEMENT] Configure the worker log using the conf file instead of a Ruby block.
4
+
5
+ # 0.4.0 / 2014-01-21
6
+
7
+ * [ENHANCEMENT] Add more verbose logging of worker instantiation to the work queue subscriber's log.
8
+
9
+ # 0.3.0 / 2013-12-16
10
+
11
+ * [ENHANCEMENT] Add daemonization of work queue subscriber process to the CLI.
12
+ * [ENHANCEMENT] Make work queue subscriber's number of threads configurable.
13
+ * [ENHANCEMENT] Load the worker queue subscriber's environment from a file specified in the conf file.
14
+
15
+ # 0.2.0 / 2013-11-29
16
+
17
+ * [ENHANCEMENT] Add an error queue.
18
+
19
+ # 0.1.0 / 2013-11-29
20
+
21
+ * [ENHANCEMENT] Add delayed queues.
22
+ * [ENHANCEMENT] Add auto-scaling retry for failed workers.
23
+
24
+ # 0.0.1 / 2013-12-27
25
+
26
+ * [ENHANCEMENT] Add work queue functionality.
@@ -12,6 +12,8 @@ module RabbitWQ
12
12
  error_queue
13
13
  time_zone
14
14
  work_exchange
15
+ work_log_level
16
+ work_log_path
15
17
  work_queue
16
18
  )
17
19
  end
@@ -53,10 +55,12 @@ module RabbitWQ
53
55
  @work_exchange || 'work'
54
56
  end
55
57
 
56
- def work_logger( log_level, path )
57
- return if RabbitWQ.work_logger
58
+ def work_log_level
59
+ @work_log_level || 'info'
60
+ end
58
61
 
59
- RabbitWQ.work_logger = WorkLogger.new( log_level, path )
62
+ def work_log_path
63
+ @work_log_path || '/var/log/rabbit-wq/rabbit-wq-work.log'
60
64
  end
61
65
 
62
66
  def work_queue
@@ -14,6 +14,8 @@ module RabbitWQ
14
14
  l.adapter $stderr, :level => [:error, :fatal]
15
15
  end
16
16
 
17
+ RabbitWQ.work_logger = WorkLogger.new( RabbitWQ.configuration.work_log_level,
18
+ RabbitWQ.configuration.work_log_path )
17
19
  #Celluloid.logger = Yell.new do |l|
18
20
  #l.level = :info
19
21
  #l.adapter :file, File.join( File.dirname( options[:log] ), "#{APP_ID}-celluloid.log" )
@@ -1,3 +1,3 @@
1
1
  module RabbitWQ
2
- VERSION = "0.4.0"
2
+ VERSION = "0.5.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rabbit-wq
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.5.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-01-21 00:00:00.000000000 Z
12
+ date: 2014-01-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -134,6 +134,7 @@ files:
134
134
  - .gitignore
135
135
  - .ruby-gemset
136
136
  - .ruby-version
137
+ - CHANGELOG.md
137
138
  - LICENSE.txt
138
139
  - README.md
139
140
  - Rakefile