Skip to content

Commit

Permalink
Added gem support and versioning
Browse files Browse the repository at this point in the history
  • Loading branch information
jonbell committed Mar 17, 2010
1 parent b672a66 commit c44468f
Show file tree
Hide file tree
Showing 2 changed files with 38 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
@@ -0,0 +1,3 @@
pkg/
.project
.loadpath
35 changes: 35 additions & 0 deletions Rakefile
Expand Up @@ -21,3 +21,38 @@ Rake::RDocTask.new(:rdoc) do |rdoc|
rdoc.rdoc_files.include('README') rdoc.rdoc_files.include('README')
rdoc.rdoc_files.include('lib/**/*.rb') rdoc.rdoc_files.include('lib/**/*.rb')
end end

begin
GEM = "acts_as_mongo_taggable"
AUTHOR = "Matt E. Patterson"
EMAIL = "mpatterson@ngenera.com"
SUMMARY = "A ruby gem for acts_as_taggable to mongo"
HOMEPAGE = "http://github.com/mepatterson/acts_as_mongo_taggable"

gem 'jeweler', '>= 1.0.0'
require 'jeweler'

Jeweler::Tasks.new do |s|
s.name = GEM
s.summary = SUMMARY
s.email = EMAIL
s.homepage = HOMEPAGE
s.description = SUMMARY
s.author = AUTHOR

s.require_path = 'lib'
s.files = %w(MIT-LICENSE README.textile Rakefile) + Dir.glob("{rails,lib,generators,spec}/**/*")

# Runtime dependencies: When installing Formtastic these will be checked if they are installed.
# Will be offered to install these if they are not already installed.
s.add_dependency 'mongo_mapper', '>= 0.7.0'

# Development dependencies. Not installed by default.
# Install with: sudo gem install formtastic --development
#s.add_development_dependency 'rspec-rails', '>= 1.2.6'
end

Jeweler::GemcutterTasks.new
rescue LoadError
puts "[acts_as_mongo_taggable:] Jeweler - or one of its dependencies - is not available. Install it with: sudo gem install jeweler -s http://gemcutter.org"
end

0 comments on commit c44468f

Please sign in to comment.