leftovers 0.3.0 → 0.4.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (144) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +23 -0
  3. data/README.md +28 -45
  4. data/docs/Configuration.md +598 -0
  5. data/exe/leftovers +1 -1
  6. data/leftovers.gemspec +9 -6
  7. data/lib/config/attr_encrypted.yml +3 -4
  8. data/lib/config/audited.yml +9 -4
  9. data/lib/config/datagrid.yml +1 -1
  10. data/lib/config/flipper.yml +1 -3
  11. data/lib/config/graphql.yml +15 -13
  12. data/lib/config/okcomputer.yml +1 -3
  13. data/lib/config/parser.yml +89 -91
  14. data/lib/config/rails.yml +125 -107
  15. data/lib/config/redcarpet.yml +35 -38
  16. data/lib/config/rollbar.yml +1 -3
  17. data/lib/config/rspec.yml +18 -10
  18. data/lib/config/ruby.yml +40 -50
  19. data/lib/config/selenium-webdriver.yml +19 -21
  20. data/lib/config/sidekiq.yml +4 -8
  21. data/lib/config/will_paginate.yml +12 -14
  22. data/lib/leftovers.rb +38 -26
  23. data/lib/leftovers/ast.rb +8 -0
  24. data/lib/leftovers/ast/builder.rb +4 -4
  25. data/lib/leftovers/ast/node.rb +50 -77
  26. data/lib/leftovers/backports.rb +27 -23
  27. data/lib/leftovers/cli.rb +0 -3
  28. data/lib/leftovers/collector.rb +4 -8
  29. data/lib/leftovers/config.rb +19 -25
  30. data/lib/leftovers/config_validator.rb +60 -0
  31. data/lib/leftovers/config_validator/error_processor.rb +196 -0
  32. data/lib/leftovers/config_validator/schema_hash.rb +495 -0
  33. data/lib/leftovers/definition.rb +11 -36
  34. data/lib/leftovers/definition_set.rb +7 -17
  35. data/lib/leftovers/dynamic_processors.rb +11 -0
  36. data/lib/leftovers/dynamic_processors/call.rb +25 -0
  37. data/lib/leftovers/dynamic_processors/call_definition.rb +31 -0
  38. data/lib/leftovers/dynamic_processors/definition.rb +26 -0
  39. data/lib/leftovers/dynamic_processors/each.rb +19 -0
  40. data/lib/leftovers/dynamic_processors/null.rb +9 -0
  41. data/lib/leftovers/erb.rb +2 -2
  42. data/lib/leftovers/file.rb +3 -5
  43. data/lib/leftovers/file_collector.rb +65 -49
  44. data/lib/leftovers/file_list.rb +0 -1
  45. data/lib/leftovers/haml.rb +1 -1
  46. data/lib/leftovers/matcher_builders.rb +24 -0
  47. data/lib/leftovers/matcher_builders/and.rb +19 -0
  48. data/lib/leftovers/matcher_builders/and_not.rb +14 -0
  49. data/lib/leftovers/matcher_builders/argument_node_value.rb +21 -0
  50. data/lib/leftovers/matcher_builders/name.rb +29 -0
  51. data/lib/leftovers/matcher_builders/node.rb +40 -0
  52. data/lib/leftovers/matcher_builders/node_has_argument.rb +71 -0
  53. data/lib/leftovers/matcher_builders/node_has_keyword_argument.rb +22 -0
  54. data/lib/leftovers/matcher_builders/node_has_positional_argument.rb +24 -0
  55. data/lib/leftovers/matcher_builders/node_name.rb +15 -0
  56. data/lib/leftovers/matcher_builders/node_pair_name.rb +18 -0
  57. data/lib/leftovers/matcher_builders/node_pair_value.rb +16 -0
  58. data/lib/leftovers/matcher_builders/node_path.rb +14 -0
  59. data/lib/leftovers/matcher_builders/node_type.rb +28 -0
  60. data/lib/leftovers/matcher_builders/or.rb +73 -0
  61. data/lib/leftovers/matcher_builders/path.rb +15 -0
  62. data/lib/leftovers/matcher_builders/string.rb +11 -0
  63. data/lib/leftovers/matcher_builders/string_pattern.rb +19 -0
  64. data/lib/leftovers/matcher_builders/unless.rb +13 -0
  65. data/lib/leftovers/matchers.rb +26 -0
  66. data/lib/leftovers/matchers/all.rb +25 -0
  67. data/lib/leftovers/matchers/and.rb +24 -0
  68. data/lib/leftovers/matchers/any.rb +27 -0
  69. data/lib/leftovers/matchers/node_has_any_keyword_argument.rb +28 -0
  70. data/lib/leftovers/matchers/node_has_any_positional_argument_with_value.rb +25 -0
  71. data/lib/leftovers/matchers/node_has_positional_argument.rb +23 -0
  72. data/lib/leftovers/matchers/node_has_positional_argument_with_value.rb +25 -0
  73. data/lib/leftovers/matchers/node_name.rb +23 -0
  74. data/lib/leftovers/matchers/node_pair_value.rb +23 -0
  75. data/lib/leftovers/matchers/node_path.rb +23 -0
  76. data/lib/leftovers/matchers/node_scalar_value.rb +25 -0
  77. data/lib/leftovers/matchers/node_type.rb +23 -0
  78. data/lib/leftovers/matchers/not.rb +23 -0
  79. data/lib/leftovers/matchers/or.rb +26 -0
  80. data/lib/leftovers/merged_config.rb +13 -8
  81. data/lib/leftovers/parser.rb +1 -4
  82. data/lib/leftovers/processor_builders.rb +22 -0
  83. data/lib/leftovers/processor_builders/action.rb +63 -0
  84. data/lib/leftovers/processor_builders/add_prefix.rb +20 -0
  85. data/lib/leftovers/processor_builders/add_suffix.rb +20 -0
  86. data/lib/leftovers/processor_builders/argument.rb +25 -0
  87. data/lib/leftovers/processor_builders/dynamic.rb +27 -0
  88. data/lib/leftovers/processor_builders/each.rb +36 -0
  89. data/lib/leftovers/processor_builders/each_action.rb +51 -0
  90. data/lib/leftovers/processor_builders/each_dynamic.rb +54 -0
  91. data/lib/leftovers/processor_builders/each_for_definition_set.rb +36 -0
  92. data/lib/leftovers/processor_builders/itself.rb +13 -0
  93. data/lib/leftovers/processor_builders/keyword.rb +24 -0
  94. data/lib/leftovers/processor_builders/keyword_argument.rb +14 -0
  95. data/lib/leftovers/processor_builders/transform.rb +55 -0
  96. data/lib/leftovers/processor_builders/transform_chain.rb +24 -0
  97. data/lib/leftovers/processor_builders/transform_set.rb +47 -0
  98. data/lib/leftovers/processor_builders/value.rb +13 -0
  99. data/lib/leftovers/rake_task.rb +1 -1
  100. data/lib/leftovers/reporter.rb +1 -1
  101. data/lib/leftovers/value_processors.rb +40 -0
  102. data/lib/leftovers/value_processors/add_dynamic_prefix.rb +31 -0
  103. data/lib/leftovers/value_processors/add_dynamic_suffix.rb +31 -0
  104. data/lib/leftovers/value_processors/add_prefix.rb +20 -0
  105. data/lib/leftovers/value_processors/add_suffix.rb +20 -0
  106. data/lib/leftovers/value_processors/camelize.rb +24 -0
  107. data/lib/leftovers/value_processors/capitalize.rb +19 -0
  108. data/lib/leftovers/value_processors/deconstantize.rb +24 -0
  109. data/lib/leftovers/value_processors/delete_after.rb +22 -0
  110. data/lib/leftovers/value_processors/delete_before.rb +22 -0
  111. data/lib/leftovers/value_processors/delete_prefix.rb +26 -0
  112. data/lib/leftovers/value_processors/delete_suffix.rb +26 -0
  113. data/lib/leftovers/value_processors/demodulize.rb +24 -0
  114. data/lib/leftovers/value_processors/downcase.rb +19 -0
  115. data/lib/leftovers/value_processors/each.rb +21 -0
  116. data/lib/leftovers/value_processors/each_for_definition_set.rb +33 -0
  117. data/lib/leftovers/value_processors/each_keyword.rb +27 -0
  118. data/lib/leftovers/value_processors/each_keyword_argument.rb +27 -0
  119. data/lib/leftovers/value_processors/each_positional_argument.rb +24 -0
  120. data/lib/leftovers/value_processors/itself.rb +17 -0
  121. data/lib/leftovers/value_processors/keyword.rb +36 -0
  122. data/lib/leftovers/value_processors/keyword_argument.rb +36 -0
  123. data/lib/leftovers/value_processors/parameterize.rb +24 -0
  124. data/lib/leftovers/value_processors/placeholder.rb +18 -0
  125. data/lib/leftovers/value_processors/pluralize.rb +24 -0
  126. data/lib/leftovers/value_processors/positional_argument.rb +26 -0
  127. data/lib/leftovers/value_processors/replace_value.rb +18 -0
  128. data/lib/leftovers/value_processors/return_definition.rb +24 -0
  129. data/lib/leftovers/value_processors/return_string.rb +14 -0
  130. data/lib/leftovers/value_processors/singularize.rb +24 -0
  131. data/lib/leftovers/value_processors/split.rb +22 -0
  132. data/lib/leftovers/value_processors/swapcase.rb +19 -0
  133. data/lib/leftovers/value_processors/titleize.rb +24 -0
  134. data/lib/leftovers/value_processors/underscore.rb +24 -0
  135. data/lib/leftovers/value_processors/upcase.rb +19 -0
  136. data/lib/leftovers/version.rb +1 -1
  137. metadata +143 -24
  138. data/lib/leftovers/argument_rule.rb +0 -229
  139. data/lib/leftovers/core_ext.rb +0 -15
  140. data/lib/leftovers/hash_rule.rb +0 -42
  141. data/lib/leftovers/name_rule.rb +0 -98
  142. data/lib/leftovers/rule.rb +0 -82
  143. data/lib/leftovers/transform_rule.rb +0 -169
  144. data/lib/leftovers/value_rule.rb +0 -57
@@ -0,0 +1,18 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Leftovers
4
+ module ValueProcessors
5
+ class ReplaceValue
6
+ def initialize(value, then_processor)
7
+ @value = value
8
+ @then_processor = then_processor
9
+
10
+ freeze
11
+ end
12
+
13
+ def process(_str, node, method_node)
14
+ @then_processor.process(@value, node, method_node)
15
+ end
16
+ end
17
+ end
18
+ end
@@ -0,0 +1,24 @@
1
+ # frozen-string-literal: true
2
+
3
+ module Leftovers
4
+ module ValueProcessors
5
+ module ReturnDefinition
6
+ # :nocov:
7
+ using ::Leftovers::Backports::SetCaseEq if defined?(::Leftovers::Backports::SetCaseEq)
8
+ # :nocov:
9
+
10
+ def self.process(str, node, method_node)
11
+ return unless str
12
+ return if str.empty?
13
+
14
+ return :keep if ::Leftovers.config.keep === node
15
+
16
+ Leftovers::Definition.new(
17
+ str.to_sym,
18
+ location: node.loc.expression,
19
+ method_node: method_node
20
+ )
21
+ end
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Leftovers
4
+ module ValueProcessors
5
+ module ReturnString
6
+ def self.process(str, _node, _method_node)
7
+ return unless str
8
+ return if str.empty?
9
+
10
+ str.to_sym
11
+ end
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,24 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Leftovers
4
+ module ValueProcessors
5
+ class Singularize
6
+ def initialize(then_processor)
7
+ @then_processor = then_processor
8
+
9
+ freeze
10
+ end
11
+
12
+ def process(str, node, method_node)
13
+ return unless str
14
+
15
+ @then_processor.process(str.singularize, node, method_node)
16
+ rescue NoMethodError
17
+ Leftovers.error <<~MESSAGE
18
+ Tried using the String#singularize method, but the activesupport gem was not available and/or not required
19
+ `gem install activesupport`, and/or add `requires: 'active_support/core_ext/string'` to your .leftovers.yml
20
+ MESSAGE
21
+ end
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,22 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Leftovers
4
+ module ValueProcessors
5
+ class Split
6
+ def initialize(split_on, then_processor)
7
+ @split_on = split_on
8
+ @then_processor = then_processor
9
+
10
+ freeze
11
+ end
12
+
13
+ def process(str, node, method_node)
14
+ return unless str
15
+
16
+ str.split(@split_on).map do |substring|
17
+ @then_processor.process(substring, node, method_node)
18
+ end
19
+ end
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Leftovers
4
+ module ValueProcessors
5
+ class Swapcase
6
+ def initialize(then_processor)
7
+ @then_processor = then_processor
8
+
9
+ freeze
10
+ end
11
+
12
+ def process(str, node, method_node)
13
+ return unless str
14
+
15
+ @then_processor.process(str.swapcase, node, method_node)
16
+ end
17
+ end
18
+ end
19
+ end
@@ -0,0 +1,24 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Leftovers
4
+ module ValueProcessors
5
+ class Titleize
6
+ def initialize(then_processor)
7
+ @then_processor = then_processor
8
+
9
+ freeze
10
+ end
11
+
12
+ def process(str, node, method_node)
13
+ return unless str
14
+
15
+ @then_processor.process(str.titleize, node, method_node)
16
+ rescue NoMethodError
17
+ Leftovers.error <<~MESSAGE
18
+ Tried using the String#titleize method, but the activesupport gem was not available and/or not required
19
+ `gem install activesupport`, and/or add `requires: 'active_support/core_ext/string'` to your .leftovers.yml
20
+ MESSAGE
21
+ end
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,24 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Leftovers
4
+ module ValueProcessors
5
+ class Underscore
6
+ def initialize(then_processor)
7
+ @then_processor = then_processor
8
+
9
+ freeze
10
+ end
11
+
12
+ def process(str, node, method_node)
13
+ return unless str
14
+
15
+ @then_processor.process(str.underscore, node, method_node)
16
+ rescue NoMethodError
17
+ Leftovers.error <<~MESSAGE
18
+ Tried using the String#underscore method, but the activesupport gem was not available and/or not required
19
+ `gem install activesupport`, and/or add `requires: 'active_support/core_ext/string'` to your .leftovers.yml
20
+ MESSAGE
21
+ end
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,19 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Leftovers
4
+ module ValueProcessors
5
+ class Upcase
6
+ def initialize(then_processor)
7
+ @then_processor = then_processor
8
+
9
+ freeze
10
+ end
11
+
12
+ def process(str, node, method_node)
13
+ return unless str
14
+
15
+ @then_processor.process(str.upcase, node, method_node)
16
+ end
17
+ end
18
+ end
19
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Leftovers
4
- VERSION = '0.3.0'
4
+ VERSION = '0.4.0'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: leftovers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dana Sherson
8
- autorequire:
8
+ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-05-02 00:00:00.000000000 Z
11
+ date: 2020-11-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -24,6 +24,20 @@ dependencies:
24
24
  - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: benchmark-ips
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
27
41
  - !ruby/object:Gem::Dependency
28
42
  name: bundler
29
43
  requirement: !ruby/object:Gem::Requirement
@@ -100,42 +114,42 @@ dependencies:
100
114
  requirements:
101
115
  - - "~>"
102
116
  - !ruby/object:Gem::Version
103
- version: '0.82'
117
+ version: 0.93.1
104
118
  type: :development
105
119
  prerelease: false
106
120
  version_requirements: !ruby/object:Gem::Requirement
107
121
  requirements:
108
122
  - - "~>"
109
123
  - !ruby/object:Gem::Version
110
- version: '0.82'
124
+ version: 0.93.1
111
125
  - !ruby/object:Gem::Dependency
112
126
  name: rubocop-performance
113
127
  requirement: !ruby/object:Gem::Requirement
114
128
  requirements:
115
129
  - - "~>"
116
130
  - !ruby/object:Gem::Version
117
- version: '1.4'
131
+ version: 1.8.1
118
132
  type: :development
119
133
  prerelease: false
120
134
  version_requirements: !ruby/object:Gem::Requirement
121
135
  requirements:
122
136
  - - "~>"
123
137
  - !ruby/object:Gem::Version
124
- version: '1.4'
138
+ version: 1.8.1
125
139
  - !ruby/object:Gem::Dependency
126
140
  name: rubocop-rspec
127
141
  requirement: !ruby/object:Gem::Requirement
128
142
  requirements:
129
143
  - - "~>"
130
144
  - !ruby/object:Gem::Version
131
- version: '1.35'
145
+ version: 1.44.1
132
146
  type: :development
133
147
  prerelease: false
134
148
  version_requirements: !ruby/object:Gem::Requirement
135
149
  requirements:
136
150
  - - "~>"
137
151
  - !ruby/object:Gem::Version
138
- version: '1.35'
152
+ version: 1.44.1
139
153
  - !ruby/object:Gem::Dependency
140
154
  name: simplecov
141
155
  requirement: !ruby/object:Gem::Requirement
@@ -198,14 +212,28 @@ dependencies:
198
212
  requirements:
199
213
  - - ">="
200
214
  - !ruby/object:Gem::Version
201
- version: 0.11.0
215
+ version: 0.15.1
202
216
  type: :runtime
203
217
  prerelease: false
204
218
  version_requirements: !ruby/object:Gem::Requirement
205
219
  requirements:
206
220
  - - ">="
207
221
  - !ruby/object:Gem::Version
208
- version: 0.11.0
222
+ version: 0.15.1
223
+ - !ruby/object:Gem::Dependency
224
+ name: json_schemer
225
+ requirement: !ruby/object:Gem::Requirement
226
+ requirements:
227
+ - - ">="
228
+ - !ruby/object:Gem::Version
229
+ version: '0'
230
+ type: :runtime
231
+ prerelease: false
232
+ version_requirements: !ruby/object:Gem::Requirement
233
+ requirements:
234
+ - - ">="
235
+ - !ruby/object:Gem::Version
236
+ version: '0'
209
237
  - !ruby/object:Gem::Dependency
210
238
  name: parallel
211
239
  requirement: !ruby/object:Gem::Requirement
@@ -234,7 +262,7 @@ dependencies:
234
262
  - - ">="
235
263
  - !ruby/object:Gem::Version
236
264
  version: '0'
237
- description:
265
+ description:
238
266
  email:
239
267
  - robot@dana.sh
240
268
  executables:
@@ -246,6 +274,7 @@ files:
246
274
  - Gemfile
247
275
  - LICENSE.txt
248
276
  - README.md
277
+ - docs/Configuration.md
249
278
  - exe/leftovers
250
279
  - leftovers.gemspec
251
280
  - lib/config/attr_encrypted.yml
@@ -273,30 +302,119 @@ files:
273
302
  - lib/config/simplecov.yml
274
303
  - lib/config/will_paginate.yml
275
304
  - lib/leftovers.rb
276
- - lib/leftovers/argument_rule.rb
305
+ - lib/leftovers/ast.rb
277
306
  - lib/leftovers/ast/builder.rb
278
307
  - lib/leftovers/ast/node.rb
279
308
  - lib/leftovers/backports.rb
280
309
  - lib/leftovers/cli.rb
281
310
  - lib/leftovers/collector.rb
282
311
  - lib/leftovers/config.rb
283
- - lib/leftovers/core_ext.rb
312
+ - lib/leftovers/config_validator.rb
313
+ - lib/leftovers/config_validator/error_processor.rb
314
+ - lib/leftovers/config_validator/schema_hash.rb
284
315
  - lib/leftovers/definition.rb
285
316
  - lib/leftovers/definition_set.rb
317
+ - lib/leftovers/dynamic_processors.rb
318
+ - lib/leftovers/dynamic_processors/call.rb
319
+ - lib/leftovers/dynamic_processors/call_definition.rb
320
+ - lib/leftovers/dynamic_processors/definition.rb
321
+ - lib/leftovers/dynamic_processors/each.rb
322
+ - lib/leftovers/dynamic_processors/null.rb
286
323
  - lib/leftovers/erb.rb
287
324
  - lib/leftovers/file.rb
288
325
  - lib/leftovers/file_collector.rb
289
326
  - lib/leftovers/file_list.rb
290
327
  - lib/leftovers/haml.rb
291
- - lib/leftovers/hash_rule.rb
328
+ - lib/leftovers/matcher_builders.rb
329
+ - lib/leftovers/matcher_builders/and.rb
330
+ - lib/leftovers/matcher_builders/and_not.rb
331
+ - lib/leftovers/matcher_builders/argument_node_value.rb
332
+ - lib/leftovers/matcher_builders/name.rb
333
+ - lib/leftovers/matcher_builders/node.rb
334
+ - lib/leftovers/matcher_builders/node_has_argument.rb
335
+ - lib/leftovers/matcher_builders/node_has_keyword_argument.rb
336
+ - lib/leftovers/matcher_builders/node_has_positional_argument.rb
337
+ - lib/leftovers/matcher_builders/node_name.rb
338
+ - lib/leftovers/matcher_builders/node_pair_name.rb
339
+ - lib/leftovers/matcher_builders/node_pair_value.rb
340
+ - lib/leftovers/matcher_builders/node_path.rb
341
+ - lib/leftovers/matcher_builders/node_type.rb
342
+ - lib/leftovers/matcher_builders/or.rb
343
+ - lib/leftovers/matcher_builders/path.rb
344
+ - lib/leftovers/matcher_builders/string.rb
345
+ - lib/leftovers/matcher_builders/string_pattern.rb
346
+ - lib/leftovers/matcher_builders/unless.rb
347
+ - lib/leftovers/matchers.rb
348
+ - lib/leftovers/matchers/all.rb
349
+ - lib/leftovers/matchers/and.rb
350
+ - lib/leftovers/matchers/any.rb
351
+ - lib/leftovers/matchers/node_has_any_keyword_argument.rb
352
+ - lib/leftovers/matchers/node_has_any_positional_argument_with_value.rb
353
+ - lib/leftovers/matchers/node_has_positional_argument.rb
354
+ - lib/leftovers/matchers/node_has_positional_argument_with_value.rb
355
+ - lib/leftovers/matchers/node_name.rb
356
+ - lib/leftovers/matchers/node_pair_value.rb
357
+ - lib/leftovers/matchers/node_path.rb
358
+ - lib/leftovers/matchers/node_scalar_value.rb
359
+ - lib/leftovers/matchers/node_type.rb
360
+ - lib/leftovers/matchers/not.rb
361
+ - lib/leftovers/matchers/or.rb
292
362
  - lib/leftovers/merged_config.rb
293
- - lib/leftovers/name_rule.rb
294
363
  - lib/leftovers/parser.rb
364
+ - lib/leftovers/processor_builders.rb
365
+ - lib/leftovers/processor_builders/action.rb
366
+ - lib/leftovers/processor_builders/add_prefix.rb
367
+ - lib/leftovers/processor_builders/add_suffix.rb
368
+ - lib/leftovers/processor_builders/argument.rb
369
+ - lib/leftovers/processor_builders/dynamic.rb
370
+ - lib/leftovers/processor_builders/each.rb
371
+ - lib/leftovers/processor_builders/each_action.rb
372
+ - lib/leftovers/processor_builders/each_dynamic.rb
373
+ - lib/leftovers/processor_builders/each_for_definition_set.rb
374
+ - lib/leftovers/processor_builders/itself.rb
375
+ - lib/leftovers/processor_builders/keyword.rb
376
+ - lib/leftovers/processor_builders/keyword_argument.rb
377
+ - lib/leftovers/processor_builders/transform.rb
378
+ - lib/leftovers/processor_builders/transform_chain.rb
379
+ - lib/leftovers/processor_builders/transform_set.rb
380
+ - lib/leftovers/processor_builders/value.rb
295
381
  - lib/leftovers/rake_task.rb
296
382
  - lib/leftovers/reporter.rb
297
- - lib/leftovers/rule.rb
298
- - lib/leftovers/transform_rule.rb
299
- - lib/leftovers/value_rule.rb
383
+ - lib/leftovers/value_processors.rb
384
+ - lib/leftovers/value_processors/add_dynamic_prefix.rb
385
+ - lib/leftovers/value_processors/add_dynamic_suffix.rb
386
+ - lib/leftovers/value_processors/add_prefix.rb
387
+ - lib/leftovers/value_processors/add_suffix.rb
388
+ - lib/leftovers/value_processors/camelize.rb
389
+ - lib/leftovers/value_processors/capitalize.rb
390
+ - lib/leftovers/value_processors/deconstantize.rb
391
+ - lib/leftovers/value_processors/delete_after.rb
392
+ - lib/leftovers/value_processors/delete_before.rb
393
+ - lib/leftovers/value_processors/delete_prefix.rb
394
+ - lib/leftovers/value_processors/delete_suffix.rb
395
+ - lib/leftovers/value_processors/demodulize.rb
396
+ - lib/leftovers/value_processors/downcase.rb
397
+ - lib/leftovers/value_processors/each.rb
398
+ - lib/leftovers/value_processors/each_for_definition_set.rb
399
+ - lib/leftovers/value_processors/each_keyword.rb
400
+ - lib/leftovers/value_processors/each_keyword_argument.rb
401
+ - lib/leftovers/value_processors/each_positional_argument.rb
402
+ - lib/leftovers/value_processors/itself.rb
403
+ - lib/leftovers/value_processors/keyword.rb
404
+ - lib/leftovers/value_processors/keyword_argument.rb
405
+ - lib/leftovers/value_processors/parameterize.rb
406
+ - lib/leftovers/value_processors/placeholder.rb
407
+ - lib/leftovers/value_processors/pluralize.rb
408
+ - lib/leftovers/value_processors/positional_argument.rb
409
+ - lib/leftovers/value_processors/replace_value.rb
410
+ - lib/leftovers/value_processors/return_definition.rb
411
+ - lib/leftovers/value_processors/return_string.rb
412
+ - lib/leftovers/value_processors/singularize.rb
413
+ - lib/leftovers/value_processors/split.rb
414
+ - lib/leftovers/value_processors/swapcase.rb
415
+ - lib/leftovers/value_processors/titleize.rb
416
+ - lib/leftovers/value_processors/underscore.rb
417
+ - lib/leftovers/value_processors/upcase.rb
300
418
  - lib/leftovers/version.rb
301
419
  homepage: http://github.com/robotdana/leftovers
302
420
  licenses:
@@ -304,8 +422,8 @@ licenses:
304
422
  metadata:
305
423
  homepage_uri: http://github.com/robotdana/leftovers
306
424
  source_code_uri: http://github.com/robotdana/leftovers
307
- changelog_uri: http://github.com/robotdana/leftovers/blob/master/CHANGELOG.md
308
- post_install_message:
425
+ changelog_uri: http://github.com/robotdana/leftovers/blob/main/CHANGELOG.md
426
+ post_install_message:
309
427
  rdoc_options: []
310
428
  require_paths:
311
429
  - lib
@@ -313,15 +431,16 @@ required_ruby_version: !ruby/object:Gem::Requirement
313
431
  requirements:
314
432
  - - ">="
315
433
  - !ruby/object:Gem::Version
316
- version: '0'
434
+ version: 2.4.0
317
435
  required_rubygems_version: !ruby/object:Gem::Requirement
318
436
  requirements:
319
437
  - - ">="
320
438
  - !ruby/object:Gem::Version
321
439
  version: '0'
322
440
  requirements: []
323
- rubygems_version: 3.1.2
324
- signing_key:
441
+ rubyforge_project:
442
+ rubygems_version: 2.7.6
443
+ signing_key:
325
444
  specification_version: 4
326
445
  summary: Find unused methods and classes/modules
327
446
  test_files: []