meta_helper 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +2 -0
- data/Gemfile +4 -0
- data/Rakefile +2 -0
- data/lib/meta_helper.rb +4 -0
- data/lib/meta_helper/helper/helper.rb +18 -0
- data/lib/meta_helper/railtie.rb +10 -0
- data/lib/meta_helper/version.rb +3 -0
- data/meta_helper.gemspec +21 -0
- data/pkg/meta_helper-0.0.1.gem +0 -0
- metadata +63 -0
data/.gitignore
ADDED
data/Gemfile
ADDED
data/Rakefile
ADDED
data/lib/meta_helper.rb
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
module MetaHelper
|
2
|
+
module Helpers
|
3
|
+
def body_id(id)
|
4
|
+
content_for(:body_id) { id }
|
5
|
+
end
|
6
|
+
|
7
|
+
# Used to set the title of the page.
|
8
|
+
def page_title(title)
|
9
|
+
content_for(:page_title) { title }
|
10
|
+
end
|
11
|
+
|
12
|
+
# Used to set the meta description of the page.
|
13
|
+
def meta_description(desc)
|
14
|
+
content_for(:meta_description) { desc }
|
15
|
+
end
|
16
|
+
|
17
|
+
end
|
18
|
+
end
|
data/meta_helper.gemspec
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
$:.push File.expand_path("../lib", __FILE__)
|
3
|
+
require "meta_helper/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |s|
|
6
|
+
s.name = "meta_helper"
|
7
|
+
s.version = MetaHelper::VERSION
|
8
|
+
s.platform = Gem::Platform::RUBY
|
9
|
+
s.authors = ["Giboulet Mathieu"]
|
10
|
+
s.email = ["giboulet.mathieu@gmail.com"]
|
11
|
+
s.homepage = ""
|
12
|
+
s.summary = %q{Write a gem summary}
|
13
|
+
s.description = %q{Write a gem description}
|
14
|
+
|
15
|
+
s.rubyforge_project = "meta_helper"
|
16
|
+
|
17
|
+
s.files = `git ls-files`.split("\n")
|
18
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
19
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
20
|
+
s.require_paths = ["lib"]
|
21
|
+
end
|
Binary file
|
metadata
ADDED
@@ -0,0 +1,63 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: meta_helper
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease:
|
5
|
+
version: 0.0.2
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Giboulet Mathieu
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
|
13
|
+
date: 2011-05-06 00:00:00 Z
|
14
|
+
dependencies: []
|
15
|
+
|
16
|
+
description: Write a gem description
|
17
|
+
email:
|
18
|
+
- giboulet.mathieu@gmail.com
|
19
|
+
executables: []
|
20
|
+
|
21
|
+
extensions: []
|
22
|
+
|
23
|
+
extra_rdoc_files: []
|
24
|
+
|
25
|
+
files:
|
26
|
+
- .gitignore
|
27
|
+
- Gemfile
|
28
|
+
- Rakefile
|
29
|
+
- lib/meta_helper.rb
|
30
|
+
- lib/meta_helper/helper/helper.rb
|
31
|
+
- lib/meta_helper/railtie.rb
|
32
|
+
- lib/meta_helper/version.rb
|
33
|
+
- meta_helper.gemspec
|
34
|
+
- pkg/meta_helper-0.0.1.gem
|
35
|
+
homepage: ""
|
36
|
+
licenses: []
|
37
|
+
|
38
|
+
post_install_message:
|
39
|
+
rdoc_options: []
|
40
|
+
|
41
|
+
require_paths:
|
42
|
+
- lib
|
43
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
44
|
+
none: false
|
45
|
+
requirements:
|
46
|
+
- - ">="
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: "0"
|
49
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: "0"
|
55
|
+
requirements: []
|
56
|
+
|
57
|
+
rubyforge_project: meta_helper
|
58
|
+
rubygems_version: 1.8.0
|
59
|
+
signing_key:
|
60
|
+
specification_version: 3
|
61
|
+
summary: Write a gem summary
|
62
|
+
test_files: []
|
63
|
+
|