From 219b5e05695fbcff34b4f659fe642a8c4a48648e Mon Sep 17 00:00:00 2001 From: Alejandro Aguilera Date: Thu, 27 Nov 2025 14:51:29 -0300 Subject: [PATCH 1/8] update on rails dependency --- CHANGELOG.md | 37 +++++++++++++++++++++++++ has_validated_attributes.gemspec | 2 +- lib/has_validated_attributes/version.rb | 2 +- 3 files changed, 39 insertions(+), 2 deletions(-) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..b089128 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,37 @@ +# TESTHQ + +# Changelog + +All notable changes to this project are documented in this file since Version 4 launched. + +The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.1.0/), +and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). + +### Guiding Principles + +- Changelogs are for humans, not machines. +- There should be an entry for every single version. +- The same types of changes should be grouped. +- Versions and sections should be linkable. +- The latest version comes first. +- The release date of each version is displayed. +- Mention whether you follow Semantic Versioning. + +### Types of changes + +- **Added** for new features. +- **Changed** for changes in existing functionality. +- **Deprecated** for soon-to-be removed features. +- **Removed** for now removed features. +- **Fixed** for any bug fixes. +- **Security** in case of vulnerabilities. + +## [2.0.11] 2025-11-27 + +### Added + +- Main changelog file created. + +### Changed + +- On the gemspec file, allow to be used for Rails versions between 6.0 and 8.1.1. \ No newline at end of file diff --git a/has_validated_attributes.gemspec b/has_validated_attributes.gemspec index 70342ca..701b9d3 100644 --- a/has_validated_attributes.gemspec +++ b/has_validated_attributes.gemspec @@ -29,7 +29,7 @@ Gem::Specification.new do |s| s.add_development_dependency "database_cleaner", "~> 1.7" s.add_development_dependency "has_normalized_attributes", "~> 0.0", ">= 0.0.8" s.add_development_dependency "pg", "~> 1.1" - s.add_development_dependency "rails", "~> 6.1" + s.add_development_dependency "rails", ">= 6.0", "<= 8.1.1" s.add_development_dependency "rspec", "~> 3.8" s.add_development_dependency "rspec_junit_formatter", "~> 0.4" s.add_development_dependency "rspec-rails", ">= 4.0.0beta2", "< 5.0" diff --git a/lib/has_validated_attributes/version.rb b/lib/has_validated_attributes/version.rb index adbed87..c73c1da 100644 --- a/lib/has_validated_attributes/version.rb +++ b/lib/has_validated_attributes/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module HasValidatedAttributes - VERSION = "2.0.10" + VERSION = "2.0.11" end From 63e91582f30e213c806a5f39dfbc81cdbbd67475 Mon Sep 17 00:00:00 2001 From: Alejandro Aguilera Date: Thu, 27 Nov 2025 14:52:03 -0300 Subject: [PATCH 2/8] minor change --- CHANGELOG.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index b089128..03b8d99 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,4 +1,4 @@ -# TESTHQ +# HAS_VALIDATED_ATTRIBUTES # Changelog From 998d09216408589c266eeed6b422f128cc2c0f21 Mon Sep 17 00:00:00 2001 From: Alejandro Aguilera Date: Tue, 2 Dec 2025 17:52:23 -0300 Subject: [PATCH 3/8] version patch --- .ruby-version | 2 +- CHANGELOG.md | 5 +++-- Gemfile | 5 ----- has_validated_attributes.gemspec | 2 +- lib/has_validated_attributes/version.rb | 2 +- 5 files changed, 6 insertions(+), 10 deletions(-) diff --git a/.ruby-version b/.ruby-version index cb2b00e..f989260 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -3.0.1 +3.4.4 diff --git a/CHANGELOG.md b/CHANGELOG.md index 03b8d99..b248951 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -26,7 +26,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - **Fixed** for any bug fixes. - **Security** in case of vulnerabilities. -## [2.0.11] 2025-11-27 +## [5.0.0] 2025-12-01 ### Added @@ -34,4 +34,5 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 ### Changed -- On the gemspec file, allow to be used for Rails versions between 6.0 and 8.1.1. \ No newline at end of file +- Ruby version upgraded to 3.4.4 +- In the gemspec file, allow to be used for Rails versions between 6.0 and 8.1.1. \ No newline at end of file diff --git a/Gemfile b/Gemfile index a0cf223..a863ed2 100644 --- a/Gemfile +++ b/Gemfile @@ -4,10 +4,5 @@ source "https://rubygems.org" source "https://vLEyAxzPMpJK8itRTFw6@gem.fury.io/onehq/" - -source "https://vLEyAxzPMpJK8itRTFw6@gem.fury.io/onehq/" do - gem "testhq" -end - # Specify your gem's dependencies in send_grid.gemspec gemspec diff --git a/has_validated_attributes.gemspec b/has_validated_attributes.gemspec index 701b9d3..0887a3e 100644 --- a/has_validated_attributes.gemspec +++ b/has_validated_attributes.gemspec @@ -38,5 +38,5 @@ Gem::Specification.new do |s| s.add_development_dependency "sprockets", "~> 3.0" # test - s.add_development_dependency "testhq", "~> 2.0" + s.add_development_dependency "testhq", "~> 5.0.0.pre.beta.1" end diff --git a/lib/has_validated_attributes/version.rb b/lib/has_validated_attributes/version.rb index c73c1da..a9283f9 100644 --- a/lib/has_validated_attributes/version.rb +++ b/lib/has_validated_attributes/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module HasValidatedAttributes - VERSION = "2.0.11" + VERSION = "5.0.0" end From a026d35f0925a9f88dfd6701903ddb98e9aa6907 Mon Sep 17 00:00:00 2001 From: Alejandro Aguilera Date: Tue, 2 Dec 2025 17:54:09 -0300 Subject: [PATCH 4/8] version patch pt2 --- lib/has_validated_attributes/version.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/has_validated_attributes/version.rb b/lib/has_validated_attributes/version.rb index a9283f9..de9c322 100644 --- a/lib/has_validated_attributes/version.rb +++ b/lib/has_validated_attributes/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module HasValidatedAttributes - VERSION = "5.0.0" + VERSION = "5.0.0-beta.1" end From 38c213a3eeb618050f56b50f0b00fc02a0c52ff6 Mon Sep 17 00:00:00 2001 From: Alejandro Aguilera Date: Wed, 7 Jan 2026 19:58:42 -0300 Subject: [PATCH 5/8] beta.2 --- .rubocop-https---onehq-com-rubocop3-yml | 229 ---------------------- .rubocop.yml | 2 +- .tool-versions | 2 +- Gemfile | 4 +- has_validated_attributes.gemspec | 22 +-- lib/has_validated_attributes.rb | 1 - lib/has_validated_attributes/rspec.rb | 15 +- lib/has_validated_attributes/version.rb | 2 +- spec/lib/has_validated_attributes_spec.rb | 14 +- 9 files changed, 28 insertions(+), 263 deletions(-) delete mode 100644 .rubocop-https---onehq-com-rubocop3-yml diff --git a/.rubocop-https---onehq-com-rubocop3-yml b/.rubocop-https---onehq-com-rubocop3-yml deleted file mode 100644 index aa6013f..0000000 --- a/.rubocop-https---onehq-com-rubocop3-yml +++ /dev/null @@ -1,229 +0,0 @@ -require: - - rubocop-performance - - rubocop-rails - -AllCops: - TargetRubyVersion: 3.0 - DisabledByDefault: true - NewCops: disable - Exclude: - - "**/node_modules/**/*" - - "**/spec/**/*" - - "**/templates/**/*" - - "**/vendor/**/*" - -Bundler: - Enabled: true - -Gemspec: - Enabled: true - -Lint: - Enabled: true - -Naming: - Enabled: true - -Rails: - Enabled: true - -Performance: - Enabled: true - -Security: - Enabled: true - -Layout/CaseIndentation: - Enabled: true - -# Align comments with method definitions. -Layout/CommentIndentation: - Enabled: true - -Layout/DotPosition: - Enabled: true - EnforcedStyle: trailing - -Layout/ElseAlignment: - Enabled: true - -# Align `end` with the matching keyword or starting expression except for -# assignments, where it should be aligned with the LHS. -Layout/EndAlignment: - Enabled: true - EnforcedStyleAlignWith: variable - AutoCorrect: true - -Layout/EmptyLineAfterMagicComment: - Enabled: true - -Layout/EmptyLinesAroundBlockBody: - Enabled: true - -# In a regular class definition, no empty lines around the body. -Layout/EmptyLinesAroundClassBody: - Enabled: true - -# In a regular method definition, no empty lines around the body. -Layout/EmptyLinesAroundMethodBody: - Enabled: true - -# In a regular module definition, no empty lines around the body. -Layout/EmptyLinesAroundModuleBody: - Enabled: true - -Layout/FirstArgumentIndentation: - Enabled: true - -Layout/IndentationConsistency: - Enabled: true - -# Two spaces, no tabs (for indentation). -Layout/IndentationWidth: - Enabled: true - -Layout/LeadingCommentSpace: - Enabled: true - -Layout/SpaceAfterColon: - Enabled: true - -Layout/SpaceAfterComma: - Enabled: true - -Layout/SpaceAfterSemicolon: - Enabled: true - -Layout/SpaceAroundEqualsInParameterDefault: - Enabled: true - -Layout/SpaceAroundKeyword: - Enabled: true - -Layout/SpaceAroundOperators: - Enabled: true - -Layout/SpaceBeforeComma: - Enabled: true - -Layout/SpaceBeforeComment: - Enabled: true - -Layout/SpaceBeforeFirstArg: - Enabled: true - -# Use `foo {}` not `foo{}`. -Layout/SpaceBeforeBlockBraces: - Enabled: true - -# Use `foo { bar }` not `foo {bar}`. -Layout/SpaceInsideBlockBraces: - Enabled: true - EnforcedStyleForEmptyBraces: space - -# Use `{ a: 1 }` not `{a:1}`. -Layout/SpaceInsideHashLiteralBraces: - Enabled: true - -Layout/SpaceInsideParens: - Enabled: true - -# Detect hard tabs, no hard tabs. -Layout/IndentationStyle: - Enabled: true - -# Blank lines should not have any spaces. -Layout/TrailingEmptyLines: - Enabled: true - -# No trailing whitespace. -Layout/TrailingWhitespace: - Enabled: true - -Naming/PredicateName: - Enabled: false - -Naming/MethodParameterName: - Enabled: false - -Performance/RedundantBlockCall: - Enabled: false - -Rails/ApplicationController: - Enabled: false - -Rails/ApplicationMailer: - Enabled: false - -Rails/ApplicationRecord: - Enabled: false - -Rails/Date: - Enabled: false - -Rails/LexicallyScopedActionFilter: - Enabled: false - -Rails/Output: - Enabled: false - -Rails/RakeEnvironment: - Enabled: false - -Rails/SkipsModelValidations: - Enabled: true - AllowedMethods: [update_all] - -# Prefer &&/|| over and/or. -Style/AndOr: - Enabled: true - -# Prefer Foo.method over Foo::method -Style/ColonMethodCall: - Enabled: true - -Style/DefWithParentheses: - Enabled: true - -Style/BlockDelimiters: - Enabled: true - -Style/FrozenStringLiteralComment: - Enabled: true - EnforcedStyle: always - -# Use Ruby >= 1.9 syntax for hashes. Prefer { a: :b } over { :a => :b }. -Style/HashSyntax: - Enabled: true - -# Defining a method with parameters needs parentheses. -Style/MethodDefParentheses: - Enabled: true - -Style/ParenthesesAroundCondition: - Enabled: true - -Style/RedundantBegin: - Enabled: true - -Style/RedundantFreeze: - Enabled: true - -# Use quotes for string literals when they are enough. -Style/RedundantPercentQ: - Enabled: true - -Style/RedundantReturn: - Enabled: true - AllowMultipleReturnValues: true - -Style/Semicolon: - Enabled: true - AllowAsExpressionSeparator: true - -Style/StringLiterals: - Enabled: true - EnforcedStyle: double_quotes - -Style/TrivialAccessors: - Enabled: true diff --git a/.rubocop.yml b/.rubocop.yml index ae750af..45289df 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -1,2 +1,2 @@ inherit_from: - - https://onehq.com/rubocop3.yml \ No newline at end of file + - https://onehq.com/rubocop3_4.yml \ No newline at end of file diff --git a/.tool-versions b/.tool-versions index 7f44804..ca745c6 100644 --- a/.tool-versions +++ b/.tool-versions @@ -1 +1 @@ -ruby 2.6.3 +ruby 3.4.4 diff --git a/Gemfile b/Gemfile index a863ed2..c13ece6 100644 --- a/Gemfile +++ b/Gemfile @@ -2,7 +2,9 @@ # frozen_string_literal: true source "https://rubygems.org" -source "https://vLEyAxzPMpJK8itRTFw6@gem.fury.io/onehq/" +source "https://vLEyAxzPMpJK8itRTFw6@gem.fury.io/onehq/" do + gem "has_normalized_attributes" +end # Specify your gem's dependencies in send_grid.gemspec gemspec diff --git a/has_validated_attributes.gemspec b/has_validated_attributes.gemspec index 0887a3e..4b352fb 100644 --- a/has_validated_attributes.gemspec +++ b/has_validated_attributes.gemspec @@ -9,7 +9,7 @@ require "has_validated_attributes/version" Gem::Specification.new do |s| s.name = "has_validated_attributes" s.version = HasValidatedAttributes::VERSION - s.required_ruby_version = ">= 3.0.0" + s.required_ruby_version = ">= 3.4" s.authors = ["Kyle Ginavan"] s.date = "2010-05-18" s.description = "has_validated_attributes is a Ruby on Rails gem that lets you validate your fields." @@ -22,21 +22,15 @@ Gem::Specification.new do |s| s.require_paths = ["lib"] s.rubygems_version = "1.5.2" s.summary = "Ruby on Rails gem for validate data prior to save" - # s.rubyforge_project = "has_validated_attributes" - s.add_development_dependency "byebug", "~> 11.0" - s.add_development_dependency "combustion", "~> 1.1" - s.add_development_dependency "database_cleaner", "~> 1.7" - s.add_development_dependency "has_normalized_attributes", "~> 0.0", ">= 0.0.8" - s.add_development_dependency "pg", "~> 1.1" s.add_development_dependency "rails", ">= 6.0", "<= 8.1.1" - s.add_development_dependency "rspec", "~> 3.8" - s.add_development_dependency "rspec_junit_formatter", "~> 0.4" - s.add_development_dependency "rspec-rails", ">= 4.0.0beta2", "< 5.0" - s.add_development_dependency "shoulda-matchers", "~> 4.1" - s.add_development_dependency "simplecov", "~> 0.17" + + s.add_development_dependency "byebug", "~> 12.0" + s.add_development_dependency "pg", "~> 1.1" s.add_development_dependency "sprockets", "~> 3.0" - # test - s.add_development_dependency "testhq", "~> 5.0.0.pre.beta.1" + # hq + s.add_development_dependency "has_normalized_attributes", "~> 5.0.0.pre.beta.2" + + s.add_development_dependency "testhq", "~> 5.0.0.pre.beta.3" end diff --git a/lib/has_validated_attributes.rb b/lib/has_validated_attributes.rb index 76f6773..84c4000 100644 --- a/lib/has_validated_attributes.rb +++ b/lib/has_validated_attributes.rb @@ -1,7 +1,6 @@ # encoding: utf-8 # frozen_string_literal: true - require "active_record" module HasValidatedAttributes diff --git a/lib/has_validated_attributes/rspec.rb b/lib/has_validated_attributes/rspec.rb index 0f76bef..27057c6 100644 --- a/lib/has_validated_attributes/rspec.rb +++ b/lib/has_validated_attributes/rspec.rb @@ -8,7 +8,7 @@ #{ e.path } is not loaded but is required when loading "has_validated_attributes/rspec"! Do you need to `gem install #{ e.path }`? -ERROR_MSG + ERROR_MSG end Dir[Rails.root.join("spec/support/*.rb")].sort.each { |f| require f } @@ -48,14 +48,14 @@ def method_missing(name, *args, &block) ]. select { |str| str.length <= length }. each do |str| - it { should allow_value(str).for(attr) } - end + it { should allow_value(str).for(attr) } + end ["\e1B", "\cF", "Hello\nWorld", "\eHey", "Oh\cFNo, it's a control char!"]. select { |str| str.length <= length }. each do |str| - it { should_not allow_value(str).for(attr).with_message(HasValidatedAttributes.name_format[:format][:message].call(nil, attribute: attr.to_s.humanize)) } - end + it { should_not allow_value(str).for(attr).with_message(HasValidatedAttributes.name_format[:format][:message].call(nil, attribute: attr.to_s.humanize)) } + end end RSpec.shared_examples_for "username attribute" do |attr| @@ -204,7 +204,6 @@ def method_missing(name, *args, &block) it { should allow_value(value).for(attr) } end - ["111", "-1", "abc", "&"].each do |value| it { should_not allow_value(value).for(attr).with_message(HasValidatedAttributes.age_format[:numericality][:message]) } end @@ -235,7 +234,7 @@ def method_missing(name, *args, &block) [ "1,000,00", "$1,000.00", "1,000,000", "1 000 000.01", - "-1,000,00", "-$1,000.00", "-1,000,000", "-1 000 000.01" # has_normalized_attributes may be used in concert with has_validated_attributes to cover these cases. + "-1,000,00", "-$1,000.00", "-1,000,000", "-1 000 000.01" # has_normalized_attributes may be used in concert with has_validated_attributes to cover these cases. ].each do |value| it { send(normalized ? :should : :should_not, allow_value(value).for(attr)) } end @@ -251,7 +250,7 @@ def method_missing(name, *args, &block) end [ - "1,000,00", "1,000.00", "1,000,000", "1 000 000", # has_normalized_attributes may be used in concert with has_validated_attributes to cover these cases. + "1,000,00", "1,000.00", "1,000,000", "1 000 000", # has_normalized_attributes may be used in concert with has_validated_attributes to cover these cases. ].each do |value| it { send(normalized ? :should : :should_not, allow_value(value).for(attr).with_message(HasValidatedAttributes.number_format[:numericality][:message])) } end diff --git a/lib/has_validated_attributes/version.rb b/lib/has_validated_attributes/version.rb index de9c322..84cb748 100644 --- a/lib/has_validated_attributes/version.rb +++ b/lib/has_validated_attributes/version.rb @@ -1,5 +1,5 @@ # frozen_string_literal: true module HasValidatedAttributes - VERSION = "5.0.0-beta.1" + VERSION = "5.0.0-beta.2" end diff --git a/spec/lib/has_validated_attributes_spec.rb b/spec/lib/has_validated_attributes_spec.rb index eaecc53..a893443 100644 --- a/spec/lib/has_validated_attributes_spec.rb +++ b/spec/lib/has_validated_attributes_spec.rb @@ -90,7 +90,7 @@ class NormalizedResource < Resource it { subject.email_attr = "NotAnEmail"; expect(subject).to be_invalid } it { subject.email_attr = "@NotAnEmail"; expect(subject).to be_invalid } # it { subject.email_attr = """test\\blah""@example.com"; expect(subject).to be_valid } - it { subject.email_attr = """test\blah""@example.com"; expect(subject).to be_invalid } + it { subject.email_attr = "" "test\blah" "@example.com"; expect(subject).to be_invalid } it { subject.email_attr = "\"test\\\rblah\"@example.com"; expect(subject).to be_valid } it { subject.email_attr = "\"test\rblah\"@example.com"; expect(subject).to be_invalid } # it { subject.email_attr = """test\""blah""@example.com"; expect(subject).to be_valid }, true @@ -106,7 +106,7 @@ class NormalizedResource < Resource it { subject.email_attr = ".@example.com"; expect(subject).to be_invalid } # it { subject.email_attr = """Austin@Powers""@example.com"; expect(subject).to be_valid } it { subject.email_attr = "Ima.Fool@example.com"; expect(subject).to be_valid } - it { subject.email_attr = """Ima.Fool""@example.com"; expect(subject).to be_valid } + it { subject.email_attr = "" "Ima.Fool" "@example.com"; expect(subject).to be_valid } # it { subject.email_attr = """Ima Fool""@example.com"; expect(subject).to be_valid } it { subject.email_attr = "Ima Fool@example.com"; expect(subject).to be_invalid } it { subject.email_attr = "test@q.com"; expect(subject).to be_valid } @@ -129,10 +129,10 @@ class NormalizedResource < Resource describe "#username" do before(:each) do @resource = Resource.create(username_attr: "testusername", name_attr: "testname", email_attr: "test@example.com", - phone_number_attr: "1111111111", phone_extension_attr: "111111", domain_attr: "www.test.com", zipcode_attr: "11111", - middle_initial_attr: "A", dollar_attr: "-11", positive_dollar_attr: "1", percent_attr: "-12", - positive_percent_attr: "99", url_attr: "http://www.google.com", ssn_attr: "111111111", taxid_attr: "111111111", - comparative_percent_attr: "-250", positive_comparative_percent_attr: "250", number_attr: "1") + phone_number_attr: "1111111111", phone_extension_attr: "111111", domain_attr: "www.test.com", zipcode_attr: "11111", + middle_initial_attr: "A", dollar_attr: "-11", positive_dollar_attr: "1", percent_attr: "-12", + positive_percent_attr: "99", url_attr: "http://www.google.com", ssn_attr: "111111111", taxid_attr: "111111111", + comparative_percent_attr: "-250", positive_comparative_percent_attr: "250", number_attr: "1") end it "with invalid usernames" do @@ -147,7 +147,7 @@ class NormalizedResource < Resource end it "with valid usernames" do - ["testuser","user_name","user.name","user-name","user+tag","user+tag@domain","user_123","john.doe-99"].each do |value| + ["testuser", "user_name", "user.name", "user-name", "user+tag", "user+tag@domain", "user_123", "john.doe-99"].each do |value| @resource.username_attr = value expect(@resource.valid?).to be_truthy From 60648551b0ab0ea6517709bf45321df0db68c80e Mon Sep 17 00:00:00 2001 From: Alejandro Aguilera Date: Wed, 7 Jan 2026 20:06:41 -0300 Subject: [PATCH 6/8] ostruct gem --- Gemfile | 1 + has_validated_attributes.gemspec | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Gemfile b/Gemfile index c13ece6..a751aa0 100644 --- a/Gemfile +++ b/Gemfile @@ -4,6 +4,7 @@ source "https://rubygems.org" source "https://vLEyAxzPMpJK8itRTFw6@gem.fury.io/onehq/" do gem "has_normalized_attributes" + gem "testhq" end # Specify your gem's dependencies in send_grid.gemspec diff --git a/has_validated_attributes.gemspec b/has_validated_attributes.gemspec index 4b352fb..ff66ec6 100644 --- a/has_validated_attributes.gemspec +++ b/has_validated_attributes.gemspec @@ -25,7 +25,7 @@ Gem::Specification.new do |s| s.add_development_dependency "rails", ">= 6.0", "<= 8.1.1" - s.add_development_dependency "byebug", "~> 12.0" + s.add_development_dependency "ostruct", "~> 0.6" s.add_development_dependency "pg", "~> 1.1" s.add_development_dependency "sprockets", "~> 3.0" From 56bbd96ca8d9bbaae97868d807e480fda6b484a2 Mon Sep 17 00:00:00 2001 From: Alejandro Aguilera Date: Wed, 7 Jan 2026 20:08:32 -0300 Subject: [PATCH 7/8] gem fix --- has_validated_attributes.gemspec | 1 - 1 file changed, 1 deletion(-) diff --git a/has_validated_attributes.gemspec b/has_validated_attributes.gemspec index ff66ec6..f924af5 100644 --- a/has_validated_attributes.gemspec +++ b/has_validated_attributes.gemspec @@ -20,7 +20,6 @@ Gem::Specification.new do |s| s.executables = `git ls-files -- bin/*`.split("\n").map { |f| File.basename(f) } s.homepage = "https://github.com/kylejginavan/has_validated_attributes" s.require_paths = ["lib"] - s.rubygems_version = "1.5.2" s.summary = "Ruby on Rails gem for validate data prior to save" s.add_development_dependency "rails", ">= 6.0", "<= 8.1.1" From 885176e3572315c271d27edc557af1bc87e1d24f Mon Sep 17 00:00:00 2001 From: Alejandro Aguilera Date: Mon, 26 Jan 2026 11:29:56 -0300 Subject: [PATCH 8/8] rails scope fix --- has_validated_attributes.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/has_validated_attributes.gemspec b/has_validated_attributes.gemspec index f924af5..f2ac4d7 100644 --- a/has_validated_attributes.gemspec +++ b/has_validated_attributes.gemspec @@ -22,7 +22,7 @@ Gem::Specification.new do |s| s.require_paths = ["lib"] s.summary = "Ruby on Rails gem for validate data prior to save" - s.add_development_dependency "rails", ">= 6.0", "<= 8.1.1" + s.add_development_dependency "rails", ">= 6.0", "<= 7.2.3" s.add_development_dependency "ostruct", "~> 0.6" s.add_development_dependency "pg", "~> 1.1"