oxidized-web 0.10.2 → 0.11.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
  SHA256:
3
- metadata.gz: 5d6180bf33357763c30b5ad5fbccc447526bd8e3e383b30e3cb435beb872dba3
4
- data.tar.gz: a866f826a63874021cb654ffa9278e030f8bd1620f0616aca31133c6e03f0a19
3
+ metadata.gz: '0885f1914024019476c00e341b6d7b2e4cc1de14e37be2bd4f18f1538c839b49'
4
+ data.tar.gz: ad900271a0d17d6d61a849df06b188eba19e63756b49863718f4eee5aa89d8b1
5
5
  SHA512:
6
- metadata.gz: 7a8eb431618d56a2d7a31573387aae44dbdeec0f2fb9372ce79d7eecc72413c5d263df82f42e13a556d399950ec0ba9e2625d3501ded2221a92ca30d4714dfd8
7
- data.tar.gz: 49015edac9aae6911bbbb09b8a87ad7232f768bb36fbef56c0eaa25adf6a0164ae5b8448e8ddd9f8acd21614ff21cf25ebffd0995c063ece6596d045948ab2d8
6
+ metadata.gz: 65e5bd025eda20f72e6431393a792943e3d3ba86ab82364b29e8c32dbb44794a3a81bc56c6d2d309bb87e1aaa8a5161cb1e76a0e958bd9ff23b7f16df1d4c299
7
+ data.tar.gz: 884f14ef671fc0455acfbe60b24506c494d7a27f810ef15aefb164003033565521bfcb80a6aa4e740763456e1116bf19fc1bed59ab45bcb49c8f9900980cecf5
@@ -1,6 +1,6 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2018-05-03 20:40:31 +0200 using RuboCop version 0.55.0.
3
+ # on 2018-06-08 10:01:19 +0200 using RuboCop version 0.57.1.
4
4
  # The point is for the user to remove these configuration records
5
5
  # one by one as the offenses are removed from the code base.
6
6
  # Note that changes in the inspected code, or installation of new
@@ -110,7 +110,7 @@ Security/JSONLoad:
110
110
  Exclude:
111
111
  - 'lib/oxidized/web/webapp.rb'
112
112
 
113
- # Offense count: 2
113
+ # Offense count: 3
114
114
  # Cop supports --auto-correct.
115
115
  # Configuration parameters: EnforcedStyle.
116
116
  # SupportedStyles: always, conditionals
@@ -170,7 +170,7 @@ Style/HashSyntax:
170
170
  Exclude:
171
171
  - 'Rakefile'
172
172
 
173
- # Offense count: 9
173
+ # Offense count: 11
174
174
  # Cop supports --auto-correct.
175
175
  Style/IfUnlessModifier:
176
176
  Exclude:
@@ -20,18 +20,13 @@ module Oxidized
20
20
  get '/nodes/:filter/:value.?:format?' do
21
21
  @data = nodes.list.select do |node|
22
22
  if node[params[:filter].to_sym] == params[:value]
23
- versions = nodes.version node[:name], node[:group]
24
- node[:status] = 'never'
25
- node[:time] = 'never'
26
- node[:mtime] = 'unknown'
27
- node[:group] = 'default' unless node[:group]
23
+ node[:status] = 'never'
24
+ node[:time] = 'never'
25
+ node[:group] = 'default' unless node[:group]
28
26
  if node[:last]
29
27
  node[:status] = node[:last][:status]
30
28
  node[:time] = node[:last][:end]
31
29
  end
32
- if versions.is_a? Array
33
- node[:mtime] = versions.first[:date]
34
- end
35
30
  node
36
31
  end
37
32
  end
@@ -41,17 +36,13 @@ module Oxidized
41
36
  get '/nodes.?:format?' do
42
37
  @data = nodes.list.map do |node|
43
38
  versions = nodes.version node[:name], node[:group]
44
- node[:status] = 'never'
45
- node[:time] = 'never'
46
- node[:mtime] = 'unknown'
47
- node[:group] = 'default' unless node[:group]
39
+ node[:status] = 'never'
40
+ node[:time] = 'never'
41
+ node[:group] = 'default' unless node[:group]
48
42
  if node[:last]
49
43
  node[:status] = node[:last][:status]
50
44
  node[:time] = node[:last][:end]
51
45
  end
52
- if versions.is_a? Array and (not versions.empty?)
53
- node[:mtime] = versions.first[:date]
54
- end
55
46
  node
56
47
  end
57
48
  out :nodes
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'oxidized-web'
3
- s.version = '0.10.2'
3
+ s.version = '0.11.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']
@@ -28,5 +28,5 @@ Gem::Specification.new do |s|
28
28
 
29
29
  s.add_development_dependency 'rails_best_practices', '~> 1.19'
30
30
  s.add_development_dependency 'rake', '~> 10.0'
31
- s.add_development_dependency 'rubocop', '~> 0.55.0'
31
+ s.add_development_dependency 'rubocop', '~> 0.57.1'
32
32
  end
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.10.2
4
+ version: 0.11.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: 2018-06-03 00:00:00.000000000 Z
12
+ date: 2018-06-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: charlock_holmes
@@ -211,14 +211,14 @@ dependencies:
211
211
  requirements:
212
212
  - - "~>"
213
213
  - !ruby/object:Gem::Version
214
- version: 0.55.0
214
+ version: 0.57.1
215
215
  type: :development
216
216
  prerelease: false
217
217
  version_requirements: !ruby/object:Gem::Requirement
218
218
  requirements:
219
219
  - - "~>"
220
220
  - !ruby/object:Gem::Version
221
- version: 0.55.0
221
+ version: 0.57.1
222
222
  description: puma+sinatra+haml webUI + REST API for oxidized
223
223
  email:
224
224
  - saku@ytti.fi