Skip to content

Commit

Permalink
Add tasks to manage gem
Browse files Browse the repository at this point in the history
  • Loading branch information
macournoyer committed Nov 27, 2009
1 parent 0fab94f commit 27aaee4
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
config/test.yml
config/test.yml
*.gem
9 changes: 9 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -6,3 +6,12 @@ Spec::Rake::SpecTask.new do |t|
t.spec_opts = %w(-fs -c)
t.spec_files = FileList["spec/**_spec.rb"]
end

task :gem do
sh "gem build mysql_s3_backup.gemspec"
end

task :push => :gem do
file = Dir["*.gem"].sort.last
puts "gem push #{file}"
end
16 changes: 16 additions & 0 deletions mysql_s3_backup.gemspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
Gem::Specification.new do |s|
s.name = "mysql_s3_backup"
s.version = "0.0.1"

s.authors = ["Marc-Andre Cournoyer"]
s.email = "macournoyer@gmail.com"
s.files = Dir["**/*"]
s.homepage = "http://github.com/macournoyer/mysql_s3_backup"
s.require_paths = ["lib"]
s.bindir = "bin"
s.executables = Dir["bin/*"].map { |f| File.basename(f) }
s.summary = "A simple backup script for Mysql and S3 with incremental backups."
s.test_files = Dir["spec/**"]

s.add_dependency "aws-s3"
end

0 comments on commit 27aaee4

Please sign in to comment.