Permalink
Browse files

Two optional platforms: "java" and "ruby" (all others implementations).

  • Loading branch information...
oruen committed Mar 1, 2011
1 parent 7567996 commit 063102d5932a33d697d1bd1f351f6047dd4e1c50
Showing with 2 additions and 2 deletions.
  1. +2 −2 dripdrop.gemspec
View
@@ -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"
@@ -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"

0 comments on commit 063102d

Please sign in to comment.