Code Monkey home page Code Monkey logo

pcf-extractor's Introduction

license-extractor

This repo is going to improve working efficiency for finding packages' license. It almost replaces searching license on Internet manually now.

If a repository is one of based on Ruby,Go,Jave language, as long as providing Github URL of the repository and marking what kind of language as main language it is, the tool can extract its the third dependent packages' license info automatically.

Currently, it has been implemented for ruby's repo, Go and Java are pending.

###For example

  • Writing a certain repository Github URL into input file url_list.txt, the format as follows:
ruby,https://raw.githubusercontent.com/cloudfoundry/cloud_controller_ng/master/Gemfile.lock
ruby,https://raw.githubusercontent.com/cloudfoundry-attic/vcap-services-base/master/Gemfile.lock
ruby,https://raw.githubusercontent.com/cloudfoundry/ibm-websphere-liberty-buildpack/master/Gemfile.lock
go,https://github.com/cloudfoundry/cli
 .
 .
 .

Note also that it must provide gemfile's url like this https://raw.githubusercontent.com/cloudfoundry/cloud_controller_ng/master/Gemfile.lock for ruby repository.

  • Run the tool:
    The current solution is that running a shell script to execute every single task.
    The command is ./boot.sh url_list.txt, before running it chmod u+x boot.sh

  • Output file
    Output file is named by repo's name appending ‘_output’ string behind the name. its content is like this:

builder,3.2.2,MIT,https://rubygems.org/gems/builder/versions/3.2.2
beefcake,1.0.0,MIT,https://rubygems.org/gems/beefcake/versions/1.0.0
CFPropertyList,2.3.0,MIT,https://rubygems.org/gems/CFPropertyList/versions/2.3.0
i18n,0.7.0,MIT,https://rubygems.org/gems/i18n
 .
 .
 .

###The whole process
step 1 : bundle install
step 2 : chmod u+x root.sh
step 3 : run ./root.sh url_list.txt
step 4 : watching output files in same directory.

pcf-extractor's People

Contributors

yulilong avatar

Watchers

 avatar

pcf-extractor's Issues

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.