runit-man 1.11.4 → 1.11.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -12,6 +12,7 @@ en:
12
12
  headers:
13
13
  pid: PID
14
14
  name: Name
15
+ started_at: Started at
15
16
  uptime: Uptime (s)
16
17
  stat: Status
17
18
  actions: Actions
@@ -12,6 +12,7 @@ ru:
12
12
  headers:
13
13
  pid: PID
14
14
  name: Название
15
+ started_at: Запущен
15
16
  uptime: "Время исполнения (сек.)"
16
17
  stat: Состояние
17
18
  actions: Действия
@@ -84,6 +84,10 @@ class ServiceInfo
84
84
  up!
85
85
  end
86
86
 
87
+ def started_at
88
+ @status.started_at
89
+ end
90
+
87
91
  def pid
88
92
  @status.pid
89
93
  end
@@ -1,4 +1,4 @@
1
1
  module RunitManVersion
2
- VERSION = '1.11.4'.freeze
2
+ VERSION = '1.11.6'.freeze
3
3
  end
4
4
 
@@ -4,6 +4,7 @@ need_second_row = !service_info.files_to_view.empty? || !service_info.urls_to_vi
4
4
  <tr class="<%= even_or_odd ? 'even' : 'odd' %>">
5
5
  <td<%= need_second_row ? ' rowspan="2"' : '' %>><%= h(service_info.pid) %></td>
6
6
  <th scope="row"><%= h(service_info.name) %></th>
7
+ <td><%= service_info.started_at ? service_info.started_at.utc : '' %></td>
7
8
  <td><%= service_info.uptime ? ('%.2f' % service_info.uptime) : '' %></td>
8
9
  <td><%= stat_subst(service_info.stat) %></td>
9
10
  <td>
@@ -34,7 +35,7 @@ need_second_row = !service_info.files_to_view.empty? || !service_info.urls_to_vi
34
35
  <% end %>
35
36
  </td>
36
37
  </tr>
37
- <% if need_second_row %><tr><td colspan="5">
38
+ <% if need_second_row %><tr><td colspan="6">
38
39
  <% unless service_info.files_to_view.empty? %>
39
40
  <%= h(t('runit.services.table.values.files_to_view')) %>:
40
41
  <% service_info.files_to_view.each do |f| %>
@@ -4,6 +4,7 @@
4
4
  <tr>
5
5
  <th><%= h(t('runit.services.table.headers.pid')) %></th>
6
6
  <th><%= h(t('runit.services.table.headers.name')) %></th>
7
+ <th><%= h(t('runit.services.table.headers.started_at')) %></th>
7
8
  <th><%= h(t('runit.services.table.headers.uptime')) %></th>
8
9
  <th><%= h(t('runit.services.table.headers.stat')) %></th>
9
10
  <th><%= h(t('runit.services.table.headers.actions')) %></th>
@@ -12,7 +13,7 @@
12
13
  </thead>
13
14
  <tfoot>
14
15
  <tr>
15
- <td colspan="6"><%= t('runit.services.table.footer', :time => h(Time.now.utc)) %></td>
16
+ <td colspan="7"><%= t('runit.services.table.footer', :time => h(Time.now.utc)) %></td>
16
17
  </tr>
17
18
  </tfoot>
18
19
  <tbody>
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: runit-man
3
3
  version: !ruby/object:Gem::Version
4
- hash: 51
5
- prerelease: false
4
+ hash: 55
5
+ prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 11
9
- - 4
10
- version: 1.11.4
9
+ - 6
10
+ version: 1.11.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Akzhan Abdulin
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-03-02 00:00:00 +03:00
18
+ date: 2011-03-14 00:00:00 +03:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -224,7 +224,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
224
224
  requirements:
225
225
  - none
226
226
  rubyforge_project:
227
- rubygems_version: 1.3.7
227
+ rubygems_version: 1.5.2
228
228
  signing_key:
229
229
  specification_version: 3
230
230
  summary: Runit web management tool.