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
5224c57
commit 79207e2
Showing
2 changed files
with
39 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 eventmachine-vnc.gemspec") | ||
end | ||
|
||
task :publish do | ||
latest_gem = %x{ls -t eventmachine-vnc*.gem}.split("\n").first | ||
system("gem push #{latest_gem}") | ||
end |
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,22 @@ | ||
Gem::Specification.new do |spec| | ||
files = [] | ||
dirs = %w{lib samples test bin} | ||
dirs.each do |dir| | ||
files += Dir["#{dir}/**/*"] | ||
end | ||
|
||
#svnrev = %x{svn info}.split("\n").grep(/Revision:/).first.split(" ").last.to_i | ||
rev = Time.now.strftime("%Y%m%d%H%M%S") | ||
spec.name = "eventmachine-vnc" | ||
spec.version = "0.1.#{rev}" | ||
spec.summary = "eventmachine vnc - vnc/rfb protocol support" | ||
spec.description = "VNC for EventMachine" | ||
spec.add_dependency("eventmachine") | ||
spec.files = files | ||
spec.require_paths << "lib" | ||
|
||
spec.author = "Jordan Sissel" | ||
spec.email = "jls@semicomplete.com" | ||
spec.homepage = "https://github.com/jordansissel/eventmachine-vnc" | ||
end | ||
|