-
Notifications
You must be signed in to change notification settings - Fork 216
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
YAML #408
YAML #408
Conversation
stdlib/yaml/store.rbs
Outdated
|
||
def empty_marshal_data: () -> String | ||
|
||
def load: (String) -> (Hash | String | Array) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hash[untyped, untyped] | String | Array[untyped]
??
Or I think returning just untyped
is enough.
stdlib/yaml/dbm.rbs
Outdated
# | ||
# Converts the contents of the database to an in-memory Hash object, and | ||
# returns it. | ||
def to_hash: () -> Hash |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hash[untyped, untyped]
Hi! Rewriting |
Thank you for your feedback. |
Oh no, I'm sorry. It is about |
c91a3a7
to
fa434b6
Compare
The YAML Store depends on PStore for witch we don't have signature. That is probably the reason the tests fail. |
YAML also depends on DBM and tries to find it. |
998b56f
to
3031471
Compare
@PanosCodes Could you rebase your branch on the latest Standard library signatures are moved in #405. (I'm sorry for breaking your work with that. 🙇♂️) |
bbaca49
to
8f54523
Compare
No worries 😄 But it still throws the same error 🤔 |
@PanosCodes I got it. 💪 You need to specify
# You can add the following lines to Rakefile to let `rake validate` run for YAML.
if lib == ["yaml"]
lib << "dbm"
lib << "pstore"
end |
a83e2b8
to
539510c
Compare
Awesome , thank you for looking into that 👍 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks! @PanosCodes
No description provided.