Skip to content

Commit 858739c

Browse files
authored
Merge branch 'haru:develop' into develop
2 parents 1eb6695 + 8974f4b commit 858739c

File tree

6 files changed

+17
-26
lines changed

6 files changed

+17
-26
lines changed

.devcontainer/devcontainer.json

Lines changed: 10 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,22 +4,19 @@
44
"name": "Redmine plugin",
55
"dockerComposeFile": "docker-compose.yml",
66
"service": "app",
7-
87
"mounts": [
98
"source=${localWorkspaceFolder},target=/workspaces/${localWorkspaceFolderBasename},type=bind"
109
],
1110
"workspaceFolder": "/workspaces/${localWorkspaceFolderBasename}",
12-
1311
// Set *default* container specific settings.json values on container create.
14-
"settings": {
12+
"settings": {
1513
"sqltools.connections": [
1614
{
1715
"name": "Rails Development Database",
1816
"driver": "PostgreSQL",
1917
"previewLimit": 50,
2018
"server": "localhost",
2119
"port": 5432,
22-
2320
// update this to match config/database.yml
2421
"database": "app_development",
2522
"username": "vscode"
@@ -30,14 +27,12 @@
3027
"previewLimit": 50,
3128
"server": "localhost",
3229
"port": 5432,
33-
3430
// update this to match config/database.yml
3531
"database": "app_test",
3632
"username": "vscode"
3733
}
3834
]
3935
},
40-
4136
// Add the IDs of extensions you want installed when the container is created.
4237
"extensions": [
4338
"mtxr.sqltools",
@@ -52,24 +47,26 @@
5247
"Serhioromano.vscode-gitflow",
5348
"github.vscode-github-actions",
5449
"Shopify.ruby-extensions-pack",
55-
"ritwickdey.LiveServer"
50+
"ritwickdey.LiveServer",
51+
"aliariff.vscode-erb-beautify",
52+
"bysabi.prettier-vscode-standard",
53+
"GitHub.copilot",
54+
"Shunqian.prettier-plus",
55+
"Gruntfuggly.todo-tree"
5656
],
57-
5857
// Use 'forwardPorts' to make a list of ports inside the container available locally.
5958
// "forwardPorts": [3000, 5432],
60-
6159
// Use 'postCreateCommand' to run commands after the container is created.
6260
"postCreateCommand": "sh -x /post-create.sh",
63-
6461
// Comment out connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root.
6562
"remoteUser": "vscode",
6663
"features": {
6764
// "git": "latest"
6865
},
69-
7066
"containerEnv": {
7167
"PLUGIN_NAME": "${localWorkspaceFolderBasename}"
7268
},
73-
74-
"forwardPorts": [3000]
69+
"forwardPorts": [
70+
3000
71+
]
7572
}

.devcontainer/docker-compose.yml

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
version: '3'
1+
version: "3"
22

33
services:
44
app:
55
build:
66
context: ..
77
dockerfile: .devcontainer/Dockerfile
88
args:
9-
# Update 'VARIANT' to pick a version of Ruby: 3, 3.1, 3.2, 3.3, 3.4.
9+
# Update 'VARIANT' to pick a version of Ruby: 3, 3.1, 3.2, 3.3, 3.4
1010
# Append -bullseye or -buster to pin to an OS version.
1111
# Use -bullseye variants on local arm64/Apple Silicon.
1212
RUBY_VERSION: "3.4"
@@ -16,7 +16,8 @@ services:
1616

1717
# Overrides default command so things don't shut down after the process ends.
1818
command: sleep infinity
19-
19+
volumes:
20+
- ..:/usr/local/redmine/plugins/redmine_wiki_extensions
2021
# Runs app on the same network as the database container, allows "forwardPorts" in devcontainer.json function.
2122
# network_mode: service:postgres
2223
# Uncomment the next line to use a non-root user for all processes.

.devcontainer/post-create.sh

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,6 @@
11
#!/bin/sh
22
cd $REDMINE_ROOT
33

4-
if [ -d .git.sv ]
5-
then
6-
mv -s .git.sv .git
7-
git pull
8-
rm .git
9-
fi
10-
11-
ln -s /workspaces/${PLUGIN_NAME} plugins/${PLUGIN_NAME}
124
if [ -f plugins/${PLUGIN_NAME}/Gemfile_for_test ]
135
then
146
cp plugins/${PLUGIN_NAME}/Gemfile_for_test plugins/${PLUGIN_NAME}/Gemfile

.devcontainer/redmine.code-workspace

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
"path": ".."
55
},
66
{
7-
"path": "../../../usr/local/redmine"
7+
"path": "/usr/local/redmine"
88
}
99
],
1010
"settings": {}

init.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
author_url 'http://twitter.com/haru_iida'
4343
description 'This is a Wiki Extensions plugin for Redmine'
4444
url 'http://www.r-labs.org/projects/r-labs/wiki/Wiki_Extensions_en'
45-
version '1.0.2'
45+
version '1.1.0'
4646
requires_redmine :version_or_higher => '6.0.0'
4747

4848
project_module :wiki_extensions do

redmine_wiki_extensions

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
/workspaces/redmine_wiki_extensions

0 commit comments

Comments
 (0)