hairtrigger 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: adffb212907d4617f9ed63b3bbed32f0f4c8e7113e50284eb560a2e9ac0f24cb
4
- data.tar.gz: a437870c199e11d4264e496ac45ff6d6f61593e80b9082bc8bf320de33bd0b84
3
+ metadata.gz: df35a372972b565346b0f4264dee37ed064f58a64660d1ab4fc212740a58a9b3
4
+ data.tar.gz: 7d3a218fcda22368a5097c031a2b92a3e4eea7c1bda5a5700b2088ffb847a416
5
5
  SHA512:
6
- metadata.gz: cf089ae92b9427a39243f6c096c44eab7ea4d41e7e6bec757781ba2d9b5ebef09683b2528e8ce39c2c28b15919149b82461bd2edcef4d662161a28a52c24671f
7
- data.tar.gz: 83c64e0d188cfc45a6ffb701e6f5ee56350d4b636eaaa106405d545731563cc3751e792eecd6eefc1f4d534fdfd31369099e8a9875cec63082ce91d6d753118a
6
+ metadata.gz: '0911ca70caeb923782156ac172204c42b35b0965b08fb526530aaeafcf267b4c333361837d602f5126395bec2820bb56623ea5ca4bca4b919c73d38f18969f0c'
7
+ data.tar.gz: 5b0d721e2898a6ed3902ce04e75be9e139c63d14a11f40ec0611683c00b5c844f171a606e5ba3cad4a4aad33e63ac74f20adad0e2e43aa5157fb5a75ca8f8738
data/README.md CHANGED
@@ -362,8 +362,8 @@ to manage all that w/ automagical gemfiles. So the tl;dr when testing locally is
362
362
 
363
363
  ## Compatibility
364
364
 
365
- * Ruby 2.3.0+
366
- * Rails 5.0+
365
+ * Ruby 3.0+
366
+ * Rails 6.1+
367
367
  * PostgreSQL 8.0+
368
368
  * MySQL 5.0.10+
369
369
  * SQLite 3.3.8+
@@ -372,4 +372,4 @@ to manage all that w/ automagical gemfiles. So the tl;dr when testing locally is
372
372
 
373
373
  ## Copyright
374
374
 
375
- Copyright (c) 2011-2022 Jon Jensen. See LICENSE.txt for further details.
375
+ Copyright (c) 2011-2024 Jon Jensen. See LICENSE.txt for further details.
@@ -1,5 +1,5 @@
1
1
  module HairTrigger
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
 
4
4
  def VERSION.<=>(other)
5
5
  split(/\./).map(&:to_i) <=> other.split(/\./).map(&:to_i)
@@ -11,7 +11,8 @@ namespace :db do
11
11
  namespace :schema do
12
12
  desc "Create a db/schema.rb file that can be portably used against any DB supported by AR"
13
13
  task :dump => :environment do
14
- next unless ActiveRecord::Base.schema_format == :ruby
14
+ format = ActiveRecord.respond_to?(:schema_format) ? ActiveRecord.schema_format : ActiveRecord::Base.schema_format
15
+ next unless format == :ruby
15
16
 
16
17
  require 'active_record/schema_dumper'
17
18
 
@@ -43,7 +44,7 @@ namespace :db do
43
44
 
44
45
  # code adopted from activerecord/lib/active_record/tasks/database_tasks.rb#L441
45
46
  def dump_filename(db_config_name)
46
- format = ActiveRecord::Base.schema_format
47
+ format = ActiveRecord.respond_to?(:schema_format) ? ActiveRecord.schema_format : ActiveRecord::Base.schema_format
47
48
  filename = if ActiveRecord::Base.configurations.primary?(db_config_name)
48
49
  schema_file_type(format)
49
50
  else
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hairtrigger
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jon Jensen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-01-02 00:00:00.000000000 Z
11
+ date: 2024-01-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activerecord