File tree 2 files changed +8
-4
lines changed
2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -13,8 +13,11 @@ Gem::Specification.new do |s|
13
13
s . homepage = "https://github.com/egonSchiele/contracts.ruby"
14
14
s . license = "BSD-2-Clause"
15
15
s . required_ruby_version = [ ">= 3.0" , "< 4" ]
16
- s . post_install_message = "
17
- 0.16.x will be the supporting Ruby 2.x and be feature frozen (only fixes will be released)
18
- For Ruby 3.x use 0.17.x or later
19
- "
16
+
17
+ if Contracts ::VERSION < "0.17"
18
+ s . post_install_message = "
19
+ 0.16.x will be the supporting Ruby 2.x and be feature frozen (only fixes will be released)
20
+ For Ruby 3.x use 0.17.x or later
21
+ "
22
+ end
20
23
end
Original file line number Diff line number Diff line change 1
1
# frozen_string_literal: true
2
2
3
+ require "contracts/version"
3
4
require "contracts/attrs"
4
5
require "contracts/builtin_contracts"
5
6
require "contracts/decorators"
You can’t perform that action at this time.
0 commit comments