Skip to content

Commit 877c6ae

Browse files
committed
Chore: Test New Ruby Versions
1 parent 9112c47 commit 877c6ae

File tree

16 files changed

+335
-21
lines changed

16 files changed

+335
-21
lines changed

.github/workflows/testing.yml

Lines changed: 39 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ jobs:
1212
runs-on: "ubuntu-latest"
1313

1414
strategy:
15+
fail-fast: false
16+
1517
matrix:
1618
ruby:
1719
- "2.1"
@@ -24,6 +26,8 @@ jobs:
2426
- "3.0"
2527
- "3.1"
2628
- "3.2"
29+
- "3.3"
30+
- "3.4"
2731
- "ruby-head"
2832
include:
2933
- ruby: "2.1"
@@ -32,10 +36,43 @@ jobs:
3236
- ruby: "2.2"
3337
bundler: "1"
3438

39+
- ruby: "2.3"
40+
bundler: "2.2"
41+
42+
- ruby: "2.4"
43+
bundler: "2.2"
44+
45+
- ruby: "2.5"
46+
bundler: "2.2"
47+
48+
- ruby: "2.6"
49+
bundler: "2.4"
50+
51+
- ruby: "2.7"
52+
bundler: "2.4"
53+
54+
- ruby: "3.0"
55+
bundler: "2.4"
56+
57+
- ruby: "3.1"
58+
bundler: "2.4"
59+
60+
- ruby: "3.2"
61+
bundler: "2.7"
62+
63+
- ruby: "3.3"
64+
bundler: "2.7"
65+
66+
- ruby: "3.4"
67+
bundler: "4.0"
68+
69+
- ruby: "ruby-head"
70+
bundler: "4.0"
71+
3572
continue-on-error: ${{ endsWith(matrix.ruby, 'head') }}
3673

3774
env:
38-
BUNDLE_GEMFILE: "./gemfiles/v${{ matrix.bundler || '2' }}/Gemfile"
75+
BUNDLE_GEMFILE: "./gemfiles/v${{ matrix.bundler }}/Gemfile"
3976

4077
steps:
4178
- name: "Checkout Code"
@@ -48,7 +85,7 @@ jobs:
4885
uses: "ruby/setup-ruby@v1"
4986
with:
5087
ruby-version: "${{ matrix.ruby }}"
51-
bundler: "${{ matrix.bundler || 2 }}"
88+
bundler: "${{ matrix.bundler }}"
5289
bundler-cache: true
5390

5491
- name: "Run RSpec"

.ruby-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.7.6
1+
3.4.8

Gemfile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
./gemfiles/v2/Gemfile
1+
./gemfiles/v2.4/Gemfile

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
./gemfiles/v2/Gemfile.lock
1+
./gemfiles/v2.4/Gemfile.lock

gemfiles/v2.3/Gemfile

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
# frozen_string_literal: true
2+
3+
source 'https://rubygems.org'
4+
5+
group :console do
6+
gem 'awesome_print', '~> 1.6'
7+
end
8+
9+
gemspec :name => 'ruby-progressbar'

gemfiles/v2.3/Gemfile.lock

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
PATH
2+
remote: .
3+
specs:
4+
ruby-progressbar (1.13.0)
5+
6+
GEM
7+
remote: https://rubygems.org/
8+
specs:
9+
awesome_print (1.9.2)
10+
diff-lcs (1.6.2)
11+
fuubar (2.5.1)
12+
rspec-core (~> 3.0)
13+
ruby-progressbar (~> 1.4)
14+
rspec (3.13.2)
15+
rspec-core (~> 3.13.0)
16+
rspec-expectations (~> 3.13.0)
17+
rspec-mocks (~> 3.13.0)
18+
rspec-core (3.13.6)
19+
rspec-support (~> 3.13.0)
20+
rspec-expectations (3.13.5)
21+
diff-lcs (>= 1.2.0, < 2.0)
22+
rspec-support (~> 3.13.0)
23+
rspec-mocks (3.13.7)
24+
diff-lcs (>= 1.2.0, < 2.0)
25+
rspec-support (~> 3.13.0)
26+
rspec-support (3.13.6)
27+
rspectacular (0.70.8)
28+
fuubar (~> 2.0)
29+
rspec (~> 3.1)
30+
timecop (0.9.10)
31+
32+
PLATFORMS
33+
x86_64-linux
34+
35+
DEPENDENCIES
36+
awesome_print (~> 1.6)
37+
fuubar (~> 2.3)
38+
rspec (~> 3.7)
39+
rspectacular (~> 0.70.6)
40+
ruby-progressbar!
41+
timecop (~> 0.9)
42+
43+
BUNDLED WITH
44+
2.3.0
Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -7,31 +7,30 @@ GEM
77
remote: https://rubygems.org/
88
specs:
99
awesome_print (1.9.2)
10-
diff-lcs (1.5.0)
10+
diff-lcs (1.6.2)
1111
fuubar (2.5.1)
1212
rspec-core (~> 3.0)
1313
ruby-progressbar (~> 1.4)
14-
rspec (3.12.0)
15-
rspec-core (~> 3.12.0)
16-
rspec-expectations (~> 3.12.0)
17-
rspec-mocks (~> 3.12.0)
18-
rspec-core (3.12.1)
19-
rspec-support (~> 3.12.0)
20-
rspec-expectations (3.12.2)
14+
rspec (3.13.2)
15+
rspec-core (~> 3.13.0)
16+
rspec-expectations (~> 3.13.0)
17+
rspec-mocks (~> 3.13.0)
18+
rspec-core (3.13.6)
19+
rspec-support (~> 3.13.0)
20+
rspec-expectations (3.13.5)
2121
diff-lcs (>= 1.2.0, < 2.0)
22-
rspec-support (~> 3.12.0)
23-
rspec-mocks (3.12.3)
22+
rspec-support (~> 3.13.0)
23+
rspec-mocks (3.13.7)
2424
diff-lcs (>= 1.2.0, < 2.0)
25-
rspec-support (~> 3.12.0)
26-
rspec-support (3.12.0)
25+
rspec-support (~> 3.13.0)
26+
rspec-support (3.13.6)
2727
rspectacular (0.70.8)
2828
fuubar (~> 2.0)
2929
rspec (~> 3.1)
30-
ruby-prof (1.6.1)
31-
timecop (0.9.6)
30+
ruby-prof (1.6.3)
31+
timecop (0.9.10)
3232

3333
PLATFORMS
34-
x86_64-darwin-19
3534
x86_64-linux
3635

3736
DEPENDENCIES
@@ -44,4 +43,4 @@ DEPENDENCIES
4443
timecop (~> 0.9)
4544

4645
BUNDLED WITH
47-
2.3.24
46+
2.4.2
Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
# encoding: utf-8
2+
lib = File.expand_path('../../../lib', __FILE__)
3+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4+
require 'ruby-progressbar/version'
5+
6+
Gem::Specification.new do |spec|
7+
spec.name = 'ruby-progressbar'
8+
spec.version = ProgressBar::VERSION
9+
spec.authors = ['thekompanee', 'jfelchner']
10+
spec.email = ['support@thekompanee.com']
11+
spec.summary = %q{Ruby/ProgressBar is a flexible text progress bar library for Ruby.}
12+
spec.description = %q{Ruby/ProgressBar is an extremely flexible text progress bar library for Ruby. The output can be customized with a flexible formatting system including: percentage, bars of various formats, elapsed time and estimated time remaining.}
13+
spec.homepage = 'https://github.com/jfelchner/ruby-progressbar'
14+
spec.licenses = ['MIT']
15+
16+
spec.cert_chain = ['certs/jfelchner.pem']
17+
spec.signing_key = File.expand_path('~/.gem/certs/jfelchner-private_key.pem') if $0 =~ /gem\z/
18+
19+
spec.executables = []
20+
spec.files = Dir['{app,config,db,lib/ruby-progressbar}/**/*'] + %w{lib/ruby-progressbar.rb Rakefile README.md LICENSE.txt}
21+
22+
spec.metadata = {
23+
'bug_tracker_uri' => 'https://github.com/jfelchner/ruby-progressbar/issues',
24+
'changelog_uri' => 'https://github.com/jfelchner/ruby-progressbar/blob/master/CHANGELOG.md',
25+
'documentation_uri' => "https://github.com/jfelchner/ruby-progressbar/tree/releases/v#{ProgressBar::VERSION}",
26+
'homepage_uri' => 'https://github.com/jfelchner/ruby-progressbar',
27+
'source_code_uri' => 'https://github.com/jfelchner/ruby-progressbar',
28+
'wiki_uri' => 'https://github.com/jfelchner/ruby-progressbar/wiki',
29+
}
30+
31+
spec.add_development_dependency 'rspec', ["~> 3.7"]
32+
spec.add_development_dependency 'rspectacular', ["~> 0.70.6"]
33+
spec.add_development_dependency 'fuubar', ["~> 2.3"]
34+
spec.add_development_dependency 'timecop', ["~> 0.9"]
35+
end

0 commit comments

Comments
 (0)