ws-style 6.3.0 → 6.5.3

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
2
  SHA256:
3
- metadata.gz: 574334100ed40e46d82434550ca90e558cd9eb2eed2ba51f860496ba5ae713e2
4
- data.tar.gz: 87558c16e965e50133abd8adaa0938ca4eff3d43f08b1a0357c2d6da743b090c
3
+ metadata.gz: 72bb4a8ab1332b052946d1e15635b456aa4bfb18ae3a7b5f26185f671583ee93
4
+ data.tar.gz: f3dbd549a590e562bca6a4162e057dd727f9091ff739650672d239633cc88a00
5
5
  SHA512:
6
- metadata.gz: fa1ed665e440cd2dbefcaafef11eb4f4a4d87e778f4ae5e491c122f8d679f8bea0afc23c9865e0c89634c51101caa1138c027b63f792b8ae11f0ded3a0de5e5b
7
- data.tar.gz: d63d70d6420e098df37293502ccbc60b1e3e23dc646eb5265c18c758576d01ea1e7e6abc90ffa3cf4ed2a1da6c6b76968b39cb08c4b6d684885b016fd28328ab
6
+ metadata.gz: 663cdb8f9cc2facd4796e1234884e32294135e6c9a2a71896eed95e45addae86929b8c486ac5f035bdeccc34737b68780cfcbcfb746921f729b37d20c89a5d30
7
+ data.tar.gz: fc5e3061bb47642890a2e11047f4a72a291f90256a19229bcf2fa5a0260c162de568fd319c84edf7d0ca0c61f5d563f86064827bdde50b9644d7c0757e9bf5b2
@@ -73,12 +73,15 @@ workflows:
73
73
  - checkout_and_bundle:
74
74
  context: wealthsimple
75
75
  - rspec:
76
+ context: wealthsimple
76
77
  requires:
77
78
  - checkout_and_bundle
78
79
  - lint_check:
80
+ context: wealthsimple
79
81
  requires:
80
82
  - checkout_and_bundle
81
83
  - vulnerability_check:
84
+ context: wealthsimple
82
85
  requires:
83
86
  - checkout_and_bundle
84
87
  - release:
@@ -87,9 +90,9 @@ workflows:
87
90
  branches:
88
91
  only: master
89
92
  requires:
90
- - rspec
91
- - lint_check
92
- - vulnerability_check
93
+ - rspec
94
+ - lint_check
95
+ - vulnerability_check
93
96
 
94
97
  security-audit:
95
98
  triggers:
@@ -103,5 +106,6 @@ workflows:
103
106
  - checkout_and_bundle:
104
107
  context: wealthsimple
105
108
  - vulnerability_check:
109
+ context: wealthsimple
106
110
  requires:
107
111
  - checkout_and_bundle
@@ -1 +1 @@
1
- 2.5.7
1
+ 2.5.8
@@ -4,6 +4,24 @@ All notable changes to this project will be documented in this file.
4
4
  The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
5
5
  and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
6
6
 
7
+ ## 6.5.3 - 2020-12-17
8
+ - Disable extension suggestions
9
+
10
+ ## 6.5.2 - 2020-12-17
11
+ - Add backstage catalog file + sonarqube project settings
12
+
13
+ ## 6.5.1 - 2020-11-30
14
+ - Disable EmptyLineBetweenClassDefs added in rubocop 1.4
15
+
16
+ ## 6.5.0 - 2020-10-26
17
+ - Upgrade RuboCop and RuboCop RSpec
18
+
19
+ ## 6.4.0 - 2020-10-07
20
+ - Upgrade RuboCop
21
+
22
+ ## 6.3.0 - 2020-10-06
23
+ - Upgrade RuboCop and enable cops that were voted in
24
+
7
25
  ## 6.2.0 - 2020-09-04
8
26
  - Disable Cops enabled in 6.1.0 until we can confirm we want them
9
27
 
data/Rakefile CHANGED
@@ -11,7 +11,8 @@ task default: :spec
11
11
 
12
12
  desc 'Print out comments that can be used for a GitHub cop election'
13
13
  task :election do # rubocop:disable Rails/RakeEnvironment
14
- RuboCop::ConfigLoader.default_configuration.pending_cops.each do |pending_cop|
14
+ configuration_path = File.expand_path('default.yml', File.dirname(__FILE__))
15
+ RuboCop::ConfigLoader.load_file(configuration_path).pending_cops.each do |pending_cop|
15
16
  base_urls = {
16
17
  'layout' => 'https://docs.rubocop.org/rubocop/cops_layout.html#layout',
17
18
  'lint' => 'https://docs.rubocop.org/rubocop/cops_lint.html#lint',
@@ -0,0 +1,12 @@
1
+ ---
2
+ apiVersion: backstage.io/v1alpha1
3
+ kind: Component
4
+ metadata:
5
+ name: ws-style
6
+ description: Ruby style for services & libraries (using Rubocop)
7
+ tags:
8
+ - ruby
9
+ - open-source
10
+ spec:
11
+ type: library
12
+ lifecycle: production
data/core.yml CHANGED
@@ -25,6 +25,7 @@ AllCops:
25
25
  - "public/**/*"
26
26
  - "tmp/**/*"
27
27
  - "vendor/**/*"
28
+ SuggestExtensions: false
28
29
 
29
30
  Layout/HashAlignment:
30
31
  EnforcedLastArgumentHashStyle: ignore_implicit
@@ -48,6 +49,9 @@ Layout/CaseIndentation:
48
49
  Layout/ElseAlignment:
49
50
  Enabled: false
50
51
 
52
+ Layout/EmptyLineBetweenDefs:
53
+ AllowAdjacentOneLineDefs: true
54
+
51
55
  Layout/EndAlignment:
52
56
  Enabled: false
53
57
 
@@ -81,7 +85,7 @@ Metrics/CyclomaticComplexity:
81
85
  Max: 7
82
86
 
83
87
  Metrics/MethodLength:
84
- ExcludedMethods: ["extended"]
88
+ IgnoredMethods: ["extended"]
85
89
  Max: 15
86
90
 
87
91
  Metrics/ModuleLength:
@@ -1,5 +1,5 @@
1
1
  module Ws
2
2
  module Style
3
- VERSION = '6.3.0'.freeze
3
+ VERSION = '6.5.3'.freeze
4
4
  end
5
5
  end
@@ -0,0 +1,4 @@
1
+ sonar.projectKey=ws-style
2
+ sonar.ruby.coverage.reportPaths=coverage/.resultset.json
3
+ sonar.sources=lib
4
+ sonar.tests=spec
@@ -22,15 +22,15 @@ Gem::Specification.new do |s|
22
22
  s.require_paths = ['lib']
23
23
  s.required_ruby_version = '>= 2.5.7'
24
24
 
25
- s.add_dependency 'rubocop', '>= 0.90.0'
25
+ s.add_dependency 'rubocop', '>= 1.0.0'
26
26
  s.add_dependency 'rubocop-performance', '>= 1.8.1'
27
27
  s.add_dependency 'rubocop-rails', '>= 2.8.1'
28
- s.add_dependency 'rubocop-rspec', '>= 1.43.2'
28
+ s.add_dependency 'rubocop-rspec', '>= 1.44.1'
29
29
  s.add_dependency 'rubocop-vendor', '~> 0'
30
30
 
31
31
  s.add_development_dependency 'bundler'
32
32
  s.add_development_dependency 'bundler-audit'
33
33
  s.add_development_dependency 'git'
34
34
  s.add_development_dependency 'rake'
35
- s.add_development_dependency 'rspec', '~> 3.0'
35
+ s.add_development_dependency 'rspec', '~> 3.9.0'
36
36
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ws-style
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.3.0
4
+ version: 6.5.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Graham
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-10-07 00:00:00.000000000 Z
11
+ date: 2021-01-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: 0.90.0
19
+ version: 1.0.0
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.90.0
26
+ version: 1.0.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rubocop-performance
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - ">="
60
60
  - !ruby/object:Gem::Version
61
- version: 1.43.2
61
+ version: 1.44.1
62
62
  type: :runtime
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
- version: 1.43.2
68
+ version: 1.44.1
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rubocop-vendor
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -142,14 +142,14 @@ dependencies:
142
142
  requirements:
143
143
  - - "~>"
144
144
  - !ruby/object:Gem::Version
145
- version: '3.0'
145
+ version: 3.9.0
146
146
  type: :development
147
147
  prerelease: false
148
148
  version_requirements: !ruby/object:Gem::Requirement
149
149
  requirements:
150
150
  - - "~>"
151
151
  - !ruby/object:Gem::Version
152
- version: '3.0'
152
+ version: 3.9.0
153
153
  description: Shared config to enforce Ruby style consistently across Wealthsimple
154
154
  services.
155
155
  email:
@@ -172,11 +172,13 @@ files:
172
172
  - Rakefile
173
173
  - bin/console
174
174
  - bin/setup
175
+ - catalog-info.yaml
175
176
  - core.yml
176
177
  - default.yml
177
178
  - lib/ws/style.rb
178
179
  - lib/ws/style/version.rb
179
180
  - rails.yml
181
+ - sonar-project.properties
180
182
  - ws-style.gemspec
181
183
  homepage: https://github.com/wealthsimple/ws-style
182
184
  licenses: []