Skip to content

Commit

Permalink
[Bibdata] Update to ruby 3.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
christinach committed Jan 10, 2025
1 parent 00513a9 commit 2a89737
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion group_vars/bibdata/common.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ passenger_ruby: "/usr/local/bin/ruby"
passenger_extra_http_config:
- "passenger_preload_bundler on;"
install_ruby_from_source: true
ruby_version_override: "ruby-3.3.6"
ruby_version_override: "ruby-3.4.1"
bundler_version: "2.5.17"
rails_app_dependencies:
- libpq-dev
Expand Down
8 changes: 4 additions & 4 deletions roles/bibdata/tasks/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,21 +8,21 @@
ansible.builtin.include_tasks: mounts.yml

- name: bibdata | update rubygems
ansible.builtin.command: gem update --system 3.5.17
ansible.builtin.command: gem update --system 3.6.1
become: true
register: update_rubygems
changed_when: '"Latest version already installed. Done." not in update_rubygems.stdout'
tags: rubygems

- name: bibdata | install default bundler
ansible.builtin.command: gem install --default bundler:2.5.17
ansible.builtin.command: gem install --default bundler:2.6.1
become: true
register: install_default_bundler
changed_when: '"Fetching bundler-2.5.17.gem" in install_default_bundler.stdout'
changed_when: '"Fetching bundler-2.6.1.gem" in install_default_bundler.stdout'
tags: rubygems

- name: bibdata | remove old default bundler
ansible.builtin.file:
path: /usr/local/lib/ruby/gems/3.1.0/specifications/default/bundler-2.5.7.gemspec
path: /usr/local/lib/ruby/gems/3.1.0/specifications/default/bundler-2.5.17.gemspec
state: absent
tags: rubygems

0 comments on commit 2a89737

Please sign in to comment.