Skip to content

Commit

Permalink
Revert "update ruby to 2.5.3 (#167)"
Browse files Browse the repository at this point in the history
This reverts commit d43bed1.

undo ruby update
  • Loading branch information
abid123456 committed Oct 28, 2024
1 parent 5d05e35 commit e34efb8
Show file tree
Hide file tree
Showing 8 changed files with 10 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ jobs:
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.5.3
ruby-version: 2.5.0
- run: |
bundle install
- name: Deploy to production
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/ruby.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ jobs:
- name: Setup Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.5.3
ruby-version: 2.5.0
- run: |
bundle install --without production development
- env:
Expand All @@ -51,7 +51,7 @@ jobs:
- name: Setup Ruby and install gems
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.5.3
ruby-version: 2.5.0
- run: |
bundle install --without production development
- name: Run rubocop
Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
language: ruby
cache: bundler
rvm: 2.5.3
rvm: 2.5.0
bundler_args: "--without production development"
services: postgresql

Expand Down
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ git_source(:github) { |name| "https://github.com/#{name}.git" }
### BASICS

# Ruby version
ruby '2.5.3'
ruby '2.5.0'
# Rails version
gem 'rails', '~> 4'
# Use postgres as database
Expand Down
2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -436,7 +436,7 @@ DEPENDENCIES
wkhtmltopdf-binary

RUBY VERSION
ruby 2.5.3
ruby 2.5.0p0

BUNDLED WITH
1.17.3
2 changes: 1 addition & 1 deletion db/structure.sql
Original file line number Diff line number Diff line change
Expand Up @@ -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: -
Expand Down
4 changes: 2 additions & 2 deletions scripts/provision.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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.3
rvm use 2.5.3 --default
rvm install 2.5.0
rvm use 2.5.0 --default
gem install bundler
cd /vagrant
cp config/database.yml.default config/database.yml
Expand Down
2 changes: 1 addition & 1 deletion test/models/long_submission_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ class LongSubmissionTest < ActiveSupport::TestCase
end

test 'text to score' do
assert_nil LongSubmission.text_to_score('-')
assert_equal LongSubmission.text_to_score('-'), nil
assert_equal LongSubmission.text_to_score('100'), 100
end

Expand Down

0 comments on commit e34efb8

Please sign in to comment.