-
Notifications
You must be signed in to change notification settings - Fork 141
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
When RUBY_ENGINE == 'jruby', do the following: - map popen4 function to Open.popen3 - map Yajl to MultiJson and set MultiJson engine to json_gem - update gemspec to build -java gem when running under JRuby - drop posix/spawn and yaml dependencies and add multi_json Additionally, add rake as a dev dependency so rake can be run via Bundler
- Loading branch information
1 parent
a21567d
commit 286fadf
Showing
2 changed files
with
22 additions
and
6 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
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 |
---|---|---|
|
@@ -14,9 +14,14 @@ Gem::Specification.new do |s| | |
s.email = ['[email protected]'] | ||
s.license = 'MIT' | ||
|
||
s.add_dependency 'yajl-ruby', '~> 1.2.0' | ||
s.add_dependency 'posix-spawn', '~> 0.3.6' | ||
s.add_development_dependency 'rake-compiler', '~> 0.7.6' | ||
if RUBY_ENGINE == 'jruby' | ||
s.platform = 'java' | ||
s.add_dependency 'multi_json', '~> 1.12.1' | ||
else | ||
s.add_dependency 'yajl-ruby', '~> 1.2.0' | ||
s.add_dependency 'posix-spawn', '~> 0.3.6' | ||
end | ||
s.add_development_dependency 'rake' | ||
|
||
# s.extensions = ['ext/extconf.rb'] | ||
s.require_paths = ['lib'] | ||
|