xebec 2.5.0 → 2.5.1

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -103,6 +103,10 @@ See `Xebec::StylesheetGenerator` for more information about how to customize the
103
103
 
104
104
  To see the full range of features that Xebec supports, including internationalization and `before_filter`s for your controllers, check out the example application in `doc/example_app/`.
105
105
 
106
+ ### Extras
107
+
108
+ Check out `Xebec::WebAppThemeRenderer` if you're using [Andrea Franz's web-app-theme](http://github.com/pilu/web-app-theme). Check out `Xebec::TitleEnhancedNavBarRenderer` if you want to give your navigation items both content and a tooltip title.
109
+
106
110
  ## What's a *xebec*? ##
107
111
 
108
112
  Apple's dictionary provides the following entry:
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.5.0
1
+ 2.5.1
@@ -66,7 +66,7 @@ EOS
66
66
  def look_up_nav_bar(name, html_attributes)
67
67
  bar = super(name, html_attributes)
68
68
  if bar.kind_of?(Xebec::NavBar)
69
- bar = nav_bars[bar.name] = NavBarRenderer.new(bar, self)
69
+ bar = nav_bars[bar.name] = Xebec::renderer_class.new(bar, self)
70
70
  end
71
71
  bar
72
72
  end
@@ -13,6 +13,19 @@ class NavBarHelperTest < Test::Unit::TestCase
13
13
  assert @helper.nav_bar.kind_of?(Xebec::NavBarRenderer)
14
14
  end
15
15
 
16
+ should 'use a custom renderer class if one is set' do
17
+ begin
18
+ @old_renderer_class = Xebec::renderer_class
19
+ klass = Class.new do
20
+ def initialize(*args, &block); end;
21
+ end
22
+ Xebec::renderer_class = klass
23
+ assert @helper.nav_bar.kind_of?(klass)
24
+ ensure
25
+ Xebec::renderer_class = @old_renderer_class
26
+ end
27
+ end
28
+
16
29
  should 'return a NavBar with the given name' do
17
30
  assert_equal :snacks, @helper.nav_bar(:snacks).name
18
31
  end
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{xebec}
8
- s.version = "2.5.0"
8
+ s.version = "2.5.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["James A. Rosen"]
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 2
7
7
  - 5
8
- - 0
9
- version: 2.5.0
8
+ - 1
9
+ version: 2.5.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - James A. Rosen