README.md in getv-1.2.1 vs README.md in getv-1.3.0
- old
+ new
@@ -1,7 +1,9 @@
# getv
+[![Gem Version](https://badge.fury.io/rb/getv.svg)](https://rubygems.org/gems/getv)
+
The goal of `getv` is to make it easy and quick to pull software package version numbers from various sources on the web. The application is packaged as a [gem](https://rubygems.org/gems/getv) and provides both a Ruby library and an executable command line tool, `getv`.
## Installation
Install `getv` with:
@@ -35,32 +37,29 @@
SYNOPSIS
getv [global options] command [command options] [arguments...]
VERSION
- 1.1.0
+ 1.3.0
GLOBAL OPTIONS
- --help - Show this message
- -j, --json - Output in json
- -l, --latest - Latest version
- --reject=arg - Regex version rejection (default: none)
- --select_replace=arg - Regex version selection replace (default: none)
- --select_search=arg - Regex version selection search (default: none)
- --version - Display the program version
+ --help - Show this message
+ -j, --json - Output in json
+ -l, --latest - Latest version
+ --version - Display the program version
COMMANDS
docker - Get package versions from a Docker or OCI container image registry
gem - Get package versions from RubyGems.org
get - Get package versions from text file URL
- github_commit - Get package versions from GitHub commits
- github_release - Get package versions from GitHub releases
- github_tag - Get package versions from GitHub tags
+ github_commit - Get package versions from GitHub commits. Set environment variable $GITHUB_TOKEN to avoid GitHub API limit.
+ github_release - Get package versions from GitHub releases. Set environment variable $GITHUB_TOKEN to avoid GitHub API limit.
+ github_tag - Get package versions from GitHub tags. Set environment variable $GITHUB_TOKEN to avoid GitHub API limit.
help - Shows a list of commands or help for one command
index - Get package versions from web page of links
npm - Get package versions from npm at registry.npmjs.org
pypi - Get package versions from the Python Package Index at pypi.org
```
@@ -69,11 +68,11 @@
Show the latest available version of the `getv` gem:
```console
$ getv --latest gem getv
-1.1.0
+1.3.0
```
Show all `dep` GitHub release versions in JSON:
```console
@@ -82,11 +81,11 @@
```
Show all AtomicParsley Github release versions:
```console
-$ getv --select_search='(.*)' github_release --invalid_versions wez/atomicparsley
+$ getv github_release --invalid_versions wez/atomicparsley
20200701.154658.b0d6223
20201231.092811.cbecfb1
20210114.184825.1dbe1be
20210124.204813.840499f
20210617.200601.1ac7c08
@@ -101,11 +100,11 @@
```
Show selected semantic versions of the `apache/superset` Docker image in JSON:
```console
-$ getv --json --reject '-' docker --semantic_select '~>1.3.0,!=1.3.1' apache/superset
+$ getv --json docker --reject '-' --semantic_select '~>1.3.0,!=1.3.1' apache/superset
{"name":"apache/superset","versions":["1.3.0","1.3.2"]}
```
Show all versions of `libnetfilter_acct` using selected link values on an indexed web page:
@@ -119,11 +118,11 @@
Show the latest GitHub commit to the `main` branch of the `getv` project in a useful versioning format:
```console
# By default the \2 capture group contains the date and \5 contains the short commit hash
-$ getv -l --select_replace '\2git\5' github_commit --branch main liger1978/getv
+$ getv -l github_commit --select_replace '\2git\5' --branch main liger1978/getv
20220123git9ed86f0
```
## Ruby library
@@ -138,9 +137,17 @@
```
## Development
After checking out the repo, run `bin/setup` to install dependencies. Then, run `bundle exec rake spec` to run the tests. Run `bundle exec rubocop` to run the linter. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
+
+Note that by default, Bundler will attempt to install gems to the system, e.g. `/usr/bin`, `/usr/share`, which requires elevated access and can interfere with files that are managed by the system's package manager. This behaviour can be overridden by creating the file `.bundle/config` and adding the following line:
+```
+BUNDLE_PATH: "./.bundle"
+```
+When you run `bin/setup` or `bundle install`, all gems will be installed inside the .bundle directory of this project.
+
+To make this behaviour a default for all gem projects, the above line can be added to the user's bundle config file in their home directory (`~/.bundle/config`)
## Contributing
Bug reports and pull requests are welcome on [GitHub](https://github.com/liger1978/getv).