TODO: Write a gem description
Add this line to your application's Gemfile:
gem 'repo_analyzer'
And then execute:
$ bundle
Or install it yourself as:
$ gem install repo_analyzer
repo_analyzer
Or, in the root directory,
bundle install
bundle exec irb -Ilib -rrepo_analyzer
To load first 100 repositories into your local database,
loader = RepoAnalyzer::Loader.new
loader.load_repositories
it accepts since
option, which is a starting repository id (exclusive.)
loader.load_repositories(since: 100)
There are some utility methods. See: lib/repo_analyzer/loader_util.rb.
Repository
is a document class for repositories.
repo = RepoAnalyzer::Repository.where(language: 'Ruby').first
with pp
,
require 'pp'
pp repo.attributes
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request