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
David Rodríguez cd3d035e8a [ruby/psych] Remove unnecessary version guard from versions.rb
Removing it triggers the following warnings when running `bundle` under
jruby from the root of the `psych` repo prints the following warnings:

```
/path/to/jruby-9.2.9.0/lib/ruby/gems/shared/gems/psych-3.1.0-java/lib/psych/versions.rb:7: warning: already initialized constant VERSION
/path/to//jruby-9.2.9.0/lib/ruby/gems/shared/gems/psych-3.1.0-java/lib/psych/versions.rb:10: warning: already initialized constant DEFAULT_SNAKEYAML_VERSION
```

This is because bundler loads the versions file relatively from the
local gemspec, and then internally loads the psych gem, causing the
redefinition warnings.

Instead, we modify the $LOAD_PATH so that when working locally on the
`psych` repo, the local version of `psych` gets used.

https://github.com/ruby/psych/commit/a3fc8191a7
2020-06-05 11:49:56 +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 [ruby/psych] Remove unnecessary version guard from versions.rb 2020-06-05 11:49:56 +09:00
psych.h
psych_emitter.c no ID cache in Init functions 2018-02-16 08:39:48 +00:00
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 null byte at Psych::Emitter. 2017-10-31 07:24:29 +00:00
psych_yaml_tree.h