summaryrefslogtreecommitdiff
path: root/Rakefile
diff options
context:
space:
mode:
authorSHIBATA Hiroshi <hsbt@ruby-lang.org>2016-11-29 18:18:37 +0900
committerSHIBATA Hiroshi <hsbt@ruby-lang.org>2016-11-29 18:18:37 +0900
commitdd73a7e5535a00a3b9f425f1eedb880e740c1065 (patch)
treeb66090a34f96198a3012ea56da44c0ed5c58449b /Rakefile
parentf5455216532f33e2b32bb035d14d820d1d37906b (diff)
downloadpsych-dd73a7e5535a00a3b9f425f1eedb880e740c1065.tar.gz
Enabled to constant references for DEFAULT_SNAKEYAML_VERSION
Diffstat (limited to 'Rakefile')
-rw-r--r--Rakefile4
1 files changed, 3 insertions, 1 deletions
diff --git a/Rakefile b/Rakefile
index 25d523f..947abf5 100644
--- a/Rakefile
+++ b/Rakefile
@@ -1,3 +1,4 @@
+$LOAD_PATH.unshift './lib'
require "bundler/gem_tasks"
require "rake/testtask"
@@ -15,7 +16,8 @@ if RUBY_PLATFORM =~ /java/
# and tell maven via system properties the snakeyaml version
# this is basically the same as running from the commandline:
# rmvn dependency:build-classpath -Dsnakeyaml.version='use version from Psych::DEFAULT_SNAKEYAML_VERSION here'
- Maven::Ruby::Maven.new.exec( 'dependency:build-classpath', "-Dsnakeyaml.version=1.17", '-Dverbose=true')#, '--quiet' )
+ load 'psych/versions.rb'
+ Maven::Ruby::Maven.new.exec('dependency:build-classpath', "-Dsnakeyaml.version=#{Psych::DEFAULT_SNAKEYAML_VERSION}", '-Dverbose=true')
ext.source_version = '1.7'
ext.target_version = '1.7'
ext.classpath = File.read('pkg/classpath')