Skip to content

Commit

Permalink
- Add packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
jordansissel committed Dec 8, 2010
1 parent 5224c57 commit 79207e2
Show file tree
Hide file tree
Showing 2 changed files with 39 additions and 0 deletions.
17 changes: 17 additions & 0 deletions 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 eventmachine-vnc.gemspec")
end

task :publish do
latest_gem = %x{ls -t eventmachine-vnc*.gem}.split("\n").first
system("gem push #{latest_gem}")
end
22 changes: 22 additions & 0 deletions eventmachine-vnc.gemspec
@@ -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

0 comments on commit 79207e2

Please sign in to comment.