Skip to content
Browse files

Make the Rake tasks available to Rails 3 apps.

I needed to include a Railtie to do this.
Bump the version and get ready to release a new gem.
  • Loading branch information...
1 parent a846f35 commit 356edcde22dbe081213ab2f192b6fe45f5300a2a @tilsammans committed
Showing with 15 additions and 1 deletion.
  1. +5 −0 CHANGELOG.md
  2. +2 −0 lib/nilly_vanilly.rb
  3. +7 −0 lib/nilly_vanilly/railtie.rb
  4. +1 −1 lib/nilly_vanilly/version.rb
View
5 CHANGELOG.md
@@ -1,3 +1,8 @@
+## 0.3.0 (February 2013)
+
+Add the Rake tasks to Rails 3 apps via a Railtie
+
+
## 0.1.0 (January 2011)
Initial release
View
2 lib/nilly_vanilly.rb
@@ -5,3 +5,5 @@
if defined?(ActiveRecord::Base)
ActiveRecord::Base.send :include, NillyVanilly::Nillify
end
+
+require "nilly_vanilly/railtie" if defined?(Rails)
View
7 lib/nilly_vanilly/railtie.rb
@@ -0,0 +1,7 @@
+module NillyVanilly
+ class Railtie < Rails::Railtie
+ rake_tasks do
+ load File.dirname(__FILE__) + "/../tasks/nilly_vanilly.rake"
+ end
+ end
+end
View
2 lib/nilly_vanilly/version.rb
@@ -1,3 +1,3 @@
module NillyVanilly
- VERSION = "0.2.0"
+ VERSION = "0.3.0"
end

0 comments on commit 356edcd

Please sign in to comment.
Something went wrong with that request. Please try again.