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
|
46
|
-
password
|
47
|
+
username == configuration.web_username &&
|
48
|
+
password == configuration.web_password
|
47
49
|
end
|
48
50
|
|
49
51
|
::Resque::Server.set :show_exceptions, true
|
data/test/dummy/log/test.log
CHANGED
@@ -1,3 +1,99 @@
|
|
1
|
+
Connecting to database specified by database.yml
|
2
|
+
[1m[36m (4.4ms)[0m [1mbegin transaction[0m
|
3
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
4
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
5
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
6
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
7
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
8
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9
|
+
Started GET "/resque" for 127.0.0.1 at 2013-04-15 16:57:56 -0700
|
10
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
11
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
12
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
13
|
+
Connecting to database specified by database.yml
|
14
|
+
[1m[36m (0.5ms)[0m [1mbegin transaction[0m
|
15
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
16
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
17
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
18
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
19
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
20
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
21
|
+
Started GET "/resque" for 127.0.0.1 at 2013-04-15 17:00:18 -0700
|
22
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
23
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
24
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
25
|
+
Connecting to database specified by database.yml
|
26
|
+
[1m[36m (0.4ms)[0m [1mbegin transaction[0m
|
27
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
28
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
29
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
30
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
31
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
32
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
33
|
+
Started GET "/resque" for 127.0.0.1 at 2013-04-15 17:03:02 -0700
|
34
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
35
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
36
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
37
|
+
Connecting to database specified by database.yml
|
38
|
+
[1m[36m (0.6ms)[0m [1mbegin transaction[0m
|
39
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
40
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
41
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
42
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
43
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
44
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
45
|
+
Started GET "/resque" for 127.0.0.1 at 2013-04-15 17:03:09 -0700
|
46
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
47
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
48
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
49
|
+
Connecting to database specified by database.yml
|
50
|
+
[1m[36m (0.5ms)[0m [1mbegin transaction[0m
|
51
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
52
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
53
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
54
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
55
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
56
|
+
[1m[36m (0.0ms)[0m [1mbegin transaction[0m
|
57
|
+
Started GET "/resque" for 127.0.0.1 at 2013-04-15 17:04:39 -0700
|
58
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
59
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
60
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
61
|
+
Connecting to database specified by database.yml
|
62
|
+
[1m[36m (0.5ms)[0m [1mbegin transaction[0m
|
63
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
64
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
65
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
66
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
67
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
68
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
69
|
+
Started GET "/resque" for 127.0.0.1 at 2013-04-15 17:06:18 -0700
|
70
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
71
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
72
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
73
|
+
Connecting to database specified by database.yml
|
74
|
+
[1m[36m (0.5ms)[0m [1mbegin transaction[0m
|
75
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
76
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
77
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
78
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
79
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
80
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
81
|
+
Started GET "/resque" for 127.0.0.1 at 2013-04-15 17:10:24 -0700
|
82
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
83
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
84
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
85
|
+
Connecting to database specified by database.yml
|
86
|
+
[1m[36m (0.5ms)[0m [1mbegin transaction[0m
|
87
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
88
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
89
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
90
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
91
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
92
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
93
|
+
Started GET "/resque" for 127.0.0.1 at 2013-04-15 17:13:53 -0700
|
94
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
95
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
96
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
1
97
|
Connecting to database specified by database.yml
|
2
98
|
[1m[36m (0.8ms)[0m [1mbegin transaction[0m
|
3
99
|
[1m[35m (0.1ms)[0m rollback transaction
|
@@ -6,7 +102,31 @@ Connecting to database specified by database.yml
|
|
6
102
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
7
103
|
[1m[35m (0.1ms)[0m rollback transaction
|
8
104
|
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
9
|
-
|
10
|
-
|
11
|
-
|
105
|
+
Started GET "/resque" for 127.0.0.1 at 2013-04-15 17:17:57 -0700
|
106
|
+
[1m[35m (0.2ms)[0m rollback transaction
|
107
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
108
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
109
|
+
Connecting to database specified by database.yml
|
110
|
+
[1m[36m (0.5ms)[0m [1mbegin transaction[0m
|
111
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
112
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
113
|
+
[1m[35m (0.0ms)[0m rollback transaction
|
114
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
115
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
116
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
117
|
+
Started GET "/resque" for 127.0.0.1 at 2013-04-15 17:18:40 -0700
|
118
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
119
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
120
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
121
|
+
Connecting to database specified by database.yml
|
122
|
+
[1m[36m (0.6ms)[0m [1mbegin transaction[0m
|
123
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
124
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
125
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
126
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
127
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
128
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
129
|
+
Started GET "/resque" for 127.0.0.1 at 2013-04-15 17:20:40 -0700
|
130
|
+
[1m[35m (0.1ms)[0m rollback transaction
|
131
|
+
[1m[36m (0.1ms)[0m [1mbegin transaction[0m
|
12
132
|
[1m[35m (0.1ms)[0m 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.
|
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:
|
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:
|
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:
|
190
|
+
hash: -2423611576055883127
|
191
191
|
requirements: []
|
192
192
|
rubyforge_project:
|
193
|
-
rubygems_version: 1.8.
|
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
|