From d43bed17608709db0471eced3fac902d6615f504 Mon Sep 17 00:00:00 2001 From: abid123456 <30424473+abid123456@users.noreply.github.com> Date: Tue, 29 Oct 2024 05:21:42 +0700 Subject: [PATCH] update ruby to 2.5.3 (#167) * update ruby to 2.6.0 * update ruby to 2.6.0 (fix) * fix (?) session controller test * ruby 2.5.3 --- .github/workflows/deploy.yml | 2 +- .github/workflows/ruby.yml | 4 ++-- .travis.yml | 2 +- Gemfile | 2 +- Gemfile.lock | 2 +- db/structure.sql | 2 +- scripts/provision.sh | 4 ++-- test/models/long_submission_test.rb | 2 +- 8 files changed, 10 insertions(+), 10 deletions(-) diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 87f3ba49..7397d5fe 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -28,7 +28,7 @@ jobs: - name: Set up Ruby uses: ruby/setup-ruby@v1 with: - ruby-version: 2.5.0 + ruby-version: 2.5.3 - run: | bundle install - name: Deploy to production diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml index d49fab9f..6aab05df 100644 --- a/.github/workflows/ruby.yml +++ b/.github/workflows/ruby.yml @@ -29,7 +29,7 @@ jobs: - name: Setup Ruby uses: ruby/setup-ruby@v1 with: - ruby-version: 2.5.0 + ruby-version: 2.5.3 - run: | bundle install --without production development - env: @@ -51,7 +51,7 @@ jobs: - name: Setup Ruby and install gems uses: ruby/setup-ruby@v1 with: - ruby-version: 2.5.0 + ruby-version: 2.5.3 - run: | bundle install --without production development - name: Run rubocop diff --git a/.travis.yml b/.travis.yml index fba8e8ca..8cbff4d5 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,6 +1,6 @@ language: ruby cache: bundler -rvm: 2.5.0 +rvm: 2.5.3 bundler_args: "--without production development" services: postgresql diff --git a/Gemfile b/Gemfile index 800a87fe..1d65ccf7 100644 --- a/Gemfile +++ b/Gemfile @@ -6,7 +6,7 @@ git_source(:github) { |name| "https://github.com/#{name}.git" } ### BASICS # Ruby version -ruby '2.5.0' +ruby '2.5.3' # Rails version gem 'rails', '~> 4' # Use postgres as database diff --git a/Gemfile.lock b/Gemfile.lock index 1eec0e97..e7d6b6ce 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -436,7 +436,7 @@ DEPENDENCIES wkhtmltopdf-binary RUBY VERSION - ruby 2.5.0p0 + ruby 2.5.3 BUNDLED WITH 1.17.3 diff --git a/db/structure.sql b/db/structure.sql index 2f04ebfc..eea62763 100644 --- a/db/structure.sql +++ b/db/structure.sql @@ -32,7 +32,7 @@ COMMENT ON EXTENSION pg_trgm IS 'text similarity measurement and index searching SET default_tablespace = ''; -SET default_table_access_method = heap; +-- SET default_table_access_method = heap; -- -- Name: about_users; Type: TABLE; Schema: public; Owner: - diff --git a/scripts/provision.sh b/scripts/provision.sh index dd9ef340..4248b3a3 100644 --- a/scripts/provision.sh +++ b/scripts/provision.sh @@ -17,8 +17,8 @@ su ubuntu <<'EOF' gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3 curl -sSL https://get.rvm.io | bash -s stable source ~/.rvm/scripts/rvm -rvm install 2.5.0 -rvm use 2.5.0 --default +rvm install 2.5.3 +rvm use 2.5.3 --default gem install bundler cd /vagrant cp config/database.yml.default config/database.yml diff --git a/test/models/long_submission_test.rb b/test/models/long_submission_test.rb index 59386b1e..4cff531d 100644 --- a/test/models/long_submission_test.rb +++ b/test/models/long_submission_test.rb @@ -64,7 +64,7 @@ class LongSubmissionTest < ActiveSupport::TestCase end test 'text to score' do - assert_equal LongSubmission.text_to_score('-'), nil + assert_nil LongSubmission.text_to_score('-') assert_equal LongSubmission.text_to_score('100'), 100 end