aboutsummaryrefslogtreecommitdiffstats
path: root/ext/psych/psych.gemspec
diff options
context:
space:
mode:
authorhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-08-27 00:44:04 +0000
committerhsbt <hsbt@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-08-27 00:44:04 +0000
commit867581dd755bd202cefc605af5e081ba2ba8c1ec (patch)
tree60b9cfa3907cdddfbd5d3ca840a9c6eb32935e50 /ext/psych/psych.gemspec
parente0311eb847bfa1c526aac4485889548ad8152ce3 (diff)
downloadruby-867581dd755bd202cefc605af5e081ba2ba8c1ec.tar.gz
Merge psych-3.1.0.pre1.
* Update bundled libyaml-0.2.1 from 0.1.7. https://github.com/ruby/psych/pull/368 * Unify Psych's API: To use keyword arguments with method call. https://github.com/ruby/psych/pull/358 git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64544 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'ext/psych/psych.gemspec')
-rw-r--r--ext/psych/psych.gemspec10
1 files changed, 8 insertions, 2 deletions
diff --git a/ext/psych/psych.gemspec b/ext/psych/psych.gemspec
index 8d3cceb186..d4a3db4a58 100644
--- a/ext/psych/psych.gemspec
+++ b/ext/psych/psych.gemspec
@@ -1,9 +1,15 @@
# -*- encoding: utf-8 -*-
# frozen_string_literal: true
+begin
+ require_relative 'lib/psych/versions'
+rescue LoadError
+ require_relative 'versions'
+end
+
Gem::Specification.new do |s|
s.name = "psych"
- s.version = "3.0.3.pre1"
+ s.version = Psych::VERSION
s.authors = ["Aaron Patterson", "SHIBATA Hiroshi", "Charles Oliver Nutter"]
s.email = ["aaron@tenderlovemaking.com", "hsbt@ruby-lang.org", "headius@headius.com"]
s.summary = "Psych is a YAML parser and emitter"
@@ -53,7 +59,7 @@ DESCRIPTION
"ext/java/PsychEmitter.java", "ext/java/PsychLibrary.java", "ext/java/PsychParser.java", "ext/java/PsychToRuby.java",
"ext/java/PsychYamlTree.java", "lib/psych_jars.rb", "lib/psych.jar"
]
- s.requirements = "jar org.yaml:snakeyaml, 1.21"
+ s.requirements = "jar org.yaml:snakeyaml, #{Psych::DEFAULT_SNAKEYAML_VERSION}"
s.add_dependency 'jar-dependencies', '>= 0.1.7'
s.add_development_dependency 'ruby-maven'
else