thincloud-resque 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,5 @@
1
+ require "rails"
2
+
1
3
  module Thincloud
2
4
  module Resque
3
5
  # Public: Thincloud Resque Engine
@@ -42,8 +44,8 @@ module Thincloud
42
44
 
43
45
  # use http basic auth for resque-web
44
46
  ::Resque::Server.use ::Rack::Auth::Basic do |username, password|
45
- username = configuration.web_username
46
- password = configuration.web_password
47
+ username == configuration.web_username &&
48
+ password == configuration.web_password
47
49
  end
48
50
 
49
51
  ::Resque::Server.set :show_exceptions, true
@@ -1,5 +1,5 @@
1
1
  module Thincloud
2
2
  module Resque
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
4
4
  end
5
5
  end
@@ -1,3 +1,99 @@
1
+ Connecting to database specified by database.yml
2
+  (4.4ms) begin transaction
3
+  (0.0ms) rollback transaction
4
+  (0.1ms) begin transaction
5
+  (0.0ms) rollback transaction
6
+  (0.0ms) begin transaction
7
+  (0.1ms) rollback transaction
8
+  (0.1ms) begin transaction
9
+ Started GET "/resque" for 127.0.0.1 at 2013-04-15 16:57:56 -0700
10
+  (0.1ms) rollback transaction
11
+  (0.0ms) begin transaction
12
+  (0.0ms) rollback transaction
13
+ Connecting to database specified by database.yml
14
+  (0.5ms) begin transaction
15
+  (0.0ms) rollback transaction
16
+  (0.1ms) begin transaction
17
+  (0.0ms) rollback transaction
18
+  (0.1ms) begin transaction
19
+  (0.1ms) rollback transaction
20
+  (0.0ms) begin transaction
21
+ Started GET "/resque" for 127.0.0.1 at 2013-04-15 17:00:18 -0700
22
+  (0.1ms) rollback transaction
23
+  (0.0ms) begin transaction
24
+  (0.0ms) rollback transaction
25
+ Connecting to database specified by database.yml
26
+  (0.4ms) begin transaction
27
+  (0.0ms) rollback transaction
28
+  (0.0ms) begin transaction
29
+  (0.0ms) rollback transaction
30
+  (0.0ms) begin transaction
31
+  (0.0ms) rollback transaction
32
+  (0.0ms) begin transaction
33
+ Started GET "/resque" for 127.0.0.1 at 2013-04-15 17:03:02 -0700
34
+  (0.1ms) rollback transaction
35
+  (0.0ms) begin transaction
36
+  (0.0ms) rollback transaction
37
+ Connecting to database specified by database.yml
38
+  (0.6ms) begin transaction
39
+  (0.0ms) rollback transaction
40
+  (0.0ms) begin transaction
41
+  (0.0ms) rollback transaction
42
+  (0.1ms) begin transaction
43
+  (0.0ms) rollback transaction
44
+  (0.0ms) begin transaction
45
+ Started GET "/resque" for 127.0.0.1 at 2013-04-15 17:03:09 -0700
46
+  (0.1ms) rollback transaction
47
+  (0.0ms) begin transaction
48
+  (0.0ms) rollback transaction
49
+ Connecting to database specified by database.yml
50
+  (0.5ms) begin transaction
51
+  (0.0ms) rollback transaction
52
+  (0.0ms) begin transaction
53
+  (0.0ms) rollback transaction
54
+  (0.1ms) begin transaction
55
+  (0.0ms) rollback transaction
56
+  (0.0ms) begin transaction
57
+ Started GET "/resque" for 127.0.0.1 at 2013-04-15 17:04:39 -0700
58
+  (0.1ms) rollback transaction
59
+  (0.1ms) begin transaction
60
+  (0.1ms) rollback transaction
61
+ Connecting to database specified by database.yml
62
+  (0.5ms) begin transaction
63
+  (0.1ms) rollback transaction
64
+  (0.1ms) begin transaction
65
+  (0.0ms) rollback transaction
66
+  (0.1ms) begin transaction
67
+  (0.1ms) rollback transaction
68
+  (0.1ms) begin transaction
69
+ Started GET "/resque" for 127.0.0.1 at 2013-04-15 17:06:18 -0700
70
+  (0.2ms) rollback transaction
71
+  (0.1ms) begin transaction
72
+  (0.1ms) rollback transaction
73
+ Connecting to database specified by database.yml
74
+  (0.5ms) begin transaction
75
+  (0.1ms) rollback transaction
76
+  (0.1ms) begin transaction
77
+  (0.0ms) rollback transaction
78
+  (0.1ms) begin transaction
79
+  (0.1ms) rollback transaction
80
+  (0.1ms) begin transaction
81
+ Started GET "/resque" for 127.0.0.1 at 2013-04-15 17:10:24 -0700
82
+  (0.2ms) rollback transaction
83
+  (0.1ms) begin transaction
84
+  (0.1ms) rollback transaction
85
+ Connecting to database specified by database.yml
86
+  (0.5ms) begin transaction
87
+  (0.1ms) rollback transaction
88
+  (0.1ms) begin transaction
89
+  (0.0ms) rollback transaction
90
+  (0.1ms) begin transaction
91
+  (0.1ms) rollback transaction
92
+  (0.1ms) begin transaction
93
+ Started GET "/resque" for 127.0.0.1 at 2013-04-15 17:13:53 -0700
94
+  (0.2ms) rollback transaction
95
+  (0.1ms) begin transaction
96
+  (0.1ms) rollback transaction
1
97
  Connecting to database specified by database.yml
2
98
   (0.8ms) begin transaction
3
99
   (0.1ms) rollback transaction
@@ -6,7 +102,31 @@ Connecting to database specified by database.yml
6
102
   (0.1ms) begin transaction
7
103
   (0.1ms) rollback transaction
8
104
   (0.1ms) begin transaction
9
-
10
-
11
- Started GET "/resque" for 127.0.0.1 at 2012-11-27 13:40:14 -0800
105
+ Started GET "/resque" for 127.0.0.1 at 2013-04-15 17:17:57 -0700
106
+  (0.2ms) rollback transaction
107
+  (0.1ms) begin transaction
108
+  (0.1ms) rollback transaction
109
+ Connecting to database specified by database.yml
110
+  (0.5ms) begin transaction
111
+  (0.1ms) rollback transaction
112
+  (0.1ms) begin transaction
113
+  (0.0ms) rollback transaction
114
+  (0.1ms) begin transaction
115
+  (0.1ms) rollback transaction
116
+  (0.1ms) begin transaction
117
+ Started GET "/resque" for 127.0.0.1 at 2013-04-15 17:18:40 -0700
118
+  (0.1ms) rollback transaction
119
+  (0.1ms) begin transaction
120
+  (0.1ms) rollback transaction
121
+ Connecting to database specified by database.yml
122
+  (0.6ms) begin transaction
123
+  (0.1ms) rollback transaction
124
+  (0.1ms) begin transaction
125
+  (0.1ms) rollback transaction
126
+  (0.1ms) begin transaction
127
+  (0.1ms) rollback transaction
128
+  (0.1ms) begin transaction
129
+ Started GET "/resque" for 127.0.0.1 at 2013-04-15 17:20:40 -0700
130
+  (0.1ms) rollback transaction
131
+  (0.1ms) begin transaction
12
132
   (0.1ms) rollback transaction
@@ -26,11 +26,18 @@ module Thincloud
26
26
  describe "with configure block" do
27
27
  before do
28
28
  Thincloud::Resque.configure do |c|
29
+ @old_username = c.web_username
29
30
  c.web_username = "webuser"
30
31
  c.mailer_environments = [:staging]
31
32
  end
32
33
  end
33
34
 
35
+ after do
36
+ Thincloud::Resque.configure do |c|
37
+ c.web_username = @old_username
38
+ end
39
+ end
40
+
34
41
  it { config.web_username.must_equal "webuser" }
35
42
  it { config.mailer_environments.must_include :staging }
36
43
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thincloud-resque
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
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-11-27 00:00:00.000000000 Z
12
+ date: 2013-04-16 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rails
@@ -178,7 +178,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
178
178
  version: '0'
179
179
  segments:
180
180
  - 0
181
- hash: 4037165730238706209
181
+ hash: -2423611576055883127
182
182
  required_rubygems_version: !ruby/object:Gem::Requirement
183
183
  none: false
184
184
  requirements:
@@ -187,10 +187,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
187
187
  version: '0'
188
188
  segments:
189
189
  - 0
190
- hash: 4037165730238706209
190
+ hash: -2423611576055883127
191
191
  requirements: []
192
192
  rubyforge_project:
193
- rubygems_version: 1.8.24
193
+ rubygems_version: 1.8.25
194
194
  signing_key:
195
195
  specification_version: 3
196
196
  summary: Rails Engine to provide resque services for Thincloud applications