hierarchical_menu 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
data/Changelog CHANGED
@@ -1,3 +1,7 @@
1
+ 0.1.3
2
+
3
+ * no longer use CamelCase pre-v0.8 API of Rubytree
4
+
1
5
  0.1.2
2
6
 
3
7
  * fix a serious bug/typo in Node#add_path
@@ -7,7 +7,7 @@ module HMenu
7
7
  end
8
8
 
9
9
 
10
- VERSION = '0.1.2'
10
+ VERSION = '0.1.3'
11
11
  # TODO: manage symlinks...
12
12
  ROOTDIR = self.rootdir_pathname.to_s
13
13
 
data/lib/hmenu/node.rb CHANGED
@@ -55,7 +55,7 @@ module HMenu
55
55
 
56
56
  hmenu_content_class = "hmenu-content"
57
57
 
58
- hmenu_content_class << " hmenu-root" if isRoot?
58
+ hmenu_content_class << " hmenu-root" if is_root?
59
59
 
60
60
  if o
61
61
  hmenu_content_class << ' ' << o[:extra_class] if o[:extra_class]
@@ -71,9 +71,9 @@ module HMenu
71
71
  s << "<#{ctag} class=\"#{hmenu_content_class}\">" << name.capitalize << "</#{ctag}>"
72
72
  end
73
73
 
74
- if hasChildren?
74
+ if has_children?
75
75
 
76
- if isRoot?
76
+ if is_root?
77
77
  s += '<ul class="hmenu">'
78
78
  else
79
79
  s += "<ul>"
@@ -87,12 +87,12 @@ module HMenu
87
87
  end
88
88
 
89
89
  css_li_class =
90
- child.hasChildren? ?
90
+ child.has_children? ?
91
91
  'hmenu-submenu' :
92
92
  'hmenu-item'
93
93
  css_li_class << ' ' << o[:extra_class] if o and o[:extra_class]
94
94
  css_bullet_class =
95
- child.hasChildren? ?
95
+ child.has_children? ?
96
96
  'hmenu-bullet' :
97
97
  'hmenu-bullet-nochildren'
98
98
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 2
9
- version: 0.1.2
8
+ - 3
9
+ version: 0.1.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Guido De Rosa
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-09-28 00:00:00 +02:00
17
+ date: 2010-10-09 00:00:00 +02:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -27,7 +27,9 @@ dependencies:
27
27
  - !ruby/object:Gem::Version
28
28
  segments:
29
29
  - 0
30
- version: "0"
30
+ - 8
31
+ - 0
32
+ version: 0.8.0
31
33
  type: :runtime
32
34
  version_requirements: *id001
33
35
  description: Ruby Tree based hierarchical menus with HTML output and JavaScript show/hide