Skip to content
This repository has been archived by the owner on Jan 23, 2021. It is now read-only.

Commit

Permalink
Cleanup files related to test. (#85)
Browse files Browse the repository at this point in the history
Add .gitattributes to remove unused codes, especially only related to test.
Add entry which should be excluded.
  • Loading branch information
akiko-pusu authored Feb 17, 2017
1 parent adaa414 commit 5b93a26
Show file tree
Hide file tree
Showing 9 changed files with 277 additions and 204 deletions.
8 changes: 8 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
test/ export-ignore
spec/ export-ignore
.gitattributes export-ignore
.gitignore export-ignore
wercker.yml export-ignore
script/ export-ignore
.rubocop* export-ignore
Gemfile.local export-ignore
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,6 @@ coverage/
doc/
.yardoc/
Gemfile.lock
.history
.wercker
vendor/
File renamed without changes.
187 changes: 187 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,187 @@
# Redmine Banner Plugin

Plugin to show site-wide message from site administrator, such as maintenance
information or notifications.

Build Status: [![wercker status](https://app.wercker.com/status/d9d99ba1334f550bd82fd6ae5218523f/s/master "wercker status")](https://app.wercker.com/project/byKey/d9d99ba1334f550bd82fd6ae5218523f)

### Plugin installation

#### For Redmine 2.x:

For Redmine 2.1 or later, please use Version 0.0.8 or later. For Redmine 2.0,
please use Version 0.0.7.

1. Copy the plugin directory into the plugins directory.
2. Run the migration task. e.g. rake redmine:plugins:migrate
RAILS_ENV=production (For Redmine 2.x)
3. (Re)start Redmine.


Version 0.0.5 later, migration is required.

#### For Redmine 1.x:

For Redmine 1.x, please use version 0.0.6.

1. Copy the plugin directory into the vendor/plugins directory.
2. Run the migration task. e.g. rake db:migrate_plugins RAILS_ENV=production
(For Redmine 1.x)
3. (Re)start Redmine.


### Uninstall

For Redmine 2.x, use the following command:

* rake redmine:plugins:migrate NAME=redmine_banner VERSION=0
RAILS_ENV=production


For Redmine 1.x, use the following command:

* rake db:migrate_plugins NAME=redmine_banner VERSION=0 RAILS_ENV=production


### Usage for site wide banner

1. Go to plugin's page and click "Settings" link of Redmine Banner Plugin.
You can edit banner message and select style for message. Also you can
access setting page from administration menu, click "banner" icon.


### Usage for project scope banner

1. Banner can be used as project module. If you want to manage the banner for
your project, "Manage Banner" permission is required to your role.

2. Go to project settings tab and check "Banner" as project module.
3. Then you can see "Banner" tab on project settings page.


### Current limitations

1. Banner for each project does not support timer.
2. Banner for each project is located at the top of the project only. (Not
support footer)
3. To render banner, javascript (prototype.js) is required and banner will
not be shown correctly if you does not use modern browser.



### Note

To use this plugin with older Redmine versions (1.xx, 1.0.x...), please see this instruction.
https://github.com/akiko-pusu/redmine_banner/wiki/How-to-use-this-plugin-previous-version-(1.xx,-1.0.x...)

## Changelog

### 0.1.2

* Fix style and css selector. (Github: #45)
* Change global banner style for responsive mode. (Github: #68)
* Code refactoring.
* Fix: Prevent deprecation warning. (Github PR: #60) Thanks, Wojciech.
* Refactor: Rename file to prevent conflict (Github #63 / r-labs: 54).
* i18n: Update Italian translation file. (Github: #61 / r-labs: 57) Thanks,
R-i-c-k-y.
* i18n: Add Spanish translation file. (Github: #61 / r-labs: 52) Thanks
Picazamora!
* i18n: Update Turkish translation file. (Github: #64) Thank you so much,
Adnan.
* i18n: Update Portuguese translation file. (Github: #50) Thanks, Guilherme.


### 0.1.1

* Support Redmine 3.x.
* Update some translation files. Bulgarian, German. Thank you so much, Ivan
Cenov, Daniel Felix.
* Change column type of banner_description from string to text.Thank you so
much Namezero. (#44)


### 0.1.0

* Fixed bug: Global banner timer does not work. (r-labs: #1337)
* Feature: Add related link field for more information to Global Banner.
(r-labs: #1339)
* i18n: Update Korean translation file. (r-labs: #1329) Thank you so much,
Ki Won Kim.


### 0.0.9

* Authenticated users can turn off global banner in their session.
* Add option to show global banner only for authenticated users.
* Add option to show only at the login page.
* Code refactoring.
* Italian translation was contributed by @R-i-c-k-y.
* French translation was contributed by Laurent HADJADJ.


### 0.0.8

* Support Redmine 2.1. (Redmine 2.0.x is no longer supported. Please use
version 0.0.7 for Redmine 2.0.x)


### 0.0.7

* Compatible with Redmine 2.0.0


### 0.0.6

* Fixed bug: Project banner should be off when module turned disabled.
* Fixed bug: In some situation, "ActionView::TemplateError undefined method
is_action_to_display" is happened.
* Update Russian Translation. Thank you so much, Александр Ананьев.


### 0.0.5

* Support banner for each project. Thank you so much, Denny Schäfer, Haru
Iida.


### 0.0.4

* Support timer function.
* Add links to turn off or modify banner message quickly. (Links are shown
to Administrator only)


### 0.0.3

* Code refactoring. Stop to override base.rhtml and use javascript. Great
thanks, Haru Iida-san. Also, remove some "To-Do" section of README.

* Add translations. Russian, German, Brazilian Portugues. Thank you so much,
Александр Ананьев, Denny Schäfer, Maiko de Andrade!


### 0.0.2

* Support i18n.


### 0.0.1

* First release


### Repository

* https://github.com/akiko-pusu/redmine_banner


### WebPage

* http://www.r-labs.org/projects/banner (Project Page)


### License

This software is licensed under the GNU GPL v2. See COPYRIGHT and COPYING for
details.
157 changes: 0 additions & 157 deletions README.rdoc

This file was deleted.

2 changes: 1 addition & 1 deletion lib/tasks/test.rake
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ namespace :redmine_banner do
Rake::TestTask.new(:test) do |t|
t.libs << 'lib'
t.pattern = 'plugins/redmine_banner/test/**/*_test.rb'
t.verbose = false
t.warning = false
t.verbose = true
end
end
25 changes: 0 additions & 25 deletions redmine-ready.sh

This file was deleted.

Loading

0 comments on commit 5b93a26

Please sign in to comment.