Skip to content

Commit

Permalink
move to gem
Browse files Browse the repository at this point in the history
  • Loading branch information
lassebunk committed Sep 25, 2011
1 parent 3d8a1a8 commit 87a8ec7
Show file tree
Hide file tree
Showing 5 changed files with 22 additions and 7 deletions.
6 changes: 4 additions & 2 deletions README.rdoc
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,11 @@ Metamagic is a simple Ruby on Rails plugin for creating meta tags.

== Installation

In Rails 3:
In your <em>Gemfile</em>:

$ rails plugin install git://github.com/lassebunk/metamagic.git
gem 'metamagic'

Then run <code>bundle install</code>.

== Example

Expand Down
2 changes: 1 addition & 1 deletion init.rb
Original file line number Diff line number Diff line change
@@ -1 +1 @@
ActionController::Base.send :include, Metamagic::HelperMethods
require 'metamagic'
4 changes: 4 additions & 0 deletions lib/metamagic.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
require 'metamagic/helper_methods'

ActionController::Base.send :include, Metamagic::HelperMethods
ActionView::Base.send :include, Metamagic::HelperMethods
4 changes: 0 additions & 4 deletions lib/metamagic/helper_methods.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,9 +17,5 @@ def metamagic(options = {})

out.html_safe
end

def self.included(base)
base.send :helper_method, :meta, :metamagic
end
end
end
13 changes: 13 additions & 0 deletions metamagic.gemspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
Gem::Specification.new do |s|
s.name = "metamagic"
s.version = "1.0.0"

s.author = "Lasse Bunk"
s.email = "lassebunk@gmail.com"
s.description = "Metamagic is a simple Ruby on Rails plugin for creating meta tags."
s.summary = "Simple Ruby on Rails plugin for creating meta tags."
s.homepage = "http://github.com/lassebunk/metamagic"

s.files = Dir['lib/**/*.rb']
s.require_paths = ["lib"]
end

0 comments on commit 87a8ec7

Please sign in to comment.