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 +4 -4
- data/db/migrate/20250101000000_update_spina_blocks_migration_versions.rb +24 -0
- data/lib/spina/blocks/version.rb +1 -1
- metadata +6 -5
- /data/db/migrate/{1_create_spina_blocks_categories.rb → 20250101000001_create_spina_blocks_categories.rb} +0 -0
- /data/db/migrate/{2_create_spina_blocks_blocks.rb → 20250101000002_create_spina_blocks_blocks.rb} +0 -0
- /data/db/migrate/{3_create_spina_blocks_page_blocks.rb → 20250101000003_create_spina_blocks_page_blocks.rb} +0 -0
- /data/db/migrate/{4_remove_name_from_spina_blocks_blocks.rb → 20250101000004_remove_name_from_spina_blocks_blocks.rb} +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6301b8b0d534b042284b0738b486281b7617397fa077f6b762696d6edc25b7b2
|
|
4
|
+
data.tar.gz: c3699157a621b246c3f343ee41b10ddffbb40b671f40e8867a56750a030df709
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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
|
data/lib/spina/blocks/version.rb
CHANGED
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.
|
|
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/
|
|
67
|
-
- db/migrate/
|
|
68
|
-
- db/migrate/
|
|
69
|
-
- db/migrate/
|
|
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
|
|
File without changes
|
/data/db/migrate/{2_create_spina_blocks_blocks.rb → 20250101000002_create_spina_blocks_blocks.rb}
RENAMED
|
File without changes
|
|
File without changes
|