Skip to content

Commit

Permalink
Add csv dependency to bundler
Browse files Browse the repository at this point in the history
This dependency is moving out of stdlib in Ruby 3.4 so it must be managed by bundler.
  • Loading branch information
mjgiarlo committed Jun 21, 2024
1 parent 88abd1f commit 9b88410
Show file tree
Hide file tree
Showing 11 changed files with 3 additions and 17 deletions.
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,8 @@ gem 'bibtex-ruby'
gem 'bootsnap', '>= 1.1.0', require: false
gem 'citeproc-ruby', '~> 1.1'
gem 'config'

gem 'csl-styles', '1.0.1.8' # See https://github.com/sul-dlss/sul_pub/issues/1019 before updating
gem 'csv'
gem 'daemons'
gem 'dotiw'
gem 'faraday'
Expand Down
2 changes: 2 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -167,6 +167,7 @@ GEM
rexml
csl-styles (1.0.1.8)
csl (~> 1.0)
csv (3.2.8)
daemons (1.4.1)
database_cleaner (2.0.2)
database_cleaner-active_record (>= 2, < 3)
Expand Down Expand Up @@ -557,6 +558,7 @@ DEPENDENCIES
citeproc-ruby (~> 1.1)
config
csl-styles (= 1.0.1.8)
csv
daemons
database_cleaner
dlss-capistrano
Expand Down
2 changes: 0 additions & 2 deletions app/controllers/publications_controller.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# frozen_string_literal: true

require 'csv'

class PublicationsController < ApplicationController
before_action :check_authorization
before_action :ensure_json_request, except: [:index]
Expand Down
2 changes: 0 additions & 2 deletions lib/smci_report.rb
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,6 @@

# NOTE: This borrowed some code from the 'export_pubs_for_authors_csv' rake task in lib/tasks/sul.rake

require 'csv'

class SmciReport
# rubocop:disable Metrics/CyclomaticComplexity
def initialize(args)
Expand Down
2 changes: 0 additions & 2 deletions lib/tasks/cleanup.rake
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# frozen_string_literal: true

require 'csv'

namespace :cleanup do
desc 'Merge contributions FROM duped_cap_profile_id INTO primary_cap_profile_id'
# Use case: a single author has two author rows with publications associated with each.
Expand Down
1 change: 0 additions & 1 deletion lib/tasks/sul.rake
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# frozen_string_literal: true

require 'csv'
require 'json'
require 'fileutils'

Expand Down
2 changes: 0 additions & 2 deletions script/delete_missing_auths.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# frozen_string_literal: true

require 'csv'

class DeleteMissingAuths
def initialize
@logger = Logger.new(Rails.root.join('log/delete_missing_auths.log'))
Expand Down
2 changes: 0 additions & 2 deletions script/dup_report.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# frozen_string_literal: true

require 'csv'

class Reporter
def initialize(swids_file, pmids_file, wos_file)
@swids = build_id_set swids_file
Expand Down
2 changes: 0 additions & 2 deletions script/merge_duplicate_authors.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# frozen_string_literal: true

require 'csv'

class MergeDuplicateAuths
CONTRIB_CHECK = true

Expand Down
2 changes: 0 additions & 2 deletions script/repair_mixed_auths.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
# frozen_string_literal: true

require 'csv'

class RepairMixedAuths
def initialize
@logger = Logger.new(Rails.root.join('log/repair_mixed_auths.log'))
Expand Down
1 change: 0 additions & 1 deletion script/title_report.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
# frozen_string_literal: true

require 'csv'
require 'pathname'

ActiveRecord::Base.logger.level = 1
Expand Down

0 comments on commit 9b88410

Please sign in to comment.