Skip to content

Commit 479dd6a

Browse files
authored
Release 0.5.0
## Version: 0.5.0 ### Improvements - [Redmine 5.0 compatibility.](#91) - Added view of all keys - Key tags view improved, tags are colored now - Keys search improved for all and per project - Added copy to clipboard for login - Added browser title for plugin page - Added new type of key SFTP - Fixed compatibility issue with the new Zeitwerk loader - Improved translation - Code refactoring - Added Github Actions for CI Co-Authored-By: Jan <7881168+JanB97@users.noreply.github.com> Co-Authored-By: lluisgener <22933112+lluisgener@users.noreply.github.com> Co-authored-by: Pavlo Butenko <pavlo.butenko@deveit.eu> Co-authored-by: Sir-Will <brieftaubenman@gmail.com> Co-authored-by: Vladimir Tananko <58197515+bs-prog@users.noreply.github.com> Co-authored-by: Stanislav <giwinax@gmail.com> Co-authored-by: vikiesakki <vemcse@gmail.com>
1 parent 88c61bc commit 479dd6a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

52 files changed

+771
-402
lines changed

.github/database.yml

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
test:
2+
adapter: sqlite3
3+
database: db/redmine_test.sqlite3
4+
5+
production:
6+
adapter: sqlite3
7+
database: db/redmine_production.sqlite3
8+
9+
development:
10+
adapter: sqlite3
11+
database: db/redmine_development.sqlite3

.github/workflows/ci.yml

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
name: Test Redmine Plugin
2+
3+
on: [push]
4+
5+
jobs:
6+
test:
7+
runs-on: ubuntu-latest
8+
9+
strategy:
10+
matrix:
11+
ruby-version: [3.2]
12+
13+
env:
14+
REDMINE_VER: 5.1-stable
15+
PLUGIN_NAME: vault
16+
REDMINE_GIT_REPO: https://github.com/redmine/redmine.git
17+
REDMINE_PATH: ${{ github.workspace }}/redmine
18+
RAILS_ENV: test
19+
20+
steps:
21+
- name: Set up Ruby
22+
uses: ruby/setup-ruby@v1
23+
with:
24+
ruby-version: ${{ matrix.ruby-version }}
25+
26+
- name: Checkout code
27+
uses: actions/checkout@v2
28+
29+
- name: Checkout redmine repo
30+
run: git clone --depth=1 --branch=$REDMINE_VER $REDMINE_GIT_REPO $REDMINE_PATH
31+
32+
- name: Install dependencies
33+
run: |
34+
sudo apt-get update
35+
sudo apt-get install -y sqlite3
36+
37+
- name: Set up database
38+
run: |
39+
cd $REDMINE_PATH
40+
ln -s ${{ github.workspace }} $REDMINE_PATH/plugins/$PLUGIN_NAME
41+
cp ${{ github.workspace }}/.github/database.yml $REDMINE_PATH/config/database.yml
42+
bundle install
43+
bundle exec rake db:create db:migrate redmine:plugins:migrate
44+
45+
- name: Run tests
46+
run: |
47+
cd $REDMINE_PATH
48+
export SKIP_COVERAGE=1
49+
bundle exec rake redmine:plugins:test:units NAME=$PLUGIN_NAME RUBYOPT="-W0"
50+
bundle exec rake redmine:plugins:test:integration NAME=$PLUGIN_NAME RUBYOPT="-W0"
51+
bundle exec rake redmine:plugins:migrate NAME=$PLUGIN_NAME VERSION=0

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1 +1,2 @@
11
.idea/
2+
/.project

.travis-database.yml

-11
This file was deleted.

.travis.yml

-31
This file was deleted.

CHANGELOG.md

+45-25
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,39 @@
1-
## Version: 0.4.3 (10.05.2021)
1+
## Version: 0.5.0
2+
### Improvements
3+
- [Redmine 5.0 compatibility.](https://github.com/noshutdown-ru/vault/issues/91)
4+
- Added view of all keys
5+
- Key tags view improved, tags are colored now
6+
- Keys search improved for all and per project
7+
- Added copy to clipboard for login
8+
- Added browser title for plugin page
9+
- Added new type of key SFTP
10+
- Fixed compatibility issue with the new Zeitwerk loader
11+
- Improved translation
12+
- Code refactoring
13+
- Added Github Actions for CI
14+
15+
### Braking changes
16+
- Deleted code which checks Redmine version
17+
- `Redmine::VERSION.to_s.start_with?`
18+
- 3.1/3.2/3.3/3.4/4
19+
20+
## Version: 0.4.3
221
### Bugfix
322
- [Saving settings path](https://github.com/noshutdown-ru/vault/pull/67)
423
- Fixed saving settings if key empty
524

6-
## Version: 0.4.2 (10.05.2021)
25+
## Version: 0.4.2
726
### Improvements
827
- Added support of Redmine 4.2.1.stable, tested on 2.7.3-p183
928
- Updated English translation Keys changed to Passwords
1029
- Error handling for Encryption Key (VaultEencryption) now must be exact 16 symbols
1130

12-
## Version: 0.4.1 (04.01.2020)
31+
## Version: 0.4.1
1332
### Improvements
1433
- [Redmine 4.1 compatibility.](https://github.com/noshutdown-ru/vault/issues/57)
1534
- Added CHANGELOG.md
1635

17-
## Version: 0.4.0 (22.12.2019)
36+
## Version: 0.4.0
1837
### Features
1938
- [Get keys from project by api call.](https://github.com/noshutdown-ru/vault/pull/54) `http --json GET http://redmine.server/projects/test1/keys.json key=...`
2039
### Improvements
@@ -28,51 +47,52 @@
2847
- [Export keys not working on Windows.](https://github.com/noshutdown-ru/vault/pull/52)
2948
- [Error in redmine subdir icons display.](https://github.com/noshutdown-ru/vault/pull/47)
3049

31-
## Version: 0.3.11 (10.02.2019)
50+
## Version: 0.3.11
3251
### Improvements
3352
- [Support Redmine 4.0.* .](https://github.com/noshutdown-ru/vault/pull/45)
3453
### Bugfixes
3554
- [Menu admin no icon.](https://github.com/noshutdown-ru/vault/issues/46)
3655

37-
## Version: 0.3.10 (10.12.2018)
56+
## Version: 0.3.10
3857
### Improvements
3958
- [Added Spanish translation.](https://github.com/noshutdown-ru/vault/pull/42)
4059
### Bugfixes
4160
- [Whitelist cannot be modifyed.](https://github.com/noshutdown-ru/vault/issues/41)
4261
- [Redmine encryption, password cannot be longer 32 characters.](https://github.com/noshutdown-ru/vault/issues/43)
4362

44-
## Version: 0.3.9 (23.05.2018)
63+
## Version: 0.3.9
4564
### Bugfixes
4665
- [Incompatible character encodings.](https://github.com/noshutdown-ru/vault/issues/37)
4766

48-
## Version: 0.3.8 (21.05.2018)
67+
## Version: 0.3.8
4968
### Improvements
5069
- [Added German translation.](https://github.com/noshutdown-ru/vault/pull/33)
5170
- [Added Portugal translation.](https://github.com/noshutdown-ru/vault/pull/26)
5271
### Bugfixes
5372
- [Double icon.](https://github.com/noshutdown-ru/vault/pull/31)
5473
- [Copy to clipboard.](https://github.com/noshutdown-ru/vault/issues/28)
5574

56-
## Version: 0.3.7 (20.02.2018)
75+
## Version: 0.3.7
5776
### Bugfixes
5877
- [Search not working.](https://github.com/noshutdown-ru/vault/issues/24)
5978

60-
## Version: 0.3.6 (13.02.2018)
79+
## Version: 0.3.6
6180
### Bugfixes
6281
- [Undefined method 'offset'.](https://github.com/noshutdown-ru/vault/issues/23)
6382

64-
## Version: 0.3.5 (06.02.2018)
83+
## Version: 0.3.5
6584
### Bugfixes
6685
- [White lists not block user by direct link.](https://github.com/noshutdown-ru/vault/issues/22)
67-
## Version: 0.3.4 (17.01.2018)
86+
87+
## Version: 0.3.4
6888
- [Error on searching by Name/URL (PostgreSQL).](https://github.com/noshutdown-ru/vault/issues/13)
6989
- [Right click no url (Redmine 3.4).](https://github.com/noshutdown-ru/vault/issues/17)
7090

71-
## Version: 0.3.3 (19.10.2017)
91+
## Version: 0.3.3
7292
### Improvements
7393
- Updated Chinese translation.
7494

75-
## Version: 0.3.2 (17.09.2017)
95+
## Version: 0.3.2
7696
### Features
7797
- Added support Redmine 3.4 .
7898
- Added copy by click on the fields: url, login.
@@ -82,11 +102,11 @@
82102
### Bugfixes
83103
- Fixed error uploading small files.
84104

85-
## Version: 0.3.1 (11.12.2016)
105+
## Version: 0.3.1
86106
### Bugfixes
87107
- Edit whitelists problem.
88108

89-
## Version: 0.3.0 (07.12.2016)
109+
## Version: 0.3.0
90110
### Features
91111
- Added separation of access rights for users (whitelist).
92112
- Supports Redmine 3.3 .
@@ -98,14 +118,14 @@
98118
### Deprecated
99119
- Supports Redmine 2.6 terminated.
100120

101-
## Version: 0.2.0 (08.07/2016)
121+
## Version: 0.2.0
102122
### Features
103123
- Added ability to search by Name, URL, Tag.
104124
- Added auto-complete for tags.
105125
- Added functionality of creating backup copies of keys (no tags).
106126
- Supports Redmine 3.2 .
107127

108-
## Version: 0.1.2 (27.02.2016)
128+
## Version: 0.1.2
109129
### Features
110130
- Added the ability to attach any file.
111131
- Added the ability to copy to the clipboard, each key field.
@@ -115,19 +135,19 @@
115135
### Bugfixes
116136
- Fixed an issue when you add a key file.
117137

118-
## Version: 0.1.0 (18.01.2016)
138+
## Version: 0.1.0
119139
### Improvements
120140
- Update version.
121141

122-
## Version: 0.0.6 (31.12.2015)
142+
## Version: 0.0.6
123143
### Features
124144
- Added the ability to specify a tag to the keys.
125145
- Added preview mode key card (without editing).
126146
- Added the ability to encrypt through redmine (database_cipher_key).
127147
### Improvements
128148
- Code refactoring.
129149

130-
## Version: 0.0.5 (01.11.2015)
150+
## Version: 0.0.5
131151
### Features
132152
- Added pagination.
133153
- Added ability to sort the keys by name.
@@ -137,24 +157,24 @@
137157
### Improvements
138158
- Updated field at the keys: Name, URL, User Name, Password, Comment.
139159

140-
## Version: 0.0.4 (01.10.2015)
160+
## Version: 0.0.4
141161
### Features
142162
- Adding ssh keys file.
143163
### Improvements
144164
- Updated design.
145165
- Separation of access by role.
146166
- Compatible with Redmine 2.6 .
147167

148-
## Version: 0.0.3 (02.09.2015)
168+
## Version: 0.0.3
149169
### Improvements
150170
- Compatible with Ruby 1.9.1 .
151171

152-
## Version: 0.0.2 (01.09.2015)
172+
## Version: 0.0.2
153173
### Features
154174
- Delete keys.
155175
- Encryption keys.
156176

157-
## Version: 0.0.1 (20.08.2015)
177+
## Version: 0.0.1
158178
### Features
159179
- Support Redmine 3.1.0.stable.
160180
- Support Ruby 2.2.2-p95,2.0.0-p598.

Gemfile

100644100755
+2-14
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,13 @@
11
source 'https://rubygems.org'
22

3-
redmine_version_file = File.expand_path("../../../lib/redmine/version.rb",__FILE__)
4-
5-
if (!File.exists? redmine_version_file)
6-
redmine_version_file = File.expand_path("lib/redmine/version.rb");
7-
end
8-
9-
version_file = IO.read(redmine_version_file)
10-
redmine_version_minor = version_file.match(/MINOR =/).post_match.match(/\d/)[0].to_i
11-
redmine_version_major = version_file.match(/MAJOR =/).post_match.match(/\d/)[0].to_i
12-
13-
if Gem::Version.new(redmine_version_major) >= Gem::Version.new('4')
14-
gem 'protected_attributes_continued', '1.4.0'
15-
end
16-
173
gem 'roo'
184
gem 'iconv'
195
gem 'rubyzip', '~> 2.3.0'
206
gem 'zip-zip'
7+
gem 'protected_attributes_continued', '1.8.2'
218

229
group :test, :development do
2310
gem 'byebug'
2411
gem 'capybara-screenshot'
2512
end
13+

README.md

+1-17
Original file line numberDiff line numberDiff line change
@@ -3,10 +3,6 @@
33
Is a plugin for project management system Redmine.
44
Allows you to store various passwords/keys in one place for the project.
55

6-
# About
7-
8-
https://noshutdown.ru/en/redmine-plugins-vault/#about
9-
106
# Installation
117

128
```
@@ -16,21 +12,9 @@ https://noshutdown.ru/en/redmine-plugins-vault/#about
1612
# bundle install --without development test
1713
# rake redmine:plugins:migrate RAILS_ENV=production
1814
```
19-
* **For Redmine older version 4.2** `Rails.application.config.assets.precompile += %w( zeroclipboard.js )`
20-
to `config/initializers/assets.rb` and restart your server.
2115

2216
* After installing a plugin, open the settings ( http://*/settings/plugin/vault )
2317
and enter encryption key in the Encryption key field.
2418

2519
* Or use encryption Redmine Encryption, to do this,
26-
add the encryption key to a file ( config/configuration.yml ), for example ( database_cipher_key: HediddAwkAbCunnoashtAlEcBuobdids ) and check the box on the Use Redmine Encryption.
27-
28-
Read more: https://noshutdown.ru/en/redmine-plugins-vault/#install
29-
30-
# Screenshots
31-
32-
https://noshutdown.ru/en/redmine-plugins-vault/#screens
33-
34-
# Releases
35-
36-
https://noshutdown.ru/en/redmine-plugins-vault/#releases
20+
add the encryption key to a file ( config/configuration.yml ), for example ( database_cipher_key: HediddAwkAbCunnoashtAlEcBuobdids ) and check the box on the Use Redmine Encryption.

0 commit comments

Comments
 (0)