summaryrefslogtreecommitdiff
path: root/psych.gemspec
diff options
context:
space:
mode:
authorSHIBATA Hiroshi <hsbt@ruby-lang.org>2016-11-29 18:19:49 +0900
committerSHIBATA Hiroshi <hsbt@ruby-lang.org>2016-11-29 18:19:49 +0900
commitbb5a80c2b87d074120b7fc91bc30df01694864fe (patch)
treed9966c3d37f1a07d585dd6b957151219bb9185c3 /psych.gemspec
parentdd73a7e5535a00a3b9f425f1eedb880e740c1065 (diff)
downloadpsych-bb5a80c2b87d074120b7fc91bc30df01694864fe.zip
unified jruby detection
Diffstat (limited to 'psych.gemspec')
-rw-r--r--psych.gemspec2
1 files changed, 1 insertions, 1 deletions
diff --git a/psych.gemspec b/psych.gemspec
index 192d195..3d3a740 100644
--- a/psych.gemspec
+++ b/psych.gemspec
@@ -30,7 +30,7 @@ DESCRIPTION
s.add_development_dependency 'rake-compiler', ">= 0.4.1"
s.add_development_dependency 'minitest', "~> 5.0"
- if RUBY_PLATFORM =~ /java/
+ if RUBY_ENGINE == 'jruby'
load 'psych/versions.rb'
s.platform = 'java'
s.requirements = "jar org.yaml:snakeyaml, #{Psych::DEFAULT_SNAKEYAML_VERSION}"