Skip to content

Commit

Permalink
Require shellwords where it is used
Browse files Browse the repository at this point in the history
Ruby 3.1 doesn't require this by default anymore.
  • Loading branch information
rafaelfranca committed Jan 6, 2022
1 parent 4788046 commit c97dee3
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
1 change: 1 addition & 0 deletions activerecord/Rakefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# frozen_string_literal: true

require "shellwords"
require "rake/testtask"

require_relative "test/config"
Expand Down
2 changes: 2 additions & 0 deletions activestorage/lib/active_storage/previewer/video_previewer.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,7 @@
# frozen_string_literal: true

require "shellwords"

module ActiveStorage
class Previewer::VideoPreviewer < Previewer
class << self
Expand Down
1 change: 1 addition & 0 deletions railties/Rakefile
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# frozen_string_literal: true

require "shellwords"
require "rake/testtask"

task default: :test
Expand Down
1 change: 1 addition & 0 deletions railties/test/isolation/abstract_unit.rb
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
# It is also good to know what is the bare minimum to get
# Rails booted up.
require "fileutils"
require "shellwords"

require "bundler/setup" unless defined?(Bundler)
require "active_support"
Expand Down

0 comments on commit c97dee3

Please sign in to comment.