site_meta 0.2.0 → 0.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.document +5 -0
- data/.gitignore +4 -0
- data/History.txt +4 -2
- data/LICENSE +20 -0
- data/Manifest.txt +5 -0
- data/README.rdoc +8 -8
- data/Rakefile +49 -0
- data/VERSION +1 -0
- data/lib/site_meta.rb +6 -2
- data/script/console +10 -0
- data/script/destroy +14 -0
- data/script/generate +14 -0
- data/site_meta.gemspec +67 -0
- data/spec/site_meta_spec.rb +169 -0
- data/spec/spec.opts +1 -0
- data/spec/spec_helper.rb +10 -0
- data/tasks/rspec.rake +21 -0
- metadata +52 -43
data/.document
ADDED
data/.gitignore
ADDED
data/History.txt
CHANGED
data/LICENSE
ADDED
@@ -0,0 +1,20 @@
|
|
1
|
+
Copyright (c) 2009 Łukasz Piestrzeniewicz
|
2
|
+
|
3
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
4
|
+
a copy of this software and associated documentation files (the
|
5
|
+
"Software"), to deal in the Software without restriction, including
|
6
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
7
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
8
|
+
permit persons to whom the Software is furnished to do so, subject to
|
9
|
+
the following conditions:
|
10
|
+
|
11
|
+
The above copyright notice and this permission notice shall be
|
12
|
+
included in all copies or substantial portions of the Software.
|
13
|
+
|
14
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
15
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
16
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
17
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
18
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
19
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
20
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/Manifest.txt
ADDED
data/README.rdoc
CHANGED
@@ -49,11 +49,11 @@ In your view:
|
|
49
49
|
|
50
50
|
(The MIT License)
|
51
51
|
|
52
|
-
Copyright (c) 2009
|
52
|
+
Copyright (c) 2009 Łukasz Piestrzeniewicz
|
53
53
|
|
54
54
|
Permission is hereby granted, free of charge, to any person obtaining
|
55
55
|
a copy of this software and associated documentation files (the
|
56
|
-
|
56
|
+
"Software"), to deal in the Software without restriction, including
|
57
57
|
without limitation the rights to use, copy, modify, merge, publish,
|
58
58
|
distribute, sublicense, and/or sell copies of the Software, and to
|
59
59
|
permit persons to whom the Software is furnished to do so, subject to
|
@@ -62,10 +62,10 @@ the following conditions:
|
|
62
62
|
The above copyright notice and this permission notice shall be
|
63
63
|
included in all copies or substantial portions of the Software.
|
64
64
|
|
65
|
-
THE SOFTWARE IS PROVIDED
|
65
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
66
66
|
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
67
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
68
|
-
IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
69
|
-
CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
70
|
-
TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
71
|
-
SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
67
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
68
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
69
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
70
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
71
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/Rakefile
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'rake'
|
3
|
+
|
4
|
+
begin
|
5
|
+
require 'jeweler'
|
6
|
+
Jeweler::Tasks.new do |gem|
|
7
|
+
gem.name = "site_meta"
|
8
|
+
gem.summary = %Q{helpers for easy adding of html meta information in web applications}
|
9
|
+
gem.description = %Q{Provides helpers for easy adding of html meta information to Rails applications.
|
10
|
+
* Easily add default description and keywords meta tags.
|
11
|
+
* Customize meta tags on per-view basis
|
12
|
+
* Add head title tag with breadcrubms
|
13
|
+
* Add page title}
|
14
|
+
gem.email = "bragi@ragnarson.com"
|
15
|
+
gem.homepage = "http://github.com/bragi/site_meta"
|
16
|
+
gem.authors = ["Łukasz Piestrzeniewicz"]
|
17
|
+
gem.add_development_dependency "rspec", ">= 1.2.9"
|
18
|
+
# gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
|
19
|
+
end
|
20
|
+
Jeweler::GemcutterTasks.new
|
21
|
+
rescue LoadError
|
22
|
+
puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
|
23
|
+
end
|
24
|
+
|
25
|
+
require 'spec/rake/spectask'
|
26
|
+
Spec::Rake::SpecTask.new(:spec) do |spec|
|
27
|
+
spec.libs << 'lib' << 'spec'
|
28
|
+
spec.spec_files = FileList['spec/**/*_spec.rb']
|
29
|
+
end
|
30
|
+
|
31
|
+
Spec::Rake::SpecTask.new(:rcov) do |spec|
|
32
|
+
spec.libs << 'lib' << 'spec'
|
33
|
+
spec.pattern = 'spec/**/*_spec.rb'
|
34
|
+
spec.rcov = true
|
35
|
+
end
|
36
|
+
|
37
|
+
task :spec => :check_dependencies
|
38
|
+
|
39
|
+
task :default => :spec
|
40
|
+
|
41
|
+
require 'rake/rdoctask'
|
42
|
+
Rake::RDocTask.new do |rdoc|
|
43
|
+
version = File.exist?('VERSION') ? File.read('VERSION') : ""
|
44
|
+
|
45
|
+
rdoc.rdoc_dir = 'rdoc'
|
46
|
+
rdoc.title = "site_meta #{version}"
|
47
|
+
rdoc.rdoc_files.include('README*')
|
48
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
49
|
+
end
|
data/VERSION
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
0.3.0
|
data/lib/site_meta.rb
CHANGED
@@ -190,7 +190,7 @@ module SiteMeta
|
|
190
190
|
end
|
191
191
|
|
192
192
|
def meta_tag(name, content, key='name') #:nodoc:
|
193
|
-
if
|
193
|
+
if respond_to?(:tag)
|
194
194
|
tag 'meta', key => name, :content => content
|
195
195
|
else
|
196
196
|
"<meta #{key}=\"#{name}\" content=\"#{content}\" />"
|
@@ -198,7 +198,11 @@ module SiteMeta
|
|
198
198
|
end
|
199
199
|
|
200
200
|
def title_tag(content) #:nodoc:
|
201
|
-
|
201
|
+
if respond_to?(:content_tag)
|
202
|
+
content_tag "title", content
|
203
|
+
else
|
204
|
+
"<title>#{content}</title>"
|
205
|
+
end
|
202
206
|
end
|
203
207
|
|
204
208
|
end
|
data/script/console
ADDED
@@ -0,0 +1,10 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# File: script/console
|
3
|
+
irb = RUBY_PLATFORM =~ /(:?mswin|mingw)/ ? 'irb.bat' : 'irb'
|
4
|
+
|
5
|
+
libs = " -r irb/completion"
|
6
|
+
# Perhaps use a console_lib to store any extra methods I may want available in the cosole
|
7
|
+
# libs << " -r #{File.dirname(__FILE__) + '/../lib/console_lib/console_logger.rb'}"
|
8
|
+
libs << " -r #{File.dirname(__FILE__) + '/../lib/site_meta.rb'}"
|
9
|
+
puts "Loading site_meta gem"
|
10
|
+
exec "#{irb} #{libs} --simple-prompt"
|
data/script/destroy
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
APP_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..'))
|
3
|
+
|
4
|
+
begin
|
5
|
+
require 'rubigen'
|
6
|
+
rescue LoadError
|
7
|
+
require 'rubygems'
|
8
|
+
require 'rubigen'
|
9
|
+
end
|
10
|
+
require 'rubigen/scripts/destroy'
|
11
|
+
|
12
|
+
ARGV.shift if ['--help', '-h'].include?(ARGV[0])
|
13
|
+
RubiGen::Base.use_component_sources! [:rubygems, :newgem, :newgem_theme, :test_unit]
|
14
|
+
RubiGen::Scripts::Destroy.new.run(ARGV)
|
data/script/generate
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
APP_ROOT = File.expand_path(File.join(File.dirname(__FILE__), '..'))
|
3
|
+
|
4
|
+
begin
|
5
|
+
require 'rubigen'
|
6
|
+
rescue LoadError
|
7
|
+
require 'rubygems'
|
8
|
+
require 'rubigen'
|
9
|
+
end
|
10
|
+
require 'rubigen/scripts/generate'
|
11
|
+
|
12
|
+
ARGV.shift if ['--help', '-h'].include?(ARGV[0])
|
13
|
+
RubiGen::Base.use_component_sources! [:rubygems, :newgem, :newgem_theme, :test_unit]
|
14
|
+
RubiGen::Scripts::Generate.new.run(ARGV)
|
data/site_meta.gemspec
ADDED
@@ -0,0 +1,67 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = %q{site_meta}
|
8
|
+
s.version = "0.3.0"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["\305\201ukasz Piestrzeniewicz"]
|
12
|
+
s.date = %q{2010-05-20}
|
13
|
+
s.description = %q{Provides helpers for easy adding of html meta information to Rails applications.
|
14
|
+
* Easily add default description and keywords meta tags.
|
15
|
+
* Customize meta tags on per-view basis
|
16
|
+
* Add head title tag with breadcrubms
|
17
|
+
* Add page title}
|
18
|
+
s.email = %q{bragi@ragnarson.com}
|
19
|
+
s.extra_rdoc_files = [
|
20
|
+
"LICENSE",
|
21
|
+
"README.rdoc"
|
22
|
+
]
|
23
|
+
s.files = [
|
24
|
+
".document",
|
25
|
+
".gitignore",
|
26
|
+
"History.txt",
|
27
|
+
"LICENSE",
|
28
|
+
"Manifest.txt",
|
29
|
+
"README.rdoc",
|
30
|
+
"Rakefile",
|
31
|
+
"VERSION",
|
32
|
+
"init.rb",
|
33
|
+
"lib/site_meta.rb",
|
34
|
+
"rails/init.rb",
|
35
|
+
"script/console",
|
36
|
+
"script/destroy",
|
37
|
+
"script/generate",
|
38
|
+
"site_meta.gemspec",
|
39
|
+
"spec/site_meta_spec.rb",
|
40
|
+
"spec/spec.opts",
|
41
|
+
"spec/spec_helper.rb",
|
42
|
+
"tasks/rspec.rake"
|
43
|
+
]
|
44
|
+
s.homepage = %q{http://github.com/bragi/site_meta}
|
45
|
+
s.rdoc_options = ["--charset=UTF-8"]
|
46
|
+
s.require_paths = ["lib"]
|
47
|
+
s.rubygems_version = %q{1.3.6}
|
48
|
+
s.summary = %q{helpers for easy adding of html meta information in web applications}
|
49
|
+
s.test_files = [
|
50
|
+
"spec/site_meta_spec.rb",
|
51
|
+
"spec/spec_helper.rb"
|
52
|
+
]
|
53
|
+
|
54
|
+
if s.respond_to? :specification_version then
|
55
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
56
|
+
s.specification_version = 3
|
57
|
+
|
58
|
+
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
59
|
+
s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
|
60
|
+
else
|
61
|
+
s.add_dependency(%q<rspec>, [">= 1.2.9"])
|
62
|
+
end
|
63
|
+
else
|
64
|
+
s.add_dependency(%q<rspec>, [">= 1.2.9"])
|
65
|
+
end
|
66
|
+
end
|
67
|
+
|
@@ -0,0 +1,169 @@
|
|
1
|
+
require File.dirname(__FILE__) + '/spec_helper.rb'
|
2
|
+
|
3
|
+
class SiteMetaInstance
|
4
|
+
include SiteMeta
|
5
|
+
end
|
6
|
+
|
7
|
+
class NilClass
|
8
|
+
def blank?
|
9
|
+
true
|
10
|
+
end
|
11
|
+
end
|
12
|
+
|
13
|
+
describe SiteMeta do
|
14
|
+
before(:each) do
|
15
|
+
@helper = SiteMetaInstance.new
|
16
|
+
end
|
17
|
+
|
18
|
+
it "should use given name and content for meta tag" do
|
19
|
+
@helper.meta_tag(:description, "Default").should == '<meta name="description" content="Default" />'
|
20
|
+
end
|
21
|
+
|
22
|
+
it "should use provided content for title tag" do
|
23
|
+
@helper.title_tag("Content").should == "<title>Content</title>"
|
24
|
+
end
|
25
|
+
|
26
|
+
describe "when used in ActionPack context" do
|
27
|
+
it "should use tag for meta" do
|
28
|
+
@helper.should_receive(:respond_to?).with(:tag).and_return(true)
|
29
|
+
@helper.should_receive("tag").with("meta", {"name" => :description, :content => "Default"})
|
30
|
+
@helper.meta_tag(:description, "Default")
|
31
|
+
end
|
32
|
+
|
33
|
+
it "should use content_tag for title" do
|
34
|
+
@helper.should_receive(:respond_to?).with(:content_tag).and_return(true)
|
35
|
+
@helper.should_receive("content_tag").with("title", "Content")
|
36
|
+
@helper.title_tag("Content")
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
describe "when providing description" do
|
41
|
+
it "should accept empty default description" do
|
42
|
+
@helper.meta_description
|
43
|
+
end
|
44
|
+
|
45
|
+
it "should not insert empty description meta tag" do
|
46
|
+
@helper.meta_description.should be_blank
|
47
|
+
end
|
48
|
+
|
49
|
+
it "should use default description" do
|
50
|
+
@helper.meta_description("Default").should == @helper.meta_tag(:description, "Default")
|
51
|
+
end
|
52
|
+
|
53
|
+
it "should use provided description" do
|
54
|
+
@helper.set_meta_description("Non-default")
|
55
|
+
@helper.meta_description("Default").should == @helper.meta_tag(:description, "Non-default")
|
56
|
+
end
|
57
|
+
end
|
58
|
+
|
59
|
+
describe "when providing keywords" do
|
60
|
+
it "should accept empty default keywords" do
|
61
|
+
@helper.meta_keywords
|
62
|
+
end
|
63
|
+
|
64
|
+
it "should not insert empty keywords meta tag" do
|
65
|
+
@helper.meta_keywords.should be_blank
|
66
|
+
end
|
67
|
+
|
68
|
+
it "should use default keywords" do
|
69
|
+
@helper.meta_keywords("default,keywords").should == @helper.meta_tag(:keywords, "default,keywords")
|
70
|
+
end
|
71
|
+
|
72
|
+
it "should use default when provided as array" do
|
73
|
+
@helper.meta_keywords(["default", "keywords"]).should == @helper.meta_tag(:keywords, "default,keywords")
|
74
|
+
end
|
75
|
+
|
76
|
+
it "should strip keywords" do
|
77
|
+
@helper.meta_keywords("default , keywords").should == @helper.meta_tag(:keywords, "default,keywords")
|
78
|
+
end
|
79
|
+
|
80
|
+
it "should merge provided keywords by default" do
|
81
|
+
@helper.set_meta_keywords("non,default")
|
82
|
+
@helper.meta_keywords("default,keywords").should == @helper.meta_tag(:keywords, "non,default,keywords")
|
83
|
+
end
|
84
|
+
|
85
|
+
it "should set keywords as array" do
|
86
|
+
@helper.set_meta_keywords(["non", "default"])
|
87
|
+
@helper.meta_keywords("default,keywords").should == @helper.meta_tag(:keywords, "non,default,keywords")
|
88
|
+
end
|
89
|
+
|
90
|
+
it "should strip set keywords" do
|
91
|
+
@helper.set_meta_keywords(["non ", " default"])
|
92
|
+
@helper.meta_keywords("default,keywords").should == @helper.meta_tag(:keywords, "non,default,keywords")
|
93
|
+
end
|
94
|
+
|
95
|
+
it "should merge provided keywords" do
|
96
|
+
@helper.set_meta_keywords("non,default", :merge)
|
97
|
+
@helper.meta_keywords("default,keywords").should == @helper.meta_tag(:keywords, "non,default,keywords")
|
98
|
+
end
|
99
|
+
|
100
|
+
it "should replace provided keywords" do
|
101
|
+
@helper.set_meta_keywords("non,default", :replace)
|
102
|
+
@helper.meta_keywords("default,keywords").should == @helper.meta_tag(:keywords, "non,default")
|
103
|
+
end
|
104
|
+
|
105
|
+
it "should reject unknown merge mode" do
|
106
|
+
lambda {
|
107
|
+
@helper.set_meta_keywords("non,default", :overwrite)
|
108
|
+
}.should raise_error(ArgumentError, "Allowed merge modes are only :replace, :merge")
|
109
|
+
end
|
110
|
+
end
|
111
|
+
|
112
|
+
describe "when providing head title" do
|
113
|
+
it "should provide default title" do
|
114
|
+
@helper.head_title("Site name").should == @helper.title_tag("Site name")
|
115
|
+
end
|
116
|
+
|
117
|
+
it "should accept string as title" do
|
118
|
+
@helper.set_head_title("Page title")
|
119
|
+
@helper.head_title("Site name").should == @helper.title_tag("Page title - Site name")
|
120
|
+
end
|
121
|
+
|
122
|
+
it "should accept array as title" do
|
123
|
+
@helper.set_head_title(["Page title"])
|
124
|
+
@helper.head_title("Site name").should == @helper.title_tag("Page title - Site name")
|
125
|
+
end
|
126
|
+
|
127
|
+
it "should accept multiple entries as title" do
|
128
|
+
@helper.set_head_title(["Item title", "View title"])
|
129
|
+
@helper.head_title("Site name").should == @helper.title_tag("Item title - View title - Site name")
|
130
|
+
end
|
131
|
+
|
132
|
+
it "should accept multiple entries as title without array" do
|
133
|
+
@helper.set_head_title("Item title", "View title")
|
134
|
+
@helper.head_title("Site name").should == @helper.title_tag("Item title - View title - Site name")
|
135
|
+
end
|
136
|
+
|
137
|
+
it "should use custom separator" do
|
138
|
+
@helper.set_head_title("Page title")
|
139
|
+
@helper.head_title("Site name", " » ").should == @helper.title_tag("Page title » Site name")
|
140
|
+
end
|
141
|
+
end
|
142
|
+
|
143
|
+
describe "when providing page title" do
|
144
|
+
it "should use given title" do
|
145
|
+
@helper.set_page_title("Page title")
|
146
|
+
@helper.page_title.should == "Page title"
|
147
|
+
end
|
148
|
+
end
|
149
|
+
|
150
|
+
describe "when providing page and head title" do
|
151
|
+
it "should accept string title" do
|
152
|
+
@helper.set_head_and_page_title("Page title")
|
153
|
+
@helper.page_title.should == "Page title"
|
154
|
+
@helper.head_title("Site name").should == @helper.title_tag("Page title - Site name")
|
155
|
+
end
|
156
|
+
|
157
|
+
it "should accept array title" do
|
158
|
+
@helper.set_head_and_page_title(["Item title", "View title"])
|
159
|
+
@helper.page_title.should == "Item title"
|
160
|
+
@helper.head_title("Site name").should == @helper.title_tag("Item title - View title - Site name")
|
161
|
+
end
|
162
|
+
|
163
|
+
it "should accept multiple elements title" do
|
164
|
+
@helper.set_head_and_page_title("Item title", "View title")
|
165
|
+
@helper.page_title.should == "Item title"
|
166
|
+
@helper.head_title("Site name").should == @helper.title_tag("Item title - View title - Site name")
|
167
|
+
end
|
168
|
+
end
|
169
|
+
end
|
data/spec/spec.opts
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
--colour
|
data/spec/spec_helper.rb
ADDED
data/tasks/rspec.rake
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
begin
|
2
|
+
require 'spec'
|
3
|
+
rescue LoadError
|
4
|
+
require 'rubygems'
|
5
|
+
require 'spec'
|
6
|
+
end
|
7
|
+
begin
|
8
|
+
require 'spec/rake/spectask'
|
9
|
+
rescue LoadError
|
10
|
+
puts <<-EOS
|
11
|
+
To use rspec for testing you must install rspec gem:
|
12
|
+
gem install rspec
|
13
|
+
EOS
|
14
|
+
exit(0)
|
15
|
+
end
|
16
|
+
|
17
|
+
desc "Run the specs under spec/models"
|
18
|
+
Spec::Rake::SpecTask.new do |t|
|
19
|
+
t.spec_opts = ['--options', "spec/spec.opts"]
|
20
|
+
t.spec_files = FileList['spec/**/*_spec.rb']
|
21
|
+
end
|
metadata
CHANGED
@@ -1,91 +1,100 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: site_meta
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
|
4
|
+
prerelease: false
|
5
|
+
segments:
|
6
|
+
- 0
|
7
|
+
- 3
|
8
|
+
- 0
|
9
|
+
version: 0.3.0
|
5
10
|
platform: ruby
|
6
11
|
authors:
|
7
|
-
-
|
12
|
+
- "\xC5\x81ukasz Piestrzeniewicz"
|
8
13
|
autorequire:
|
9
14
|
bindir: bin
|
10
15
|
cert_chain: []
|
11
16
|
|
12
|
-
date:
|
17
|
+
date: 2010-05-20 00:00:00 +02:00
|
13
18
|
default_executable:
|
14
19
|
dependencies:
|
15
20
|
- !ruby/object:Gem::Dependency
|
16
|
-
name:
|
17
|
-
|
18
|
-
|
19
|
-
version_requirements: !ruby/object:Gem::Requirement
|
21
|
+
name: rspec
|
22
|
+
prerelease: false
|
23
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
20
24
|
requirements:
|
21
25
|
- - ">="
|
22
26
|
- !ruby/object:Gem::Version
|
23
|
-
|
24
|
-
|
25
|
-
-
|
26
|
-
|
27
|
+
segments:
|
28
|
+
- 1
|
29
|
+
- 2
|
30
|
+
- 9
|
31
|
+
version: 1.2.9
|
27
32
|
type: :development
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
name: hoe
|
37
|
-
type: :development
|
38
|
-
version_requirement:
|
39
|
-
version_requirements: !ruby/object:Gem::Requirement
|
40
|
-
requirements:
|
41
|
-
- - ">="
|
42
|
-
- !ruby/object:Gem::Version
|
43
|
-
version: 1.8.0
|
44
|
-
version:
|
45
|
-
description: Provides helpers for easy adding of html meta information to Rails applications.
|
46
|
-
email:
|
47
|
-
- bragi@ragnarson.com
|
33
|
+
version_requirements: *id001
|
34
|
+
description: |-
|
35
|
+
Provides helpers for easy adding of html meta information to Rails applications.
|
36
|
+
* Easily add default description and keywords meta tags.
|
37
|
+
* Customize meta tags on per-view basis
|
38
|
+
* Add head title tag with breadcrubms
|
39
|
+
* Add page title
|
40
|
+
email: bragi@ragnarson.com
|
48
41
|
executables: []
|
49
42
|
|
50
43
|
extensions: []
|
51
44
|
|
52
45
|
extra_rdoc_files:
|
53
|
-
-
|
46
|
+
- LICENSE
|
54
47
|
- README.rdoc
|
55
48
|
files:
|
49
|
+
- .document
|
50
|
+
- .gitignore
|
56
51
|
- History.txt
|
52
|
+
- LICENSE
|
53
|
+
- Manifest.txt
|
54
|
+
- README.rdoc
|
55
|
+
- Rakefile
|
56
|
+
- VERSION
|
57
57
|
- init.rb
|
58
58
|
- lib/site_meta.rb
|
59
59
|
- rails/init.rb
|
60
|
-
-
|
60
|
+
- script/console
|
61
|
+
- script/destroy
|
62
|
+
- script/generate
|
63
|
+
- site_meta.gemspec
|
64
|
+
- spec/site_meta_spec.rb
|
65
|
+
- spec/spec.opts
|
66
|
+
- spec/spec_helper.rb
|
67
|
+
- tasks/rspec.rake
|
61
68
|
has_rdoc: true
|
62
69
|
homepage: http://github.com/bragi/site_meta
|
63
70
|
licenses: []
|
64
71
|
|
65
72
|
post_install_message:
|
66
73
|
rdoc_options:
|
67
|
-
- --
|
68
|
-
- README.rdoc
|
74
|
+
- --charset=UTF-8
|
69
75
|
require_paths:
|
70
76
|
- lib
|
71
77
|
required_ruby_version: !ruby/object:Gem::Requirement
|
72
78
|
requirements:
|
73
79
|
- - ">="
|
74
80
|
- !ruby/object:Gem::Version
|
81
|
+
segments:
|
82
|
+
- 0
|
75
83
|
version: "0"
|
76
|
-
version:
|
77
84
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
78
85
|
requirements:
|
79
86
|
- - ">="
|
80
87
|
- !ruby/object:Gem::Version
|
88
|
+
segments:
|
89
|
+
- 0
|
81
90
|
version: "0"
|
82
|
-
version:
|
83
91
|
requirements: []
|
84
92
|
|
85
|
-
rubyforge_project:
|
86
|
-
rubygems_version: 1.3.
|
93
|
+
rubyforge_project:
|
94
|
+
rubygems_version: 1.3.6
|
87
95
|
signing_key:
|
88
|
-
specification_version:
|
89
|
-
summary:
|
90
|
-
test_files:
|
91
|
-
|
96
|
+
specification_version: 3
|
97
|
+
summary: helpers for easy adding of html meta information in web applications
|
98
|
+
test_files:
|
99
|
+
- spec/site_meta_spec.rb
|
100
|
+
- spec/spec_helper.rb
|