beanstalkd_view 1.2.11 → 1.2.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/README.md +35 -4
- data/bin/beanstalkd_view +2 -1
- data/lib/beanstalkd_view/version.rb +1 -1
- data/lib/beanstalkd_view/views/index.erb +1 -1
- data/package.json +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5281430061bd31788ede7550710f9ac84ecd6b60
|
4
|
+
data.tar.gz: 3e5ece7278263e6affcaa487dd14952ac6d061f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ffb637cbbb7fd9ac0faf68b8551da612557c080b1790dce9ea5eb31a36aad352cf99c282c767b141b7721e249a2d20c79908af8a219aacce655bd01101fc9883
|
7
|
+
data.tar.gz: a9e208e7118526ad748513ae3982630f226dc5eddbbeb0aac2438185c354b21c5bda2b6105283b6f7be0e578f0e5eebaa7dc1e4bc252ccf625b06f81193a5e49
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -63,17 +63,39 @@ Running from the command line
|
|
63
63
|
|
64
64
|
Run the beanstalkd_view executable, e.g.
|
65
65
|
|
66
|
+
```bash
|
66
67
|
beanstalkd_view
|
68
|
+
```
|
67
69
|
|
68
70
|
or from a Rails app:
|
69
71
|
|
72
|
+
```bash
|
70
73
|
bundle exec beanstalkd_view
|
74
|
+
```
|
71
75
|
|
72
76
|
(This will use the vegas gem to launch the Sinatra app on an available port.)
|
73
77
|
|
74
|
-
Alternatively, a Rackup file is provided.
|
78
|
+
Alternatively, a Rackup file is provided. To use go to the beanstalkd_view directory and execute:
|
75
79
|
|
80
|
+
```
|
76
81
|
rackup
|
82
|
+
```
|
83
|
+
|
84
|
+
If you run beanstalkd_view from the command line you can specify the URL base path.
|
85
|
+
|
86
|
+
Set environment variable with the base URL (don't forget the leading slash '/''):
|
87
|
+
|
88
|
+
```ruby
|
89
|
+
ENV['BEANSTALKD_VIEW_PATH'] = '/path'
|
90
|
+
```
|
91
|
+
|
92
|
+
or
|
93
|
+
|
94
|
+
```bash
|
95
|
+
export BEANSTALKD_VIEW_PATH = '/path'
|
96
|
+
```
|
97
|
+
|
98
|
+
Setting `BEANSTALKD_VIEW_PATH` applies to both `rackup` and `vegas`. The default path is '/'.
|
77
99
|
|
78
100
|
Running with Docker
|
79
101
|
------------------------
|
@@ -115,14 +137,23 @@ There are 3 variants of RSpec tests.
|
|
115
137
|
|
116
138
|
Customization
|
117
139
|
------------------------
|
118
|
-
|
140
|
+
beanstalkd_view provides a way to customize your views.
|
141
|
+
|
119
142
|
Set environment variable with desired views path:
|
143
|
+
|
120
144
|
```ruby
|
121
145
|
ENV['BEANSTALKD_VIEW_TEMPLATES'] = File.join("my", "app", "views", "beanstalkd")
|
122
146
|
```
|
123
|
-
The just copy lib/beanstalkd_view/views/*.erb and customize them as you want.
|
124
147
|
|
125
|
-
|
148
|
+
Then just copy `lib/beanstalkd_view/views/*.erb` and customize them as you want.
|
149
|
+
|
150
|
+
If you run beanstalkd_view using the command line you can set the URL base path:
|
151
|
+
|
152
|
+
```ruby
|
153
|
+
ENV['BEANSTALKD_VIEW_PATH'] = '/path'
|
154
|
+
```
|
155
|
+
|
156
|
+
*Note: the environment variables should be set before gem loads.*
|
126
157
|
|
127
158
|
License
|
128
159
|
------------------------
|
data/bin/beanstalkd_view
CHANGED
@@ -10,5 +10,6 @@ end
|
|
10
10
|
require 'beanstalkd_view'
|
11
11
|
|
12
12
|
ENV['BEANSTALK_URL'] ||= 'beanstalk://localhost/'
|
13
|
+
ENV['BEANSTALKD_VIEW_PATH'] ||= '/'
|
13
14
|
|
14
|
-
Vegas::Runner.new(BeanstalkdView::Server, 'Beanstalkd View')
|
15
|
+
Vegas::Runner.new(Rack::URLMap.new(ENV['BEANSTALKD_VIEW_PATH'] => BeanstalkdView::Server), 'Beanstalkd View')
|
@@ -61,7 +61,7 @@
|
|
61
61
|
<td>Delayed</td>
|
62
62
|
<td class="data_cell"><%= @stats[:current_jobs_delayed] %></td>
|
63
63
|
</tr>
|
64
|
-
<tr rel="tooltip" title="
|
64
|
+
<tr rel="tooltip" title="The number of buried jobs.">
|
65
65
|
<td>Buried</td>
|
66
66
|
<% if @stats[:current_jobs_buried] > 0 %>
|
67
67
|
<td class="data_cell"><span class="badge badge-error"><%= @stats[:current_jobs_buried] %></span></td>
|
data/package.json
CHANGED