[前][次][番号順一覧][スレッド一覧]

ruby-changes:52400

From: kazu <ko1@a...>
Date: Sat, 1 Sep 2018 15:59:40 +0900 (JST)
Subject: [ruby-changes:52400] kazu:r64609 (trunk): Re-try to add workaround for warnings

kazu	2018-09-01 15:59:36 +0900 (Sat, 01 Sep 2018)

  New Revision: 64609

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=64609

  Log:
    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
    ```

  Modified files:
    trunk/ext/psych/lib/psych/versions.rb
Index: ext/psych/lib/psych/versions.rb
===================================================================
--- ext/psych/lib/psych/versions.rb	(revision 64608)
+++ ext/psych/lib/psych/versions.rb	(revision 64609)
@@ -1,7 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ext/psych/lib/psych/versions.rb#L1
 # 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

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]