merb-ui 0.4.4 → 0.4.5

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/Rakefile +1 -1
  2. data/app/helpers/global_helpers.rb +2 -1
  3. metadata +1 -1
data/Rakefile CHANGED
@@ -14,7 +14,7 @@ spec = Gem::Specification.new do |s|
14
14
  s.name = 'merb-ui'
15
15
  s.rubyforge_project = 'uipoet'
16
16
  s.summary = 'User Interface Components for Merb'
17
- s.version = '0.4.4'
17
+ s.version = '0.4.5'
18
18
  end
19
19
 
20
20
  Rake::GemPackageTask.new(spec) do |pkg|
@@ -263,7 +263,7 @@ module Merb::GlobalHelpers
263
263
  attributes[:name] = :q
264
264
  attributes[:style] = "width:#{options[:width]};" if options[:width]
265
265
  attributes[:type] = :text
266
- attributes[:value] = params[:q]
266
+ attributes[:value] = @query if @query
267
267
  inputs = self_closing_tag(:input, attributes) + mui_button(:submit => true, :title => 'Search')
268
268
  form = tag(:form, inputs, :action => options[:action])
269
269
  mui_block(:inline => true){form}
@@ -346,6 +346,7 @@ module Merb::GlobalHelpers
346
346
  if options[:title_url]
347
347
  title_attributes[:class] << ' mui_link'
348
348
  title_attributes[:href] = options[:title_url]
349
+ title_attributes[:title] = options[:title].gsub(/<\/?[^>]*>/, '')
349
350
  title_type = :a
350
351
  else
351
352
  title_type = :div
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: merb-ui
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.4
4
+ version: 0.4.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - UiPoet