Coder Social home page Coder Social logo

masutaka / compare_linker Goto Github PK

View Code? Open in Web Editor NEW

This project forked from kyanny/compare_linker

17.0 17.0 9.0 177 KB

Create GitHub's compare view URLs for pull request from diff of Gemfile.lock (and post comment to pull request).

License: MIT License

Ruby 100.00%
github-pr ruby-gem

compare_linker's People

Contributors

banyan avatar fukayatsu avatar kyanny avatar masutaka avatar motsat avatar rosylilly avatar sue445 avatar walf443 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

compare_linker's Issues

SSH URL is not supported in LockfileComparator.compare method

Issues:

SSH URL is not supported in LockfileComparator.compare method

  • HTTPS URL:supported
    https://github.com/owner/gem_name.git

  • SSH URL:not supported
    [email protected]:owner/gem_name.git

→ Can not read remote URL in the following cases ...
Gemfile.lock:

GIT
  remote: [email protected]:owner/gem_name.git
  revision: 3a748332bade386c88..........
  branch: master
  specs:
    XXXXX (1.0.0)

Code:

_, owner, gem_name = old_spec.source.uri.match(/github\.com\/([^\/]+)\/([^.]+)/).to_a

Regular expression modified code:

/github\.com[:\/]([^\/]+)\/([^.]+)/

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.