Skip to content

Commit

Permalink
Two optional platforms: "java" and "ruby" (all others implementations).
Browse files Browse the repository at this point in the history
  • Loading branch information
Nick Recobra committed Mar 1, 2011
1 parent 7567996 commit 063102d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions dripdrop.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ require "dripdrop/version"
Gem::Specification.new do |s|
s.name = "dripdrop"
s.version = DripDrop::VERSION
s.platform = Gem::Platform::CURRENT
s.platform = RUBY_PLATFORM[/java/] || Gem::Platform::RUBY
s.authors = ["Andrew Cholakian"]
s.email = ["andrew@andrewvc.com"]
s.homepage = "https://github.com/andrewvc/dripdrop"
Expand All @@ -21,7 +21,7 @@ Gem::Specification.new do |s|
s.add_dependency "eventmachine", ">= 0.12.10"
s.add_dependency "em-websocket", ">= 0"
s.add_dependency "em-zeromq", ">= 0.2.0"
if s.platform.os == "java"
if s.platform.to_s == "java"
s.add_dependency "json", ">= 1.5.1"
else
s.add_dependency "yajl-ruby", ">= 0.8.1"
Expand Down

0 comments on commit 063102d

Please sign in to comment.