oxidized-web 0.6.1 → 0.7.0

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of oxidized-web might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5586eadd3aa0ab2774fa95043eb58595d9eb9130
4
- data.tar.gz: 5f8d7abdf792415c9fe4860725be72030480754b
3
+ metadata.gz: 9a1b1bab329f725f5bbc8bebdac1b65b1e3f2ef0
4
+ data.tar.gz: 249d1daababb324eecc66bb10798a231d5bf5aa5
5
5
  SHA512:
6
- metadata.gz: 996c411916d01fa4dcb3d8d365e5849b47cba06175849db39ec87159bbcc4af4a3b29ef265afb577b242c344b23ff1e3f822c869eafab38f68f6d0a8626f417d
7
- data.tar.gz: ed6574c499553a09f86b4d4324bc91d8c5264789757866e42636c4d0878d8ed817c4af9f2b20749920307a230d6c03d5a9123abc80cf3a72044d259b34b03e56
6
+ metadata.gz: c64337dfa586c61faa0ebbd4ccc28ec2b81b4228e40cba3893779ed2aacf9d348449d0e31c0195010c48ef278040d7e004f8d2a9a2a1b7fbbc0b6ae551b75a4c
7
+ data.tar.gz: b57db13dd2291c97c8d43c79aa015be238a4adc7a4196e559676ba6ba4d1222ffebf5499247be7c8327d32172e106d86e9fd034b6c20c6e6b11d78f272530e13
data/README.md CHANGED
@@ -4,6 +4,8 @@ Web userinterface and RESTful API for Oxidized.
4
4
 
5
5
  This is not useful independently, see https://github.com/ytti/oxidized for install instructions
6
6
 
7
+ Live demo: http://oxidized.arahant.net
8
+
7
9
  # License and Copyright
8
10
 
9
11
  Copyright 2013-2015 Saku Ytti <saku@ytti.fi>
@@ -71,6 +71,31 @@ $(function() {
71
71
  $('.btn-file :file').on('fileSelect', function(e, numFiles, label) {
72
72
  $(this).parents('.input-group').find(':text').val(label);
73
73
  });
74
+
75
+ // Reloads the nodes from a source by calling the /reload.json URI
76
+ $('#reload').click(function() {
77
+ $.get('/reload.json')
78
+ .done(function(data) {
79
+ $('#flashMessage')
80
+ .removeClass('alert-danger')
81
+ .addClass('alert-success')
82
+ .text(data);
83
+ })
84
+ .fail(function() {
85
+ var data = 'Unable to reload nodes'
86
+ $('#flashMessage')
87
+ .removeClass('alert-success')
88
+ .addClass('alert-danger')
89
+ .text(data);
90
+ })
91
+ .always(function() {
92
+ $('#flashMessage').removeClass('hidden');
93
+ });
94
+
95
+ // Update timestamp on next button click for DataTables
96
+ $('.paginate_button').on('click', function() {
97
+ convertTime();
98
+ });
74
99
  });
75
100
 
76
101
 
@@ -2,9 +2,13 @@
2
2
  .col-xs-12.col-md-2
3
3
  %h4 nodes /
4
4
 
5
+ .hidden.alert#flashMessage
6
+
5
7
  .row
6
8
  .pull-right
7
9
  %form
10
+ %button.ColVis_Button#reload{type: 'button'}
11
+ %span.glyphicon.glyphicon-refresh Reload
8
12
  %button.ColVis_Button{type: 'button', onclick: 'history.go();'}
9
13
  %span.glyphicon.glyphicon-repeat Refresh
10
14
 
@@ -28,8 +32,10 @@
28
32
  %td
29
33
  %a{href: url_for("/node/show/#{node[:name]}")} #{node[:name]}
30
34
  %td= node[:ip]
31
- %td= node[:model]
32
- %td= node[:group]
35
+ %td
36
+ %a{href: url_for("/nodes/model/#{node[:model]}")} #{node[:model]}
37
+ %td
38
+ %a{href: url_for("/nodes/group/#{node[:group]}")} #{node[:group]}
33
39
  %td
34
40
  %div{title: node[:status], class: node[:status]}
35
41
  %span{style: 'visibility: hidden'}#{node[:status]}
@@ -75,7 +75,7 @@
75
75
  %td= total_runs
76
76
  %td= failures
77
77
  %td #{'%.2f' % failure_rate}%
78
- %td #{'%.2f' % avg_time}s
78
+ %td #{'%.2f' % avg_time}
79
79
  %td
80
80
  %div{title: status, class: status}
81
81
  %td.time= last_success
@@ -90,13 +90,13 @@
90
90
  visible: false,
91
91
  targets: 1
92
92
  }, {
93
- type: "string",
94
- targets: 3
93
+ render: function ( data, type, row) {
94
+ return type === 'display' ? data + 's' : data
95
+ },
96
+ targets: 4
95
97
  }],
96
98
  colVis: {
97
99
  exclude: [0, 5]
98
100
  }
99
101
  });
100
102
  });
101
-
102
-
@@ -221,7 +221,7 @@ module Oxidized
221
221
 
222
222
  private
223
223
 
224
- def out template = :default
224
+ def out template = :text
225
225
  if @json or params[:format] == 'json'
226
226
  if @data.is_a?(String)
227
227
  json @data.lines
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'oxidized-web'
3
- s.version = '0.6.1'
3
+ s.version = '0.7.0'
4
4
  s.licenses = %w( Apache-2.0 )
5
5
  s.platform = Gem::Platform::RUBY
6
6
  s.authors = ['Saku Ytti', 'Samer Abdel-Hafez']
@@ -14,7 +14,7 @@ Gem::Specification.new do |s|
14
14
  s.require_path = 'lib'
15
15
 
16
16
  s.required_ruby_version = '>= 1.9.3'
17
- s.add_runtime_dependency 'oxidized', '~> 0.10'
17
+ s.add_runtime_dependency 'oxidized', '~> 0.13'
18
18
  s.add_runtime_dependency 'puma', '~> 2.8'
19
19
  s.add_runtime_dependency 'sinatra', '~> 1.4', '>= 1.4.6'
20
20
  s.add_runtime_dependency 'sinatra-contrib', '~> 1.4', '>= 1.4.6'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: oxidized-web
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.7.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Saku Ytti
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-01-10 00:00:00.000000000 Z
12
+ date: 2016-03-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: oxidized
@@ -17,14 +17,14 @@ dependencies:
17
17
  requirements:
18
18
  - - "~>"
19
19
  - !ruby/object:Gem::Version
20
- version: '0.10'
20
+ version: '0.13'
21
21
  type: :runtime
22
22
  prerelease: false
23
23
  version_requirements: !ruby/object:Gem::Requirement
24
24
  requirements:
25
25
  - - "~>"
26
26
  - !ruby/object:Gem::Version
27
- version: '0.10'
27
+ version: '0.13'
28
28
  - !ruby/object:Gem::Dependency
29
29
  name: puma
30
30
  requirement: !ruby/object:Gem::Requirement
@@ -196,7 +196,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
196
196
  version: '0'
197
197
  requirements: []
198
198
  rubyforge_project: oxidized-web
199
- rubygems_version: 2.4.5.1
199
+ rubygems_version: 2.5.1
200
200
  signing_key:
201
201
  specification_version: 4
202
202
  summary: sinatra API + webUI for oxidized