spina-blocks 0.1.2 → 0.1.3

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: 8080a1b60cf27e9ce3dedd84b24c0eea3bd9059071f5a8983e09281168ab701a
4
- data.tar.gz: 4e4e314f77217684b7608810db9c3c98db9955cdcb30dda6a1b3480724f57ae6
3
+ metadata.gz: 6301b8b0d534b042284b0738b486281b7617397fa077f6b762696d6edc25b7b2
4
+ data.tar.gz: c3699157a621b246c3f343ee41b10ddffbb40b671f40e8867a56750a030df709
5
5
  SHA512:
6
- metadata.gz: d958eaac09962f67d5cf861e27123da4b43e26332533e06575e8adc6ec32e0cbf4855ace4dfc8f9ecc549de3ad712a36b46f60e1e392a7623539dc6c515b9e0b
7
- data.tar.gz: 1e4bf92608f2ab86fc28de5ea7e4f220b46d987a4914901dc925d80392136532e8cf43632102599aa0613a24e7e2b9fad8e72d6d8838d8b9a9e425d53e3f1fa6
6
+ metadata.gz: d7f2e5ba669c27f4f5934872107678f2a3f4dd57adea37bebda8cc82151b233974b09cea910cc657546fe57d96d3bb7d4bb3b6cead238fa345896485c77b22c6
7
+ data.tar.gz: 8d92d25c803fc7d4e77fef11ccbd3b2df3acc4e436ae6bfc5f4a0fae5b6106a83b67836e859a2ae2d1ac5cca1067999caab20ad0a34568ac18e807db707e34e9
@@ -0,0 +1,24 @@
1
+ # frozen_string_literal: true
2
+
3
+ class UpdateSpinaBlocksMigrationVersions < ActiveRecord::Migration[7.0]
4
+ VERSIONS_MAPPING = {
5
+ '1' => '20250101000001',
6
+ '2' => '20250101000002',
7
+ '3' => '20250101000003',
8
+ '4' => '20250101000004'
9
+ }.freeze
10
+
11
+ def up
12
+ VERSIONS_MAPPING.each do |old_version, new_version|
13
+ execute <<~SQL.squish
14
+ UPDATE schema_migrations
15
+ SET version = '#{new_version}'
16
+ WHERE version = '#{old_version}'
17
+ SQL
18
+ end
19
+ end
20
+
21
+ def down
22
+ # no-op: reverting to numbered migrations is not supported
23
+ end
24
+ end
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Spina
4
4
  module Blocks
5
- VERSION = '0.1.2'
5
+ VERSION = '0.1.3'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spina-blocks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Konstantin Kanashchuk
@@ -63,10 +63,11 @@ files:
63
63
  - app/views/spina/blocks/admin/page_blocks/index.html.erb
64
64
  - config/locales/en.yml
65
65
  - config/routes.rb
66
- - db/migrate/1_create_spina_blocks_categories.rb
67
- - db/migrate/2_create_spina_blocks_blocks.rb
68
- - db/migrate/3_create_spina_blocks_page_blocks.rb
69
- - db/migrate/4_remove_name_from_spina_blocks_blocks.rb
66
+ - db/migrate/20250101000000_update_spina_blocks_migration_versions.rb
67
+ - db/migrate/20250101000001_create_spina_blocks_categories.rb
68
+ - db/migrate/20250101000002_create_spina_blocks_blocks.rb
69
+ - db/migrate/20250101000003_create_spina_blocks_page_blocks.rb
70
+ - db/migrate/20250101000004_remove_name_from_spina_blocks_blocks.rb
70
71
  - lib/spina-blocks.rb
71
72
  - lib/spina/blocks/engine.rb
72
73
  - lib/spina/blocks/version.rb