qc-mailer 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  module QC
2
2
  module Mailer
3
- VERSION = "0.0.2"
3
+ VERSION = "0.0.3"
4
4
  end
5
5
  end
data/qc-mailer.gemspec CHANGED
@@ -19,7 +19,7 @@ Gem::Specification.new do |gem|
19
19
  gem.add_runtime_dependency "activesupport", "~> 3.0"
20
20
  gem.add_runtime_dependency "actionmailer", "~> 3.0"
21
21
  gem.add_runtime_dependency "i18n", "~> 0.6.0"
22
- gem.add_runtime_dependency "queue_classic", "~> 2.0.1"
22
+ gem.add_runtime_dependency "queue_classic", "~> 2.1"
23
23
 
24
24
  gem.add_development_dependency "minitest", "~> 3.3.0"
25
25
  gem.add_development_dependency "minitest-reporters"
@@ -1,18 +1,21 @@
1
1
  module QCHelper
2
2
 
3
+ def enqueue_stub
4
+ proc do |method, *args|
5
+ klass = eval(method.split(".").first)
6
+ msg = method.split(".").last
7
+ klass.send(msg, *args)
8
+ end
9
+ end
10
+
3
11
  def setup
4
12
  init_db
5
- silence_logger
6
13
  end
7
14
 
8
15
  def teardown
9
16
  QC.delete_all
10
17
  end
11
18
 
12
- def silence_logger
13
- QC.define_singleton_method :log do |*args| nil; end # silence QC logger
14
- end
15
-
16
19
  def init_db(table_name="queue_classic_jobs")
17
20
  QC::Conn.execute("SET client_min_messages TO 'warning'")
18
21
  QC::Setup.drop
@@ -20,12 +23,4 @@ module QCHelper
20
23
  QC::Conn.disconnect
21
24
  end
22
25
 
23
- def enqueue_stub
24
- proc do |method, *args|
25
- klass = eval(method.split(".").first)
26
- msg = method.split(".").last
27
- klass.send(msg, *args)
28
- end
29
- end
30
-
31
- end
26
+ end
data/test/test_helper.rb CHANGED
@@ -1,7 +1,5 @@
1
- # test/test_helper.rb
2
-
3
1
  ENV["TEST"] = 'true'
4
- ENV["DATABASE_URL"] ||= "postgres:///queue_classic_test"
2
+ ENV["DATABASE_URL"] ||= "postgres://localhost/queue_classic_test"
5
3
 
6
4
  $:.unshift File.expand_path("../../lib")
7
5
  require 'rubygems'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qc-mailer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
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: 2012-10-24 00:00:00.000000000 Z
12
+ date: 2013-04-17 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: activesupport
@@ -66,7 +66,7 @@ dependencies:
66
66
  requirements:
67
67
  - - ~>
68
68
  - !ruby/object:Gem::Version
69
- version: 2.0.1
69
+ version: '2.1'
70
70
  type: :runtime
71
71
  prerelease: false
72
72
  version_requirements: !ruby/object:Gem::Requirement
@@ -74,7 +74,7 @@ dependencies:
74
74
  requirements:
75
75
  - - ~>
76
76
  - !ruby/object:Gem::Version
77
- version: 2.0.1
77
+ version: '2.1'
78
78
  - !ruby/object:Gem::Dependency
79
79
  name: minitest
80
80
  requirement: !ruby/object:Gem::Requirement
@@ -173,7 +173,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
173
173
  version: '0'
174
174
  segments:
175
175
  - 0
176
- hash: -1151452699503485569
176
+ hash: -3340082879039588416
177
177
  required_rubygems_version: !ruby/object:Gem::Requirement
178
178
  none: false
179
179
  requirements:
@@ -182,7 +182,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
182
182
  version: '0'
183
183
  segments:
184
184
  - 0
185
- hash: -1151452699503485569
185
+ hash: -3340082879039588416
186
186
  requirements: []
187
187
  rubyforge_project:
188
188
  rubygems_version: 1.8.23