Skip to content
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

Add timezone fields to the When class #384

Merged

Conversation

mrashed-dev
Copy link
Contributor

Description

This PR adds the timezone, start_timezone and end_timezone fields. This SDK also now uses tzinfo as a dev dependency to validate the strings set by the user are indeed IANA database names.

License

I confirm that this contribution is made under the terms of the MIT license and that I have the authority necessary to make this contribution on behalf of its copyright owner.

This is for us to validate that the strings passed in by the user are IANA formatted
To match ruby standards and because we should return a value
@mrashed-dev mrashed-dev requested review from a team, quzhi1 and dominicj-nylas and removed request for a team September 23, 2022 22:20
@codecov
Copy link

codecov bot commented Sep 23, 2022

Codecov Report

Merging #384 (bfa685c) into main (02864fc) will increase coverage by 0.01%.
The diff coverage is 100.00%.

@@            Coverage Diff             @@
##             main     #384      +/-   ##
==========================================
+ Coverage   97.56%   97.58%   +0.01%     
==========================================
  Files         124      125       +1     
  Lines        4396     4429      +33     
==========================================
+ Hits         4289     4322      +33     
  Misses        107      107              
Impacted Files Coverage Δ
lib/nylas/when.rb 85.29% <100.00%> (+9.10%) ⬆️
spec/nylas/when_spec.rb 100.00% <100.00%> (ø)

Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here.

@quzhi1
Copy link

quzhi1 commented Sep 23, 2022

Failing CI

@mrashed-dev
Copy link
Contributor Author

@quzhi1 Thanks! Fixed CI pulling an older version of Rails 5, now CI runs.

@mrashed-dev mrashed-dev marked this pull request as ready for review September 26, 2022 16:54
@mrashed-dev mrashed-dev merged commit d036621 into main Sep 26, 2022
@mrashed-dev mrashed-dev deleted the CUST-1159-ruby-sdk-start-end-timezone-missing-from-when-class branch September 26, 2022 22:07
@mrashed-dev mrashed-dev mentioned this pull request Oct 21, 2022
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