Skip to content
Browse files

Use Bundler gem conventions.

  • Loading branch information...
1 parent 180c384 commit 85aa0f21c6c120f77bc45e7df6ee32e0085030cf @gabebw gabebw committed Nov 12, 2011
Showing with 24 additions and 19 deletions.
  1. +1 −0 .gitignore
  2. +2 −0 Rakefile
  3. +2 −0 lib/limerick_rake.rb
  4. +3 −0 lib/limerick_rake/version.rb
  5. +16 −19 limerick_rake.gemspec
View
1 .gitignore
@@ -6,5 +6,6 @@ public/system
*.DS_Store
coverage/*
*.swp
+pkg
!.keep
View
2 Rakefile
@@ -1,2 +1,4 @@
+require 'bundler/gem_tasks'
+
task :default do
end
View
2 lib/limerick_rake.rb
@@ -1,3 +1,5 @@
+require 'limerick_rake/version'
+
module LimerickRake
require 'limerick_rake/engine' if defined?(Rails)
end
View
3 lib/limerick_rake/version.rb
@@ -0,0 +1,3 @@
+module LimerickRake
+ VERSION = '0.0.2'.freeze
+end
View
35 limerick_rake.gemspec
@@ -1,22 +1,19 @@
+# -*- encoding: utf-8 -*-
+$:.push File.expand_path("../lib", __FILE__)
+require "limerick_rake/version"
+
Gem::Specification.new do |s|
- s.name = "limerick_rake"
- s.version = "0.0.2"
- s.date = "2008-10-07"
- s.summary = "A collection of useful rake tasks."
- s.email = "support@thoughtbot.com"
- s.homepage = "http://github.com/thoughtbot/limerick_rake"
+ s.name = "limerick_rake"
+ s.version = LimerickRake::VERSION.dup
+ s.platform = Gem::Platform::RUBY
+ s.authors = ["the Ruby community", "thoughtbot, inc."]
+ s.email = "support@thoughtbot.com"
+ s.homepage = "http://github.com/thoughtbot/limerick_rake"
+ s.summary = "A collection of useful rake tasks."
s.description = "A collection of useful rake tasks."
- s.authors = ["the Ruby community", "thoughtbot, inc."]
- s.files = ["README.md",
- "MIT-LICENSE",
- "limerick_rake.gemspec",
- "lib/tasks/backup.rake",
- "lib/tasks/db/bootstrap.rake",
- "lib/tasks/db/indexes.rake",
- "lib/tasks/db/shell.rake",
- "lib/tasks/db/validate_models.rake",
- "lib/tasks/git.rake",
- "lib/tasks/haml_sass.rake",
- "lib/tasks/svn.rake"
- ]
+
+ s.files = `git ls-files`.split("\n")
+ s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
+ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
+ s.require_paths = ["lib"]
end

0 comments on commit 85aa0f2

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