app/jobs/github_repo_scraper.rb
# Gets the following:
# - number of stars the project has
# - raw README.md file
#
# Example project's Github url vs raw url
# - Github: https://github.com/rspec/rspec/blob/master/README.md
# - Raw: https://raw.githubusercontent.com/rspec/rspec/master/README.md
Gets the following:
number of stars the project has
raw README.md file


Gets the following : number of stars the project has raw README . md file
def update_repo_meta(get_readme = false)
      if get_readme
        readme_content = repo_readme_content
      else
        readme_content = nil
      end
      @current_repo.update(
        watchers: repo_watchers,
        stars: repo_stars,
        forks: repo_forks,
        open_issues: repo_open_issues,
        readme_content: readme_content
        )
    end
def update_repo_meta ( get_readme = false ) if get_readme readme_content = repo_readme_content else readme_content = nil end @current_repo . update ( watchers : repo_watchers , stars : repo_stars , forks : repo_forks , open_issues : repo_open_issues , readme_content : readme_content ) end
Gets the following:
 number of stars the project has
 raw README.md file
Gets the following : number of stars the project has raw README . md file
# TODO: this isn't working rigt now... fix so we grab the readme # Grab general meta data that is available on the commits page # if told to do so
get_readme
<not_specific>