oxidized-web 0.12.1 → 0.13.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 +4 -4
- data/.rubocop.yml +7 -6
- data/.rubocop_todo.yml +8 -24
- data/.travis.yml +1 -2
- data/Gemfile +0 -1
- data/lib/oxidized/web/mig.rb +1 -0
- data/lib/oxidized/web/webapp.rb +3 -2
- data/oxidized-web.gemspec +6 -5
- metadata +22 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1d5b21c637edaad403b9ebedf2e9872709b2fc1769ef475db000317496b70c37
|
4
|
+
data.tar.gz: b1818a99f33f6597ba2096f51f2b5e023d5be5c135fb65546a3f51a2e5a18853
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: aa24d59b321d66e8efc5d5bd78c0919f8607de85630426ba60c1e024be002d436006ffbf118b3ab6a998c0d5de23cdadf7d16ba436b0319743609db5ac96adf6
|
7
|
+
data.tar.gz: b333ed845e4d082c9df4230ec2c3fa66271d4c2ae8536d5b7bdfe40504c5202465a62f6f9c77761e4fdb3487055508c5974a6d6c3f7be444c4298bb0421dfcd5
|
data/.rubocop.yml
CHANGED
@@ -1,12 +1,17 @@
|
|
1
1
|
inherit_from: .rubocop_todo.yml
|
2
2
|
|
3
|
+
# Do not attempt to police vendored code, and exclude special cases
|
3
4
|
AllCops:
|
4
|
-
|
5
|
-
|
5
|
+
TargetRubyVersion: 2.3
|
6
|
+
Exclude:
|
7
|
+
- 'vendor/**/*'
|
6
8
|
|
7
9
|
StringLiterals:
|
8
10
|
Enabled: false
|
9
11
|
|
12
|
+
Style/FrozenStringLiteralComment:
|
13
|
+
Enabled: false
|
14
|
+
|
10
15
|
LineLength:
|
11
16
|
Enabled: false
|
12
17
|
|
@@ -30,7 +35,3 @@ Style/FormatStringToken:
|
|
30
35
|
Style/RescueModifier:
|
31
36
|
Enabled: false
|
32
37
|
|
33
|
-
# Do not attempt to police vendored code, and exclude special cases
|
34
|
-
AllCops:
|
35
|
-
Exclude:
|
36
|
-
- 'vendor/**/*'
|
data/.rubocop_todo.yml
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
# This configuration was generated by
|
2
2
|
# `rubocop --auto-gen-config`
|
3
|
-
# on
|
3
|
+
# on 2019-03-03 09:40:37 +0100 using RuboCop version 0.65.0.
|
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
|
@@ -8,19 +8,12 @@
|
|
8
8
|
|
9
9
|
# Offense count: 1
|
10
10
|
# Cop supports --auto-correct.
|
11
|
-
# Configuration parameters:
|
11
|
+
# Configuration parameters: TreatCommentsAsGroupSeparators, Include.
|
12
12
|
# Include: **/*.gemspec
|
13
13
|
Gemspec/OrderedDependencies:
|
14
14
|
Exclude:
|
15
15
|
- 'oxidized-web.gemspec'
|
16
16
|
|
17
|
-
# Offense count: 1
|
18
|
-
# Configuration parameters: Include.
|
19
|
-
# Include: **/*.gemspec
|
20
|
-
Gemspec/RequiredRubyVersion:
|
21
|
-
Exclude:
|
22
|
-
- 'oxidized-web.gemspec'
|
23
|
-
|
24
17
|
# Offense count: 2
|
25
18
|
# Cop supports --auto-correct.
|
26
19
|
# Configuration parameters: EnforcedStyle, EnforcedStyleForEmptyBraces.
|
@@ -59,6 +52,7 @@ Metrics/AbcSize:
|
|
59
52
|
|
60
53
|
# Offense count: 2
|
61
54
|
# Configuration parameters: CountComments, ExcludedMethods.
|
55
|
+
# ExcludedMethods: refine
|
62
56
|
Metrics/BlockLength:
|
63
57
|
Max: 33
|
64
58
|
|
@@ -70,14 +64,14 @@ Metrics/BlockNesting:
|
|
70
64
|
# Offense count: 2
|
71
65
|
# Configuration parameters: CountComments.
|
72
66
|
Metrics/ClassLength:
|
73
|
-
Max:
|
67
|
+
Max: 272
|
74
68
|
|
75
69
|
# Offense count: 2
|
76
70
|
Metrics/CyclomaticComplexity:
|
77
71
|
Max: 9
|
78
72
|
|
79
73
|
# Offense count: 9
|
80
|
-
# Configuration parameters: CountComments.
|
74
|
+
# Configuration parameters: CountComments, ExcludedMethods.
|
81
75
|
Metrics/MethodLength:
|
82
76
|
Max: 36
|
83
77
|
|
@@ -110,7 +104,7 @@ Security/JSONLoad:
|
|
110
104
|
Exclude:
|
111
105
|
- 'lib/oxidized/web/webapp.rb'
|
112
106
|
|
113
|
-
# Offense count:
|
107
|
+
# Offense count: 2
|
114
108
|
# Cop supports --auto-correct.
|
115
109
|
# Configuration parameters: EnforcedStyle.
|
116
110
|
# SupportedStyles: always, conditionals
|
@@ -134,11 +128,6 @@ Style/ConditionalAssignment:
|
|
134
128
|
Exclude:
|
135
129
|
- 'lib/oxidized/web/webapp.rb'
|
136
130
|
|
137
|
-
# Offense count: 2
|
138
|
-
Style/DateTime:
|
139
|
-
Exclude:
|
140
|
-
- 'lib/oxidized/web/webapp.rb'
|
141
|
-
|
142
131
|
# Offense count: 3
|
143
132
|
Style/Documentation:
|
144
133
|
Exclude:
|
@@ -155,6 +144,7 @@ Style/EmptyLiteral:
|
|
155
144
|
- 'lib/oxidized/web/webapp.rb'
|
156
145
|
|
157
146
|
# Offense count: 2
|
147
|
+
# Cop supports --auto-correct.
|
158
148
|
# Configuration parameters: EnforcedStyle.
|
159
149
|
# SupportedStyles: each, for
|
160
150
|
Style/For:
|
@@ -170,7 +160,7 @@ Style/HashSyntax:
|
|
170
160
|
Exclude:
|
171
161
|
- 'Rakefile'
|
172
162
|
|
173
|
-
# Offense count:
|
163
|
+
# Offense count: 9
|
174
164
|
# Cop supports --auto-correct.
|
175
165
|
Style/IfUnlessModifier:
|
176
166
|
Exclude:
|
@@ -256,9 +246,3 @@ Style/WhileUntilDo:
|
|
256
246
|
Style/WordArray:
|
257
247
|
EnforcedStyle: percent
|
258
248
|
MinSize: 3
|
259
|
-
|
260
|
-
# Offense count: 10
|
261
|
-
# Configuration parameters: AllowHeredoc, AllowURI, URISchemes, IgnoreCopDirectives, IgnoredPatterns.
|
262
|
-
# URISchemes: http, https
|
263
|
-
Metrics/LineLength:
|
264
|
-
Max: 177
|
data/.travis.yml
CHANGED
data/Gemfile
CHANGED
data/lib/oxidized/web/mig.rb
CHANGED
data/lib/oxidized/web/webapp.rb
CHANGED
@@ -273,9 +273,9 @@ module Oxidized
|
|
273
273
|
mm, ss = t.divmod(60)
|
274
274
|
hh, mm = mm.divmod(60)
|
275
275
|
dd, hh = hh.divmod(24)
|
276
|
-
if dd
|
276
|
+
if dd.positive?
|
277
277
|
date = "#{dd} days #{hh} hours ago"
|
278
|
-
elsif hh
|
278
|
+
elsif hh.positive?
|
279
279
|
date = "#{hh} hours #{mm} min ago"
|
280
280
|
else
|
281
281
|
date = "#{mm} min #{ss} sec ago"
|
@@ -308,6 +308,7 @@ module Oxidized
|
|
308
308
|
if i > [length_o, length_n].min
|
309
309
|
break
|
310
310
|
end
|
311
|
+
|
311
312
|
if (/^\-.*/.match(old_diff[i])) && !(/^\+.*/.match(new_diff[i]))
|
312
313
|
# tag removed latter to add color syntax
|
313
314
|
insert = 'empty_line'
|
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.
|
3
|
+
s.version = '0.13.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']
|
@@ -13,12 +13,12 @@ Gem::Specification.new do |s|
|
|
13
13
|
s.executables = %w[]
|
14
14
|
s.require_path = 'lib'
|
15
15
|
|
16
|
-
s.required_ruby_version = '>= 2.
|
16
|
+
s.required_ruby_version = '>= 2.3'
|
17
17
|
s.add_runtime_dependency 'charlock_holmes', '~> 0.7.5'
|
18
18
|
s.add_runtime_dependency 'emk-sinatra-url-for', '~> 0.2'
|
19
19
|
s.add_runtime_dependency 'haml', '~> 5.0'
|
20
20
|
s.add_runtime_dependency 'htmlentities', '~> 4.3'
|
21
|
-
s.add_runtime_dependency 'oxidized', '~> 0.
|
21
|
+
s.add_runtime_dependency 'oxidized', '~> 0.26.0'
|
22
22
|
s.add_runtime_dependency 'puma', '~> 3.11.4'
|
23
23
|
s.add_runtime_dependency 'sass', '~> 3.3'
|
24
24
|
s.add_runtime_dependency 'sinatra', '~> 1.4', '>= 1.4.6'
|
@@ -26,7 +26,8 @@ Gem::Specification.new do |s|
|
|
26
26
|
s.add_runtime_dependency 'json', '>= 1.7.0'
|
27
27
|
s.add_runtime_dependency 'rack-test', '~> 0.7.0'
|
28
28
|
|
29
|
+
s.add_development_dependency 'bundler', '~> 2.0'
|
29
30
|
s.add_development_dependency 'rails_best_practices', '~> 1.19'
|
30
|
-
s.add_development_dependency 'rake',
|
31
|
-
s.add_development_dependency 'rubocop',
|
31
|
+
s.add_development_dependency 'rake', '~> 10.0'
|
32
|
+
s.add_development_dependency 'rubocop', '~> 0.65.0'
|
32
33
|
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.
|
4
|
+
version: 0.13.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:
|
12
|
+
date: 2019-03-04 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: charlock_holmes
|
@@ -73,14 +73,14 @@ dependencies:
|
|
73
73
|
requirements:
|
74
74
|
- - "~>"
|
75
75
|
- !ruby/object:Gem::Version
|
76
|
-
version: 0.
|
76
|
+
version: 0.26.0
|
77
77
|
type: :runtime
|
78
78
|
prerelease: false
|
79
79
|
version_requirements: !ruby/object:Gem::Requirement
|
80
80
|
requirements:
|
81
81
|
- - "~>"
|
82
82
|
- !ruby/object:Gem::Version
|
83
|
-
version: 0.
|
83
|
+
version: 0.26.0
|
84
84
|
- !ruby/object:Gem::Dependency
|
85
85
|
name: puma
|
86
86
|
requirement: !ruby/object:Gem::Requirement
|
@@ -177,6 +177,20 @@ dependencies:
|
|
177
177
|
- - "~>"
|
178
178
|
- !ruby/object:Gem::Version
|
179
179
|
version: 0.7.0
|
180
|
+
- !ruby/object:Gem::Dependency
|
181
|
+
name: bundler
|
182
|
+
requirement: !ruby/object:Gem::Requirement
|
183
|
+
requirements:
|
184
|
+
- - "~>"
|
185
|
+
- !ruby/object:Gem::Version
|
186
|
+
version: '2.0'
|
187
|
+
type: :development
|
188
|
+
prerelease: false
|
189
|
+
version_requirements: !ruby/object:Gem::Requirement
|
190
|
+
requirements:
|
191
|
+
- - "~>"
|
192
|
+
- !ruby/object:Gem::Version
|
193
|
+
version: '2.0'
|
180
194
|
- !ruby/object:Gem::Dependency
|
181
195
|
name: rails_best_practices
|
182
196
|
requirement: !ruby/object:Gem::Requirement
|
@@ -211,14 +225,14 @@ dependencies:
|
|
211
225
|
requirements:
|
212
226
|
- - "~>"
|
213
227
|
- !ruby/object:Gem::Version
|
214
|
-
version: 0.
|
228
|
+
version: 0.65.0
|
215
229
|
type: :development
|
216
230
|
prerelease: false
|
217
231
|
version_requirements: !ruby/object:Gem::Requirement
|
218
232
|
requirements:
|
219
233
|
- - "~>"
|
220
234
|
- !ruby/object:Gem::Version
|
221
|
-
version: 0.
|
235
|
+
version: 0.65.0
|
222
236
|
description: puma+sinatra+haml webUI + REST API for oxidized
|
223
237
|
email:
|
224
238
|
- saku@ytti.fi
|
@@ -290,15 +304,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
290
304
|
requirements:
|
291
305
|
- - ">="
|
292
306
|
- !ruby/object:Gem::Version
|
293
|
-
version: 2.
|
307
|
+
version: '2.3'
|
294
308
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
295
309
|
requirements:
|
296
310
|
- - ">="
|
297
311
|
- !ruby/object:Gem::Version
|
298
312
|
version: '0'
|
299
313
|
requirements: []
|
300
|
-
|
301
|
-
rubygems_version: 2.7.6
|
314
|
+
rubygems_version: 3.0.2
|
302
315
|
signing_key:
|
303
316
|
specification_version: 4
|
304
317
|
summary: sinatra API + webUI for oxidized
|