Skip to content

Commit 7f42b3e

Browse files
committed
Fix missing ERB templates in mysql_genius-core gem package (backport to 0.5.x)
1 parent 38b7804 commit 7f42b3e

5 files changed

Lines changed: 13 additions & 3 deletions

File tree

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## 0.5.1
4+
5+
### Fixed
6+
- **ERB templates missing from `mysql_genius-core` gem package.** The gemspec glob only matched `*.rb` files, excluding the shared ERB templates. The dashboard crashed with `MissingTemplate` error when installed from RubyGems. Fixed by changing the glob to `*.{rb,erb}`.
7+
38
## 0.5.0
49

510
### Changed

gems/mysql_genius-core/CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
# Changelog
22

3+
## 0.5.1
4+
5+
### Fixed
6+
- **ERB templates missing from gem package.** The `spec.files` glob only matched `*.rb`, excluding the shared ERB templates at `lib/mysql_genius/core/views/`. Fixed by changing to `*.{rb,erb}`.
7+
38
## 0.5.0
49

510
### Added

gems/mysql_genius-core/lib/mysql_genius/core/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,6 @@
22

33
module MysqlGenius
44
module Core
5-
VERSION = "0.5.0"
5+
VERSION = "0.5.1"
66
end
77
end

gems/mysql_genius-core/mysql_genius-core.gemspec

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ Gem::Specification.new do |spec|
2424
spec.metadata["changelog_uri"] = "#{spec.homepage}/blob/main/gems/mysql_genius-core/CHANGELOG.md"
2525

2626
spec.files = Dir.chdir(__dir__) do
27-
Dir.glob("lib/**/*.rb") + ["mysql_genius-core.gemspec", "CHANGELOG.md", "README.md"].select { |f| File.exist?(File.join(__dir__, f)) }
27+
Dir.glob("lib/**/*.{rb,erb}") + ["mysql_genius-core.gemspec", "CHANGELOG.md", "README.md"].select { |f| File.exist?(File.join(__dir__, f)) }
2828
end
2929
spec.require_paths = ["lib"]
3030

lib/mysql_genius/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# frozen_string_literal: true
22

33
module MysqlGenius
4-
VERSION = "0.5.0"
4+
VERSION = "0.5.1"
55
end

0 commit comments

Comments
 (0)