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

gsoc: Gemfile info extraction #120

Merged
merged 5 commits into from
Jun 26, 2017
Merged

gsoc: Gemfile info extraction #120

merged 5 commits into from
Jun 26, 2017

Conversation

satwikkansal
Copy link
Member

No description provided.

@satwikkansal satwikkansal changed the title Gemfile info extraction gsoc: Gemfile info extraction Jun 17, 2017
@satwikkansal
Copy link
Member Author

satwikkansal commented Jun 17, 2017

Note: The first 6 commits of this PR are based on #102


@property
def value(self):
return self._value
Copy link
Member

Choose a reason for hiding this comment

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

usually we use _x and make x as property because we have a x.setter modifying the _x, I wonder why are you using it this way :/ ?

Copy link
Member Author

Choose a reason for hiding this comment

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

Agreed. The reasoning for me was if in future we want to have different internal representation and different output representation, then we just need to make changes just in the getter function.

"""
Return extracted information (if any)
"""
return self._information
Copy link
Member

Choose a reason for hiding this comment

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

same

Copy link
Member

@adtac adtac left a comment

Choose a reason for hiding this comment

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

P.S. gemfiles are really simply :D

from coala_quickstart.info_extraction.Info import Info


class VersionInfo(Info):
Copy link
Member

Choose a reason for hiding this comment

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

So this will kinda conflict with the other PRs right? If you want stuff merged in a particular order, lemme know.

ProjectDependencyInfo, VersionInfo)


class GemfileInfoExtractor(InfoExtractor):
Copy link
Member

Choose a reason for hiding this comment

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

Again, a gemfile spec (official or unofficial) would be awesome

Adds a class attribute named spec_references which
contains links to the issues/documentations for
relevant specs of supported files.

Related to #126
Adds a class attribute named example_values illustrating
sample information values that are allowed to be stored
inside the Info class.

Closes #125
Adds Info classes relevant to extractors
of package.json and other meta-files.

Related to #100
Adds ``PackageJSONInfoExtractor`` class to extract relevant
information from package.json file.

Closes #100
Adds extractor class ``GemfileInfoExtractor`` to
extract relevant information from Gemfile.

Related to #119
@adtac
Copy link
Member

adtac commented Jun 26, 2017

ack d23329a

@adtac
Copy link
Member

adtac commented Jun 26, 2017

@rultor merge

@rultor
Copy link

rultor commented Jun 26, 2017

@rultor merge

@adtac OK, I'll try to merge now. You can check the progress of the merge here

@rultor rultor merged commit d23329a into coala:master Jun 26, 2017
@rultor
Copy link

rultor commented Jun 26, 2017

@rultor merge

@adtac Done! FYI, the full log is here (took me 2min)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging this pull request may close these issues.

5 participants