Skip to content

Commit

Permalink
- Add gem packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
jordansissel committed Jan 4, 2011
1 parent 0d1b422 commit 63494e9
Show file tree
Hide file tree
Showing 3 changed files with 40 additions and 0 deletions.
17 changes: 17 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
task :default => [:package]

task :test do
system("cd test; ruby alltests.rb")
end

task :package => [:test, :package_real] do
end

task :package_real do
system("gem build fpm.gemspec")
end

task :publish do
latest_gem = %x{ls -t fpm*.gem}.split("\n").first
system("gem push #{latest_gem}")
end
File renamed without changes.
23 changes: 23 additions & 0 deletions fpm.gemspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Gem::Specification.new do |spec|
files = []
dirs = %w{lib bin}
dirs.each do |dir|
files += Dir["#{dir}/**/*"]
end

rev = Time.now.strftime("%Y%m%d%H%M%S")
spec.name = "fpm"
spec.version = "0.1.0"
spec.summary = "fpm - package building and mangling"
spec.description = "Turn directories into packages. Fix broken packages. Win the package management game."
spec.add_dependency("json")
spec.files = files
spec.require_paths << "lib"
spec.bindir = "bin"
spec.executables << "fpm"

spec.author = "Jordan Sissel"
spec.email = "jls@semicomplete.com"
spec.homepage = "https://github.com/jordansissel/fpm"
end

0 comments on commit 63494e9

Please sign in to comment.