valodzka-view_fu 0.9.5 → 0.9.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,5 @@
1
- module BrowserDetect::Helper
1
+ module BrowserDetect
2
+ module Helper
2
3
 
3
4
  # check the current browser (via user agent) for the following:
4
5
  # :mozilla
@@ -42,4 +43,5 @@ module BrowserDetect::Helper
42
43
  end
43
44
  end
44
45
  end
45
- end
46
+ end
47
+ end
@@ -1,11 +1,15 @@
1
1
  module ViewFu
2
2
  module MetaHelper
3
3
  # Output the current page's meta tags
4
- def meta_tags
5
- %(
6
- <meta name="keywords" content="#{meta_keywords}" />
7
- <meta name="description" content="#{meta_description}" />
8
- )
4
+ def meta_tags(opts={ })
5
+ keywords = meta_keywords
6
+ keywords = opts[:keywords] if keywords.blank?
7
+ description = meta_description
8
+ description = opts[:description] if description.blank?
9
+ <<-META
10
+ <meta name="keywords" content="#{meta_keywords}" />
11
+ <meta name="description" content="#{meta_description}" />
12
+ META
9
13
  end
10
14
 
11
15
  # Get/Set Meta Keywords
@@ -48,4 +52,4 @@ module ViewFu
48
52
  return @__meta_description
49
53
  end
50
54
  end
51
- end
55
+ end
@@ -1,5 +1,6 @@
1
1
  require 'rubygems'
2
2
  require 'test/unit'
3
+ require 'action_view'
3
4
  require 'browser_detect/helper'
4
5
 
5
6
  class BrowserDetectTest < Test::Unit::TestCase
data/view_fu.gemspec CHANGED
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'view_fu'
3
- s.version = '0.9.5'
4
- s.date = '2008-11-15'
3
+ s.version = '0.9.6'
4
+ s.date = '2009-08-09'
5
5
 
6
6
  s.summary = "Lots of handy Rails View helpers. Includes the functionality of Headliner, Styler, and Javascripter"
7
7
  s.description = "ViewFu is a Rails plugin that provides all the miscellaneous View tasks. It's a combination of the functionality of Styler, Javascripter, and Headline (from Patrick Crowley, the.railsi.st) - along with additional tweaks such as providing commonly used View Helpers Methods."
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: valodzka-view_fu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.5
4
+ version: 0.9.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tyler Crocker
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-11-15 00:00:00 -08:00
12
+ date: 2009-08-09 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency