ws-style 6.5.3 → 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 +4 -4
- data/CHANGELOG.md +3 -0
- data/lib/ws/style.rb +1 -0
- data/lib/ws/style/inflector.rb +17 -0
- data/lib/ws/style/version.rb +1 -1
- metadata +3 -2
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/CHANGELOG.md
CHANGED
@@ -4,6 +4,9 @@ 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
|
+
|
7
10
|
## 6.5.3 - 2020-12-17
|
8
11
|
- Disable extension suggestions
|
9
12
|
|
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
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: 2021-
|
11
|
+
date: 2021-02-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -176,6 +176,7 @@ files:
|
|
176
176
|
- core.yml
|
177
177
|
- default.yml
|
178
178
|
- lib/ws/style.rb
|
179
|
+
- lib/ws/style/inflector.rb
|
179
180
|
- lib/ws/style/version.rb
|
180
181
|
- rails.yml
|
181
182
|
- sonar-project.properties
|