summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-09-01 06:59:36 +0000
committerSHIBATA Hiroshi <hsbt@ruby-lang.org>2018-09-28 10:16:32 +0900
commite9429e55c27501dcd245c02c3b443f38e53305e1 (patch)
treea9bacee69ad1c94104dfcb8a62e3172f4d85c807 /lib
parentdcf5794ed7d309a2102c27bfe30e54e263557e02 (diff)
downloadpsych-e9429e55c27501dcd245c02c3b443f38e53305e1.zip
Re-try to add workaround for warnings
``` .../ext/psych/lib/psych/versions.rb:4: warning: already initialized constant Psych::VERSION .../.ext/common/psych/versions.rb:4: warning: previous definition of VERSION was here ``` git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64609 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'lib')
-rw-r--r--lib/psych/versions.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/psych/versions.rb b/lib/psych/versions.rb
index ed93609..d2d277d 100644
--- a/lib/psych/versions.rb
+++ b/lib/psych/versions.rb
@@ -1,7 +1,7 @@
# frozen_string_literal: true
module Psych
# The version is Psych you're using
- VERSION = '3.1.0.pre1'
+ VERSION = '3.1.0.pre1' unless defined?(::Psych::VERSION)
if RUBY_ENGINE == 'jruby'
DEFAULT_SNAKEYAML_VERSION = '1.23'.freeze