Skip to content
Browse files

Turn this into a gem, release 0.1.0

  • Loading branch information...
1 parent e731e08 commit 5e777d4b46dd5bab1e5bf9bf5ab4fa959739d5b9 @foca committed Apr 15, 2012
Showing with 31 additions and 0 deletions.
  1. +1 −0 .gitignore
  2. +7 −0 Rakefile
  3. +1 −0 lib/migrake.rb
  4. +3 −0 lib/migrake/version.rb
  5. +19 −0 migrake.gemspec
View
1 .gitignore
@@ -1,2 +1,3 @@
/MIGRAKE_STATUS
/Gemfile.lock
+/pkg
View
7 Rakefile
@@ -1,4 +1,11 @@
require "rake/testtask"
+require "rubygems/package_task"
+
+gem_spec = eval(File.read("./migrake.gemspec"))
+Gem::PackageTask.new(gem_spec) do |pkg|
+ pkg.need_zip = false
+ pkg.need_tar = false
+end
Rake::TestTask.new do |t|
t.pattern = "test/*_test.rb"
View
1 lib/migrake.rb
@@ -1,5 +1,6 @@
require "rake/task"
require "migrake/dsl"
+require "migrake/version"
require "yaml"
require "set"
require "pathname"
View
3 lib/migrake/version.rb
@@ -0,0 +1,3 @@
+module Migrake
+ VERSION = "0.1.0"
+end
View
19 migrake.gemspec
@@ -0,0 +1,19 @@
+# For some reason, 'require "migrake/version"' doesn't work in jruby (1.6.6, on
+# 1.9 mode), even with RUBYOPT=-Ilib, so resorting to this hackery.
+require File.expand_path("../lib/migrake/version", __FILE__)
+
+Gem::Specification.new do |s|
+ s.name = "migrake"
+ s.version = Migrake::VERSION
+ s.description = "Migrake allows you to run rake tasks that only need to be run once in a given environment each time you deploy"
+ s.summary = "Migrake is like ActiveRecord::Migration for Rake"
+ s.authors = ["Nicolas Sanguinetti"]
+ s.email = "hi@nicolassanguinetti.info"
+ s.homepage = "http://github.com/foca/migrake"
+ s.has_rdoc = false
+ s.files = `git ls-files`.split "\n"
+ s.platform = Gem::Platform::RUBY
+
+ s.add_dependency("rake", ">= 0.9.2")
+ s.add_development_dependency("minitest")
+end

0 comments on commit 5e777d4

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