meta_helper 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore ADDED
@@ -0,0 +1,2 @@
1
+ .DS_Store
2
+ *.swp
data/Gemfile ADDED
@@ -0,0 +1,4 @@
1
+ source "http://rubygems.org"
2
+
3
+ # Specify your gem's dependencies in meta_helper.gemspec
4
+ gemspec
data/Rakefile ADDED
@@ -0,0 +1,2 @@
1
+ require 'bundler'
2
+ Bundler::GemHelper.install_tasks
@@ -0,0 +1,4 @@
1
+ module MetaHelper
2
+
3
+ require 'meta_helper/railtie'
4
+ end
@@ -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
@@ -0,0 +1,10 @@
1
+ module MetaHelper
2
+ require File.join(File.dirname(__FILE__), 'helpers/helper')
3
+
4
+ class Railtie < Rails::Railtie
5
+ ActiveSupport.on_load(:action_view) do
6
+ ::ActionView::Base.send :include, MetaHelper::Helpers
7
+ end
8
+ end
9
+
10
+ end
@@ -0,0 +1,3 @@
1
+ module MetaHelper
2
+ VERSION = "0.0.2"
3
+ end
@@ -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
+