Skip to content

Commit

Permalink
Prepare a 3.0.0 beta release
Browse files Browse the repository at this point in the history
  • Loading branch information
anakinj committed Dec 29, 2024
1 parent 826dfe8 commit 3a73398
Show file tree
Hide file tree
Showing 2 changed files with 35 additions and 5 deletions.
10 changes: 5 additions & 5 deletions lib/jwt/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ def self.gem_version
Gem::Version.new(VERSION::STRING)
end

# @api private
# Version constants
module VERSION
MAJOR = 2
MINOR = 10
TINY = 1
PRE = nil
MAJOR = 3
MINOR = 0
TINY = 0
PRE = 'beta1'

STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
end
Expand Down
30 changes: 30 additions & 0 deletions spec/jwt/version_spec.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# frozen_string_literal: true

RSpec.describe JWT do
describe '.gem_version' do
it 'returns the gem version' do
expect(described_class.gem_version).to eq(Gem::Version.new(JWT::VERSION::STRING))
end
end
describe 'VERSION constants' do
it 'has a MAJOR version' do
expect(JWT::VERSION::MAJOR).to be_a(Integer)
end

it 'has a MINOR version' do
expect(JWT::VERSION::MINOR).to be_a(Integer)
end

it 'has a TINY version' do
expect(JWT::VERSION::TINY).to be_a(Integer)
end

it 'has a PRE version' do
expect(JWT::VERSION::PRE).to be_a(String).or be_nil
end

it 'has a STRING version' do
expect(JWT::VERSION::STRING).to be_a(String)
end
end
end

0 comments on commit 3a73398

Please sign in to comment.