jetstream_bridge 7.0.3 → 7.0.4

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: 3987a6471d65daf7af34a7b010201708e5958be9a438a555c9e4454724665a05
4
- data.tar.gz: eb50cc9fbf525cb7262878c4442e2f40d9622ae83ecd6d855952557fba656d0e
3
+ metadata.gz: b5274a3beb50960035ce3e72f5d4a6f0dbb73921958cc1321c2df01f192d28a4
4
+ data.tar.gz: e4cb2e3020d9b41ee0c6949d68251cf38c058b79451d03b1c65a2e8fddb5a5d5
5
5
  SHA512:
6
- metadata.gz: e8d73031cc47224189f633875213c6f3c7e2bf21d500ee147c87f05f9bbd61133094933d216da1dd2b49d0eb2a53f9e86561d98b6a73dcbf40a484ae60ad4e88
7
- data.tar.gz: 3e4d74d0a21f6a7fcf803526d0adbd68032df9640225943ded56b7ab04020616501735fb3e30071ceff755fac6586ff37e2822c781ef92b7efa19a86fa735150
6
+ metadata.gz: 9f37289e6bbcc57c933426dbdf7feb33acd9a69dd164d8fe9805c7e9d08b6da5a1c55f6526f80f5126722a11f5ba1a9cf8cdad6f2d966588b6d9b3de6240f448
7
+ data.tar.gz: df897be8ec356cec4c654b6e182539c03c4083dac42e04b54f5934ece1f7ccf9bd8e4e99775eaac5723c79097fd39a5423668f4d6a0d4f091f42686b5f127c71
@@ -28,11 +28,12 @@ module JetstreamBridge
28
28
 
29
29
  # -- Rails::Generators::Migration plumbing --
30
30
  def self.next_migration_number(dirname)
31
- if timestamped_migrations?
32
- Time.now.utc.strftime('%Y%m%d%H%M%S')
33
- else
34
- format('%.3d', current_migration_number(dirname) + 1)
35
- end
31
+ return format('%.3d', current_migration_number(dirname) + 1) unless timestamped_migrations?
32
+
33
+ current_timestamp = Time.now.utc.strftime('%Y%m%d%H%M%S').to_i
34
+ last_migration = current_migration_number(dirname) + 1
35
+
36
+ [current_timestamp, last_migration].max.to_s
36
37
  end
37
38
 
38
39
  def self.timestamped_migrations?
@@ -4,5 +4,5 @@
4
4
  #
5
5
  # Version constant for the gem.
6
6
  module JetstreamBridge
7
- VERSION = '7.0.3'
7
+ VERSION = '7.0.4'
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.3
4
+ version: 7.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Attara