{"id":19339028,"url":"https://github.com/librariesio/repo_miner","last_synced_at":"2025-04-23T01:31:32.602Z","repository":{"id":56891838,"uuid":"96908019","full_name":"librariesio/repo_miner","owner":"librariesio","description":":pick: Mine repositories for interesting changes over time","archived":true,"fork":false,"pushed_at":"2018-03-29T09:40:24.000Z","size":75,"stargazers_count":7,"open_issues_count":1,"forks_count":8,"subscribers_count":6,"default_branch":"master","last_synced_at":"2025-03-23T01:05:21.051Z","etag":null,"topics":["git","librariesio","repository"],"latest_commit_sha":null,"homepage":"https://rubygems.org/gems/repo_miner","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"agpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/librariesio.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":".github/CONTRIBUTING.md","funding":null,"license":"LICENSE.txt","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-07-11T15:23:37.000Z","updated_at":"2024-11-14T19:28:18.000Z","dependencies_parsed_at":"2022-08-20T15:20:49.425Z","dependency_job_id":null,"html_url":"https://github.com/librariesio/repo_miner","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/librariesio%2Frepo_miner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/librariesio%2Frepo_miner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/librariesio%2Frepo_miner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/librariesio%2Frepo_miner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/librariesio","download_url":"https://codeload.github.com/librariesio/repo_miner/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250352321,"owners_count":21416470,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["git","librariesio","repository"],"created_at":"2024-11-10T03:19:33.910Z","updated_at":"2025-04-23T01:31:31.914Z","avatar_url":"https://github.com/librariesio.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RepoMiner\n\n[![Build Status](https://travis-ci.org/librariesio/repo_miner.svg?branch=master)](https://travis-ci.org/librariesio/repo_miner)\n[![Code Climate](https://img.shields.io/codeclimate/github/librariesio/repo_miner.svg?style=flat)](https://codeclimate.com/github/librariesio/repo_miner)\n[![Test Coverage](https://img.shields.io/codeclimate/coverage/github/librariesio/repo_miner.svg?style=flat)](https://codeclimate.com/github/librariesio/repo_miner)\n[![Code Climate](https://img.shields.io/codeclimate/issues/github/librariesio/repo_miner.svg)](https://codeclimate.com/github/librariesio/repo_miner/issues)\n[![license](https://img.shields.io/github/license/librariesio/repo_miner.svg)](https://github.com/librariesio/repo_miner/blob/master/LICENSE.txt)\n\nRepoMiner is a ruby library designed to mine time sensitive information from git repositories. Things like:\n\n- When dependencies are added/updated/removed\n- When license information changes\n- Changes in frequency of commits over time\n- Changes in timezones of commits over time\n\nThis is a new and incomplete project that's under active development.\n\nI'll be live streaming some of the development of this project on twitch: https://www.twitch.tv/andrew_nesbitt\n\n## Installation\n\nAdd this line to your application's Gemfile:\n\n```ruby\ngem 'repo_miner'\n```\n\nAnd then execute:\n\n    $ bundle\n\nOr install it yourself as:\n\n    $ gem install repo_miner\n\n## Usage\n\nMake a new repository:\n\n```ruby\nrepository = RepoMiner::Repository.new('/path/to/git/repo')\n```\n\nAnalyse all commits for a given branch:\n\n```ruby\ncommits = repository.analyse('master')\n```\n\nSee mined dependency data for a given commit:\n\n```ruby\ncommits.length #=\u003e 34\n\ncommits.last #=\u003e \u003cRepoMiner::Commit:0x007fd87fdf1150(message: \"Fixes 1597\", sha: c656e48ada19c6c83f7705893f0a73cfc1844abf, data: {:email=\u003e{:committer=\u003e\"andrewnez@gmail.com\", :author=\u003e\"andrewnez@gmail.com\"}, :dependencies=\u003e{:added_manifests=\u003e[], :modified_manifests=\u003e[{:path=\u003e\"Gemfile\", :platform=\u003e\"rubygems\", :added_dependencies=\u003e[], :modified_dependencies=\u003e[], :removed_dependencies=\u003e[{:name=\u003e\"sass\", :requirement=\u003e\"= 3.4.24\", :type=\u003e:runtime}]}, {:path=\u003e\"Gemfile.lock\", :platform=\u003e\"rubygems\", :added_dependencies=\u003e[{:name=\u003e\"sass-listen\", :requirement=\u003e\"4.0.0\", :type=\u003e\"runtime\"}], :modified_dependencies=\u003e[{:name=\u003e\"commonmarker\", :requirement=\u003e\"0.16.8\", :type=\u003e\"runtime\", :previous_requirement=\u003e\"0.16.7\"}, {:name=\u003e\"gitlab\", :requirement=\u003e\"4.2.0\", :type=\u003e\"runtime\", :previous_requirement=\u003e\"4.1.0\"}, {:name=\u003e\"rack-cors\", :requirement=\u003e\"1.0.0\", :type=\u003e\"runtime\", :previous_requirement=\u003e\"0.4.1\"}, {:name=\u003e\"sass\", :requirement=\u003e\"3.5.1\", :type=\u003e\"runtime\", :previous_requirement=\u003e\"3.4.24\"}, {:name=\u003e\"sassc\", :requirement=\u003e\"1.11.4\", :type=\u003e\"runtime\", :previous_requirement=\u003e\"1.11.2\"}], :removed_dependencies=\u003e[]}], :removed_manifests=\u003e[]}})\u003e\n```\n\nYou can also skip commits that you've already analysed:\n\n```ruby\ncommits = repository.analyse('master', '00e7221')\ncommits.length # =\u003e 9\n```\n\n## Development\n\nAfter checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.\n\nTo install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).\n\n## Contributing\n\nBug reports and pull requests are welcome on GitHub at https://github.com/librariesio/repo_miner. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.\n\n\n## License\n\nThe gem is available as open source under the terms of the [AGPL 3 License](https://opensource.org/licenses/AGPL-3.0).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flibrariesio%2Frepo_miner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Flibrariesio%2Frepo_miner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Flibrariesio%2Frepo_miner/lists"}