datarockets-style 0.8.1 → 0.9.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
  SHA1:
3
- metadata.gz: 4f7d9668fbc210ee4a62d6e430941cb41f0c76f1
4
- data.tar.gz: f940fdde78d921b6fed3ebe586c136525a986397
3
+ metadata.gz: e242588724f25da2f7b419cdaa056a5bfaf6124f
4
+ data.tar.gz: 8f9a0dee26834329998c453b204be71e8f9de398
5
5
  SHA512:
6
- metadata.gz: c78d9af47a6f03ea18358b9a41547fd6e5afd61aa51abffb3ee5319cb5c3762359e5bb2b611387abfe4f9c7bbf5beafbaa3573c5b418ee9c00f1b865dea5f840
7
- data.tar.gz: 72897ad0da40c29848d78a0663004fcb968c51e67f84a6480e0c6953b2a35cc83949bfae4aba2bbe84575bfb842959da9cc0e806e2f5b5ffb010cdaa83b33b25
6
+ metadata.gz: 2b304b6c5bf560780de884e8cbc0fbe4e9b6fbe8760284561e5b5548c281bc34122a6750c987de5a467d56ac99396f3c03ccd7e496ca5c3bd8d6d7a29f3ced32
7
+ data.tar.gz: d7f847d65457edf80911a60f205697f53c410d3a59364a12899e6e1e9151d6294a7d78ae7b98006da726c44f3f69234a4e647889efc74fe08c0afcca7faef19d
@@ -14,3 +14,4 @@ To-Do list:
14
14
  - [ ] update dependencies to the latest version
15
15
  - [ ] investigate how it changes and affect our current styles and cops
16
16
  - [ ] check the required ruby version
17
+ - [ ] enable pending cops
@@ -7,7 +7,7 @@ inherit_mode:
7
7
  - Exclude
8
8
 
9
9
  AllCops:
10
- TargetRubyVersion: 2.3
10
+ TargetRubyVersion: 2.4
11
11
 
12
12
  # for checking cops with interpolation
13
13
  Lint/InterpolationCheck:
@@ -4,6 +4,22 @@ The format is described in [Contributing notes](CONTRIBUTING.md#changelog-entry-
4
4
 
5
5
  ## master (unreleased)
6
6
 
7
+ ## 0.9.0 (2020-05-27)
8
+
9
+ ### Changed
10
+
11
+ * **(Breaking)** Drop support for Ruby 2.3. ([@r.dubrovsky][])
12
+
13
+ * Update rubocop to '0.84.0'. ([@r.dubrovsky][])
14
+ * Enable new cops `Lint/RaiseException` and `Lint/StructNewOverride`. Cops were added in version `0.81`.
15
+ * Enable new cops `Layout/SpaceAroundMethodCallOperator` and `Style/ExponentialNotation`. Cops were added in version `0.82`.
16
+ * Enable new cops `Layout/EmptyLinesAroundAttributeAccessor` and `Style/SlicingWithRange`. Cops were added in version `0.83`.
17
+ * Enable new cop `Lint/DeprecatedOpenSSLConstant`. Cop was added in version `0.84`.
18
+
19
+ * Update rubocop-rails to `2.5.2`.
20
+ * Update rubocop-rspec to `1.39`.
21
+ * Update `activesupport` for fixing security issues.
22
+
7
23
  ## 0.8.1 (2020-03-02)
8
24
 
9
25
  ### Changed
@@ -1,29 +1,37 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- datarockets-style (0.8.1)
5
- rubocop (~> 0.80)
6
- rubocop-rails (~> 2.4)
7
- rubocop-rspec (~> 1.38)
4
+ datarockets-style (0.9.0)
5
+ rubocop (~> 0.84)
6
+ rubocop-rails (~> 2.5.2)
7
+ rubocop-rspec (~> 1.39)
8
8
 
9
9
  GEM
10
10
  remote: https://rubygems.org/
11
11
  specs:
12
+ activesupport (5.2.4.3)
13
+ concurrent-ruby (~> 1.0, >= 1.0.2)
14
+ i18n (>= 0.7, < 2)
15
+ minitest (~> 5.1)
16
+ tzinfo (~> 1.1)
12
17
  ast (2.4.0)
13
- byebug (11.0.1)
18
+ byebug (11.1.3)
14
19
  coderay (1.1.2)
20
+ concurrent-ruby (1.1.6)
15
21
  diff-lcs (1.3)
16
- jaro_winkler (1.5.4)
17
- method_source (0.9.2)
22
+ i18n (1.8.2)
23
+ concurrent-ruby (~> 1.0)
24
+ method_source (1.0.0)
25
+ minitest (5.14.1)
18
26
  parallel (1.19.1)
19
- parser (2.7.0.4)
27
+ parser (2.7.1.3)
20
28
  ast (~> 2.4.0)
21
- pry (0.12.2)
22
- coderay (~> 1.1.0)
23
- method_source (~> 0.9.0)
24
- pry-byebug (3.7.0)
29
+ pry (0.13.1)
30
+ coderay (~> 1.1)
31
+ method_source (~> 1.0)
32
+ pry-byebug (3.9.0)
25
33
  byebug (~> 11.0)
26
- pry (~> 0.10)
34
+ pry (~> 0.13.0)
27
35
  rack (2.2.2)
28
36
  rainbow (3.0.0)
29
37
  rake (13.0.1)
@@ -41,21 +49,27 @@ GEM
41
49
  diff-lcs (>= 1.2.0, < 2.0)
42
50
  rspec-support (~> 3.9.0)
43
51
  rspec-support (3.9.0)
44
- rubocop (0.80.1)
45
- jaro_winkler (~> 1.5.1)
52
+ rubocop (0.84.0)
46
53
  parallel (~> 1.10)
47
54
  parser (>= 2.7.0.1)
48
55
  rainbow (>= 2.2.2, < 4.0)
49
56
  rexml
57
+ rubocop-ast (>= 0.0.3)
50
58
  ruby-progressbar (~> 1.7)
51
- unicode-display_width (>= 1.4.0, < 1.7)
52
- rubocop-rails (2.4.2)
59
+ unicode-display_width (>= 1.4.0, < 2.0)
60
+ rubocop-ast (0.0.3)
61
+ parser (>= 2.7.0.1)
62
+ rubocop-rails (2.5.2)
63
+ activesupport
53
64
  rack (>= 1.1)
54
65
  rubocop (>= 0.72.0)
55
- rubocop-rspec (1.38.1)
66
+ rubocop-rspec (1.39.0)
56
67
  rubocop (>= 0.68.1)
57
68
  ruby-progressbar (1.10.1)
58
- unicode-display_width (1.6.1)
69
+ thread_safe (0.3.6)
70
+ tzinfo (1.2.7)
71
+ thread_safe (~> 0.1)
72
+ unicode-display_width (1.7.0)
59
73
 
60
74
  PLATFORMS
61
75
  ruby
@@ -67,4 +81,4 @@ DEPENDENCIES
67
81
  rspec (~> 3.7)
68
82
 
69
83
  BUNDLED WITH
70
- 1.16.3
84
+ 2.1.4
@@ -29,6 +29,9 @@ Layout/ParameterAlignment:
29
29
  EnforcedStyle: with_fixed_indentation
30
30
  IndentationWidth: 2
31
31
 
32
+ Layout/EmptyLinesAroundAttributeAccessor:
33
+ Enabled: true
34
+
32
35
  Layout/EndAlignment:
33
36
  EnforcedStyleAlignWith: variable
34
37
 
@@ -44,10 +47,22 @@ Layout/FirstHashElementIndentation:
44
47
  Layout/MultilineMethodCallIndentation:
45
48
  EnforcedStyle: indented
46
49
 
50
+ Layout/SpaceAroundMethodCallOperator:
51
+ Enabled: true
52
+
47
53
  Layout/SpaceInsideHashLiteralBraces:
48
54
  EnforcedStyle: no_space
49
55
  EnforcedStyleForEmptyBraces: no_space
50
56
 
57
+ Lint/DeprecatedOpenSSLConstant:
58
+ Enabled: true
59
+
60
+ Lint/RaiseException:
61
+ Enabled: true
62
+
63
+ Lint/StructNewOverride:
64
+ Enabled: true
65
+
51
66
  Naming/MemoizedInstanceVariableName:
52
67
  EnforcedStyleForLeadingUnderscores: required
53
68
 
@@ -60,6 +75,9 @@ Style/ClassAndModuleChildren:
60
75
  Style/EmptyMethod:
61
76
  EnforcedStyle: expanded
62
77
 
78
+ Style/ExponentialNotation:
79
+ Enabled: true
80
+
63
81
  Style/HashEachMethods:
64
82
  Enabled: true
65
83
 
@@ -75,5 +93,8 @@ Style/FrozenStringLiteralComment:
75
93
  Style/NestedInterpolation:
76
94
  Enabled: true
77
95
 
96
+ Style/SlicingWithRange:
97
+ Enabled: true
98
+
78
99
  Style/StringLiterals:
79
100
  EnforcedStyle: double_quotes
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
12
12
  spec.homepage = "https://github.com/datarockets/datarockets-style"
13
13
  spec.license = "MIT"
14
14
 
15
- spec.required_ruby_version = ">= 2.3.0"
15
+ spec.required_ruby_version = ">= 2.4.0"
16
16
 
17
17
  # Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
18
18
  # to allow pushing to a single host or delete this section to allow pushing to any host.
@@ -30,7 +30,7 @@ Gem::Specification.new do |spec|
30
30
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
31
31
  spec.require_paths = ["lib"]
32
32
 
33
- spec.add_dependency "rubocop", "~> 0.80"
34
- spec.add_dependency "rubocop-rails", "~> 2.4"
35
- spec.add_dependency "rubocop-rspec", "~> 1.38"
33
+ spec.add_dependency "rubocop", "~> 0.84"
34
+ spec.add_dependency "rubocop-rails", "~> 2.5.2"
35
+ spec.add_dependency "rubocop-rspec", "~> 1.39"
36
36
  end
@@ -13,9 +13,9 @@ module Datarockets
13
13
  class ReportSummary
14
14
  attr_reader :offense_list
15
15
 
16
- FileGroup = Struct.new(:file, :count) do
16
+ FileGroup = Struct.new(:file, :offenses_count) do
17
17
  def print(output)
18
- output.puts " - '#{file}' # #{count}"
18
+ output.puts " - '#{file}' # #{offenses_count}"
19
19
  end
20
20
  end
21
21
 
@@ -1,5 +1,5 @@
1
1
  module Datarockets
2
2
  module Style
3
- VERSION = "0.8.1".freeze
3
+ VERSION = "0.9.0".freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: datarockets-style
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roman Dubrovsky
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-03-02 00:00:00.000000000 Z
11
+ date: 2020-05-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -16,42 +16,42 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: '0.80'
19
+ version: '0.84'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: '0.80'
26
+ version: '0.84'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rubocop-rails
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '2.4'
33
+ version: 2.5.2
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '2.4'
40
+ version: 2.5.2
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rubocop-rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '1.38'
47
+ version: '1.39'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - "~>"
53
53
  - !ruby/object:Gem::Version
54
- version: '1.38'
54
+ version: '1.39'
55
55
  description:
56
56
  email:
57
57
  - r.dubrovsky@datarockets.com
@@ -106,7 +106,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
106
106
  requirements:
107
107
  - - ">="
108
108
  - !ruby/object:Gem::Version
109
- version: 2.3.0
109
+ version: 2.4.0
110
110
  required_rubygems_version: !ruby/object:Gem::Requirement
111
111
  requirements:
112
112
  - - ">="