From 79d3f78d50830b56757afc5f671f5958b6aff400 Mon Sep 17 00:00:00 2001 From: Vlad Pisanov Date: Sun, 22 Sep 2024 07:20:07 -0400 Subject: [PATCH] Always load version.rb, suppress legacy deprecation warning --- contracts.gemspec | 4 ---- lib/contracts.rb | 1 + 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/contracts.gemspec b/contracts.gemspec index 8ac2f85..320e8d7 100644 --- a/contracts.gemspec +++ b/contracts.gemspec @@ -13,8 +13,4 @@ Gem::Specification.new do |s| s.homepage = "https://github.com/egonSchiele/contracts.ruby" s.license = "BSD-2-Clause" s.required_ruby_version = [">= 3.0", "< 4"] - s.post_install_message = " - 0.16.x will be the supporting Ruby 2.x and be feature frozen (only fixes will be released) - For Ruby 3.x use 0.17.x or later - " end diff --git a/lib/contracts.rb b/lib/contracts.rb index e8bab85..7a9d9eb 100644 --- a/lib/contracts.rb +++ b/lib/contracts.rb @@ -1,5 +1,6 @@ # frozen_string_literal: true +require "contracts/version" require "contracts/attrs" require "contracts/builtin_contracts" require "contracts/decorators"