Skip to content

Conversation

edipofederle
Copy link

With Ruby MRI, we can do:

OpenSSL::Config.parse_config("") # also accepts a String

but not with JRuby:

NoMethodError: undefined method `lineno' for "":String
   Did you mean?  lines

@edipofederle
Copy link
Author

@kares maybe we can take a quick look into this one? thanks

@headius
Copy link
Member

headius commented Jun 17, 2024

Seems like this is ready to go?

@kares
Copy link
Member

kares commented Jun 18, 2024

did look into this but did not figure out a path fwd. the logic isn't matching what MRI is doing (in native C)...

  • parse isn't calling parse_config (we're a bit convoluted here parse -> parse_config -> parse)
  • check is done on having an IO-like (gets ugly with JRuby) and everything else is considered io.to_str

@headius but if it looks good to you, feel free to merge.
I usually "Squash and merge" small change-sets (easier to dig out history) but if you have a different preference it's fine

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.

3 participants