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

ruby-changes:52390

From: kazu <ko1@a...>
Date: Sat, 1 Sep 2018 00:25:58 +0900 (JST)
Subject: [ruby-changes:52390] kazu:r64599 (trunk): Try to add workaround for warnings

kazu	2018-09-01 00:25:52 +0900 (Sat, 01 Sep 2018)

  New Revision: 64599

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

  Log:
    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 64598)
+++ ext/psych/lib/psych/versions.rb	(revision 64599)
@@ -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'
 
   if RUBY_ENGINE == 'jruby'
     DEFAULT_SNAKEYAML_VERSION = '1.21'.freeze

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

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