Skip to content

Commit

Permalink
Run standardrb
Browse files Browse the repository at this point in the history
  • Loading branch information
aelkiss committed Apr 24, 2024
1 parent 91ab9af commit 9d06e59
Show file tree
Hide file tree
Showing 16 changed files with 13 additions and 17 deletions.
2 changes: 1 addition & 1 deletion lib/datasets/configuration.rb
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
module Datasets
class Configuration < OpenStruct
def initialize(hash = {})
super hash.merge(logger: NullLogger.new)
super(hash.merge(logger: NullLogger.new))
end

def self.from_yaml(path)
Expand Down
2 changes: 0 additions & 2 deletions lib/datasets/filter.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
# Filters volumes based on criteria.
require "set"

module Datasets
class Filter
PD_RIGHTS = [:"cc-by-3.0",
Expand Down
1 change: 0 additions & 1 deletion lib/datasets/repository/rights_volume_repo.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
require "datasets/volume_repo"
require "datasets/volume"
require "set"
require "sequel"

module Datasets
Expand Down
2 changes: 1 addition & 1 deletion spec/cli_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

require_relative "./spec_helper"
require_relative "spec_helper"
require "cli"

module Datasets
Expand Down
2 changes: 1 addition & 1 deletion spec/filesystem_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require_relative "./spec_helper"
require_relative "spec_helper"
require "filesystem"
require "pathname"
require "fileutils"
Expand Down
2 changes: 1 addition & 1 deletion spec/force_volume_creator_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

require_relative "./spec_helper"
require_relative "spec_helper"
require "force_volume_creator"
require "pathname"

Expand Down
2 changes: 1 addition & 1 deletion spec/pairtree_path_resolver_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require_relative "./spec_helper"
require_relative "spec_helper"
require "pairtree_path_resolver"

module Datasets
Expand Down
2 changes: 1 addition & 1 deletion spec/report_manager_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require_relative "./spec_helper"
require_relative "spec_helper"
require "report_manager"
require "filesystem"
require "pathname"
Expand Down
2 changes: 1 addition & 1 deletion spec/report_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require_relative "./spec_helper"
require_relative "spec_helper"
require "report"
require "report_summary"
require "pathname"
Expand Down
2 changes: 1 addition & 1 deletion spec/report_summary_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require_relative "./spec_helper"
require_relative "spec_helper"
require "report_summary"

module Datasets
Expand Down
1 change: 0 additions & 1 deletion spec/repository/rights_volume_repo_spec.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
require "spec_helper"
require "repository/rights_volume_repo"
require "volume"
require "set"
require "sequel"

module Datasets
Expand Down
2 changes: 1 addition & 1 deletion spec/scheduler_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

require_relative "./spec_helper"
require_relative "spec_helper"
require "scheduler"

module Datasets
Expand Down
2 changes: 1 addition & 1 deletion spec/volume_creator_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

require_relative "./spec_helper"
require_relative "spec_helper"
require "volume_creator"
require "pathname"

Expand Down
2 changes: 1 addition & 1 deletion spec/volume_linker_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require_relative "./spec_helper"
require_relative "spec_helper"
require "volume_linker"
require "pathname"

Expand Down
2 changes: 1 addition & 1 deletion spec/volume_spec.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# frozen_string_literal: true

require_relative "./spec_helper"
require_relative "spec_helper"
require "datasets/volume"

module Datasets
Expand Down
2 changes: 1 addition & 1 deletion spec/zip_writer_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require_relative "./spec_helper"
require_relative "spec_helper"
require "zip_writer"
require "zip"
require "pathname"
Expand Down

0 comments on commit 9d06e59

Please sign in to comment.