rubocop-inflector 0.1.0 → 0.2.1

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
- SHA1:
3
- metadata.gz: ea0a8ba6bbf70b294029a07467a5a345b91c10c9
4
- data.tar.gz: 3ce24d1c20fdbb6a7170400bb291a05bc64a989a
2
+ SHA256:
3
+ metadata.gz: 6037b6c27ad7ef15d53605680dad3d953eba3e50462e81afcc92215b00eea636
4
+ data.tar.gz: 5e4144e35c5282a98c282554c94eaa570e3d1aa49d8c927e99fe46d5afe75feb
5
5
  SHA512:
6
- metadata.gz: 11dcb94152970f6a4985136c873ed8d224e5838668d49238508fbbf0fdde0378bffa15fbdf581ce78227622a0dba3bdb8241c9faacbae6567f7282edd3fa4af3
7
- data.tar.gz: d2fc1fa9f44f04270508734175387e5819b71db093e73e09de47ffabcb5e9bb7f439e6598a3258334222ae90e00054be80943a6411414d31a4d6612f042c64b5
6
+ metadata.gz: 6abbf5a7e51fac051d59717a7843539a63afb73628bee215bf54a660170e6a4367d876c43915561a0bee2af17f0a786f0599107ffd34f460ad37b058bd845357
7
+ data.tar.gz: af7d523bbcaad127b16d4ffbcade9a7af3aa10d09c7bfbb2d967f914e04c4f1973fa9a24d8a7bea2af2836ed06c308e9cab15e7fc2b63cfb12a2c335c9a1b247
data/.travis.yml CHANGED
@@ -1,6 +1,7 @@
1
1
  sudo: false
2
2
  language: ruby
3
3
  rvm:
4
+ - 2.3.8
4
5
  - 2.4.5
5
6
  - 2.5.3
6
7
  - 2.6.1
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.
@@ -2,6 +2,6 @@
2
2
 
3
3
  module RuboCop
4
4
  module Inflector
5
- VERSION = '0.1.0'
5
+ VERSION = '0.2.1'
6
6
  end
7
7
  end
@@ -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 = '~> 2.4'
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.0
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: 2019-02-08 00:00:00.000000000 Z
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.4'
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
- rubyforge_project:
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