ws-style 6.4.0 → 6.6.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: 7d7821f0b636b9ba9c1af12cf715600fc68b09798d934e47b808b6bbd4dc5df1
4
- data.tar.gz: 307d84cbffc80c17071e82aeaa2bf0e5e73492a0379a5b8f930cc6a14d82fc16
3
+ metadata.gz: f2fe0de6e603b530aa15208a2a9c22653a1b178fbc1005c8ab59df1f49f0a5b6
4
+ data.tar.gz: 94c59ec39f55216baef7bf2d1315b611b94cc05b62887b2de639e357f768f213
5
5
  SHA512:
6
- metadata.gz: ebf03f9b06e16f4f26770db4bb06207ea78ff8c5318cf20b4104c9a33af492d362c014c63543ba4ebf73a5beb2cbe1cf3c92f7ffebfa8d2cfde9ce0584044499
7
- data.tar.gz: 22d953cb0c305e0449fc6f13f3c2b3db6407f0e97d5965b5d304d2612d68bf981dc0700509852e83d12498bf85eb2a34e1899ea31352ae7f1ab39f7a327c9966
6
+ metadata.gz: b61f5f3f5669b8fcab03b3ee25d39fe607fddc0b65a30524f9bdf6bd5140d9a5b43c758b9c24bb4b71a920bd6f857708a3599570f8f39b7b932e138da642d8a5
7
+ data.tar.gz: a55c28a6ceb7ccf750cada70ea482cb351cd78617a6c378be8a16ba76a636c21f241877d2bbc43bbc6a8dfbb418153c66b4b8acc4e5b7b4c5d3102c4c11c655b
data/.circleci/config.yml CHANGED
@@ -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
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.5.7
1
+ 2.5.8
data/CHANGELOG.md CHANGED
@@ -4,6 +4,21 @@ 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.6.0 - 2021-01-16
8
+ - Rubocop FilePath should respect ActiveSupport::Inflector config if included
9
+
10
+ ## 6.5.3 - 2020-12-17
11
+ - Disable extension suggestions
12
+
13
+ ## 6.5.2 - 2020-12-17
14
+ - Add backstage catalog file + sonarqube project settings
15
+
16
+ ## 6.5.1 - 2020-11-30
17
+ - Disable EmptyLineBetweenClassDefs added in rubocop 1.4
18
+
19
+ ## 6.5.0 - 2020-10-26
20
+ - Upgrade RuboCop and RuboCop RSpec
21
+
7
22
  ## 6.4.0 - 2020-10-07
8
23
  - Upgrade RuboCop
9
24
 
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',
data/catalog-info.yaml ADDED
@@ -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:
data/lib/ws/style.rb CHANGED
@@ -1,4 +1,5 @@
1
1
  require "ws/style/version"
2
+ require "ws/style/inflector"
2
3
 
3
4
  module Ws
4
5
  module Style
@@ -0,0 +1,17 @@
1
+ require 'rubocop-rspec'
2
+
3
+ module Ws
4
+ module Style
5
+ module Inflector
6
+ def camel_to_snake_case(string)
7
+ if defined?(ActiveSupport::Inflector)
8
+ ActiveSupport::Inflector.underscore(string)
9
+ else
10
+ super(string)
11
+ end
12
+ end
13
+ end
14
+ end
15
+ end
16
+
17
+ ::RuboCop::Cop::RSpec::FilePath.prepend Ws::Style::Inflector
@@ -1,5 +1,5 @@
1
1
  module Ws
2
2
  module Style
3
- VERSION = '6.4.0'.freeze
3
+ VERSION = '6.6.0'.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
data/ws-style.gemspec CHANGED
@@ -22,10 +22,10 @@ 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.92.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'
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.4.0
4
+ version: 6.6.0
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-02-02 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.92.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.92.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
@@ -172,11 +172,14 @@ 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
179
+ - lib/ws/style/inflector.rb
178
180
  - lib/ws/style/version.rb
179
181
  - rails.yml
182
+ - sonar-project.properties
180
183
  - ws-style.gemspec
181
184
  homepage: https://github.com/wealthsimple/ws-style
182
185
  licenses: []