runit-man 2.4.4 → 2.4.5

Sign up to get free protection for your applications and to get access to all the features.
data/INSTALL.md CHANGED
@@ -40,10 +40,7 @@ When You need to handle large files (logs etc.) by runit-man script You need ano
40
40
  runit-man --rackup='rainbows -E production -c rainbows.conf -p $PORT'
41
41
  ```
42
42
 
43
- Any localization can be done by editing of `./i18n/*.yml` locale files.
44
- Contributions are welcome.
43
+ ### Using runit-man cookbook
45
44
 
46
- * [runit home page](http://smarden.org/runit/)
47
- * [runit-man home page](https://github.com/Undev/runit-man)
45
+ We provide [runit-man](https://github.com/Undev/runit-man-cookbook) cookbook to automate setup of runit-man using [Opscode Chef](http://www.opscode.com/chef/).
48
46
 
49
- Yours sincerely, Akzhan.
data/README.md CHANGED
@@ -10,6 +10,12 @@ Server will run by **runit-man** script. Take a note that **runit-man** must hav
10
10
 
11
11
  ## Installation
12
12
 
13
+ ### Opscode Chef
14
+
15
+ We provide [runit-man cookbook](https://github.com/Undev/runit-man-cookbook) to automate setup of runit-man using [Opscode Chef](http://www.opscode.com/chef/).
16
+
17
+ ### Manual installation
18
+
13
19
  Usually You should install both **runit-man** and **thin** gems to run this tool fine.
14
20
 
15
21
  ```bash
@@ -112,3 +118,13 @@ exec logger -i -t "runit-man" -p local1.info
112
118
 
113
119
  and use option `-l "logger:/var/log/"` where base logs directory shown after period.
114
120
 
121
+ ## Localization
122
+
123
+ Localization can be done by editing of `./i18n/*.yml` locale files.
124
+ Contributions are welcome.
125
+
126
+ ## Links
127
+
128
+ * [runit home page](http://smarden.org/runit/)
129
+ * [runit-man home page](https://github.com/Undev/runit-man)
130
+
data/README_ru.md CHANGED
@@ -10,6 +10,12 @@
10
10
 
11
11
  ## Инсталляция
12
12
 
13
+ ### Opscode Chef
14
+
15
+ Мы предоставляем [набор рецептов runit-man](https://github.com/Undev/runit-man-cookbook) для автоматизации установки runit-man с использованием [Opscode Chef](http://www.opscode.com/chef/).
16
+
17
+ ### Ручная установка
18
+
13
19
  Обычно вам нужно поставить гемы **runit-man** и **thin** совместно, чтобы эта утилита работала эффективно.
14
20
 
15
21
  ```bash
@@ -112,3 +118,14 @@ exec logger -i -t "runit-man" -p local1.info
112
118
 
113
119
  При этом нужно использовать опцию `-l "logger:/var/log/"`, где после двоеточия надо указывать базовый каталог логов.
114
120
 
121
+ ## Локализация
122
+
123
+ Локализация может быть выполнена редактированием файлов локалей в каталоге `./i18n/*.yml`.
124
+ Ваши дополнения приветствуются.
125
+
126
+ ## Ссылки
127
+
128
+ * [runit home page](http://smarden.org/runit/)
129
+ * [runit-man home page](https://github.com/Undev/runit-man)
130
+
131
+
data/lib/runit-man/app.rb CHANGED
@@ -210,7 +210,7 @@ class RunitMan::App < Sinatra::Base
210
210
  }
211
211
  end
212
212
 
213
- get %r[^/([^/]+)/log(?:/(\d+))?/?$] do |name, count|
213
+ get %r[\A/([^/]+)/log(?:/(\d+))?/?\z] do |name, count|
214
214
  data = log_of_service(name, count, nil)
215
215
  return not_found if data.nil?
216
216
 
@@ -218,7 +218,7 @@ class RunitMan::App < Sinatra::Base
218
218
  haml :log, :locals => data
219
219
  end
220
220
 
221
- get %r[^/([^/]+)/log(?:/(\d+))?/(\d+)\.txt$] do |name, d1, d2|
221
+ get %r[\A/([^/]+)/log(?:/(\d+))?/(\d+)\.txt\z] do |name, d1, d2|
222
222
  if d2
223
223
  count, no = d1, d2
224
224
  else
@@ -233,7 +233,7 @@ class RunitMan::App < Sinatra::Base
233
233
  data[:logs][no][:text]
234
234
  end
235
235
 
236
- get %r[^/([^/]+)/log\-downloads/?$] do |name|
236
+ get %r[\A/([^/]+)/log\-downloads/?\z] do |name|
237
237
  srv = ServiceInfo.klass[name]
238
238
  return not_found if srv.nil? || !srv.logged?
239
239
 
@@ -243,7 +243,7 @@ class RunitMan::App < Sinatra::Base
243
243
  }
244
244
  end
245
245
 
246
- get %r[^/([^/]+)/log\-download/(.+)$] do |name, file_name|
246
+ get %r[\A/([^/]+)/log\-download/(.+)\z] do |name, file_name|
247
247
  srv = ServiceInfo.klass[name]
248
248
  return not_found if srv.nil? || !srv.logged?
249
249
 
@@ -1,6 +1,6 @@
1
1
  # runit-man namespace.
2
2
  module RunitMan
3
3
  # runit-man version.
4
- VERSION = '2.4.4'.freeze
4
+ VERSION = '2.4.5'.freeze
5
5
  end
6
6
 
data/views/view_file.haml CHANGED
@@ -6,5 +6,5 @@
6
6
  - content_for :footer do
7
7
  %p
8
8
  = t('runit.view_file.updated', :time => Time.now.utc)
9
- %a{:href=>"javascript:;", :rel=>"nofollow", :onclick=>"window.location.reload()"}= t('runit.view_file.reload')
9
+ %a.btn.btn-info{:href=>"javascript:;", :rel=>"nofollow", :onclick=>"window.location.reload()"}= t('runit.view_file.reload')
10
10
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: runit-man
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.4.4
4
+ version: 2.4.5
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-04-23 00:00:00.000000000 Z
12
+ date: 2012-05-20 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: yajl-ruby
@@ -340,7 +340,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
340
340
  version: '0'
341
341
  segments:
342
342
  - 0
343
- hash: -290158511
343
+ hash: 147627505
344
344
  required_rubygems_version: !ruby/object:Gem::Requirement
345
345
  none: false
346
346
  requirements:
@@ -349,7 +349,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
349
349
  version: '0'
350
350
  segments:
351
351
  - 0
352
- hash: -290158511
352
+ hash: 147627505
353
353
  requirements:
354
354
  - none
355
355
  rubyforge_project: