oxidized-web 0.12.1 → 0.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 467a15789abcfd46c0a14c748c8557bf4ef248e27364afcdc29066095a59fb93
4
- data.tar.gz: 8d6db93067e00a2ebdd69e82e8be6699b8b136f239a5ae533204c992b8b2f9c4
3
+ metadata.gz: 1d5b21c637edaad403b9ebedf2e9872709b2fc1769ef475db000317496b70c37
4
+ data.tar.gz: b1818a99f33f6597ba2096f51f2b5e023d5be5c135fb65546a3f51a2e5a18853
5
5
  SHA512:
6
- metadata.gz: 3de087f6adb1f7fbf25e627c37c4d4a664597eca2db79afb4419a71da3867126eba37e4cd594586c3069fde8d3d1102967af40353e0397c8fff5f26c1a4b3524
7
- data.tar.gz: 490b87e741bfcd8ec95d1ff3043c122b19d89a0788358c44eac2ac584621141e09943eb99fbf7358d2226c4cd79cd1d5274e09795aee0fbe9ccb6997f2a9a288
6
+ metadata.gz: aa24d59b321d66e8efc5d5bd78c0919f8607de85630426ba60c1e024be002d436006ffbf118b3ab6a998c0d5de23cdadf7d16ba436b0319743609db5ac96adf6
7
+ data.tar.gz: b333ed845e4d082c9df4230ec2c3fa66271d4c2ae8536d5b7bdfe40504c5202465a62f6f9c77761e4fdb3487055508c5974a6d6c3f7be444c4298bb0421dfcd5
@@ -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
- Include:
5
- - Rakefile
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/**/*'
@@ -1,6 +1,6 @@
1
1
  # This configuration was generated by
2
2
  # `rubocop --auto-gen-config`
3
- # on 2018-06-08 10:01:19 +0200 using RuboCop version 0.57.1.
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: Include, TreatCommentsAsGroupSeparators.
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: 282
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: 3
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: 11
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
@@ -4,8 +4,7 @@ cache: bundler
4
4
  before_install:
5
5
  - gem install bundler
6
6
  rvm:
7
- - 2.1
8
- - 2.2
9
7
  - 2.3
10
8
  - 2.4
11
9
  - 2.5
10
+ - 2.6
data/Gemfile CHANGED
@@ -1,3 +1,2 @@
1
1
  source 'https://rubygems.org'
2
-
3
2
  gemspec
@@ -110,6 +110,7 @@ module Oxidized
110
110
  unless /^\w/.match(line)
111
111
  next
112
112
  end
113
+
113
114
  source_reached = false
114
115
  end
115
116
  new_file.push(line)
@@ -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 > 0
276
+ if dd.positive?
277
277
  date = "#{dd} days #{hh} hours ago"
278
- elsif hh > 0
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'
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'oxidized-web'
3
- s.version = '0.12.1'
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.0.0'
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.25.1'
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', '~> 10.0'
31
- s.add_development_dependency 'rubocop', '~> 0.57.1'
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.12.1
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: 2018-12-18 00:00:00.000000000 Z
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.25.1
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.25.1
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.57.1
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.57.1
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.0.0
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
- rubyforge_project: oxidized-web
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