Coder Social home page Coder Social logo

kyoshidajp / bundler-alive Goto Github PK

View Code? Open in Web Editor NEW
10.0 2.0 1.0 806 KB

Are your gems alive? bunder-alive checks if gems in a RubyGem's Gemfile.lock are active.

License: MIT License

Ruby 100.00%
dependency-checker ruby bundler-alive security security-tools

bundler-alive's Introduction

bundler-alive

Gem Version bundler-alive Maintainability Test Coverage

bundler-alive checks if gems in a RubyGem's Gemfile.lock are active.

Currently, GitHub.com and GitLab.com are supported as a source code repository. If the source code repository is archived, then reports as not alive.

Installation

$ gem install bundler-alive

Usage

$ bundle-alive
6 gems are in Gemfile.lock
..W....
Get all source code repository URLs of gems are done!
.....

Errors:
    [bundle-alive] Not found in RubyGems.org.

Archived gems:
    Name: journey
    URL: http://github.com/rails/journey

Total: 6 (Archived: 1, Alive: 4, Unknown: 1)
Not alive gems are found!

Default Gemfile.lock location is in your current directory. You can specify it.

$ bundle-alive -G /path/to/Gemfile.lock

Access Token

You MUST set environment variables to access source code repository services.

Repository service ENV variable
GitHub BUNDLER_ALIVE_GITHUB_TOKEN
GitLab BUNDLER_ALIVE_GITLAB_TOKEN

Ignore gems

You can ignore certain gems.

$ bundle-alive -i journey rubocop-junit-formatter

Following redirect on RubyGems.org

The URL for some gems in RubyGems.org may have changed. You can follow the URL (default: doesn't follow).

$ bundle-alive --follow_redirect

Specifying repository URL

In some cases, some gems cannot find the URL of their source code repositories. For this case, you can specify a mapping between the gem and its URL.

Put .bundler-alive.yml in your current directory. The following code is the sample.

---
gems:
  coffee-script-source:
    url: https://github.com/jashkenas/coffeescript/

You can also specify the file path.

$ bundle-alive -c /path/to/.bundler-alive.yml

.bundler-alive.default.yml may also be helpful. Considering that having these mappings obtained automatically in the future.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/kyoshidajp/bunlder-alive.

Thanks

This gem was inspired by the following products.

bundler-alive's People

Contributors

kyoshidajp avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

mensfeld

bundler-alive's Issues

Turn off following redirect check option

Now, checking a URL of source code repository in RubyGems.org about redirection. It's very slow in many gems are.

Turn off following redirect check option is useful in the case.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.