Skip to content

Commit 127ff01

Browse files
committed
style: Rubocop changes for Ruby 4
1 parent 1b06f95 commit 127ff01

8 files changed

Lines changed: 5 additions & 10 deletions

File tree

.rubocop.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
inherit_gem:
22
almost_standard: .rubocop.yml
33
AllCops:
4-
TargetRubyVersion: 3.4
4+
TargetRubyVersion: 4.0

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }
66

77
group :documentation do
88
gem "irb" # needed until https://github.com/lsegal/yard/issues/1636
9-
# is resolved
9+
# is resolved
1010
gem "kramdown" # markdown parser for generating documentation
1111
gem "yard"
1212
end

bin/rspec

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
# this file is here to facilitate running it.
99
#
1010

11-
require "pathname"
1211
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
1312
Pathname.new(__FILE__).realpath)
1413

bin/rubocop

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
# this file is here to facilitate running it.
99
#
1010

11-
require "pathname"
1211
ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../../Gemfile",
1312
Pathname.new(__FILE__).realpath)
1413

lib/kiba/extend/destinations/destinationable.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# frozen_string_literal: true
22

33
require "fileutils"
4-
require "pathname"
54

65
module Kiba
76
module Extend

lib/kiba/extend/sources/json_dir.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
# rubocop:todo Layout/LineLength
44

55
require "json"
6-
require "pathname"
76

87
module Kiba
98
module Extend

lib/kiba/extend/transforms/delete/empty_field_groups.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -230,9 +230,9 @@ def setup_index_analyzer(prepped_vals)
230230
def prep_for_empty_index_identification(vals)
231231
vals.dup
232232
.transform_values do |vals|
233-
vals.map do |val|
234-
empty_val?(val) ? :empty : :notempty
235-
end
233+
vals.map do |val|
234+
empty_val?(val) ? :empty : :notempty
235+
end
236236
end
237237
end
238238

spec/kiba/extend/destinations/csv_spec.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
# frozen_string_literal: true
22

33
require "fileutils"
4-
require "pathname"
54
require "spec_helper"
65

76
RSpec.describe Kiba::Extend::Destinations::CSV do

0 commit comments

Comments
 (0)