Skip to content

Commit f4b292c

Browse files
tvpartytonightjoshcooper
authored andcommitted
(PA-4725) Updates for ruby 3.2 support
This commit changes the dependencies for ruby 3.2 support. Also in this update are github workflows to release to rubygems, as well as testing on PR and push.
1 parent 97bf52b commit f4b292c

File tree

4 files changed

+56
-16
lines changed

4 files changed

+56
-16
lines changed

.github/workflows/release.yaml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Release
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
8+
jobs:
9+
release:
10+
runs-on: ubuntu-latest
11+
steps:
12+
- uses: actions/checkout@v2
13+
- name: Install Ruby 3.0
14+
uses: ruby/setup-ruby@v1
15+
with:
16+
ruby-version: '3.0'
17+
env:
18+
BUNDLE_WITHOUT: release
19+
- name: Build gem
20+
run: gem build *.gemspec
21+
- name: Publish gem to rubygems.org
22+
run: gem push *.gem
23+
env:
24+
GEM_HOST_API_KEY: '${{ secrets.RUBYGEMS_AUTH_TOKEN }}'

.github/workflows/test.yaml

+29
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,29 @@
1+
name: Test
2+
3+
on:
4+
- pull_request
5+
- push
6+
7+
env:
8+
BUNDLE_WITHOUT: release
9+
10+
jobs:
11+
test:
12+
runs-on: ubuntu-latest
13+
strategy:
14+
fail-fast: false
15+
matrix:
16+
include:
17+
- ruby: "2.5"
18+
- ruby: "3.2.0-preview1"
19+
steps:
20+
- uses: actions/checkout@v2
21+
- name: Install Ruby ${{ matrix.ruby }}
22+
uses: ruby/setup-ruby@v1
23+
with:
24+
ruby-version: ${{ matrix.ruby }}
25+
bundler-cache: true
26+
- name: install dependencies
27+
run: sudo apt install gettext -y
28+
- name: Run tests
29+
run: bundle exec rspec

.travis.yml

-13
This file was deleted.

gettext-setup.gemspec

+3-3
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ Gem::Specification.new do |spec|
1717
spec.test_files = Dir['spec/**/*']
1818
spec.require_paths = ['lib']
1919

20-
spec.required_ruby_version = '>= 1.9.2'
20+
spec.required_ruby_version = '>= 2.5.0'
2121

22-
spec.add_dependency 'fast_gettext', '~> 1.1'
23-
spec.add_dependency 'gettext', ['>= 3.0.2', '< 3.3.0']
22+
spec.add_dependency 'fast_gettext', '~> 2.1'
23+
spec.add_dependency 'gettext', '~> 3.4'
2424
spec.add_dependency 'locale'
2525

2626
spec.add_development_dependency 'bundler'

0 commit comments

Comments
 (0)