image_optim_ruby_3
所属分类:hotest
开发工具:Ruby
文件大小:0KB
下载次数:0
上传日期:2022-11-20 13:45:29
上 传 者:
sh-1993
说明: 再现Ruby3.1.x上发生的问题(使用Psych 4.x),
(Reproduce an issue that occurs on Ruby3.1.x (With Psych 4.x),)
文件列表:
.image_optim.yml (343, 2022-11-20)
.ruby-version (6, 2022-11-20)
Gemfile (62, 2022-11-20)
Gemfile.lock (428, 2022-11-20)
repro.rb (417, 2022-11-20)
# To reproduce the issue
- Install ruby 3.1.2 (e.g. `rbenv install` if you use rbenv)
- `gem install bundler`
- `bundle install`
- `bundle exec ruby repro.rb`
You will see output like this:
```
exception when reading .../.image_optim.yml: Tried to load unspecified class: Range
{}
```
Image_optim should explicitly pass the `Range` class to `permitted_classes` in this call to `Yaml.load_file`:
If there are any other classes not listed here that are expected to be usable they will also need to be added:
近期下载者:
相关文件:
收藏者: