PluginGems » History » Version 2
Romain GEORGES, 2009-12-11 16:20
| 1 | 1 | Romain GEORGES | h1. Plugin Gems |
|---|---|---|---|
| 2 | |||
| 3 | 2 | Romain GEORGES | {{>toc}} |
| 4 | |||
| 5 | |||
| 6 | 1 | Romain GEORGES | h2. Copyright |
| 7 | |||
| 8 | Copyright (c) 2009 Romain GEORGES |
||
| 9 | Copyright Ultragreen (c) 2009 |
||
| 10 | 2 | Romain GEORGES | http://www.ultragreen.net |
| 11 | 1 | Romain GEORGES | Under BSD license |
| 12 | http://www.opensource.org/licenses/bsd-license.php |
||
| 13 | |||
| 14 | * Ruby is copyrighted free software by Yukihiro Matsumoto <matz@netlab.co.jp>. |
||
| 15 | Ruby under the Ruby License. |
||
| 16 | http://www.ruby-lang.org/en/LICENSE.txt |
||
| 17 | |||
| 18 | |||
| 19 | * Rails is copyrighted free software by David Heinemeier Hansson |
||
| 20 | Rails is released under the MIT license. |
||
| 21 | http://www.opensource.org/licenses/mit-license.php |
||
| 22 | "Rails", "Ruby on Rails", and the Rails logo are registered trademarks of David Heinemeier Hansson. All rights reserved. |
||
| 23 | |||
| 24 | * Redmine is copyrighted free software by Jean-Philippe Lang |
||
| 25 | Redmine © 2006-2009 Jean-Philippe Lang |
||
| 26 | Redmine is open source and released under the terms of the GNU General Public License v2 (GPL). |
||
| 27 | http://www.opensource.org/licenses/gpl-2.0.php |
||
| 28 | 2 | Romain GEORGES | |
| 29 | h2. Description |
||
| 30 | |||
| 31 | Automation Gems Building plugins for Redmine |
||
| 32 | |||
| 33 | |||
| 34 | Project Preview : http://www.ultragreen.net/projects/redmine-gems |
||
| 35 | SCM : http://www.ultragreen.net/projects/redmine-gems/files |
||
| 36 | ITS : http://www.ultragreen.net/projects/redmine-gems/issues |
||
| 37 | |||
| 38 | |||
| 39 | |||
| 40 | h2. Requierement |
||
| 41 | |||
| 42 | This plugins requiers |
||
| 43 | |||
| 44 | - Ruby 1.8.6 or higher |
||
| 45 | - Rails 2.2.2 or higher |
||
| 46 | - Redmine trunk from r2493 to r2886 or higher |
||
| 47 | |||
| 48 | |||
| 49 | *Warning* : this plugin will operate ONLY if you have a SUBVERSION repository configured on the Redmine Project where it has been added. |
||
| 50 | |||
| 51 | h2. Download |
||
| 52 | |||
| 53 | http://www.ultragreen.net/projects/redmine-gems/files |
||
| 54 | |||
| 55 | h2. Installation |
||
| 56 | |||
| 57 | <pre> |
||
| 58 | <code class="bash" |
||
| 59 | $ sudo bash |
||
| 60 | # export APP_ROOT= <path_vers_votre_app_rails> |
||
| 61 | # cd $APP_ROOT |
||
| 62 | # cd vendors/plugins |
||
| 63 | # svn export https://svn.ultragreen.net/public/redmine-gems/tags/<lastest_tags> redmine-gems |
||
| 64 | # rake db:migrate_plugins RAILS_ENV=production |
||
| 65 | </code> |
||
| 66 | </pre> |
||
| 67 | |||
| 68 | Reload Rails and Redmine. |
||
| 69 | |||
| 70 | |||
| 71 | h2. Configuration |
||
| 72 | |||
| 73 | The plugin could be setup in the |
||
| 74 | Administration>Plugins menu |
||
| 75 | |||
| 76 | *Configure* link of the "Redmine Gems" plugin |
||
| 77 | |||
| 78 | You have to precise to paths in this configuration panel. |
||
| 79 | |||
| 80 | - SVN exportation path |
||
| 81 | - gemdir path (gem server) (optionnel) |
||
| 82 | |||
| 83 | You could use two permissions in this plugin with the |
||
| 84 | |||
| 85 | Administration>Roles and permissions menu |
||
| 86 | |||
| 87 | For all of the different profiles avaibles : |
||
| 88 | |||
| 89 | * permission : View rubygems, |
||
| 90 | * permission : Build rubygems |
||
| 91 | |||
| 92 | |||
| 93 | Plugin must be added in all the projects you would use it in. |
||
| 94 | |||
| 95 | h2. Utilisation |
||
| 96 | |||
| 97 | h3. Human Processus |
||
| 98 | |||
| 99 | When have install this plugins as a module in a project, a "Gems" tabs could be found in the project menu after the "Repository" tabs. |
||
| 100 | If you click on this tabs, the plugin start and you could see if you a have a configured SVN Repository with tags create in it "tags" folder (mandatory). |
||
| 101 | The plugin also could ask you to create Redmine version to attach, if none exists (mandatory). |
||
| 102 | |||
| 103 | # if one/some SVN tags exists, plugin try to associate Redmine Version for each of this tags, if not you have to do this association yourself (select list). |
||
| 104 | # Plugin will scan the tags folder root th find a Rakefile (with a least the *clobber*, *clean* or *gem* generic Gem/rake targets ) or a Gemspec (*.gemspec files), if this methods exists twice, you have to choose one (select list). |
||
| 105 | # Plugin ask you some comments (optional). |
||
| 106 | # Click on the "Build" button to start the Gem building |
||
| 107 | |||
| 108 | * Date. |
||
| 109 | * Builder. |
||
| 110 | * Associated Redmine Version. |
||
| 111 | |||
| 112 | h3. Building processus |
||
| 113 | |||
| 114 | # Plugin try to remove eventual old exports. |
||
| 115 | # Plugin export the selected SVN tag. |
||
| 116 | # Plugin change directory in the tags folder. |
||
| 117 | # Plugin build Gem with the selected building method. |
||
| 118 | # Plugin attach gem file in the 'Files' Redmine module under the specified version. |
||
| 119 | # Plugin persist a building record (Rubygem Rails model) or modify existing one and add update date (display in the informations precised in the Gems building list). |
||
| 120 | |||
| 121 | The Rails model act as an activity and an event and the plugins as an Activity provider, so, in the "Activity" tab, you could see a message if you check (on the right side, in the default Redmine theme ) the box concerning Activities of the Redmine Gems |
||
| 122 | |||
| 123 | |||
| 124 | |||
| 125 | h2. Options |