qui-toolbar 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Rakefile CHANGED
@@ -9,7 +9,7 @@ begin
9
9
  gemspec.email = "marcin@saepia.net"
10
10
  gemspec.homepage = "http://q.saepia.net"
11
11
  gemspec.authors = ["Marcin Lewandowski"]
12
- gemspec.version = "0.0.4"
12
+ gemspec.version = "0.0.5"
13
13
  gemspec.files = Rake::FileList.new [ "MIT-LICENSE", "Rakefile", "public/stylesheets/qui/*", "lib/*", "rails/*", "README.rdoc" ]
14
14
  end
15
15
  rescue LoadError
@@ -26,6 +26,10 @@ module QUI
26
26
  add_toolbar_link_to({ :controller => controller_name, :action => "index" }, { :action => :index })
27
27
  end
28
28
 
29
+ def custom(options = {})
30
+ options[:content]
31
+ end
32
+
29
33
  def separator
30
34
  content_tag(:div, "", :class => "separator")
31
35
  end
@@ -5,11 +5,11 @@ module QUI
5
5
  @toolbar_count ||= 0
6
6
  raise RuntimeError, "@toolbar_count must be integer" unless @toolbar_count.is_a? Fixnum
7
7
 
8
-
9
8
  contents = capture do
10
9
  yield QUI::Toolbar::Base.new b.binding
11
10
  end
12
11
 
12
+
13
13
  options[:html_options] ||= {}
14
14
  options[:html_options][:id] ||= "toolbar_#{@toolbar_count}"
15
15
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: qui-toolbar
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 4
10
- version: 0.0.4
9
+ - 5
10
+ version: 0.0.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Marcin Lewandowski
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-08-22 00:00:00 +02:00
18
+ date: 2010-12-07 00:00:00 +01:00
19
19
  default_executable:
20
20
  dependencies: []
21
21