1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00
ruby--ruby/ext/psych
Yusuke Endoh a3cc9b3c8e Avoid requiring "psych/versions"
This leads to double requiring "ext/psych/lib/psych/versions.rb" and
".ext/common/psych/versions.rb", which produces doxens of warnings
during `make test-all`.

http://rubyci.s3.amazonaws.com/ubuntu2004/ruby-master/log/20200608T123004Z.log.html.gz
```
[15092/20234]
TestRDocOptions#test_init_with_encoding/home/chkbuild/chkbuild/tmp/build/20200608T123004Z/ruby/ext/psych/lib/psych.rb:233: warning: already initialized constant Psych::LIBYAML_VERSION
/home/chkbuild/chkbuild/tmp/build/20200608T123004Z/ruby/.ext/common/psych.rb:233: warning: previous definition of LIBYAML_VERSION was here
/home/chkbuild/chkbuild/tmp/build/20200608T123004Z/ruby/ext/psych/lib/psych.rb:235: warning: already initialized constant Psych::NOT_GIVEN
/home/chkbuild/chkbuild/tmp/build/20200608T123004Z/ruby/.ext/common/psych.rb:235: warning: previous definition of NOT_GIVEN was here
/home/chkbuild/chkbuild/tmp/build/20200608T123004Z/ruby/ext/psych/lib/psych.rb:271: warning: method redefined; discarding old load
/home/chkbuild/chkbuild/tmp/build/20200608T123004Z/ruby/.ext/common/psych.rb:271: warning: previous definition of load was here
...
```

The same issue happened in fiddle.gemspec, and this change applies the
same fix as [fiddle](https://github.com/ruby/fiddle/issues/34).
2020-06-09 00:27:04 +09:00
..
lib [ruby/psych] Remove unnecessary version guard from versions.rb 2020-06-05 11:49:56 +09:00
yaml ext/psych/yaml/api.c: Suppress a "variable set but not used" warning 2019-08-24 20:31:16 +09:00
depend sed -i 's|ruby/impl|ruby/internal|' 2020-05-11 09:24:08 +09:00
extconf.rb ext/psych/extconf.rb: braced VPATH is for nmake only 2019-12-05 17:57:56 +09:00
psych.c Suppress -Wshorten-64-to-32 warnings 2020-04-08 16:28:38 +09:00
psych.gemspec Avoid requiring "psych/versions" 2020-06-09 00:27:04 +09:00
psych.h
psych_emitter.c
psych_emitter.h
psych_parser.c Suppress -Wshorten-64-to-32 warnings 2020-04-08 16:28:38 +09:00
psych_parser.h
psych_to_ruby.c
psych_to_ruby.h
psych_yaml_tree.c
psych_yaml_tree.h