beanstalkd_view 1.2.11 → 1.2.12

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 58877cf02a7cf091c1b870dd7b536341cb487eeb
4
- data.tar.gz: f48a9366bbb22a0023713484f9e5fd142a4cff97
3
+ metadata.gz: 5281430061bd31788ede7550710f9ac84ecd6b60
4
+ data.tar.gz: 3e5ece7278263e6affcaa487dd14952ac6d061f4
5
5
  SHA512:
6
- metadata.gz: f041745c1e5d206bb643a04943546c5e880d9c845facbaa6265c66e9ab7560de7823dc50ee5acb140d00194dff2855251d67cf888f4d4eacb40e6896fc40463b
7
- data.tar.gz: 7edce6418df8fcb37b6b6bbabfe35a016d81a4614c803577672c23a64a58dd82a8662108dcb77fd7656b44be7a06f0a90f8394cb1378204efb2aa8c9b384f8eb
6
+ metadata.gz: ffb637cbbb7fd9ac0faf68b8551da612557c080b1790dce9ea5eb31a36aad352cf99c282c767b141b7721e249a2d20c79908af8a219aacce655bd01101fc9883
7
+ data.tar.gz: a9e208e7118526ad748513ae3982630f226dc5eddbbeb0aac2438185c354b21c5bda2b6105283b6f7be0e578f0e5eebaa7dc1e4bc252ccf625b06f81193a5e49
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ 1.2.12
2
+ -----------
3
+
4
+ - Customize URL base when running standalone via @fotos
5
+ - Fix typo in lib/beanstalkd_view/views/index.erb via @Zorbash
6
+
1
7
  1.2.11
2
8
  -----------
3
9
 
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. To use: cd into the beanstalkd_view directory and execute:
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
- beanstalk_view provides a way to customize your views.
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
- *Note: the environment variable should be set before gem loads.*
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')
@@ -1,3 +1,3 @@
1
1
  module BeanstalkdView
2
- VERSION = "1.2.11"
2
+ VERSION = "1.2.12"
3
3
  end
@@ -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="he number of buried jobs.">
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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "beanstalkd_view",
3
- "version": "1.2.11",
3
+ "version": "1.2.12",
4
4
  "devDependencies": {
5
5
  "grunt": "~0.4.1",
6
6
  "grunt-contrib-jshint": "~0.3.0",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: beanstalkd_view
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.11
4
+ version: 1.2.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dennis Kuczynski