menu_helper 0.0.5 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: menu_helper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aaron Pfeifer
8
- autorequire: menu_helper
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-06-22 00:00:00 -04:00
12
+ date: 2008-10-26 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -35,18 +35,18 @@ files:
35
35
  - test/app_root/app/controllers/contact_controller.rb
36
36
  - test/app_root/config
37
37
  - test/app_root/config/routes.rb
38
- - test/app_root/log
39
38
  - test/test_helper.rb
40
39
  - test/unit
41
40
  - test/unit/menu_bar_test.rb
42
41
  - test/unit/menu_test.rb
43
- - test/unit/menu_helper_test.rb
44
42
  - test/unit/html_element_test.rb
45
- - CHANGELOG
43
+ - test/helpers
44
+ - test/helpers/menu_helper_test.rb
45
+ - CHANGELOG.rdoc
46
46
  - init.rb
47
- - MIT-LICENSE
47
+ - LICENSE
48
48
  - Rakefile
49
- - README
49
+ - README.rdoc
50
50
  has_rdoc: true
51
51
  homepage: http://www.pluginaweek.org
52
52
  post_install_message:
@@ -68,13 +68,13 @@ required_rubygems_version: !ruby/object:Gem::Requirement
68
68
  version:
69
69
  requirements: []
70
70
 
71
- rubyforge_project:
72
- rubygems_version: 1.1.1
71
+ rubyforge_project: pluginaweek
72
+ rubygems_version: 1.2.0
73
73
  signing_key:
74
74
  specification_version: 2
75
75
  summary: Adds a helper method for generating a menubar
76
76
  test_files:
77
77
  - test/unit/menu_bar_test.rb
78
78
  - test/unit/menu_test.rb
79
- - test/unit/menu_helper_test.rb
80
79
  - test/unit/html_element_test.rb
80
+ - test/helpers/menu_helper_test.rb
data/CHANGELOG DELETED
@@ -1,35 +0,0 @@
1
- *SVN*
2
-
3
- *0.0.5* (June 22nd, 2008)
4
-
5
- * Remove log files from gems
6
-
7
- *0.0.4* (June 1st, 2008)
8
-
9
- * Remove dependency on set_or_append
10
-
11
- *0.0.3* (May 5th, 2008)
12
-
13
- * Updated documentation
14
-
15
- *0.0.2* (September 26th, 2007)
16
-
17
- * Add gem dependency on set_or_append
18
-
19
- * Convert dos newlines to unix newlines
20
-
21
- * Fix too many :nodoc: tags so that rdocs are generated properly
22
-
23
- *0.0.1* (August 16th, 2007)
24
-
25
- * Add README documentation
26
-
27
- * Add api documentation
28
-
29
- * Add dependency on plugin_test_helper in order to simplify the test setup code
30
-
31
- * Remove MainMenuBar in favor of providing a default id for MenuBar
32
-
33
- * Refactor helper classes into individual files
34
-
35
- * Add unit tests
@@ -1,30 +0,0 @@
1
- require File.dirname(__FILE__) + '/../test_helper'
2
-
3
- class MenuHelperTest < Test::Unit::TestCase
4
- include PluginAWeek::MenuHelper
5
-
6
- def test_should_build_menu_bar
7
- menu_bar_html = menu_bar({}, :class => 'pretty') do |main|
8
- main.menu :home do |home|
9
- home.menu :browse
10
- home.menu :search
11
- end
12
- main.menu :contact, 'Contact Us'
13
- main.menu :about_us
14
- end
15
-
16
- expected = <<-eos
17
- <ul class="pretty" id="menubar">
18
- <li id="home"><a href="http://test.host/">Home</a>
19
- <ul id="home_menubar">
20
- <li id="browse"><a href="http://test.host/home/browse">Browse</a></li>
21
- <li class="last" id="search"><a href="http://test.host/search_stuff">Search</a></li>
22
- </ul>
23
- </li>
24
- <li class="selected" id="contact"><a href="http://test.host/contact">Contact Us</a></li>
25
- <li class="last" id="about_us"><a href="http://test.host/about_us">About Us</a></li>
26
- </ul>
27
- eos
28
- assert_equal expected.gsub(/\n\s*/, ''), menu_bar_html
29
- end
30
- end