nucop 0.12.2 → 0.13.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 85133441c55a8dd1c268d125650c81856e12382c3cae1740a1bae095f741d30a
4
- data.tar.gz: 6783efc578fb57bfeaff4271cec5f96f3aa0c49172b428f5515202f2dd83bc0e
3
+ metadata.gz: fbb2f7d4e05c9b158611bbb6ccc78ed0897c242ef61245fecd639b539db54fdc
4
+ data.tar.gz: 3a22e9e16ca7fe1bb5e6483f5b60a58eb2092a218b82fae05212f84a71ab74a4
5
5
  SHA512:
6
- metadata.gz: 578761a6a08a4888684f5c66fb2c2e273ec732e496c6ccd78da9e9dcb302e166474c61a4683fe8f96845b6b4ea80e0d3e9576112841dbc581ebd21e044932990
7
- data.tar.gz: 5820e47e0a8d7967ebaa882c9beff47adc85efc8be224fccf9749cba31b9eb494d28cfee58cb76e039d7869f02709dbdfbbc33e27a94070f796f5661d377e763
6
+ metadata.gz: cec36e77bb6a7ca0e94834d87d23d1824474274f888bc057812da6dab11f9f346b7e83ecd21ef3733ce48550557a6f1a49a5064af71daf65363a1c66acd73abe
7
+ data.tar.gz: a870f6b4466e6b4836f1ab4a7d06ca1c15fd537a42421162efe424551fe6f885adfc64e66b47be74be288a9165282dd2fc21079cd97be29cef959abd3009f71d
data/lib/nucop/cli.rb CHANGED
@@ -14,7 +14,7 @@ module Nucop
14
14
  def load_custom_options
15
15
  @_load_custom_options ||=
16
16
  if File.exist?(CONFIGURATION_FILEPATH)
17
- default_configuration.merge(YAML.load_file(CONFIGURATION_FILEPATH))
17
+ default_configuration.merge(YAML.load_file(CONFIGURATION_FILEPATH, symbolize_names: true))
18
18
  else
19
19
  default_configuration
20
20
  end
@@ -147,6 +147,7 @@ module Nucop
147
147
  .filter { |file_data| diff_filter.call(file_data["status"]) }
148
148
  .map { |file_data| file_data["filename"] }
149
149
  .filter { |file_name| file_name.include?(".rb") }
150
+ .join("\n")
150
151
 
151
152
  if files.empty?
152
153
  if options[:exit]
@@ -159,7 +160,7 @@ module Nucop
159
160
  end
160
161
 
161
162
  if options[:ignore] && File.exist?(options[:diffignore_file]) && !File.empty?(options[:diffignore_file])
162
- files, non_ignored_diff_status = Open3.capture2("grep -v -f #{options[:diffignore_file]}", stdin_data: files.join("\n"))
163
+ files, non_ignored_diff_status = Open3.capture2("grep -v -f #{options[:diffignore_file]}", stdin_data: files)
163
164
 
164
165
  if non_ignored_diff_status != 0
165
166
  if options[:exit]
@@ -349,6 +350,10 @@ module Nucop
349
350
  system("git checkout #{options[:rubocop_todo_config_file]}")
350
351
  end
351
352
 
353
+ def rubocop_gem_plugins
354
+ Nucop::Helpers::RubocopGemDependencies.rubocop_plugins.map { |rubocop_gem| "--plugin #{rubocop_gem}" }
355
+ end
356
+
352
357
  def rubocop_gem_requires
353
358
  Nucop::Helpers::RubocopGemDependencies.rubocop_gems.map { |rubocop_gem| "--require #{rubocop_gem}" }
354
359
  end
@@ -4,19 +4,24 @@ module Nucop
4
4
  module RubocopGemDependencies
5
5
  module_function
6
6
 
7
+ def rubocop_plugins
8
+ %w[
9
+ rubocop-performance
10
+ rubocop-rspec
11
+ rubocop-rubycw
12
+ rubocop-rails
13
+ rubocop-rake
14
+ rubocop-thread_safety
15
+ ]
16
+ end
17
+
7
18
  def rubocop_gems
8
19
  %w[
9
20
  rubocop
10
21
  rubocop-capybara
11
22
  rubocop-factory_bot
12
23
  rubocop-graphql
13
- rubocop-performance
14
- rubocop-rails
15
- rubocop-rake
16
- rubocop-rspec
17
24
  rubocop-rspec_rails
18
- rubocop-rubycw
19
- rubocop-thread_safety
20
25
  ]
21
26
  end
22
27
  end
data/lib/nucop/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Nucop
2
- VERSION = "0.12.2"
2
+ VERSION = "0.13.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nucop
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.12.2
4
+ version: 0.13.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Schweier
8
- autorequire:
9
8
  bindir: bin
10
9
  cert_chain: []
11
- date: 2024-10-20 00:00:00.000000000 Z
10
+ date: 2025-03-04 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: rubocop
@@ -234,7 +233,6 @@ dependencies:
234
233
  - - "~>"
235
234
  - !ruby/object:Gem::Version
236
235
  version: '3.13'
237
- description:
238
236
  email:
239
237
  - jasons@nulogy.com
240
238
  executables:
@@ -268,7 +266,6 @@ metadata:
268
266
  changelog_uri: https://github.com/nulogy/nucop/blob/master/CHANGELOG.md
269
267
  bug_tracker_uri: https://github.com/nulogy/nucop/issues
270
268
  rubygems_mfa_required: 'true'
271
- post_install_message:
272
269
  rdoc_options: []
273
270
  require_paths:
274
271
  - lib
@@ -283,8 +280,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
283
280
  - !ruby/object:Gem::Version
284
281
  version: '0'
285
282
  requirements: []
286
- rubygems_version: 3.5.21
287
- signing_key:
283
+ rubygems_version: 3.6.5
288
284
  specification_version: 4
289
285
  summary: Nulogy's implementation of RuboCop, including custom cops and additional
290
286
  tooling.