Skip to content

Commit

Permalink
Move to ruby 3.2.2
Browse files Browse the repository at this point in the history
  • Loading branch information
flbulgarelli committed Apr 20, 2023
1 parent c48fdef commit 37bc5f0
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 11 deletions.
5 changes: 2 additions & 3 deletions .github/workflows/test_and_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ jobs:
- name: Set up Ruby
uses: ruby/setup-ruby@21351ecc0a7c196081abca5dc55b08f085efe09a
with:
ruby-version: 2.6.3
bundler: 2.1.4
ruby-version: 3.2.2
bundler: 2.4.7
bundler-cache: true
- name: Pull worker
run: bin/pull_worker.sh
Expand All @@ -30,4 +30,3 @@ jobs:
gem push *.gem
env:
GEM_HOST_API_KEY: "${{secrets.RUBYGEMS_AUTH_TOKEN}}"

2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.6.3
3.2.2
6 changes: 2 additions & 4 deletions lib/feedback_hook.rb
Original file line number Diff line number Diff line change
Expand Up @@ -133,17 +133,15 @@ def at_location(symbol, location)
symbol_type, _ = parse_symbol symbol
return '' if symbol_type == 'class'

' ' + I18n.t(:at_location, {
location: localize_symbol(location)
})
' ' + I18n.t(:at_location, location: localize_symbol(location))
end

def localize_symbol(symbol)
symbol_type, name, type = parse_symbol symbol
i18n_key = "symbol_#{symbol_type}"
return "`#{symbol}`" unless I18n.exists? i18n_key

I18n.t(i18n_key, { name: name }) + localize_of_type(type)
I18n.t(i18n_key, name: name) + localize_of_type(type)
end

def localize_of_type(type)
Expand Down
5 changes: 2 additions & 3 deletions mumuki-java-runner.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ Gem::Specification.new do |spec|
spec.add_development_dependency 'rspec', '~> 3.4'
spec.add_development_dependency 'codeclimate-test-reporter'
spec.add_development_dependency 'mumukit-bridge', '~> 3.0'
end



spec.required_ruby_version = '>= 3.0'
end

0 comments on commit 37bc5f0

Please sign in to comment.