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 Edit gist api #240

Merged
merged 4 commits into from Dec 27, 2018

Conversation

aleksandr-vin
Copy link
Contributor

Closes #238

Copy link
Contributor

@BenFradet BenFradet left a 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)))
}
Copy link
Contributor

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 👍

Copy link
Contributor Author

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.

Copy link
Contributor

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?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Done.

@juanpedromoreno
Copy link
Member

juanpedromoreno commented Dec 25, 2018

@aleksandr-vin Could you please rebase against upstream master? It's weird, but locally I'm getting this compilation issue:

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 <aleksandr.vin@gmail.com>
Signed-off-by: Aleksandr Vinokurov <aleksandr.vin@gmail.com>
- Add EditGistFile, EditGistRequest to domain

Signed-off-by: Aleksandr Vinokurov <aleksandr.vin@gmail.com>
Signed-off-by: Aleksandr Vinokurov <aleksandr.vin@gmail.com>
@aleksandr-vin
Copy link
Contributor Author

@aleksandr-vin Could you please rebase against upstream master? It's weird, but locally I'm getting this compilation issue:

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.

@juanpedromoreno done.

Copy link
Contributor

@BenFradet BenFradet left a 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 👍

@aleksandr-vin
Copy link
Contributor Author

Closes #237 as well

@juanpedromoreno juanpedromoreno merged commit ce9dd25 into 47degrees:master Dec 27, 2018
@aleksandr-vin
Copy link
Contributor Author

What's are your release plans, guys?

@BenFradet
Copy link
Contributor

we usually do them on demand, so if you need one just shout 👍

@juanpedromoreno
Copy link
Member

@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.

@aleksandr-vin
Copy link
Contributor Author

I need one, as I'm in the process of some home project and need an update on heroku (that's why #242) ;)

@juanpedromoreno
Copy link
Member

Done #243

The release should be completed shortly ;)

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.

None yet

3 participants