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

ValueReader instances for Either[L,R] #45

Merged
merged 5 commits into from Nov 28, 2016

Conversation

eyalfa
Copy link

@eyalfa eyalfa commented Nov 24, 2016

No description provided.

@coveralls
Copy link

coveralls commented Nov 24, 2016

Coverage Status

Coverage increased (+0.4%) to 90.984% when pulling 319032a on eyalfa:eitherReader into 5609b7f on iheartradio:master.

package net.ceedubs.ficus.readers
import com.typesafe.config.{Config, ConfigException}

/**
Copy link

Choose a reason for hiding this comment

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

Can you remove these ide-generated comments? I think git blame suffices.

@coveralls
Copy link

coveralls commented Nov 26, 2016

Coverage Status

Coverage increased (+0.4%) to 90.984% when pulling d7ee906 on eyalfa:eitherReader into 5609b7f on iheartradio:master.

@eyalfa
Copy link
Author

eyalfa commented Nov 28, 2016

@joprice, @kailuowang ,
can you guys please have a look?

@kailuowang
Copy link
Member

@eyalfa sorry for the delay , we had a long weekend vacation here in the U.S.A.

@@ -45,9 +46,10 @@ object ConfigSerializer {

final case class ConfigSerializerOps[A](a: A, serializer: ConfigSerializer[A]) {
def asConfigValue: String = serializer.serialize(a)
def toConfigValue = ConfigFactory.parseString( s"dummy=$asConfigValue").root().get("dummy")
Copy link
Member

Choose a reason for hiding this comment

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

can we add the return type here, just so that people don't have to read through the code to tell the difference between asConfigValue and toConfigValue (also how about change the name to toConfig to further differentiate the two?)

Copy link
Author

Choose a reason for hiding this comment

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

this method returns a ConfigValue, not a Config. (ConfigValue might be a ConfigBoolean.Int.Double/String...)

so I'm not sure about renaming this method.

}

object ConfigSerializerOps {
object ConfigSerializerOps {
Copy link
Member

Choose a reason for hiding this comment

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

accidentally introduced space?

@kailuowang
Copy link
Member

Looking good to me except the two minor comments above.

@eyalfa
Copy link
Author

eyalfa commented Nov 28, 2016 via email

@coveralls
Copy link

coveralls commented Nov 28, 2016

Coverage Status

Coverage increased (+0.4%) to 90.984% when pulling e7c23dd on eyalfa:eitherReader into 5609b7f on iheartradio:master.

2 similar comments
@coveralls
Copy link

Coverage Status

Coverage increased (+0.4%) to 90.984% when pulling e7c23dd on eyalfa:eitherReader into 5609b7f on iheartradio:master.

@coveralls
Copy link

coveralls commented Nov 28, 2016

Coverage Status

Coverage increased (+0.4%) to 90.984% when pulling e7c23dd on eyalfa:eitherReader into 5609b7f on iheartradio:master.

@kailuowang
Copy link
Member

👍 thanks a lot!

@kailuowang kailuowang merged commit f5f7f57 into iheartradio:master Nov 28, 2016
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

4 participants