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

Parse objects from config itself with as[] #54

Merged
merged 2 commits into from
Oct 18, 2017
Merged

Parse objects from config itself with as[] #54

merged 2 commits into from
Oct 18, 2017

Conversation

Tolsi
Copy link

@Tolsi Tolsi commented Oct 17, 2017

I saw another pull request #51 too late and I offer a less flexible, but simpler solution to the problem #8

@coveralls
Copy link

coveralls commented Oct 17, 2017

Coverage Status

Coverage increased (+0.06%) to 91.241% when pulling c49c7ae on Tolsi:self-config-as-fix into a344ba7 on iheartradio:master.

@@ -9,6 +9,8 @@ trait FicusConfig {

def as[A](path: String)(implicit reader: ValueReader[A]): A = reader.read(config, path)

def as[A](implicit reader: ValueReader[A]): A = reader.read(config, ".")
Copy link
Member

Choose a reason for hiding this comment

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

this is a nit, how about we make it

def as[A](implicit reader: ValueReader[A]): A = as(".")

The intention here is to expose the fact that if you pass in a "." as path you get the same result as as.

@kailuowang
Copy link
Member

Thanks! I think this would work. I left a minor comment.

@Tolsi
Copy link
Author

Tolsi commented Oct 18, 2017

@kailuowang done!

@coveralls
Copy link

coveralls commented Oct 18, 2017

Coverage Status

Coverage increased (+0.8%) to 91.971% when pulling 6ea7b77 on Tolsi:self-config-as-fix into a344ba7 on iheartradio:master.

@kailuowang kailuowang merged commit eabc7bb into iheartradio:master Oct 18, 2017
@Tolsi Tolsi deleted the self-config-as-fix branch October 18, 2017 16:33
@kailuowang
Copy link
Member

1.4.3 released

@Tolsi
Copy link
Author

Tolsi commented Oct 18, 2017

Cool!

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