oxidized-web 0.5.1 → 0.5.2

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: b110dab12b4cab01fcf16a030447b672d7e9f1b0
4
- data.tar.gz: 4527869b82a903d1f466ae012488923d3368fdd1
3
+ metadata.gz: 11143fb32d5b312f34baa0ee5c6f071d9aa02480
4
+ data.tar.gz: 86890aabfe80944b00e4c5df301e46b76108a11a
5
5
  SHA512:
6
- metadata.gz: dbad3adcb6828d522f0a2d3898dc0e7f63469f414ae9bad8c8836518deff71c3870880672022afc3245b91d5532d1622cc4e7810e96f109cb1ce9bdfd0cef397
7
- data.tar.gz: da4959a59533f5e22d84cc7a7d3e702e27aff6760f182c12cce8e67e50184dbee48c6a145d8113f4bd712e0bbb6019a0eeafdbb3e1c7452d02e381ce77f15d9f
6
+ metadata.gz: 098fdd2e9554db2507880072ff7f542c3cb1df516530279541eff4db3995e670bd08509174ca3c6a5519f729e8ee7a4da2b3785d19211c62042a47bec7ec812c
7
+ data.tar.gz: 3c4f1a1e16e250bbc771ad54c13a5e4741b4babeefba52d22cc349fd8734ad70cf4f61dd49a4a099740bf17d91084fd251e9d5fc9e362c75cbf0498636028275
@@ -2,7 +2,7 @@ require 'sinatra/base'
2
2
  require 'sinatra/json'
3
3
  require 'sinatra/url_for'
4
4
  require 'tilt/haml'
5
- require 'tilt/sass'
5
+ require 'sass'
6
6
  require 'pp'
7
7
  require 'oxidized/web/mig'
8
8
  module Oxidized
@@ -15,6 +15,22 @@ module Oxidized
15
15
  redirect url_for('/nodes')
16
16
  end
17
17
 
18
+ get '/nodes/:filter/:value.?:format?' do
19
+ @data = nodes.list.select do |node|
20
+ if node[params[:filter].to_sym] == params[:value]
21
+ node[:status] = 'never'
22
+ node[:time] = 'never'
23
+ node[:group] = 'default' unless node[:group]
24
+ if node[:last]
25
+ node[:status] = node[:last][:status]
26
+ node[:time] = node[:last][:end]
27
+ end
28
+ node
29
+ end
30
+ end
31
+ out :nodes
32
+ end
33
+
18
34
  get '/nodes.?:format?' do
19
35
  @data = nodes.list.map do |node|
20
36
  node[:status] = 'never'
data/oxidized-web.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'oxidized-web'
3
- s.version = '0.5.1'
3
+ s.version = '0.5.2'
4
4
  s.licenses = %w( Apache-2.0 )
5
5
  s.platform = Gem::Platform::RUBY
6
6
  s.authors = [ 'Saku Ytti', 'Samer Abdel-Hafez' ]
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.5.1
4
+ version: 0.5.2
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: 2015-09-17 00:00:00.000000000 Z
12
+ date: 2015-11-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: oxidized