From 4730801045c417a6a61cf502542fbf4d7a1b8352 Mon Sep 17 00:00:00 2001 From: Benjamin Quorning Date: Tue, 12 Dec 2023 15:26:33 +0100 Subject: [PATCH 1/2] Upgrade standard It turns out that in lib/ulid/rails/postgresql_type.rb we have been using an endless range for a while now. Since no bug has been reported, I guess we don't have any users running Ruby < 2.6. --- .standard.yml | 2 +- ulid-rails.gemspec | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/.standard.yml b/.standard.yml index cad3bd2..35a6577 100644 --- a/.standard.yml +++ b/.standard.yml @@ -1,4 +1,4 @@ -ruby_version: 2.3 +ruby_version: 2.6 ignore: - 'vendor/**/*' - 'gemfiles/vendor/**/*' diff --git a/ulid-rails.gemspec b/ulid-rails.gemspec index fb33236..5dbd539 100644 --- a/ulid-rails.gemspec +++ b/ulid-rails.gemspec @@ -5,7 +5,7 @@ require "ulid/rails/version" Gem::Specification.new do |spec| spec.name = "ulid-rails" spec.version = ULID::Rails::VERSION - spec.required_ruby_version = ">= 2.5.0" + spec.required_ruby_version = ">= 2.6.0" spec.authors = ["Kazunori Kajihiro", "Zendesk"] spec.email = ["kazunori.kajihiro@gmail.com", "ruby-core@zendesk.com"] @@ -47,5 +47,5 @@ Gem::Specification.new do |spec| spec.add_development_dependency "rake" spec.add_development_dependency "minitest", "~> 5.0" spec.add_development_dependency "rubocop-minitest" - spec.add_development_dependency "standard", "~> 1.16.0" + spec.add_development_dependency "standard", "~> 1.32.0" end From 9b613bd45cedb9efea24c96f69995b1205a15a9d Mon Sep 17 00:00:00 2001 From: Benjamin Quorning Date: Tue, 12 Dec 2023 15:28:11 +0100 Subject: [PATCH 2/2] Release v2.1.0 --- CHANGELOG.md | 4 ++++ lib/ulid/rails/version.rb | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 5d59613..ef7371b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,10 @@ ## Unreleased +## 2.1.0 + +- Make `ULID::Rails::Type::Data.valid_ulid?` more strict in what is accepted as valid and not. + ## 2.0.0 - Ensure compatibility with the Trilogy database adapter. diff --git a/lib/ulid/rails/version.rb b/lib/ulid/rails/version.rb index d5d8982..726ac58 100644 --- a/lib/ulid/rails/version.rb +++ b/lib/ulid/rails/version.rb @@ -1,5 +1,5 @@ module ULID module Rails - VERSION = "2.0.0" + VERSION = "2.1.0" end end