Skip to content

Commit bf5cc3e

Browse files
committedDec 29, 2024
Prepare a 3.0.0 beta release
1 parent 826dfe8 commit bf5cc3e

File tree

2 files changed

+35
-5
lines changed

2 files changed

+35
-5
lines changed
 

‎lib/jwt/version.rb

+5-5
Original file line numberDiff line numberDiff line change
@@ -12,12 +12,12 @@ def self.gem_version
1212
Gem::Version.new(VERSION::STRING)
1313
end
1414

15-
# @api private
15+
# Version constants
1616
module VERSION
17-
MAJOR = 2
18-
MINOR = 10
19-
TINY = 1
20-
PRE = nil
17+
MAJOR = 3
18+
MINOR = 0
19+
TINY = 0
20+
PRE = 'beta1'
2121

2222
STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
2323
end

‎spec/jwt/version_spec.rb

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
# frozen_string_literal: true
2+
3+
RSpec.describe JWT do
4+
describe '.gem_version' do
5+
it 'returns the gem version' do
6+
expect(described_class.gem_version).to eq(Gem::Version.new(JWT::VERSION::STRING))
7+
end
8+
end
9+
describe 'VERSION constants' do
10+
it 'has a MAJOR version' do
11+
expect(JWT::VERSION::MAJOR).to be_a(Integer)
12+
end
13+
14+
it 'has a MINOR version' do
15+
expect(JWT::VERSION::MINOR).to be_a(Integer)
16+
end
17+
18+
it 'has a TINY version' do
19+
expect(JWT::VERSION::TINY).to be_a(Integer)
20+
end
21+
22+
it 'has a PRE version' do
23+
expect(JWT::VERSION::PRE).to be_a(String).or be_nil
24+
end
25+
26+
it 'has a STRING version' do
27+
expect(JWT::VERSION::STRING).to be_a(String)
28+
end
29+
end
30+
end

0 commit comments

Comments
 (0)