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 +4 -4
- data/lib/oxidized/web/webapp.rb +17 -1
- data/oxidized-web.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 11143fb32d5b312f34baa0ee5c6f071d9aa02480
|
4
|
+
data.tar.gz: 86890aabfe80944b00e4c5df301e46b76108a11a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 098fdd2e9554db2507880072ff7f542c3cb1df516530279541eff4db3995e670bd08509174ca3c6a5519f729e8ee7a4da2b3785d19211c62042a47bec7ec812c
|
7
|
+
data.tar.gz: 3c4f1a1e16e250bbc771ad54c13a5e4741b4babeefba52d22cc349fd8734ad70cf4f61dd49a4a099740bf17d91084fd251e9d5fc9e362c75cbf0498636028275
|
data/lib/oxidized/web/webapp.rb
CHANGED
@@ -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 '
|
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
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.
|
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-
|
12
|
+
date: 2015-11-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: oxidized
|