house_style 1.5.1 → 1.6.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 7f3e03115cf21942533eb2b83671c1a6fee4fc32
4
- data.tar.gz: 515e38a2d767ec64164fb3f71590be5fecfcd664
2
+ SHA256:
3
+ metadata.gz: 2b3c9f9f6267d9d7370a38d34f97b6277aa7a843209597965fc7ed71994f18a9
4
+ data.tar.gz: 2eb0151b69c20a8fc48fe0d1ed53cd46c4706a6a592a6afd98486cf3016fd0ef
5
5
  SHA512:
6
- metadata.gz: ff7d4e0e7f311682be3469f3f9c49e49eb9442b39037195641a5ef69a6b53b2b4199ca7348b3134caacd1c676c3bba33211c56af02cacb718cfa1a877a6df38d
7
- data.tar.gz: eedaf71742b220a3f2b70b7fef336e6a4ed1b10371a2203e728502903044285659fccfd06a6b63f2d71a6ed4b4948161339d94922be83f15733a50775916dae7
6
+ metadata.gz: 01ac391150f614674bcdf5036efce447e118b14e1845874a1acdd6c7ff3c15b6470078b67b73b8bfa6fd08a86fd3238b1be77d2951e9162284c8dfb03f825952
7
+ data.tar.gz: 31031e95a31e4d42029194e01265bf10d8ee2673b819cb5319c2323759fdb4bee7a95c8b479a0a5880d6c2bc891c86d541a96396418dd57820d35ad4484e3d69
@@ -1,5 +1,16 @@
1
1
  # CHANGELOG
2
2
 
3
+ ## 1.6.0
4
+ - [FIX] Require Rubocop higher than 0.49 to fix security issue: https://nvd.nist.gov/vuln/detail/CVE-2017-8418
5
+ - [FIX] Rename `IndentHash` to `IndentFirstHashElement`, and require Rubocop 0.68 or higher because of this change.
6
+ - Rails cops are now split into a different gem `rubocop-rails` that we include by default.
7
+ - Disable new Rails cops InverseOf & HasManyOrHasOneDependent.
8
+ - Exclude spec files for Lint/AmbiguousBlockAssociation as recommended in https://github.com/rubocop-hq/rubocop/issues/4222#issuecomment-290655562
9
+ - Exclude specific rake configuration file for RSpec/ContextWording.
10
+ - Specify `indented` as the default value for `IndentFirstArrayElement`.
11
+ - Enforce `single_quotes` for `StringLiterals` by default.
12
+
13
+
3
14
  ## 1.5.1
4
15
  - [FIX] Remove `Include` values. Since 0.57 `Include` overwrites the hardcoded defaults. All values here are already included in the defaults, so no point in defining them here anymore.
5
16
  - [FIX] `SpaceInsideHashLiteralBraces` now belongs to `Layout` instead of `Style`
@@ -5,7 +5,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = 'house_style'
8
- spec.version = '1.5.1'
8
+ spec.version = '1.6.0'
9
9
  spec.authors = ['Altmetric', 'Scott Matthewman']
10
10
  spec.email = ['engineering@altmetric.com', 'scott.matthewman@gmail.com']
11
11
 
@@ -24,7 +24,8 @@ will be taken into account by rubocop also.
24
24
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
25
25
  spec.require_paths = ['lib']
26
26
 
27
- spec.add_dependency 'rubocop', '~> 0.63', '< 0.64'
27
+ spec.add_dependency 'rubocop', '>= 0.68', '< 0.75'
28
+ spec.add_dependency 'rubocop-rails', '~> 2.3'
28
29
  spec.add_dependency 'rubocop-rspec', '~> 1.15'
29
30
 
30
31
  spec.add_development_dependency 'bundler', '~> 1.10'
@@ -7,3 +7,9 @@ AllCops:
7
7
  - lib/tasks/cucumber.rake
8
8
  Rails:
9
9
  Enabled: true
10
+ Rails/InverseOf:
11
+ Enabled: false
12
+ Rails/HasManyOrHasOneDependent:
13
+ Enabled: false
14
+
15
+ require: rubocop-rails
@@ -24,3 +24,9 @@ Style/SymbolProc:
24
24
  - spec/factories/**/*.rb
25
25
  Style/WordArray:
26
26
  Enabled: false
27
+ Lint/AmbiguousBlockAssociation:
28
+ Exclude:
29
+ - spec/**/*
30
+ RSpec/ContextWording:
31
+ Exclude:
32
+ - spec/support/shared_contexts/rake.rb
@@ -39,12 +39,16 @@ Style/GuardClause:
39
39
  MinBodyLength: 3
40
40
  Style/HashSyntax:
41
41
  EnforcedStyle: ruby19_no_mixed_keys
42
- Layout/IndentHash:
42
+ Layout/IndentFirstArrayElement:
43
+ EnforcedStyle: consistent
44
+ Layout/IndentFirstHashElement:
43
45
  EnforcedStyle: consistent
44
46
  Style/MethodCalledOnDoEndBlock:
45
47
  Enabled: true
46
48
  Layout/MultilineOperationIndentation:
47
49
  Enabled: false
50
+ Layout/MultilineMethodCallIndentation:
51
+ EnforcedStyle: indented
48
52
  Style/NonNilCheck:
49
53
  IncludeSemanticChanges: true
50
54
  Style/NumericLiterals:
@@ -52,7 +56,8 @@ Style/NumericLiterals:
52
56
  Style/SignalException:
53
57
  EnforcedStyle: semantic
54
58
  Style/StringLiterals:
55
- Enabled: false
59
+ EnforcedStyle: 'single_quotes'
60
+ Enabled: true
56
61
  Style/StringMethods:
57
62
  Enabled: true
58
63
  Style/AccessModifierDeclarations:
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: house_style
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.5.1
4
+ version: 1.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Altmetric
@@ -9,28 +9,42 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2019-01-29 00:00:00.000000000 Z
12
+ date: 2019-09-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rubocop
16
16
  requirement: !ruby/object:Gem::Requirement
17
17
  requirements:
18
- - - "~>"
18
+ - - ">="
19
19
  - !ruby/object:Gem::Version
20
- version: '0.63'
20
+ version: '0.68'
21
21
  - - "<"
22
22
  - !ruby/object:Gem::Version
23
- version: '0.64'
23
+ version: '0.75'
24
24
  type: :runtime
25
25
  prerelease: false
26
26
  version_requirements: !ruby/object:Gem::Requirement
27
27
  requirements:
28
- - - "~>"
28
+ - - ">="
29
29
  - !ruby/object:Gem::Version
30
- version: '0.63'
30
+ version: '0.68'
31
31
  - - "<"
32
32
  - !ruby/object:Gem::Version
33
- version: '0.64'
33
+ version: '0.75'
34
+ - !ruby/object:Gem::Dependency
35
+ name: rubocop-rails
36
+ requirement: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '2.3'
41
+ type: :runtime
42
+ prerelease: false
43
+ version_requirements: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '2.3'
34
48
  - !ruby/object:Gem::Dependency
35
49
  name: rubocop-rspec
36
50
  requirement: !ruby/object:Gem::Requirement
@@ -130,8 +144,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
130
144
  - !ruby/object:Gem::Version
131
145
  version: '0'
132
146
  requirements: []
133
- rubyforge_project:
134
- rubygems_version: 2.6.13
147
+ rubygems_version: 3.0.3
135
148
  signing_key:
136
149
  specification_version: 4
137
150
  summary: A centralised store of house style rules