Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

- Add gem packaging

  • Loading branch information...
commit 63494e9096a1775ef82ce160b591e4ecd90d8c75 1 parent 0d1b422
@jordansissel authored
Showing with 40 additions and 0 deletions.
  1. +17 −0 Rakefile
  2. 0  bin/{fpm.rb → fpm}
  3. +23 −0 fpm.gemspec
View
17 Rakefile
@@ -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
View
0  bin/fpm.rb → bin/fpm
File renamed without changes
View
23 fpm.gemspec
@@ -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
+
Please sign in to comment.
Something went wrong with that request. Please try again.