-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
0d1b422
commit 63494e9
Showing
3 changed files
with
40 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
|