nucop 0.12.2 → 0.12.3

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: 85133441c55a8dd1c268d125650c81856e12382c3cae1740a1bae095f741d30a
4
- data.tar.gz: 6783efc578fb57bfeaff4271cec5f96f3aa0c49172b428f5515202f2dd83bc0e
3
+ metadata.gz: 253482fd2e13045bcdae4ab5cac523644f8e20129fba5f2eaab2f7517804de31
4
+ data.tar.gz: 05b4f1e44edcd258a9558585336734ed949ded43d9e3adcded7b8c0de572b6c2
5
5
  SHA512:
6
- metadata.gz: 578761a6a08a4888684f5c66fb2c2e273ec732e496c6ccd78da9e9dcb302e166474c61a4683fe8f96845b6b4ea80e0d3e9576112841dbc581ebd21e044932990
7
- data.tar.gz: 5820e47e0a8d7967ebaa882c9beff47adc85efc8be224fccf9749cba31b9eb494d28cfee58cb76e039d7869f02709dbdfbbc33e27a94070f796f5661d377e763
6
+ metadata.gz: d13e3b6cd4bee57edb965b8e814df50259edcc5295464fd5ff1b7dd72a29ae1747acba9580bd43306aab3b631d155431de5a133e0778282ce7dc67ebce5f6554
7
+ data.tar.gz: 48264a61bbd629d90465f1f13e6feac98b955fefec7ef6eb24929a2425f0f9696a63bb069a99772d963bac03dd74acef287de8ddb7a67b3b589e6833a7ee26f0
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]
data/lib/nucop/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Nucop
2
- VERSION = "0.12.2"
2
+ VERSION = "0.12.3"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
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.12.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Schweier
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-10-20 00:00:00.000000000 Z
11
+ date: 2024-10-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop