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
Improvement: better ruby from_* support in well_known_types.rb #8254
Improvement: better ruby from_* support in well_known_types.rb #8254
Conversation
* Added capability to support from_* requests properly by adding class methods and returning self for instance methods * `Timestamp.from_time` * `Value.from_ruby`
a8f0c75
to
ef70acb
Compare
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.
Looks like a great addition to me!
@haberman you seem to be the lead for Ruby, would you mind reviewing and indicating any changes that Google would like to see? |
Sorry for the delay and thanks for your contribution. I just merged #8562 which had a similar fix for Timestamp.from_time. If there's still more here that you would like to add, please resolve the conflicts and I can run the tests again. |
@deannagarcia can you please review regarding the addition of a class method and the return of |
The tests are failing with this message: |
I think tests should pass now, can you add new tests for the from_ruby method and then I can get this merged? |
Thanks for the tests! Getting this error now: |
Awesome, this is passing all tests now so I'm going to go ahead and merge it. Thank you for your contribution! |
Timestamp.from_time
Value.from_ruby
Related PR: #6685 (abandoned by author)
Note
I do not appear to be able to add any labels.
CONTRIBUTING.md
should be updated if this is the case.