Skip to content

Conversation

casperisfine
Copy link

StringIO was extracted as a gem, so spring can no
longer use it for the same reason it can't use the json
gem.

Otherwise you'll see warnings like:

...stringio.bundle: warning: already initialized constant StringIO::VERSION

This can be reproduced on Ruby 3.0, by installing stringio 3.0.1
and starting a Rails app with spring.

cc @rafaelfranca

StringIO was extracted as a gem, so spring can no
longer use it for the same reason it can't use the `json`
gem.

Otherwise you'll see warnings like:

```
...stringio.bundle: warning: already initialized constant StringIO::VERSION
```

This can be reproduced on Ruby 3.0, by installing `stringio 3.0.1`
and starting a Rails app with spring.
@@ -46,8 +46,6 @@ def self.dump(data)

# See https://github.com/kr/okjson for updates.
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The upstream repo is archived so I think it's no big deal to modify it.

Also I wonder why Marshal wasn't used in the first place.

@byroot byroot merged commit 4ae1afd into rails:main Nov 24, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants