ws-style 6.4.0 → 6.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.circleci/config.yml +7 -3
- data/.ruby-version +1 -1
- data/CHANGELOG.md +15 -0
- data/Rakefile +2 -1
- data/catalog-info.yaml +12 -0
- data/core.yml +5 -1
- data/lib/ws/style.rb +1 -0
- data/lib/ws/style/inflector.rb +17 -0
- data/lib/ws/style/version.rb +1 -1
- data/sonar-project.properties +4 -0
- data/ws-style.gemspec +2 -2
- metadata +9 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f2fe0de6e603b530aa15208a2a9c22653a1b178fbc1005c8ab59df1f49f0a5b6
|
4
|
+
data.tar.gz: 94c59ec39f55216baef7bf2d1315b611b94cc05b62887b2de639e357f768f213
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
91
|
-
|
92
|
-
|
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.
|
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
|
-
|
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
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
|
-
|
88
|
+
IgnoredMethods: ["extended"]
|
85
89
|
Max: 15
|
86
90
|
|
87
91
|
Metrics/ModuleLength:
|
data/lib/ws/style.rb
CHANGED
@@ -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
|
data/lib/ws/style/version.rb
CHANGED
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.
|
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.
|
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
|
+
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:
|
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.
|
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.
|
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.
|
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.
|
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: []
|