Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bump sequel from 5.88.0 to 5.89.0 #719

Merged
merged 1 commit into from
Feb 9, 2025
Merged

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Feb 3, 2025

Bumps sequel from 5.88.0 to 5.89.0.

Changelog

Sourced from sequel's changelog.

=== 5.89.0 (2025-02-01)

  • Make connection_validator extension handle case where Database#valid_connection? raises an exception (jeremyevans)

  • Support :compare_connections_by_identity Database option to work around bugs in other libraries or the ruby implementation (jeremyevans)

  • Make mysql2 adapter handle invalid statement handles when closing prepared statements (jeremyevans)

  • Add query_blocker extension, for blocking queries inside a block (jeremyevans)

  • Support alter_table add_primary_key/add_unique_constraint :using_index option on PostgreSQL 9.1+ (jeremyevans)

  • Add temporary names for internally defined anonymous classes and modules on Ruby 3.3+ (jeremyevans)

Commits
  • 89c5d9b Bump version to 5.89.0
  • f08ec65 Unconditionally require fiber in query_blocker extension
  • b8e4e2a Make connection_validator extension handle case where Database#valid_connecti...
  • a961fcd Have Database#valid_connection? if queries are currently blocked
  • 3ced0c2 Refactor PostgreSQL constraint_definition_sql for full coverage
  • d24c145 Support :avoid_connection_compare_by_identity Database option to work around ...
  • 2a74e38 Support Database#allow_queries in the query_blocker extension
  • 5502c60 Fix confusing 'also' in server_block doc
  • 7787520 Make mysql2 adapter handle invalid statement handles when closing prepared st...
  • f9b3a74 Add query_blocker extension, for blocking queries inside a block
  • Additional commits viewable in compare view

Dependabot compatibility score

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot merge will merge this PR after your CI passes on it
  • @dependabot squash and merge will squash and merge this PR after your CI passes on it
  • @dependabot cancel merge will cancel a previously requested merge and block automerging
  • @dependabot reopen will reopen this PR if it is closed
  • @dependabot close will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore this major version will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this minor version will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)
  • @dependabot ignore this dependency will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)

@dependabot dependabot bot added dependencies ruby Pull requests that update Ruby code labels Feb 3, 2025
Copy link

github-actions bot commented Feb 3, 2025

Copy link

github-actions bot commented Feb 3, 2025

gem compare sequel 5.88.0 5.89.0

Compared versions: ["5.88.0", "5.89.0"]
  DIFFERENT date:
    5.88.0: 2025-01-01 00:00:00 UTC
    5.89.0: 2025-02-01 00:00:00 UTC
  DIFFERENT version:
    5.88.0: 5.88.0
    5.89.0: 5.89.0
  DIFFERENT files:
    5.88.0->5.89.0:
      * Added:
            lib/sequel/extensions/query_blocker.rb +172/-0
      * Changed:
            lib/sequel/adapters/ibmdb.rb +1/-0
            lib/sequel/adapters/mysql2.rb +8/-1
            lib/sequel/adapters/shared/access.rb +1/-0
            lib/sequel/adapters/shared/mssql.rb +1/-0
            lib/sequel/adapters/shared/oracle.rb +1/-0
            lib/sequel/adapters/shared/postgres.rb +15/-4
            lib/sequel/core.rb +15/-0
            lib/sequel/database/dataset_defaults.rb +3/-3
            lib/sequel/database/misc.rb +5/-1
            lib/sequel/database/schema_generator.rb +8/-0
            lib/sequel/dataset/deprecated_singleton_class_methods.rb +1/-1
            lib/sequel/dataset/prepared_statements.rb +2/-1
            lib/sequel/dataset/query.rb +2/-2
            lib/sequel/extensions/connection_validator.rb +15/-10
            lib/sequel/extensions/pg_row.rb +3/-1
            lib/sequel/extensions/virtual_row_method_block.rb +1/-0
            lib/sequel/model/base.rb +3/-3
            lib/sequel/plugins/composition.rb +1/-1
            lib/sequel/plugins/enum.rb +1/-1
            lib/sequel/plugins/inverted_subsets.rb +1/-0
            lib/sequel/plugins/lazy_attributes.rb +1/-1
            lib/sequel/plugins/nested_attributes.rb +1/-1
            lib/sequel/plugins/rcte_tree.rb +1/-1
            lib/sequel/plugins/serialization.rb +1/-1
            lib/sequel/plugins/sql_comments.rb +1/-1
            lib/sequel/plugins/subset_conditions.rb +1/-0
            lib/sequel/plugins/subset_static_cache.rb +1/-1
            lib/sequel/sql.rb +1/-0
            lib/sequel/version.rb +1/-1

Copy link

github-actions bot commented Feb 3, 2025

gem compare --diff sequel 5.88.0 5.89.0

Compared versions: ["5.88.0", "5.89.0"]
  DIFFERENT files:
    5.88.0->5.89.0:
      * Added:
        lib/sequel/extensions/query_blocker.rb
                --- /tmp/20250203-3225-d67erk	2025-02-03 03:09:53.082975311 +0000
                +++ /tmp/d20250203-3225-ulq6jb/sequel-5.89.0/lib/sequel/extensions/query_blocker.rb	2025-02-03 03:09:53.058974897 +0000
                @@ -0,0 +1,172 @@
                +# frozen-string-literal: true
                +#
                +# The query_blocker extension adds Database#block_queries.
                +# Inside the block passed to #block_queries, any attempts to
                +# execute a query/statement on the database will raise a
                +# Sequel::QueryBlocker::BlockedQuery exception.
                +#
                +#   DB.extension :query_blocker
                +#   DB.block_queries do
                +#     ds = DB[:table]          # No exception
                +#     ds = ds.where(column: 1) # No exception
                +#     ds.all                   # Exception raised
                +#   end
                +#
                +# To handle concurrency, you can pass a :scope option:
                +#
                +#   # Current Thread
                +#   DB.block_queries(scope: :thread){}
                +#
                +#   # Current Fiber
                +#   DB.block_queries(scope: :fiber){}
                +#
                +#   # Specific Thread
                +#   DB.block_queries(scope: Thread.current){}
                +#
                +#   # Specific Fiber
                +#   DB.block_queries(scope: Fiber.current){}
                +#
                +# Database#block_queries is useful for blocking queries inside
                +# the block.  However, there may be cases where you want to
                +# allow queries in specific places inside a block_queries block.
                +# You can use Database#allow_queries for that:
                +#
                +#   DB.block_queries do
                +#     DB.allow_queries do
                +#       DB[:table].all           # Query allowed
                +#     end
                +#
                +#     DB[:table].all           # Exception raised
                +#   end
                +#
                +# When mixing block_queries and allow_queries with scopes, the
                +# narrowest scope has priority.  So if you are blocking with
                +# :thread scope, and allowing with :fiber scope, queries in the
                +# current fiber will be allowed, but queries in different fibers of
                +# the current thread will be blocked.
                +#
                +# Note that this should catch all queries executed through the
                +# Database instance.  Whether it catches queries executed directly
                +# on a connection object depends on the adapter in use.
                +#
                +# Related module: Sequel::QueryBlocker
                +
                +require "fiber"
                +
                +#
                +module Sequel
                +  module QueryBlocker
                +    # Exception class raised if there is an attempt to execute a 
                +    # query/statement on the database inside a block passed to
                +    # block_queries.
                +    class BlockedQuery < Sequel::Error
                +    end
                +
                +    def self.extended(db)
                +      db.instance_exec do
                +        @blocked_query_scopes ||= {}
                +      end
                +    end
                +
                +    # If checking a connection for validity, and a BlockedQuery exception is
                +    # raised, treat it as a valid connection.  You cannot check whether the
                +    # connection is valid without issuing a query, and if queries are blocked,
                +    # you need to assume it is valid or assume it is not.  Since it most cases
                +    # it will be valid, this assumes validity.
                +    def valid_connection?(conn)
                +      super
                +    rescue BlockedQuery
                +      true
                +    end
                +
                +    # Check whether queries are blocked before executing them.
                +    def log_connection_yield(sql, conn, args=nil)
                +      # All database adapters should be calling this method around
                +      # query execution (otherwise the queries would not get logged),
                +      # ensuring the blocking is checked.  Any database adapter issuing
                +      # a query without calling this method is considered buggy.
                +      check_blocked_queries!
                +      super
                +    end
                +
                +    # Whether queries are currently blocked.
                +    def block_queries?
                +      b = @blocked_query_scopes
                +      b.fetch(Fiber.current) do
                +        b.fetch(Thread.current) do
                +          b.fetch(:global, false)
                +        end
                +      end
                +    end
                +
                +    # Allow queries inside the block.  Only useful if they are already blocked
                +    # for the same scope. Useful for blocking queries generally, and only allowing
                +    # them in specific places.  Takes the same :scope option as #block_queries.
                +    def allow_queries(opts=OPTS, &block)
                +      _allow_or_block_queries(false, opts, &block)
                +    end
                +
                +    # Reject (raise an BlockedQuery exception) if there is an attempt to execute
                +    # a query/statement inside the block.
                +    #
                +    # The :scope option indicates which queries are rejected inside the block:
                +    #
                +    # :global :: This is the default, and rejects all queries.
                +    # :thread :: Reject all queries in the current thread.
                +    # :fiber :: Reject all queries in the current fiber.
                +    # Thread :: Reject all queries in the given thread.
                +    # Fiber :: Reject all queries in the given fiber.
                +    def block_queries(opts=OPTS, &block)
                +      _allow_or_block_queries(true, opts, &block)
                +    end
                +    
                +    private
                +
                +    # Internals of block_queries and allow_queries.
                +    def _allow_or_block_queries(value, opts)
                +      scope = query_blocker_scope(opts)
                +      prev_value = nil
                +      scopes = @blocked_query_scopes
                +
                +      begin
                +        Sequel.synchronize do
                +          prev_value = scopes[scope]
                +          scopes[scope] = value
                +        end
                +
                +        yield
                +      ensure
                +        Sequel.synchronize do
                +          if prev_value.nil?
                +            scopes.delete(scope)
                +          else
                +            scopes[scope] = prev_value
                +          end
                +        end
                +      end
                +    end
                +
                +    # The scope for the query block, either :global, or a Thread or Fiber instance.
                +    def query_blocker_scope(opts)
                +      case scope = opts[:scope]
                +      when nil
                +        :global
                +      when :global, Thread, Fiber
                +        scope
                +      when :thread
                +        Thread.current
                +      when :fiber
                +        Fiber.current
                +      else
                +        raise Sequel::Error, "invalid scope given to block_queries: #{scope.inspect}"
                +      end
                +    end
                +
                +    # Raise a BlockQuery exception if queries are currently blocked.
                +    def check_blocked_queries!
                +      raise BlockedQuery, "cannot execute query inside a block_queries block" if block_queries?
                +    end
                +  end
                +
                +  Database.register_extension(:query_blocker, QueryBlocker)
                +end
      * Changed:
        lib/sequel/adapters/ibmdb.rb
                --- /tmp/d20250203-3225-ulq6jb/sequel-5.88.0/lib/sequel/adapters/ibmdb.rb	2025-02-03 03:09:52.980973551 +0000
                +++ /tmp/d20250203-3225-ulq6jb/sequel-5.89.0/lib/sequel/adapters/ibmdb.rb	2025-02-03 03:09:53.032974448 +0000
                @@ -9,0 +10 @@
                +      Sequel.set_temp_name(self){"Sequel::IBMDB::_TypeTranslator"}
        lib/sequel/adapters/mysql2.rb
                --- /tmp/d20250203-3225-ulq6jb/sequel-5.88.0/lib/sequel/adapters/mysql2.rb	2025-02-03 03:09:52.982973586 +0000
                +++ /tmp/d20250203-3225-ulq6jb/sequel-5.89.0/lib/sequel/adapters/mysql2.rb	2025-02-03 03:09:53.035974500 +0000
                @@ -100 +100,8 @@
                -              stmt.close if stmt
                +              if stmt
                +                begin
                +                  stmt.close
                +                rescue ::Mysql2::Error
                +                  # probably Invalid statement handle, can happen from dropping
                +                  # related table, ignore as we won't be using it again.
                +                end
                +              end
        lib/sequel/adapters/shared/access.rb
                --- /tmp/d20250203-3225-ulq6jb/sequel-5.88.0/lib/sequel/adapters/shared/access.rb	2025-02-03 03:09:52.984973620 +0000
                +++ /tmp/d20250203-3225-ulq6jb/sequel-5.89.0/lib/sequel/adapters/shared/access.rb	2025-02-03 03:09:53.036974517 +0000
                @@ -90,0 +91 @@
                +        Sequel.set_temp_name(self){"Sequel::Access::DatasetMethods::_SQLMethods"}
        lib/sequel/adapters/shared/mssql.rb
                --- /tmp/d20250203-3225-ulq6jb/sequel-5.88.0/lib/sequel/adapters/shared/mssql.rb	2025-02-03 03:09:52.984973620 +0000
                +++ /tmp/d20250203-3225-ulq6jb/sequel-5.89.0/lib/sequel/adapters/shared/mssql.rb	2025-02-03 03:09:53.037974534 +0000
                @@ -576,0 +577 @@
                +        Sequel.set_temp_name(self){"Sequel::MSSQL::DatasetMethods::_SQLMethods"}
        lib/sequel/adapters/shared/oracle.rb
                --- /tmp/d20250203-3225-ulq6jb/sequel-5.88.0/lib/sequel/adapters/shared/oracle.rb	2025-02-03 03:09:52.985973637 +0000
                +++ /tmp/d20250203-3225-ulq6jb/sequel-5.89.0/lib/sequel/adapters/shared/oracle.rb	2025-02-03 03:09:53.037974534 +0000
                @@ -335,0 +336 @@
                +        Sequel.set_temp_name(self){"Sequel::Oracle::DatasetMethods::_SQLMethods"}
        lib/sequel/adapters/shared/postgres.rb
                --- /tmp/d20250203-3225-ulq6jb/sequel-5.88.0/lib/sequel/adapters/shared/postgres.rb	2025-02-03 03:09:52.986973655 +0000
                +++ /tmp/d20250203-3225-ulq6jb/sequel-5.89.0/lib/sequel/adapters/shared/postgres.rb	2025-02-03 03:09:53.038974552 +0000
                @@ -1274 +1274 @@
                -        case constraint[:type]
                +        case type = constraint[:type]
                @@ -1281 +1281,14 @@
                -        when :foreign_key, :check
                +        when :primary_key, :unique
                +          if using_index = constraint[:using_index]
                +            sql = String.new
                +            sql << "CONSTRAINT #{quote_identifier(constraint[:name])} " if constraint[:name]
                +            if type == :primary_key
                +              sql << primary_key_constraint_sql_fragment(constraint)
                +            else
                +              sql << unique_constraint_sql_fragment(constraint)
                +            end
                +            sql << " USING INDEX " << quote_identifier(using_index)
                +          else
                +            super
                +          end
                +        else # when :foreign_key, :check
                @@ -1287,2 +1299,0 @@
                -        else
                -          super
        lib/sequel/core.rb
                --- /tmp/d20250203-3225-ulq6jb/sequel-5.88.0/lib/sequel/core.rb	2025-02-03 03:09:52.990973724 +0000
                +++ /tmp/d20250203-3225-ulq6jb/sequel-5.89.0/lib/sequel/core.rb	2025-02-03 03:09:53.042974621 +0000
                @@ -166,0 +167,15 @@
                +    if RUBY_VERSION >= '3.3'
                +      # Create a new module using the block, and set the temporary name
                +      # on it using the given a containing module and name.
                +      def set_temp_name(mod)
                +        mod.set_temporary_name(yield)
                +        mod
                +      end
                +    # :nocov:
                +    else
                +      def set_temp_name(mod)
                +        mod
                +      end
                +    end
                +    # :nocov:
                +
        lib/sequel/database/dataset_defaults.rb
                --- /tmp/d20250203-3225-ulq6jb/sequel-5.88.0/lib/sequel/database/dataset_defaults.rb	2025-02-03 03:09:52.990973724 +0000
                +++ /tmp/d20250203-3225-ulq6jb/sequel-5.89.0/lib/sequel/database/dataset_defaults.rb	2025-02-03 03:09:53.043974638 +0000
                @@ -20 +20 @@
                -        c = Class.new(c)
                +        c = Sequel.set_temp_name(Class.new(c)){"Sequel::Dataset::_Subclass"}
                @@ -64 +64 @@
                -      mod = Dataset::DatasetModule.new(&block) if block
                +      mod = Sequel.set_temp_name(Dataset::DatasetModule.new(&block)){"Sequel::Dataset::_DatasetModule(#{block.source_location.join(':')})"} if block
                @@ -67 +67 @@
                -       @dataset_class = Class.new(@dataset_class)
                +       @dataset_class = Sequel.set_temp_name(Class.new(@dataset_class)){"Sequel::Dataset::_Subclass"}
        lib/sequel/database/misc.rb
                --- /tmp/d20250203-3225-ulq6jb/sequel-5.88.0/lib/sequel/database/misc.rb	2025-02-03 03:09:52.991973741 +0000
                +++ /tmp/d20250203-3225-ulq6jb/sequel-5.89.0/lib/sequel/database/misc.rb	2025-02-03 03:09:53.043974638 +0000
                @@ -118,0 +119,4 @@
                +    # :compare_connections_by_identity :: Whether to use compare_by_identity on hashes that use
                +    #                                     connection objects as keys. Defaults to true. This should only
                +    #                                     be set to false to work around bugs in libraries or
                +    #                                     ruby implementations.
                @@ -168 +172 @@
                -      @transactions.compare_by_identity
                +      @transactions.compare_by_identity if typecast_value_boolean(@opts.fetch(:compare_connections_by_identity, true))
        lib/sequel/database/schema_generator.rb
                --- /tmp/d20250203-3225-ulq6jb/sequel-5.88.0/lib/sequel/database/schema_generator.rb	2025-02-03 03:09:52.991973741 +0000
                +++ /tmp/d20250203-3225-ulq6jb/sequel-5.89.0/lib/sequel/database/schema_generator.rb	2025-02-03 03:09:53.043974638 +0000
                @@ -432,0 +433,4 @@
                +      #
                +      # PostgreSQL specific options:
                +      #
                +      # :using_index :: Use the USING INDEX clause to specify an existing unique index
                @@ -485,0 +490,4 @@
                +      #
                +      # PostgreSQL specific options:
                +      #
                +      # :using_index :: Use the USING INDEX clause to specify an existing unique index
        lib/sequel/dataset/deprecated_singleton_class_methods.rb
                --- /tmp/d20250203-3225-ulq6jb/sequel-5.88.0/lib/sequel/dataset/deprecated_singleton_class_methods.rb	2025-02-03 03:09:52.993973775 +0000
                +++ /tmp/d20250203-3225-ulq6jb/sequel-5.89.0/lib/sequel/dataset/deprecated_singleton_class_methods.rb	2025-02-03 03:09:53.045974672 +0000
                @@ -22 +22 @@
                -        c.extend(DatasetModule.new(&block)) if block
                +        c.extend(Sequel.set_temp_name(DatasetModule.new(&block)){"Sequel::Dataset::_DatasetModule(#{block.source_location.join(':')})"}) if block
        lib/sequel/dataset/prepared_statements.rb
                --- /tmp/d20250203-3225-ulq6jb/sequel-5.88.0/lib/sequel/dataset/prepared_statements.rb	2025-02-03 03:09:52.994973793 +0000
                +++ /tmp/d20250203-3225-ulq6jb/sequel-5.89.0/lib/sequel/dataset/prepared_statements.rb	2025-02-03 03:09:53.046974690 +0000
                @@ -23 +23,2 @@
                -      Module.new do
                +      Module.new do 
                +        Sequel.set_temp_name(self){"Sequel::Dataset::_PreparedStatementsModule(#{block.source_location.join(':') if block})"}
        lib/sequel/dataset/query.rb
                --- /tmp/d20250203-3225-ulq6jb/sequel-5.88.0/lib/sequel/dataset/query.rb	2025-02-03 03:09:52.994973793 +0000
                +++ /tmp/d20250203-3225-ulq6jb/sequel-5.89.0/lib/sequel/dataset/query.rb	2025-02-03 03:09:53.046974690 +0000
                @@ -1241 +1241 @@
                -        c = Class.new(self.class)
                +        c = Sequel.set_temp_name(Class.new(self.class)){"Sequel::Dataset::_Subclass"}
                @@ -1243 +1243 @@
                -        c.include(DatasetModule.new(&block)) if block
                +        c.include(Sequel.set_temp_name(DatasetModule.new(&block)){"Sequel::Dataset::_DatasetModule(#{block.source_location.join(':')})"}) if block
        lib/sequel/extensions/connection_validator.rb
                --- /tmp/d20250203-3225-ulq6jb/sequel-5.88.0/lib/sequel/extensions/connection_validator.rb	2025-02-03 03:09:52.997973844 +0000
                +++ /tmp/d20250203-3225-ulq6jb/sequel-5.89.0/lib/sequel/extensions/connection_validator.rb	2025-02-03 03:09:53.049974741 +0000
                @@ -108,2 +108 @@
                -           Sequel.elapsed_seconds_since(timer) > @connection_validation_timeout &&
                -           !db.valid_connection?(conn)
                +           Sequel.elapsed_seconds_since(timer) > @connection_validation_timeout
                @@ -111,6 +110,10 @@
                -          case pool_type
                -          when :sharded_threaded, :sharded_timed_queue
                -            sync{@allocated[a.last].delete(Sequel.current)}
                -          else
                -            sync{@allocated.delete(Sequel.current)}
                -          end
                +          begin
                +            valid = db.valid_connection?(conn)
                +          ensure
                +            unless valid
                +              case pool_type
                +              when :sharded_threaded, :sharded_timed_queue
                +                sync{@allocated[a.last].delete(Sequel.current)}
                +              else
                +                sync{@allocated.delete(Sequel.current)}
                +              end
                @@ -118,2 +121,4 @@
                -          disconnect_connection(conn)
                -          redo
                +              disconnect_connection(conn)
                +              redo
                +            end
                +          end
        lib/sequel/extensions/pg_row.rb
                --- /tmp/d20250203-3225-ulq6jb/sequel-5.88.0/lib/sequel/extensions/pg_row.rb	2025-02-03 03:09:53.005973982 +0000
                +++ /tmp/d20250203-3225-ulq6jb/sequel-5.89.0/lib/sequel/extensions/pg_row.rb	2025-02-03 03:09:53.057974880 +0000
                @@ -115,0 +116 @@
                +            Sequel.set_temp_name(self){"Sequel::Postgres::PGRow::ArrayRow::_Subclass(#{db_type})"}
                @@ -172,0 +174 @@
                +            Sequel.set_temp_name(self){"Sequel::Postgres::PGRow::HashRow::_Subclass(#{db_type})"}
                @@ -394 +396 @@
                -            extend(@row_type_method_module = Module.new)
                +            extend(@row_type_method_module = Sequel.set_temp_name(Module.new){"Sequel::Postgres::PGRow::DatabaseMethods::_RowTypeMethodModule"})
        lib/sequel/extensions/virtual_row_method_block.rb
                --- /tmp/d20250203-3225-ulq6jb/sequel-5.88.0/lib/sequel/extensions/virtual_row_method_block.rb	2025-02-03 03:09:53.010974069 +0000
                +++ /tmp/d20250203-3225-ulq6jb/sequel-5.89.0/lib/sequel/extensions/virtual_row_method_block.rb	2025-02-03 03:09:53.063974983 +0000
                @@ -16,0 +17 @@
                +        Sequel.set_temp_name(self){"Sequel::SQL:VirtualRow::_MethodBlockMethodMissing"}
        lib/sequel/model/base.rb
                --- /tmp/d20250203-3225-ulq6jb/sequel-5.88.0/lib/sequel/model/base.rb	2025-02-03 03:09:53.012974103 +0000
                +++ /tmp/d20250203-3225-ulq6jb/sequel-5.89.0/lib/sequel/model/base.rb	2025-02-03 03:09:53.064975000 +0000
                @@ -187 +187 @@
                -        klass = Class.new(self)
                +        klass = Sequel.set_temp_name(Class.new(self)){"Sequel::_Model(#{source.inspect})"}
                @@ -771 +771 @@
                -        Sequel.synchronize{@dataset_methods_module ||= Module.new}
                +        Sequel.synchronize{@dataset_methods_module ||= Sequel.set_temp_name(Module.new){"#{name}::@dataset_methods_module"}}
                @@ -959 +959 @@
                -        include(@overridable_methods_module = Module.new) unless @overridable_methods_module
                +        include(@overridable_methods_module = Sequel.set_temp_name(Module.new){"#{name}::@overridable_methods_module"}) unless @overridable_methods_module
        lib/sequel/plugins/composition.rb
                --- /tmp/d20250203-3225-ulq6jb/sequel-5.88.0/lib/sequel/plugins/composition.rb	2025-02-03 03:09:53.016974172 +0000
                +++ /tmp/d20250203-3225-ulq6jb/sequel-5.89.0/lib/sequel/plugins/composition.rb	2025-02-03 03:09:53.068975069 +0000
                @@ -64 +64 @@
                -          include(@composition_module ||= Module.new)
                +          include(@composition_module ||= Sequel.set_temp_name(Module.new){"#{name}::@composition_module"})
        lib/sequel/plugins/enum.rb
                --- /tmp/d20250203-3225-ulq6jb/sequel-5.88.0/lib/sequel/plugins/enum.rb	2025-02-03 03:09:53.018974207 +0000
                +++ /tmp/d20250203-3225-ulq6jb/sequel-5.89.0/lib/sequel/plugins/enum.rb	2025-02-03 03:09:53.070975104 +0000
                @@ -83 +83 @@
                -            @enum_methods = Module.new
                +            @enum_methods = Sequel.set_temp_name(Module.new){"#{name}::@enum_methods"}
        lib/sequel/plugins/inverted_subsets.rb
                --- /tmp/d20250203-3225-ulq6jb/sequel-5.88.0/lib/sequel/plugins/inverted_subsets.rb	2025-02-03 03:09:53.020974241 +0000
                +++ /tmp/d20250203-3225-ulq6jb/sequel-5.89.0/lib/sequel/plugins/inverted_subsets.rb	2025-02-03 03:09:53.072975138 +0000
                @@ -34,0 +35 @@
                +            Sequel.set_temp_name(self){"#{model.name}::@dataset_module_class(InvertedSubsets)"}
        lib/sequel/plugins/lazy_attributes.rb
                --- /tmp/d20250203-3225-ulq6jb/sequel-5.88.0/lib/sequel/plugins/lazy_attributes.rb	2025-02-03 03:09:53.020974241 +0000
                +++ /tmp/d20250203-3225-ulq6jb/sequel-5.89.0/lib/sequel/plugins/lazy_attributes.rb	2025-02-03 03:09:53.073975156 +0000
                @@ -67 +67 @@
                -          include(@lazy_attributes_module ||= Module.new) unless @lazy_attributes_module
                +          include(@lazy_attributes_module ||= Sequel.set_temp_name(Module.new){"#{name}::@lazy_attributes_module"}) unless @lazy_attributes_module
        lib/sequel/plugins/nested_attributes.rb
                --- /tmp/d20250203-3225-ulq6jb/sequel-5.88.0/lib/sequel/plugins/nested_attributes.rb	2025-02-03 03:09:53.021974258 +0000
                +++ /tmp/d20250203-3225-ulq6jb/sequel-5.89.0/lib/sequel/plugins/nested_attributes.rb	2025-02-03 03:09:53.074975173 +0000
                @@ -132 +132 @@
                -          include(@nested_attributes_module ||= Module.new) unless @nested_attributes_module
                +          include(@nested_attributes_module ||= Sequel.set_temp_name(Module.new){"#{name}::@nested_attributes_module"}) unless @nested_attributes_module
        lib/sequel/plugins/rcte_tree.rb
                --- /tmp/d20250203-3225-ulq6jb/sequel-5.88.0/lib/sequel/plugins/rcte_tree.rb	2025-02-03 03:09:53.023974293 +0000
                +++ /tmp/d20250203-3225-ulq6jb/sequel-5.89.0/lib/sequel/plugins/rcte_tree.rb	2025-02-03 03:09:53.075975190 +0000
                @@ -84 +84 @@
                -        opts[:methods_module] = Module.new
                +        opts[:methods_module] = Sequel.set_temp_name(Module.new){"#{model.name}::_rcte_tree[:methods_module]"}
        lib/sequel/plugins/serialization.rb
                --- /tmp/d20250203-3225-ulq6jb/sequel-5.88.0/lib/sequel/plugins/serialization.rb	2025-02-03 03:09:53.023974293 +0000
                +++ /tmp/d20250203-3225-ulq6jb/sequel-5.89.0/lib/sequel/plugins/serialization.rb	2025-02-03 03:09:53.076975207 +0000
                @@ -149 +149 @@
                -          include(@serialization_module ||= Module.new) unless @serialization_module
                +          include(@serialization_module ||= Sequel.set_temp_name(Module.new){"#{name}::@serialization_module"}) unless @serialization_module
        lib/sequel/plugins/sql_comments.rb
                --- /tmp/d20250203-3225-ulq6jb/sequel-5.88.0/lib/sequel/plugins/sql_comments.rb	2025-02-03 03:09:53.024974310 +0000
                +++ /tmp/d20250203-3225-ulq6jb/sequel-5.89.0/lib/sequel/plugins/sql_comments.rb	2025-02-03 03:09:53.077975225 +0000
                @@ -88 +88 @@
                -            dataset_module(@_sql_comments_dataset_module = Module.new)
                +            dataset_module(@_sql_comments_dataset_module = Sequel.set_temp_name(Module.new){"#{name}::@_sql_comments_dataset_module"})
        lib/sequel/plugins/subset_conditions.rb
                --- /tmp/d20250203-3225-ulq6jb/sequel-5.88.0/lib/sequel/plugins/subset_conditions.rb	2025-02-03 03:09:53.025974327 +0000
                +++ /tmp/d20250203-3225-ulq6jb/sequel-5.89.0/lib/sequel/plugins/subset_conditions.rb	2025-02-03 03:09:53.078975242 +0000
                @@ -50,0 +51 @@
                +            Sequel.set_temp_name(self){"#{model.name}::@dataset_module_class(SubsetConditions)"}
        lib/sequel/plugins/subset_static_cache.rb
                --- /tmp/d20250203-3225-ulq6jb/sequel-5.88.0/lib/sequel/plugins/subset_static_cache.rb	2025-02-03 03:09:53.025974327 +0000
                +++ /tmp/d20250203-3225-ulq6jb/sequel-5.89.0/lib/sequel/plugins/subset_static_cache.rb	2025-02-03 03:09:53.078975242 +0000
                @@ -102 +102 @@
                -          Sequel.synchronize{@subset_static_cache_module ||= Module.new}
                +          Sequel.synchronize{@subset_static_cache_module ||= Sequel.set_temp_name(Module.new){"#{name}::@subset_static_cache_module"}}
        lib/sequel/sql.rb
                --- /tmp/d20250203-3225-ulq6jb/sequel-5.88.0/lib/sequel/sql.rb	2025-02-03 03:09:53.029974396 +0000
                +++ /tmp/d20250203-3225-ulq6jb/sequel-5.89.0/lib/sequel/sql.rb	2025-02-03 03:09:53.081975294 +0000
                @@ -1917,0 +1918 @@
                +        Sequel.set_temp_name(Module.new){"Sequel::SQL::VirtualRow::_BaseMethodMissing"}
        lib/sequel/version.rb
                --- /tmp/d20250203-3225-ulq6jb/sequel-5.88.0/lib/sequel/version.rb	2025-02-03 03:09:53.030974414 +0000
                +++ /tmp/d20250203-3225-ulq6jb/sequel-5.89.0/lib/sequel/version.rb	2025-02-03 03:09:53.082975311 +0000
                @@ -9 +9 @@
                -  MINOR = 88
                +  MINOR = 89

Bumps [sequel](https://github.com/jeremyevans/sequel) from 5.88.0 to 5.89.0.
- [Changelog](https://github.com/jeremyevans/sequel/blob/master/CHANGELOG)
- [Commits](jeremyevans/sequel@5.88.0...5.89.0)

---
updated-dependencies:
- dependency-name: sequel
  dependency-type: direct:production
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <[email protected]>
@dependabot dependabot bot force-pushed the dependabot/bundler/sequel-5.89.0 branch from 819b72b to bb25c50 Compare February 9, 2025 20:10
@dentarg dentarg merged commit 37b5a2b into main Feb 9, 2025
7 checks passed
@dentarg dentarg deleted the dependabot/bundler/sequel-5.89.0 branch February 9, 2025 20:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies ruby Pull requests that update Ruby code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant