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.
- data/lib/browser_detect/helper.rb +4 -2
- data/lib/view_fu/meta_helper.rb +10 -6
- data/test/browser_detect_test.rb +1 -0
- data/view_fu.gemspec +2 -2
- metadata +2 -2
data/lib/view_fu/meta_helper.rb
CHANGED
@@ -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
|
-
|
7
|
-
|
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
|
data/test/browser_detect_test.rb
CHANGED
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.
|
4
|
-
s.date = '
|
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.
|
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:
|
12
|
+
date: 2009-08-09 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|