ws-style 6.5.3 → 6.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
2
  SHA256:
3
- metadata.gz: 72bb4a8ab1332b052946d1e15635b456aa4bfb18ae3a7b5f26185f671583ee93
4
- data.tar.gz: f3dbd549a590e562bca6a4162e057dd727f9091ff739650672d239633cc88a00
3
+ metadata.gz: f2fe0de6e603b530aa15208a2a9c22653a1b178fbc1005c8ab59df1f49f0a5b6
4
+ data.tar.gz: 94c59ec39f55216baef7bf2d1315b611b94cc05b62887b2de639e357f768f213
5
5
  SHA512:
6
- metadata.gz: 663cdb8f9cc2facd4796e1234884e32294135e6c9a2a71896eed95e45addae86929b8c486ac5f035bdeccc34737b68780cfcbcfb746921f729b37d20c89a5d30
7
- data.tar.gz: fc5e3061bb47642890a2e11047f4a72a291f90256a19229bcf2fa5a0260c162de568fd319c84edf7d0ca0c61f5d563f86064827bdde50b9644d7c0757e9bf5b2
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
@@ -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.5.3'.freeze
3
+ VERSION = '6.6.0'.freeze
4
4
  end
5
5
  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.5.3
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-01-26 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
@@ -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