Skip to content

This application replaces version numbers in given files.

License

Notifications You must be signed in to change notification settings

okaminu/version-number-manager

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

57 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

version-number-manager

This application replaces version numbers in given files.

Installation

bundle install

Usage

Create a CSV file, which has two columns: relative file path and version number occurrence count. This configuration file will describe the files in which we want version numbers updated.

Occurrence count ensures, that the manager changes only the predefined count of version numbers in a file. In case there are other dependencies with the same version number, exception is thrown.

Version manager is launched by executing main.rb with arguments:

  • CSV_PATH - path to CSV configuration file
  • OLD_VERSION - currently existing version in a given project.
  • NEW_VERSION - updated version number.
  • BASE_PROJECT_PATH(Optional) - full path to directory, containing all the project modules. If undefined, parent directory of this project is used.
ruby main.rb CSV_PATH, OLD_VERSION, NEW_VERSION, BASE_PROJECT_PATH?
ruby main.rb Documents/file.csv 2.2.2 2.2.3 /home/User/

License

MIT

About

This application replaces version numbers in given files.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages