-
Notifications
You must be signed in to change notification settings - Fork 0
/
README
34 lines (27 loc) · 1.24 KB
/
README
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
HAN
===========
This is a plugin for OpenPHIN.
1) plugins are registerd in the global array $expansion_list
2) javascript and stylesheet files
- any javascript and stylesheet files for the plugin are registered with
rails register_javascript_expansion() and register_stylesheet_expansion()
- the paths must be relative to Rails.root/public
- the plugin install.rb must make links to the plugin js/css dirs in
Rails.root/public
3) run cucumber tests for this plugin with 'rake cucumber:HAN'
4) run spec tests for this plugin with 'rake spec:HAN'
The following was done initially to setup the plugin:
1) edited Rails.root/spec/spec_helper.rb to
- set fixture path to han/spec/fixtures/
- load han/spec/factories.rb
2) Edited han/install.rb to create
- link in Rails.root/public to vendor/plugins/han/public/javascripts
- link in Rails.root/public to vendor/plugins/han/public/stylesheets
- link in han/spec/spec_helper.rb -> Rails.root/spec/spec_helper.rb
3) Necessary factories were defined in han/spec/factories.rb
4) Defined tasks in han/tasks/cucumber.rake & han/tasks/rspec.rake
5) Defined migrations in han/tasks/han_tasks.rake
Example
=======
Example goes here.
Copyright (c) 2010 [name of plugin creator], released under the MIT license