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.82.0 to 5.83.1 #661

Merged
merged 1 commit into from
Aug 10, 2024
Merged

Conversation

dependabot[bot]
Copy link
Contributor

@dependabot dependabot bot commented on behalf of github Aug 9, 2024

Bumps sequel from 5.82.0 to 5.83.1.

Changelog

Sourced from sequel's changelog.

=== 5.83.1 (2024-08-08)

  • Restore unescaping of database file paths in the sqlite and amalgalite adapters (jeremyevans) (#2201)

=== 5.83.0 (2024-08-01)

  • Make optimistic_locking plugin not keep lock column in changed_columns after updating instance (jeremyevans) (#2196)

  • Have defaults_setter plugin pass model instance to default_values callable if it has arity 1 (pedrocarmona) (#2195)

  • Support string_agg extension on SQLite 3.44+ (segiddins) (#2191)

  • Support schema-qualified table names when using create_table :temp with a Sequel::SQL::QualifiedIdentifier (jeremyevans) (#2185)

  • Support MERGE WHEN NOT MATCHED BY SOURCE on PostgreSQL 17+ (jeremyevans)

  • Add stdio_logger extension for a minimal logger that Sequel::Database can use (jeremyevans)

  • Simplify Database#inspect output to database_type, host, database, and user (jeremyevans)

Commits
  • a368d65 Restore unescaping of database file paths in the sqlite and amalgalite adapte...
  • a0cbb6c Bump version to 5.83.0
  • 03d13c7 Make temporary table spec pass on DB2
  • c17eecb Remove unnecessary method call
  • 45bcbde Add link to stdio_logger on plugins page
  • d6f4faa Make optimistic_locking plugin not keep lock column in changed_columns after ...
  • 48f3ce6 Restore behavior for non-proc/non-method callables in defaults_setter
  • 980c261 Allow proc default values that depend on other values
  • 7772732 Fix SQLite string_agg spec guards
  • e7093e1 Limit sqlite3 version on Ruby <2.5 in CI
  • 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 Aug 9, 2024
Copy link

github-actions bot commented Aug 9, 2024

Copy link

github-actions bot commented Aug 9, 2024

gem compare sequel 5.82.0 5.83.1

Compared versions: ["5.82.0", "5.83.1"]
  DIFFERENT date:
    5.82.0: 2024-07-01 00:00:00 UTC
    5.83.1: 2024-08-08 00:00:00 UTC
  DIFFERENT rubygems_version:
    5.82.0: 3.5.9
    5.83.1: 3.5.11
  DIFFERENT version:
    5.82.0: 5.82.0
    5.83.1: 5.83.1
  DIFFERENT files:
    5.82.0->5.83.1:
      * Added:
            doc/release_notes/5.83.0.txt +56/-0
            lib/sequel/extensions/stdio_logger.rb +48/-0
      * Changed:
            CHANGELOG +20/-0
            bin/sequel +9/-17
            lib/sequel/adapters/jdbc/derby.rb +1/-1
            lib/sequel/adapters/shared/db2.rb +1/-1
            lib/sequel/adapters/shared/mssql.rb +14/-2
            lib/sequel/adapters/shared/postgres.rb +42/-4
            lib/sequel/database/connecting.rb +1/-4
            lib/sequel/database/misc.rb +27/-7
            lib/sequel/database/schema_methods.rb +15/-1
            lib/sequel/dataset/sql.rb +13/-0
            lib/sequel/extensions/string_agg.rb +15/-2
            lib/sequel/plugins/defaults_setter.rb +16/-4
            lib/sequel/plugins/optimistic_locking.rb +2/-0
            lib/sequel/version.rb +2/-2
  DIFFERENT extra_rdoc_files:
    5.82.0->5.83.1:
      * Added:
            doc/release_notes/5.83.0.txt +56/-0
      * Changed:
            CHANGELOG +20/-0

Copy link

github-actions bot commented Aug 9, 2024

gem compare --diff sequel 5.82.0 5.83.1

Compared versions: ["5.82.0", "5.83.1"]
  DIFFERENT files:
    5.82.0->5.83.1:
      * Added:
        doc/release_notes/5.83.0.txt
                --- /tmp/20240809-2356-nvbr5p	2024-08-09 02:30:21.038811980 +0000
                +++ /tmp/d20240809-2356-ucjx0e/sequel-5.83.1/doc/release_notes/5.83.0.txt	2024-08-09 02:30:20.986811791 +0000
                @@ -0,0 +1,56 @@
                += New Features
                +
                +* MERGE WHEN NOT MATCHED BY SOURCE is now supported when using
                +  PostgreSQL 17+.  You can use this SQL syntax via the following
                +  Dataset methods:
                +
                +  * merge_delete_when_not_matched_by_source
                +  * merge_update_when_not_matched_by_source
                +  * merge_do_nothing_when_not_matched_by_source
                +
                +  These are similar to the existing merge_delete, merge_update,
                +  and merge_do_nothing_when_matched, except they use
                +  WHEN NOT MATCHED BY SOURCE instead of WHEN MATCHED.
                +
                +* An stdio_logger extension has been added.  This adds the
                +  Sequel::StdioLogger class, which is a minimal logger implementation
                +  that is compatible for usage with Sequel::Database.  Example:
                +
                +    Sequel.extension :stdio_logger
                +    DB.loggers << Sequel::StdioLogger.new($stdout)
                +
                += Other Improvements
                +
                +* Database#inspect now only displays the database type, host, database
                +  name, and user.  In addition to being easier to read, this also
                +  prevents displaying the password, enhancing security.
                +
                +* The string_agg extension now supports SQLite 3.44+.
                +
                +* The defaults_setter plugin now passes the model instance to a
                +  default_values proc if the proc has arity 1.  This allows default
                +  values to depend on model instance state.
                +
                +* The optimistic_locking plugin no longer adds the lock column to
                +  changed_columns after updating the model instance.
                +
                +* Database#create_temp with :temp option and an
                +  SQL::QualifiedIdentifier table name will now attempt to create a
                +  schema qualified table.  Note that schema qualified temporary
                +  tables are not supported by many (any?) databases, but this
                +  change prevents the CREATE TABLE statement from succeeding with
                +  an unexpected table name.
                +
                += Backwards Compatibility
                +
                +* The Database.uri_to_options private class method now handles
                +  conversion of URI parameters to options.  Previously, this was
                +  handled by callers of this method (change reverted in 5.83.1).
                +
                +* The _merge_matched_sql and _merge_not_matched_sql private Dataset
                +  methods in PostgreSQL have been replaced with
                +  _merge_do_nothing_sql.
                +
                +* An unnecessary space in submitted SQL has been removed when using
                +  MERGE INSERT on PostgreSQL.  This should only affect your code if
                +  you are explicitly checking the produced SQL.
        lib/sequel/extensions/stdio_logger.rb
                --- /tmp/20240809-2356-qtql2o	2024-08-09 02:30:21.042811995 +0000
                +++ /tmp/d20240809-2356-ucjx0e/sequel-5.83.1/lib/sequel/extensions/stdio_logger.rb	2024-08-09 02:30:21.018811907 +0000
                @@ -0,0 +1,48 @@
                +# frozen-string-literal: true
                +#
                +# The stdio_logger extension exposes a Sequel::StdioLogger class that
                +# can be used for logging with Sequel, as a minimal alternative to
                +# the logger library.  It exposes debug/info/warn/error methods for the
                +# different warning levels.  The debug method is a no-op, so that setting
                +# the Database sql_log_level to debug will result in no output for normal
                +# queries. The info/warn/error methods log the current time, log level,
                +# and the given message.
                +# 
                +# To use this extension:
                +#
                +#   Sequel.extension :stdio_logger
                +#
                +# Then you you can use Sequel::StdioLogger to wrap IO objects that you
                +# would like Sequel to log to:
                +#
                +#   DB.loggers << Sequel::StdioLogger.new($stdout)
                +#
                +#   log_file = File.open("db_queries.log", 'a')
                +#   log_file.sync = true
                +#   DB.loggers << Sequel::StdioLogger.new(log_file)
                +#
                +# This is implemented as a global extension instead of a Database extension
                +# because Database loggers must be set before Database extensions are loaded.
                +#
                +# Related module: Sequel::StdioLogger
                +
                +#
                +module Sequel
                +  class StdioLogger
                +    def initialize(device)
                +      @device = device
                +    end
                +
                +    # Do not log debug messages. This is so setting the Database
                +    # sql_log_level to debug will result in no output.
                +    def debug(msg)
                +    end
                +
                +    [:info, :warn, :error].each do |meth|
                +      define_method(meth) do |msg|
                +        @device.write("#{Time.now.strftime('%F %T')} #{meth.to_s.upcase}: #{msg}\n")
                +        nil
                +      end
                +    end
                +  end
                +end
      * Changed:
        CHANGELOG
                --- /tmp/d20240809-2356-ucjx0e/sequel-5.82.0/CHANGELOG	2024-08-09 02:30:20.742810904 +0000
                +++ /tmp/d20240809-2356-ucjx0e/sequel-5.83.1/CHANGELOG	2024-08-09 02:30:20.866811354 +0000
                @@ -0,0 +1,20 @@
                +=== 5.83.1 (2024-08-08)
                +
                +* Restore unescaping of database file paths in the sqlite and amalgalite adapters (jeremyevans) (#2201)
                +
                +=== 5.83.0 (2024-08-01)
                +
                +* Make optimistic_locking plugin not keep lock column in changed_columns after updating instance (jeremyevans) (#2196)
                +
                +* Have defaults_setter plugin pass model instance to default_values callable if it has arity 1 (pedrocarmona) (#2195)
                +
                +* Support string_agg extension on SQLite 3.44+ (segiddins) (#2191)
                +
                +* Support schema-qualified table names when using create_table :temp with a Sequel::SQL::QualifiedIdentifier (jeremyevans) (#2185)
                +
                +* Support MERGE WHEN NOT MATCHED BY SOURCE on PostgreSQL 17+ (jeremyevans)
                +
                +* Add stdio_logger extension for a minimal logger that Sequel::Database can use (jeremyevans)
                +
                +* Simplify Database#inspect output to database_type, host, database, and user (jeremyevans)
                +
        bin/sequel
                --- /tmp/d20240809-2356-ucjx0e/sequel-5.82.0/bin/sequel	2024-08-09 02:30:20.742810904 +0000
                +++ /tmp/d20240809-2356-ucjx0e/sequel-5.83.1/bin/sequel	2024-08-09 02:30:20.866811354 +0000
                @@ -21,15 +20,0 @@
                -logger_class = Class.new do
                -  def initialize(device)
                -    @device = device
                -  end
                -
                -  def debug(msg)
                -  end
                -
                -  [:info, :warn, :error].each do |meth|
                -    define_method(meth) do |msg|
                -      @device.puts("#{Time.now.strftime('%Y-%m-%d %T')} #{meth.to_s.upcase}: #{msg}")
                -    end
                -  end
                -end
                -
                @@ -79 +64 @@
                -    loggers << logger_class.new($stdout)
                +    loggers << $stdout
                @@ -87 +72,3 @@
                -    loggers << logger_class.new(File.open(v, 'a'))
                +    file = File.open(v, 'a')
                +    file.sync = true
                +    loggers << file
                @@ -168,0 +156,5 @@
                +  end
                +
                +  unless loggers.empty?
                +    Sequel.extension :stdio_logger
                +    loggers.map!{|io| Sequel::StdioLogger.new(io)}
        lib/sequel/adapters/jdbc/derby.rb
                --- /tmp/d20240809-2356-ucjx0e/sequel-5.82.0/lib/sequel/adapters/jdbc/derby.rb	2024-08-09 02:30:20.762810977 +0000
                +++ /tmp/d20240809-2356-ucjx0e/sequel-5.83.1/lib/sequel/adapters/jdbc/derby.rb	2024-08-09 02:30:20.990811805 +0000
                @@ -118 +118 @@
                -            "DECLARE GLOBAL TEMPORARY TABLE #{quote_identifier(name)}"
                +            "DECLARE GLOBAL TEMPORARY TABLE #{create_table_table_name_sql(name, options)}"
        lib/sequel/adapters/shared/db2.rb
                --- /tmp/d20240809-2356-ucjx0e/sequel-5.82.0/lib/sequel/adapters/shared/db2.rb	2024-08-09 02:30:20.766810991 +0000
                +++ /tmp/d20240809-2356-ucjx0e/sequel-5.83.1/lib/sequel/adapters/shared/db2.rb	2024-08-09 02:30:20.994811820 +0000
                @@ -201 +201 @@
                -          "DECLARE GLOBAL TEMPORARY TABLE #{quote_identifier(name)}"
                +          "DECLARE GLOBAL TEMPORARY TABLE #{create_table_table_name_sql(name, options)}"
        lib/sequel/adapters/shared/mssql.rb
                --- /tmp/d20240809-2356-ucjx0e/sequel-5.82.0/lib/sequel/adapters/shared/mssql.rb	2024-08-09 02:30:20.766810991 +0000
                +++ /tmp/d20240809-2356-ucjx0e/sequel-5.83.1/lib/sequel/adapters/shared/mssql.rb	2024-08-09 02:30:20.994811820 +0000
                @@ -382 +382 @@
                -        "CREATE TABLE #{quote_schema_table(options[:temp] ? "##{name}" : name)}"
                +        "CREATE TABLE #{create_table_table_name_sql(name, options)}"
                @@ -384 +384,13 @@
                -      
                +
                +      # The SQL to use for the table name for a temporary table.
                +      def create_table_temp_table_name_sql(name, _options)
                +        case name
                +        when String, Symbol
                +          "##{name}"
                +        when SQL::Identifier
                +          "##{name.value}"
                +        else
                +          raise Error, "temporary table names must be strings, symbols, or Sequel::SQL::Identifier instances on Microsoft SQL Server"
                +        end
                +      end
                +
        lib/sequel/adapters/shared/postgres.rb
                --- /tmp/d20240809-2356-ucjx0e/sequel-5.82.0/lib/sequel/adapters/shared/postgres.rb	2024-08-09 02:30:20.766810991 +0000
                +++ /tmp/d20240809-2356-ucjx0e/sequel-5.83.1/lib/sequel/adapters/shared/postgres.rb	2024-08-09 02:30:20.994811820 +0000
                @@ -1432 +1432 @@
                -        "CREATE #{prefix_sql}TABLE#{' IF NOT EXISTS' if options[:if_not_exists]} #{options[:temp] ? quote_identifier(name) : quote_schema_table(name)}"
                +        "CREATE #{prefix_sql}TABLE#{' IF NOT EXISTS' if options[:if_not_exists]} #{create_table_table_name_sql(name, options)}"
                @@ -2070,0 +2071,13 @@
                +      # Return a dataset with a WHEN NOT MATCHED BY SOURCE THEN DELETE clause added to the
                +      # MERGE statement.  If a block is passed, treat it as a virtual row and
                +      # use it as additional conditions for the match.
                +      #
                +      #   merge_delete_not_matched_by_source
                +      #   # WHEN NOT MATCHED BY SOURCE THEN DELETE
                +      #
                +      #   merge_delete_not_matched_by_source{a > 30}
                +      #   # WHEN NOT MATCHED BY SOURCE AND (a > 30) THEN DELETE
                +      def merge_delete_when_not_matched_by_source(&block)
                +        _merge_when(:type=>:delete_not_matched_by_source, &block)
                +      end
                +
                @@ -2096,0 +2110,13 @@
                +      # Return a dataset with a WHEN NOT MATCHED BY SOURCE THEN DO NOTHING clause added to the
                +      # MERGE BY SOURCE statement.  If a block is passed, treat it as a virtual row and
                +      # use it as additional conditions for the match.
                +      #
                +      #   merge_do_nothing_when_not_matched_by_source
                +      #   # WHEN NOT MATCHED BY SOURCE THEN DO NOTHING
                +      #
                +      #   merge_do_nothing_when_not_matched_by_source{a > 30}
                +      #   # WHEN NOT MATCHED BY SOURCE AND (a > 30) THEN DO NOTHING
                +      def merge_do_nothing_when_not_matched_by_source(&block)
                +        _merge_when(:type=>:not_matched_by_source, &block)
                +      end
                +
                @@ -2105,0 +2132,13 @@
                +      # Return a dataset with a WHEN NOT MATCHED BY SOURCE THEN UPDATE clause added to the
                +      # MERGE statement.  If a block is passed, treat it as a virtual row and
                +      # use it as additional conditions for the match.
                +      #
                +      #   merge_update_not_matched_by_source(i1: Sequel[:i1]+:i2+10, a: Sequel[:a]+:b+20)
                +      #   # WHEN NOT MATCHED BY SOURCE THEN UPDATE SET i1 = (i1 + i2 + 10), a = (a + b + 20)
                +      #
                +      #   merge_update_not_matched_by_source(i1: :i2){a > 30}
                +      #   # WHEN NOT MATCHED BY SOURCE AND (a > 30) THEN UPDATE SET i1 = i2
                +      def merge_update_when_not_matched_by_source(values, &block)
                +        _merge_when(:type=>:update_not_matched_by_source, :values=>values, &block)
                +      end
                +
                @@ -2299 +2338 @@
                -        sql << " THEN INSERT "
                +        sql << " THEN INSERT"
                @@ -2308 +2347 @@
                -      def _merge_matched_sql(sql, data)
                +      def _merge_do_nothing_sql(sql, data)
                @@ -2311 +2349,0 @@
                -      alias _merge_not_matched_sql _merge_matched_sql
        lib/sequel/database/connecting.rb
                --- /tmp/d20240809-2356-ucjx0e/sequel-5.82.0/lib/sequel/database/connecting.rb	2024-08-09 02:30:20.826811209 +0000
                +++ /tmp/d20240809-2356-ucjx0e/sequel-5.83.1/lib/sequel/database/connecting.rb	2024-08-09 02:30:20.998811835 +0000
                @@ -37,4 +37 @@
                -          uri_options = c.send(:uri_to_options, uri)
                -          uri.query.split('&').map{|s| s.split('=')}.each{|k,v| uri_options[k.to_sym] = v if k && !k.empty?} unless uri.query.to_s.strip.empty?
                -          uri_options.to_a.each{|k,v| uri_options[k] = URI::DEFAULT_PARSER.unescape(v) if v.is_a?(String)}
                -          opts = uri_options.merge(opts).merge!(:orig_opts=>opts.dup, :uri=>conn_string, :adapter=>scheme)
                +          opts = c.send(:options_from_uri, uri).merge!(opts).merge!(:orig_opts=>opts.dup, :uri=>conn_string, :adapter=>scheme)
        lib/sequel/database/misc.rb
                --- /tmp/d20240809-2356-ucjx0e/sequel-5.82.0/lib/sequel/database/misc.rb	2024-08-09 02:30:20.826811209 +0000
                +++ /tmp/d20240809-2356-ucjx0e/sequel-5.83.1/lib/sequel/database/misc.rb	2024-08-09 02:30:20.998811835 +0000
                @@ -84,0 +85,8 @@
                +    def self.options_from_uri(uri)
                +      uri_options = uri_to_options(uri)
                +      uri.query.split('&').map{|s| s.split('=')}.each{|k,v| uri_options[k.to_sym] = v if k && !k.empty?} unless uri.query.to_s.strip.empty?
                +      uri_options.to_a.each{|k,v| uri_options[k] = URI::DEFAULT_PARSER.unescape(v) if v.is_a?(String)}
                +      uri_options
                +    end
                +    private_class_method :options_from_uri
                +
                @@ -256,2 +264,2 @@
                -    # Returns a string representation of the database object including the
                -    # class name and connection URI and options used when connecting (if any).
                +    # Returns a string representation of the Database object, including
                +    # the database type, host, database, and user, if present.
                @@ -259,4 +267,15 @@
                -      a = []
                -      a << uri.inspect if uri
                -      if (oo = opts[:orig_opts]) && !oo.empty?
                -        a << oo.inspect
                +      s = String.new
                +      s << "#<#{self.class}"
                +      s << " database_type=#{database_type}" if database_type && database_type != adapter_scheme
                +
                +      keys = [:host, :database, :user]
                +      opts = self.opts
                +      if !keys.any?{|k| opts[k]} && opts[:uri]
                +        opts = self.class.send(:options_from_uri, URI.parse(opts[:uri]))
                +      end
                +
                +      keys.each do |key|
                +        val = opts[key]
                +        if val && val != ''
                +          s << " #{key}=#{val}"
                +        end
                @@ -264 +283,2 @@
                -      "#<#{self.class}: #{a.join(' ')}>"
                +
                +      s << ">"
        lib/sequel/database/schema_methods.rb
                --- /tmp/d20240809-2356-ucjx0e/sequel-5.82.0/lib/sequel/database/schema_methods.rb	2024-08-09 02:30:20.826811209 +0000
                +++ /tmp/d20240809-2356-ucjx0e/sequel-5.83.1/lib/sequel/database/schema_methods.rb	2024-08-09 02:30:20.998811835 +0000
                @@ -778 +778,15 @@
                -      "CREATE #{temporary_table_sql if options[:temp]}TABLE#{' IF NOT EXISTS' if options[:if_not_exists]} #{options[:temp] ? quote_identifier(name) : quote_schema_table(name)}"
                +      "CREATE #{temporary_table_sql if options[:temp]}TABLE#{' IF NOT EXISTS' if options[:if_not_exists]} #{create_table_table_name_sql(name, options)}"
                +    end
                +
                +    # The SQL to use for a table name when creating a table.
                +    # Use of the :temp option can result in different SQL,
                +    # because the rules for temp table naming can differ
                +    # between databases, and temp tables should not use the
                +    # default_schema.
                +    def create_table_table_name_sql(name, options)
                +      options[:temp] ? create_table_temp_table_name_sql(name, options) : quote_schema_table(name)
                +    end
                +
                +    # The SQL to use for the table name for a temporary table.
                +    def create_table_temp_table_name_sql(name, _options)
                +      name.is_a?(String) ? quote_identifier(name) : literal(name)
        lib/sequel/dataset/sql.rb
                --- /tmp/d20240809-2356-ucjx0e/sequel-5.82.0/lib/sequel/dataset/sql.rb	2024-08-09 02:30:20.830811224 +0000
                +++ /tmp/d20240809-2356-ucjx0e/sequel-5.83.1/lib/sequel/dataset/sql.rb	2024-08-09 02:30:21.002811849 +0000
                @@ -903,0 +904 @@
                +      :delete_not_matched_by_source => ' WHEN NOT MATCHED BY SOURCE',
                @@ -904,0 +906 @@
                +      :update_not_matched_by_source => ' WHEN NOT MATCHED BY SOURCE',
                @@ -906,0 +909 @@
                +      :not_matched_by_source => ' WHEN NOT MATCHED BY SOURCE',
                @@ -909,0 +913,9 @@
                +    MERGE_NORMALIZE_TYPE_MAP = {
                +      :delete_not_matched_by_source => :delete,
                +      :update_not_matched_by_source => :update,
                +      :matched => :do_nothing,
                +      :not_matched => :do_nothing,
                +      :not_matched_by_source => :do_nothing,
                +    }.freeze
                +    private_constant :MERGE_NORMALIZE_TYPE_MAP
                +
                @@ -915,0 +928 @@
                +        type = MERGE_NORMALIZE_TYPE_MAP[type] || type
        lib/sequel/extensions/string_agg.rb
                --- /tmp/d20240809-2356-ucjx0e/sequel-5.82.0/lib/sequel/extensions/string_agg.rb	2024-08-09 02:30:20.842811268 +0000
                +++ /tmp/d20240809-2356-ucjx0e/sequel-5.83.1/lib/sequel/extensions/string_agg.rb	2024-08-09 02:30:21.018811907 +0000
                @@ -56,0 +57 @@
                +# * SQLite 3.44+ (distinct only works when separator is ',')
                @@ -96,0 +98,13 @@
                +          when :sqlite
                +            raise Error, "string_agg(DISTINCT) is not supported with a non-comma separator on #{db.database_type}" if distinct && separator != ","
                +
                +            args = [expr]
                +            args << separator unless distinct
                +            f = Function.new(:group_concat, *args)
                +            if order
                +              f = f.order(*order)
                +            end
                +            if distinct
                +              f = f.distinct
                +            end
                +            literal_append(sql, f)
                @@ -154 +168 @@
                -      # Whether the current expression uses distinct expressions 
                +      # Whether the current expression uses distinct expressions
                @@ -181 +194,0 @@
                -
        lib/sequel/plugins/defaults_setter.rb
                --- /tmp/d20240809-2356-ucjx0e/sequel-5.82.0/lib/sequel/plugins/defaults_setter.rb	2024-08-09 02:30:20.854811311 +0000
                +++ /tmp/d20240809-2356-ucjx0e/sequel-5.83.1/lib/sequel/plugins/defaults_setter.rb	2024-08-09 02:30:21.026811936 +0000
                @@ -28,0 +29,6 @@
                +    # If the proc accepts a single argument, it is passed the instance, allowing
                +    # default values to depend on instance-specific state:
                +    #
                +    #   Album.default_values[:a] = lambda{|album| album.b + 1}
                +    #   Album.new(b: 10).a # => 11
                +    #
                @@ -46 +52 @@
                -    # 
                +    #
                @@ -52 +58 @@
                -    #   # Make the Album class set defaults 
                +    #   # Make the Album class set defaults
                @@ -79 +85 @@
                -        
                +
                @@ -136 +142,7 @@
                -            v = v.call if v.respond_to?(:call)
                +            if v.respond_to?(:call)
                +              v = if v.respond_to?(:arity) && v.arity == 1
                +                v.call(self)
                +              else
                +                v.call
                +              end
                +            end
        lib/sequel/plugins/optimistic_locking.rb
                --- /tmp/d20240809-2356-ucjx0e/sequel-5.82.0/lib/sequel/plugins/optimistic_locking.rb	2024-08-09 02:30:20.858811326 +0000
                +++ /tmp/d20240809-2356-ucjx0e/sequel-5.83.1/lib/sequel/plugins/optimistic_locking.rb	2024-08-09 02:30:21.030811950 +0000
                @@ -47,0 +48,2 @@
                +          changed_columns.delete(lc)
                +          nil
        lib/sequel/version.rb
                --- /tmp/d20240809-2356-ucjx0e/sequel-5.82.0/lib/sequel/version.rb	2024-08-09 02:30:20.866811354 +0000
                +++ /tmp/d20240809-2356-ucjx0e/sequel-5.83.1/lib/sequel/version.rb	2024-08-09 02:30:21.038811980 +0000
                @@ -9 +9 @@
                -  MINOR = 82
                +  MINOR = 83
                @@ -13 +13 @@
                -  TINY  = 0
                +  TINY  = 1

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

---
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.83.1 branch from 8c9813d to 294a1fc Compare August 10, 2024 17:25
@dentarg dentarg enabled auto-merge (squash) August 10, 2024 17:26
@dentarg dentarg merged commit 107b297 into main Aug 10, 2024
7 checks passed
@dentarg dentarg deleted the dependabot/bundler/sequel-5.83.1 branch August 10, 2024 17:27
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