jetstream_bridge 7.0.1 → 7.0.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c1fefccd3db6dc8c8a197300fdb40f2240248aad44357e42a920b0a6b58bf4b5
4
- data.tar.gz: c83639e8450df86ae9ccc0de89dd54e0e6ffa280b39a276105e9c94fd7b36b5b
3
+ metadata.gz: b438f568ca21ece1da4e01f0fcea10ab2a2ec893e56a988a54808108f3e46830
4
+ data.tar.gz: d7733a1316e720b74d7ac3e887e48aeb49923a7aa555612249ee9ca90e0e3c65
5
5
  SHA512:
6
- metadata.gz: ca4d68e73467236d2b8c38f4d6edbaea1d1a0c335fb19e7eb85a25ebba8e9adab5ddd8df4bf990bfca326ae7b03f7d7138b7289df86cf3a5709a614434ad46ad
7
- data.tar.gz: 47cab006718f6e1e75f531db8d996e7a2d18e065949996ebd40f12db57bcb90d8329a05381a64292953c218b4076b1e747894c81e7344d5dc1606623b093bf55
6
+ metadata.gz: 197a224969a88b1a3df0652a7c42f1597e9b31068574ae4706f8d54710acc5597a1b45ef9deef164ad69c1b41155e7086d2b79d9e794dafd09fb1039247d55a9
7
+ data.tar.gz: 224e1a0a69233c419a296fc0184de56a414b2a409f7d6a17bf82a831f746193ee7f87f46bd712dc24f23b1f707494978979594ff84cddd451a0810f3a7a3083b
@@ -28,13 +28,23 @@ module JetstreamBridge
28
28
 
29
29
  # -- Rails::Generators::Migration plumbing --
30
30
  def self.next_migration_number(dirname)
31
- if ActiveRecord::Base.timestamped_migrations
31
+ if timestamped_migrations?
32
32
  Time.now.utc.strftime('%Y%m%d%H%M%S')
33
33
  else
34
34
  format('%.3d', current_migration_number(dirname) + 1)
35
35
  end
36
36
  end
37
37
 
38
+ def self.timestamped_migrations?
39
+ if ActiveRecord::Base.respond_to?(:timestamped_migrations)
40
+ ActiveRecord::Base.timestamped_migrations
41
+ elsif ActiveRecord::Migration.respond_to?(:timestamped_migrations)
42
+ ActiveRecord::Migration.timestamped_migrations
43
+ else
44
+ true
45
+ end
46
+ end
47
+
38
48
  private
39
49
 
40
50
  def migration_exists?(dirname, file_name)
@@ -4,5 +4,5 @@
4
4
  #
5
5
  # Version constant for the gem.
6
6
  module JetstreamBridge
7
- VERSION = '7.0.1'
7
+ VERSION = '7.0.2'
8
8
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jetstream_bridge
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.0.1
4
+ version: 7.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Attara