-
Notifications
You must be signed in to change notification settings - Fork 75
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 Edit gist api #240
Add Edit gist api #240
Conversation
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 good 👍
implicit val encodeEditGistFile: Encoder[EditGistFile] = { | ||
deriveEncoder[EditGistFile].mapJsonObject(_.filter(e => | ||
!(e._1.equals("filename") && e._2.isNull))) | ||
} |
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.
You can move that to Encoders.scala
👍
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.
I tried first, but it seems like Encoders is not used here, when toJson
is needed for implicit.
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.
I think you should be able to import it then, no?
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.
Done.
@aleksandr-vin Could you please rebase against error] /github4s/shared/src/test/scala/github4s/unit/ReposSpec.scala:202: illegal start of simple expression
[error] )
[error] ^
[error] /github4s/shared/src/test/scala/github4s/unit/ReposSpec.scala:215: ')' expected but '}' found.
[error] }
[error] ^
[error] two errors found
[error] (github4sJVM/test:compileIncremental) Compilation failed Update: it seems it happens for Scala 2.11. |
- Add files property to domain.Gist Signed-off-by: Aleksandr Vinokurov <[email protected]>
Signed-off-by: Aleksandr Vinokurov <[email protected]>
- Add EditGistFile, EditGistRequest to domain Signed-off-by: Aleksandr Vinokurov <[email protected]>
Signed-off-by: Aleksandr Vinokurov <[email protected]>
1b25902
to
093a71f
Compare
@juanpedromoreno done. |
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.
ran the tests successfully 👍
Closes #237 as well |
What's are your release plans, guys? |
we usually do them on demand, so if you need one just shout 👍 |
@aleksandr-vin @BenFradet I'll send a fix for the random test failure, and then, I'll request a new release along with the build upgrade. |
I need one, as I'm in the process of some home project and need an update on heroku (that's why #242) ;) |
Done #243 The release should be completed shortly ;) |
Closes #238