No commit activity in last 3 years
No release in over 3 years
licence_injector injects text from the given licence file into each source file found at the given source path whose extension is one of those in the given list of extensions. licence_injector also allows a previously injected licence to be replaced with a new licence
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 10.1.0
~> 4.0.1
~> 2.14.1
 Project Readme

<img src=“https://codeclimate.com/github/barrydrink/LicenceInjector/badges/gpa.svg” /> <img src=“https://travis-ci.org/barrydrink/LicenceInjector.svg?branch=master” alt=“Build Status” /> <img src=“https://codeclimate.com/github/barrydrink/LicenceInjector/badges/coverage.svg” />

‘licence_injector’ - Injects licence text into source file¶ ↑

Author

Barry Drinkwater (barry.drinkwater@gmail.com)

Copyright

Copyright © 2013 Penrillian

Licence

Distributed under the BSD Clause 2 licence, see LICENCE.txt

This application injects text from the given licence file into each source file found in the given source path whose extension is one of those in the given list of extensions. It handles xml files and files containing a shebang; both of these type of files require that their first lines remain unaltered. Also, a previously injected licence can be replaced with a new licence.

Install¶ ↑

Install:

gem install licence_injector

Use¶ ↑

Inject licence:

licence_injector inject [options]

Replace licence:

licence_injector replace [options]

For more help:

licence_injector –help

and:

gem man licence_injector

Developing for ‘licence_injector’¶ ↑

gem install bundler

Get the development dependencies

bundle install

Most of the code is in ‘lib/LicenceInjector.rb’ and ‘bin/licence_injector’