rubocop-inflector 0.1.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/.travis.yml +1 -0
- data/CHANGELOG.md +17 -0
- data/README.md +30 -0
- data/lib/rubocop/inflector/version.rb +1 -1
- data/rubocop-inflector.gemspec +1 -1
- metadata +5 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 6037b6c27ad7ef15d53605680dad3d953eba3e50462e81afcc92215b00eea636
|
4
|
+
data.tar.gz: 5e4144e35c5282a98c282554c94eaa570e3d1aa49d8c927e99fe46d5afe75feb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6abbf5a7e51fac051d59717a7843539a63afb73628bee215bf54a660170e6a4367d876c43915561a0bee2af17f0a786f0599107ffd34f460ad37b058bd845357
|
7
|
+
data.tar.gz: af7d523bbcaad127b16d4ffbcade9a7af3aa10d09c7bfbb2d967f914e04c4f1973fa9a24d8a7bea2af2836ed06c308e9cab15e7fc2b63cfb12a2c335c9a1b247
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
@@ -8,6 +8,23 @@
|
|
8
8
|
|
9
9
|
### Changes
|
10
10
|
|
11
|
+
## 0.2.1 (2022-04-12)
|
12
|
+
|
13
|
+
* Increment minor version respecting semantic versioning. No changes are included except version number. ([Takumasa Ochi](@aeroastro))
|
14
|
+
|
15
|
+
## 0.1.2 (2022-04-12)
|
16
|
+
|
17
|
+
### Changes
|
18
|
+
|
19
|
+
* Widen required_ruby_version to be compatible with Ruby 3 ([Dylan Rainwater](@dylanrainwater), [Joe Stein](@jas14))
|
20
|
+
|
21
|
+
## 0.1.1 (2018-02-12)
|
22
|
+
|
23
|
+
### Changes
|
24
|
+
|
25
|
+
* Support Ruby 2.3 ([@aeroastro][])
|
26
|
+
* Improve document ([@aeroastro][])
|
27
|
+
|
11
28
|
## 0.1.0 (2018-02-09)
|
12
29
|
|
13
30
|
### New features
|
data/README.md
CHANGED
@@ -7,6 +7,30 @@ RuboCop extension to integrate ActiveSupport::Inflector and your custom rule.
|
|
7
7
|
|
8
8
|
This saves you from writing redundant `CustomTransform` and keep the concise and consistent rule over your project.
|
9
9
|
|
10
|
+
## Before Rubocop::Inflector
|
11
|
+
|
12
|
+
For example, `CustomTransform` config is exact-match, which results in redundant definitions.
|
13
|
+
|
14
|
+
```yaml
|
15
|
+
RSpec/FilePath:
|
16
|
+
CustomTransform:
|
17
|
+
PvP: pvp
|
18
|
+
SyncPvP: sync_pvp
|
19
|
+
AsyncPvP: async_pvp
|
20
|
+
PvPOverPvP: pvp_over_pvp
|
21
|
+
PvPController: pvp_controller
|
22
|
+
```
|
23
|
+
|
24
|
+
## After Rubocop::Inflector
|
25
|
+
|
26
|
+
All you have to do is define 1 concise rule. You can also share this rule with your application itself. (e.g. Rails)
|
27
|
+
|
28
|
+
```ruby
|
29
|
+
ActiveSupport::Inflector.inflections(:en) do |inflect|
|
30
|
+
inflect.acronym 'PvP'
|
31
|
+
end
|
32
|
+
```
|
33
|
+
|
10
34
|
## Installation
|
11
35
|
|
12
36
|
Just install the `rubocop-inflector` gem
|
@@ -46,6 +70,12 @@ require:
|
|
46
70
|
|
47
71
|
Now you can run `rubocop` and it will automatically integrate ActiveSupport Integration
|
48
72
|
|
73
|
+
## Supported Cops and Logics
|
74
|
+
|
75
|
+
Following cops and logics are now supported.
|
76
|
+
|
77
|
+
* `RSpec/FilePath`
|
78
|
+
|
49
79
|
## Development
|
50
80
|
|
51
81
|
After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
data/rubocop-inflector.gemspec
CHANGED
@@ -33,7 +33,7 @@ Gem::Specification.new do |spec|
|
|
33
33
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
34
34
|
spec.require_paths = ['lib']
|
35
35
|
|
36
|
-
spec.required_ruby_version = '
|
36
|
+
spec.required_ruby_version = '>= 2.3'
|
37
37
|
|
38
38
|
spec.add_dependency 'activesupport'
|
39
39
|
spec.add_dependency 'rubocop'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubocop-inflector
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Takumasa Ochi
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-04-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -146,17 +146,16 @@ require_paths:
|
|
146
146
|
- lib
|
147
147
|
required_ruby_version: !ruby/object:Gem::Requirement
|
148
148
|
requirements:
|
149
|
-
- - "
|
149
|
+
- - ">="
|
150
150
|
- !ruby/object:Gem::Version
|
151
|
-
version: '2.
|
151
|
+
version: '2.3'
|
152
152
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
153
153
|
requirements:
|
154
154
|
- - ">="
|
155
155
|
- !ruby/object:Gem::Version
|
156
156
|
version: '0'
|
157
157
|
requirements: []
|
158
|
-
|
159
|
-
rubygems_version: 2.6.13
|
158
|
+
rubygems_version: 3.0.3
|
160
159
|
signing_key:
|
161
160
|
specification_version: 4
|
162
161
|
summary: RuboCop extension to integrate ActiveSupport::Inflector
|