Skip to content
Browse files

move to gem

  • Loading branch information...
1 parent 3d8a1a8 commit 87a8ec778ec96496240a918c8550405ef3c8a4bb @lassebunk committed
Showing with 22 additions and 7 deletions.
  1. +4 −2 README.rdoc
  2. +1 −1 init.rb
  3. +4 −0 lib/metamagic.rb
  4. +0 −4 lib/metamagic/helper_methods.rb
  5. +13 −0 metamagic.gemspec
View
6 README.rdoc
@@ -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
View
2 init.rb
@@ -1 +1 @@
-ActionController::Base.send :include, Metamagic::HelperMethods
+require 'metamagic'
View
4 lib/metamagic.rb
@@ -0,0 +1,4 @@
+require 'metamagic/helper_methods'
+
+ActionController::Base.send :include, Metamagic::HelperMethods
+ActionView::Base.send :include, Metamagic::HelperMethods
View
4 lib/metamagic/helper_methods.rb
@@ -17,9 +17,5 @@ def metamagic(options = {})
out.html_safe
end
-
- def self.included(base)
- base.send :helper_method, :meta, :metamagic
- end
end
end
View
13 metamagic.gemspec
@@ -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.
Something went wrong with that request. Please try again.