Skip to content

Commit 3e9e5bc

Browse files
authored
Merge pull request #15 from Data-Liberation-Front/ruby-2.6
Support Ruby 2.6
2 parents e3f0433 + 6efa81c commit 3e9e5bc

File tree

6 files changed

+18
-6
lines changed

6 files changed

+18
-6
lines changed

.github/workflows/push.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ jobs:
55
runs-on: ubuntu-latest
66
strategy:
77
matrix:
8-
ruby-version: ['2.4', '2.5']
8+
ruby-version: ['2.4', '2.5', '2.6']
99
fail-fast: false
1010
steps:
1111
- uses: actions/checkout@v2
@@ -30,7 +30,7 @@ jobs:
3030
with:
3131
bundler: 1.17.3
3232
bundler-cache: true
33-
ruby-version: 2.5
33+
ruby-version: 2.6
3434
- name: Install dependencies
3535
run: bundle install
3636
- name: Run the tests

.ruby-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.5.8
1+
2.6.9

resumable_upload.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ Gem::Specification.new do |s|
1313
s.summary = "A Resumable.js Rails Engine"
1414
s.description = "A Resumable.js Rails Engine"
1515

16-
s.required_ruby_version = ["~> 2.4", "< 2.6"]
16+
s.required_ruby_version = [">= 2.4", "< 2.7"]
1717

1818
s.files = Dir["{app,config,db,lib}/**/*", "MIT-LICENSE", "Rakefile", "README.rdoc"]
1919
s.test_files = Dir["test/**/*"]

spec/controllers/chunks_controller_spec.rb

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
require "spec_helper"
21
require "rails_helper"
32

43
describe ResumableUpload::ChunksController, type: :controller do

spec/rails_helper.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
# directory. Alternatively, in the individual `*_spec.rb` files, manually
2222
# require only the support files necessary.
2323
#
24-
# Dir[Rails.root.join('spec/support/**/*.rb')].each { |f| require f }
24+
Dir[File.join(File.dirname(__FILE__), "support", "**", "*.rb")].sort.each { |f| require f }
2525

2626
# Checks for pending migrations before tests are run.
2727
# If you are not using ActiveRecord, you can remove this line.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
if RUBY_VERSION >= "2.6.0"
2+
if Rails.version < "5"
3+
module ActionController
4+
class TestResponse < ActionDispatch::TestResponse
5+
def recycle!
6+
@mon_mutex_owner_object_id = nil
7+
@mon_mutex = nil
8+
initialize
9+
end
10+
end
11+
end
12+
end
13+
end

0 commit comments

Comments
 (0)