-
Notifications
You must be signed in to change notification settings - Fork 76
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
Conversation
|
|
||
@property | ||
def value(self): | ||
return self._value |
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.
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 :/ ?
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.
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 |
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.
same
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.
P.S. gemfiles are really simply :D
from coala_quickstart.info_extraction.Info import Info | ||
|
||
|
||
class VersionInfo(Info): |
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.
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): |
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.
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
ack d23329a |
@rultor merge |
No description provided.