Skip to content

Commit

Permalink
Merge pull request #15 from Data-Liberation-Front/ruby-2.6
Browse files Browse the repository at this point in the history
Support Ruby 2.6
  • Loading branch information
Floppy authored Jul 16, 2022
2 parents e3f0433 + 6efa81c commit 3e9e5bc
Show file tree
Hide file tree
Showing 6 changed files with 18 additions and 6 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/push.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
ruby-version: ['2.4', '2.5']
ruby-version: ['2.4', '2.5', '2.6']
fail-fast: false
steps:
- uses: actions/checkout@v2
Expand All @@ -30,7 +30,7 @@ jobs:
with:
bundler: 1.17.3
bundler-cache: true
ruby-version: 2.5
ruby-version: 2.6
- name: Install dependencies
run: bundle install
- name: Run the tests
Expand Down
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.5.8
2.6.9
2 changes: 1 addition & 1 deletion resumable_upload.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ Gem::Specification.new do |s|
s.summary = "A Resumable.js Rails Engine"
s.description = "A Resumable.js Rails Engine"

s.required_ruby_version = ["~> 2.4", "< 2.6"]
s.required_ruby_version = [">= 2.4", "< 2.7"]

s.files = Dir["{app,config,db,lib}/**/*", "MIT-LICENSE", "Rakefile", "README.rdoc"]
s.test_files = Dir["test/**/*"]
Expand Down
1 change: 0 additions & 1 deletion spec/controllers/chunks_controller_spec.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
require "spec_helper"
require "rails_helper"

describe ResumableUpload::ChunksController, type: :controller do
Expand Down
2 changes: 1 addition & 1 deletion spec/rails_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
# directory. Alternatively, in the individual `*_spec.rb` files, manually
# require only the support files necessary.
#
# Dir[Rails.root.join('spec/support/**/*.rb')].each { |f| require f }
Dir[File.join(File.dirname(__FILE__), "support", "**", "*.rb")].sort.each { |f| require f }

# Checks for pending migrations before tests are run.
# If you are not using ActiveRecord, you can remove this line.
Expand Down
13 changes: 13 additions & 0 deletions spec/support/patch_rails_42_action_controller_test_response.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
if RUBY_VERSION >= "2.6.0"
if Rails.version < "5"
module ActionController
class TestResponse < ActionDispatch::TestResponse
def recycle!
@mon_mutex_owner_object_id = nil
@mon_mutex = nil
initialize
end
end
end
end
end

0 comments on commit 3e9e5bc

Please sign in to comment.