Skip to content

Commit

Permalink
Merge pull request #127 from koedame/release/v0.5.1
Browse files Browse the repository at this point in the history
Release/v0.5.1
  • Loading branch information
unchidev authored Nov 24, 2024
2 parents 8e73be2 + 4ffe3af commit 9cc1a82
Show file tree
Hide file tree
Showing 8 changed files with 30 additions and 15 deletions.
3 changes: 2 additions & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ RUN apk add --no-cache \
git \
postgresql-dev \
chromium \
chromium-chromedriver
chromium-chromedriver \
libc6-compat

8 changes: 7 additions & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
rails-mermaid_erd (0.5.0)
rails-mermaid_erd (0.5.1)
rails (>= 5.2)

GEM
Expand Down Expand Up @@ -135,6 +135,10 @@ GEM
net-smtp (0.5.0)
net-protocol
nio4r (2.5.8)
nokogiri (1.16.7-aarch64-linux)
racc (~> 1.4)
nokogiri (1.16.7-arm64-darwin)
racc (~> 1.4)
nokogiri (1.16.7-x86_64-darwin)
racc (~> 1.4)
nokogiri (1.16.7-x86_64-linux)
Expand Down Expand Up @@ -277,6 +281,8 @@ GEM
zeitwerk (2.7.1)

PLATFORMS
aarch64-linux-musl
arm64-darwin-24
x86_64-darwin-21
x86_64-darwin-22
x86_64-linux
Expand Down
25 changes: 16 additions & 9 deletions RELEASE.md
Original file line number Diff line number Diff line change
@@ -1,20 +1,27 @@


## Perform a release

```bash
git checkout -b release/vx.x.x
```

in docekr devcontainer:

```bash
cd /workspace && bundle install
bundle install
bundle clean --force

cd /workspace && bundle exec bump patch --no-commit
bundle exec bump patch --no-commit
# or
cd /workspace && bundle exec bump minor --no-commit
bundle exec bump minor --no-commit
# or
cd /workspace && bundle exec bump major --no-commit

cd /workspace && bundle exec rspec
cd /workspace/spec/dummy && RAILS_ENV=test bundle exec rails mermaid_erd
bundle exec bump major --no-commit

cd /workspace/spec/dummy
RAILS_ENV=test bundle exec rails db:setup
cd /workspace/
bundle exec rspec
cd /workspace/spec/dummy
RAILS_ENV=test bundle exec rails mermaid_erd
cp -f /workspace/spec/dummy/mermaid_erd/index.html /workspace/docs/example.html
chromium-browser --headless --disable-gpu --no-sandbox --window-size=1200,800 --hide-scrollbars --screenshot="/workspace/docs/screen_shot.png" /workspace/spec/dummy/mermaid_erd/index.html
```
Expand Down
3 changes: 2 additions & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,9 @@ services:
build:
context: .
dockerfile: Dockerfile
working_dir: /workspace
volumes:
- .:/app
- .:/workspace
- bundle_data:/usr/local/bundle

db:
Expand Down
2 changes: 1 addition & 1 deletion docs/example.html
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ <h2 class="font-medium text-gray-900 mb-1">{{i18n[language]["models"]["title"]}}
<footer class="bg-gray-100">
<p class="text-center text-xs text-gray-600 py-2">
<a href="https://github.com/koedame/rails-mermaid_erd" class="hover:text-gray-400" target="_blank" rel="noopener noreferrer">
Rails Mermaid ERD v0.5.0
Rails Mermaid ERD v0.5.1
</a>
</p>
</footer>
Expand Down
Binary file modified docs/screen_shot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion lib/rails-mermaid_erd/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module RailsMermaidErd
VERSION = "0.5.0"
VERSION = "0.5.1"
end
2 changes: 1 addition & 1 deletion spec/dummy/db/schema.rb
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
#
# It's strongly recommended that you check this file into your version control system.

ActiveRecord::Schema[7.0].define(version: 2024_04_06_203417) do
ActiveRecord::Schema[7.1].define(version: 2024_04_06_203417) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"

Expand Down

0 comments on commit 9cc1a82

Please sign in to comment.