Skip to content

Commit

Permalink
Make gem osx only
Browse files Browse the repository at this point in the history
  • Loading branch information
bradphelan committed Sep 26, 2011
1 parent 4343e05 commit e4f96c2
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 72 deletions.
10 changes: 5 additions & 5 deletions Rakefile
Expand Up @@ -14,11 +14,11 @@ require 'rake'
require 'jeweler'
Jeweler::Tasks.new do |gem|
# gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
gem.name = "wkhtmltopdf-heroku"
gem.homepage = "http://github.com/bradphelan/wkhtmltopdf-heroku"
gem.name = "wkhtmltopdf-osx"
gem.homepage = "http://github.com/bradphelan/wkhtmltopdf-osx"
gem.license = "MIT"
gem.summary = %Q{wkhtmltopdf binaries for OSX(darwin) and heroku}
gem.description = %Q{wkhtmltopdf binaries for OSX(darwin) and heroku}
gem.summary = %Q{wkhtmltopdf binaries for OSX(darwin)}
gem.description = %Q{wkhtmltopdf binaries for OSX(darwin)}
gem.email = "bradphelan@xtargets.com"
gem.authors = ["Brad Phelan"]
# dependencies defined in Gemfile
Expand Down Expand Up @@ -47,7 +47,7 @@ Rake::RDocTask.new do |rdoc|
version = File.exist?('VERSION') ? File.read('VERSION') : ""

rdoc.rdoc_dir = 'rdoc'
rdoc.title = "wkhtmltopdf-heroku #{version}"
rdoc.title = "wkhtmltopdf-osx #{version}"
rdoc.rdoc_files.include('README*')
rdoc.rdoc_files.include('lib/**/*.rb')
end
6 changes: 2 additions & 4 deletions bin/wkhtmltopdf
@@ -1,12 +1,10 @@
#!/usr/bin/ruby


if RUBY_PLATFORM =~ /x86_64-linux/
executable = 'wkhtmltopdf-linux-amd64'
elsif RUBY_PLATFORM =~ /darwin/
if RUBY_PLATFORM =~ /darwin/
executable = 'wkhtmltopdf-darwin'
else
raise "Invalid platform. Must be running linux amd x64 or intel-based Mac OS."
raise "Invalid platform. Must be running OSX(darwin)"
end

arguments = $*.map { |x| x.include?(' ') ? "'" + x + "'" : x }
Expand Down
Binary file removed bin/wkhtmltopdf-linux-amd64
Binary file not shown.
63 changes: 0 additions & 63 deletions wkhtmltopdf-heroku.gemspec

This file was deleted.

0 comments on commit e4f96c2

Please sign in to comment.