summaryrefslogtreecommitdiff
path: root/ext
diff options
context:
space:
mode:
authorkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-09-01 06:59:36 +0000
committerkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-09-01 06:59:36 +0000
commit9563db5eb18eae0e59da22f000ef21ed7516c179 (patch)
tree478d8d4a81564a99e8afd821af28f2c38d0afc3d /ext
parent480a21f435d2917190c087206bbffbd3d532824a (diff)
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 'ext')
-rw-r--r--ext/psych/lib/psych/versions.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/psych/lib/psych/versions.rb b/ext/psych/lib/psych/versions.rb
index b7e55d3..f55cc63 100644
--- a/ext/psych/lib/psych/versions.rb
+++ b/ext/psych/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.21'.freeze