Updating to 1.19.2

This commit is contained in:
Alex Epstein 2017-10-12 18:32:18 -04:00
parent 3e543e6b11
commit d684fdf685
29 changed files with 39 additions and 125 deletions

View File

@ -390,7 +390,7 @@ cd Bash-Snippets
* Git checkout to the latest stable release
```bash
git checkout v1.19.1
git checkout v1.19.2
```
* Run the guided install script with

View File

@ -1,7 +1,7 @@
.\" generated with Ronn/v0.7.3
.\" http://github.com/rtomayko/ronn/tree/0.7.3
.
.TH "BASH\-SNIPPETS" "1" "August 2017" "" ""
.TH "BASH\-SNIPPETS" "1" "October 2017" "ff" ""
.
.SH "NAME"
\fBbash\-snippets\fR \- A collection of small bash scripts for heavy terminal users
@ -280,43 +280,6 @@ Example: geo \-a 8\.8\.8\.8 \-o city,zip,isp
.
.IP "" 0
.
.SS "Lyrics"
Description: Fetch lyrics for a certain song\.
.
.P
Usage: lyrics [flags] or tool [\-a] [arg] [\-s] [arg]
.
.IP "\(bu" 4
\-a Artist of the song to fetch lyrics for
.
.IP "\(bu" 4
\-s Song of the artist to fetch lyrics for
.
.IP "\(bu" 4
\-f Export the lyrics to file rather than outputting to stdout
.
.IP "\(bu" 4
\-u Update Bash\-Snippet Tools
.
.IP "\(bu" 4
\-h Show the help
.
.IP "\(bu" 4
\-v Get the tool version
.
.IP "" 0
.
.P
Examples:
.
.IP "\(bu" 4
lyrics \-a logic \-s run it
.
.IP "\(bu" 4
lyrics \-a logic \-s run it \-f ~/runItLyrics\.txt
.
.IP "" 0
.
.SS "Movies"
Description: Provides relevant information about a certain movie\.
.

View File

@ -194,29 +194,6 @@ Example: geo -a 8.8.8.8 -o city,zip,isp
* -u Updates Bash-Snippets
### Lyrics
Description: Fetch lyrics for a certain song.
Usage: lyrics [flags] or tool [-a] [arg] [-s] [arg]
* -a Artist of the song to fetch lyrics for
* -s Song of the artist to fetch lyrics for
* -f Export the lyrics to file rather than outputting to stdout
* -u Update Bash-Snippet Tools
* -h Show the help
* -v Get the tool version
Examples:
* lyrics -a logic -s run it
* lyrics -a logic -s run it -f ~/runItLyrics.txt
### Movies
Description: Provides relevant information about a certain movie.

View File

@ -2,6 +2,14 @@
# Bash-Snippets Changelog
## Changes
* ytview for macOS can now use mpv
* lyrics tool was removed, api is not available anymore
</div>
<div align="center">
## Version 1.19.1
</div>

View File

@ -1,7 +1,7 @@
#!/usr/bin/env bash
# Author: Alexander Epstein https://github.com/alexanderepstein
currentVersion="1.19.1"
currentVersion="1.19.2"
configuredClient=""
## rest of these variables are search flags
search="0"

View File

@ -1,7 +1,7 @@
#!/usr/bin/env bash
# Author: Alexander Epstein https://github.com/alexanderepstein
currentVersion="1.19.1"
currentVersion="1.19.2"
configuredClient=""
private="0" ## state of private flag
all="0" ## state of all flag

View File

@ -1,7 +1,7 @@
#!/usr/bin/env bash
# Author: Alexander Epstein https://github.com/alexanderepstein
currentVersion="1.19.1"
currentVersion="1.19.2"
state=""
configuredClient=""

View File

@ -3,7 +3,7 @@
base=""
exchangeTo=""
currentVersion="1.19.1"
currentVersion="1.19.2"
configuredClient=""
## This function determines which http get tool the system has installed and returns an error if there isnt one

View File

@ -3,7 +3,7 @@
base=""
exchangeTo=""
currentVersion="1.19.1"
currentVersion="1.19.2"
configuredClient=""
currencyCodes=(AUD BGN BRL CAD CHF CNY CZK DKK
EUR GBP HKD HRK HUF IDR ILS INR

View File

@ -1,6 +1,6 @@
#!/usr/bin/env bash
# Author: Alexander Epstein https://github.com/alexanderepstein
currentVersion="1.19.1"
currentVersion="1.19.2"
configuredClient=""
artist="false"
song="false"

View File

Before

Width:  |  Height:  |  Size: 72 KiB

After

Width:  |  Height:  |  Size: 72 KiB

View File

@ -1,7 +1,7 @@
#!/usr/bin/env bash
# Author: Alexander Epstein https://github.com/alexanderepstein
currentVersion="1.19.1"
currentVersion="1.19.2"
configuredClient=""
directionsFlag="0"
directionsMapFlag="0"

View File

@ -4,7 +4,7 @@
# Author: Jake Meyer
# Github: https://github.com/jakewmeyer
currentVersion="1.19.1"
currentVersion="1.19.2"
configuredClient=""
## This function determines which http get tool the system has installed and returns an error if there isnt one

View File

@ -1,7 +1,7 @@
#!/usr/bin/env bash
# Author: Alexander Epstein https://github.com/alexanderepstein
currentVersion="1.19.1"
declare -a tools=(cheat cloudup crypt cryptocurrency currency geo lyrics movies newton qrify short siteciphers stocks taste todo transfer weather ytview)
currentVersion="1.19.2"
declare -a tools=(cheat cloudup crypt cryptocurrency currency geo movies newton qrify short siteciphers stocks taste todo transfer weather ytview)
declare -a extraLinuxTools=(maps)
declare -a extraDarwinTools
usedGithubInstallMethod="0"

View File

@ -1,7 +1,7 @@
#!/usr/bin/env bash
# Author: Alexander Epstein https://github.com/alexanderepstein
currentVersion="1.19.1"
currentVersion="1.19.2"
configuredClient=""
configuredPython=""
detail=false

View File

@ -2,7 +2,7 @@
# Author: Alexander Epstein https://github.com/alexanderepstein
# Author: Navan Chauhan https://github.com/N3V0N
currentVersion="1.19.1"
currentVersion="1.19.2"
configuredClient=""
configuredPython=""
APIKEY="b2f8880475c888056b6207067fbaa197"

View File

@ -1,7 +1,7 @@
#!/usr/bin/env bash
# Author: Alexander Epstein https://github.com/alexanderepstein
currentVersion="1.19.1"
currentVersion="1.19.2"
configuredClient=""
flagCount="0"
declare -a simpleOperations=(simplify factor derive integrate zeroes roots tangent area cos sin tan arccos arcsin arctan abs log)

View File

@ -1,7 +1,7 @@
#!/usr/bin/env bash
# Author: Linyos Torovoltos github.com/linyostorovovoltos
currentVersion="1.19.1"
currentVersion="1.19.2"
multiline="0" # flag that indicates multiline option

View File

@ -2,6 +2,7 @@
# Author: Alexander Epstein https://github.com/alexanderepstein
currentVersion="1.19.1"
currentVersion="1.19.2"
configuredClient=""
configuredPython=""

View File

@ -1,7 +1,7 @@
#!/usr/bin/env bash
DELAY=1
configuredClient=""
currentVersion="1.19.1"
currentVersion="1.19.2"
checkOpenSSL()
{

View File

@ -1,6 +1,6 @@
#!/usr/bin/env bash
# Author: Alexander Epstein https://github.com/alexanderepstein
currentVersion="1.19.1"
currentVersion="1.19.2"
configuredClient=""
## This function determines which http get tool the system has installed and returns an error if there isnt one

View File

@ -1,7 +1,7 @@
#!/usr/bin/env bash
# Author: Alexander Epstein https://github.com/alexanderepstein
currentVersion="1.19.1"
currentVersion="1.19.2"
configuredClient=""
configuredPython=""

View File

@ -1,7 +1,7 @@
#!/usr/bin/env bash
# Author: Alexander Epstein https://github.com/alexanderepstein
currentVersion="1.19.1"
currentVersion="1.19.2"
configuredClient=""
configuredPython=""
source ~/.bash_profile 2> /dev/null ## allows grabbing enviornment variable

View File

@ -1,39 +0,0 @@
#!/bin/env bats
@test "Testing lyrics tool" {
echo lyrics
}
@test "Check for latest version of bash-snippets on update" {
if [[ "$(uname)" == "Linux" ]];then
run lyrics update
[ "$status" -eq 0 ]
[ "$output" = "Bash-Snippets is already the latest version" ]
fi
}
@test "The -h option should print usage" {
run lyrics -h
[ "$status" -eq 0 ]
[ "${lines[0]}" = "Lyrics" ]
}
@test "No arguments prints usage instructions" {
run lyrics
[ "$status" -eq 0 ]
[ "${lines[0]}" = "Lyrics" ]
}
@test "Getting some lyrics" {
run lyrics -a logic -s run it
[ "$status" -eq 0 ]
[ "${lines[0]}" = "Me and my team gotta intervene" ]
}
@test "Getting some lyrics to file" {
rm -f ~/templyrics.txt
run lyrics -a logic -s run it -f ~/templyrics.txt
[ "$status" -eq 0 ]
[ "$(cat $HOME/templyrics.txt | grep -Eo "Me and my team gotta intervene")" = "Me and my team gotta intervene" ]
rm -f ~/templyrics.txt
}

View File

@ -1,7 +1,7 @@
#!/usr/bin/env bash
# Author: Alexander Epstein https://github.com/alexanderepstein
flag=""
currentVersion="1.19.1"
currentVersion="1.19.2"
configuredClient=""
## This function determines which http get tool the system has installed and returns an error if there isnt one

View File

@ -3,7 +3,7 @@
configuredDownloadClient=""
configuredUploadClient=""
configuredClient=""
currentVersion="1.19.1"
currentVersion="1.19.2"
down="false"
## This function determines which http get tool the system has installed and returns an error if there isnt one

View File

@ -1,6 +1,6 @@
#!/usr/bin/env bash
# Author: Alexander Epstein https://github.com/alexanderepstein
declare -a tools=(cheat cloudup crypt cryptocurrency currency geo lyrics movies newton qrify short siteciphers stocks taste todo transfer weather ytview)
declare -a tools=(cheat cloudup crypt cryptocurrency currency geo movies newton qrify short siteciphers stocks taste todo transfer weather ytview)
all="1"
askUninstall()
@ -47,3 +47,7 @@ fi
if [[ $all == "1" ]]; then
removeManpage || exit 1
fi
if -f /usr/local/bin/lyrics;then
rm -f /usr/local/bin/lyrics # Tool was deprecated so it should be removed if installed
fi

View File

@ -1,7 +1,7 @@
#!/usr/bin/env bash
# Author: Alexander Epstein https://github.com/alexanderepstein
currentVersion="1.19.1" #This version variable should not have a v but should contain all other characters ex Github release tag is v1.2.4 currentVersion is 1.2.4
currentVersion="1.19.2" #This version variable should not have a v but should contain all other characters ex Github release tag is v1.2.4 currentVersion is 1.2.4
LANG="${LANG:-en}"
locale=$(echo $LANG | cut -c1-2)
configuredClient=""
@ -40,7 +40,7 @@ getIPWeather()
if [[ $country == "US" ]]; then ## if were in the us id rather not use longitude and latitude so the output is nicer
city=$(httpGet ipinfo.io/city) > /dev/null
region=$(httpGet ipinfo.io/region) > /dev/null
region=$(echo "$region" | tr -dc '[:upper:]')
region=$(echo "$region" | cut -c "1-2" | tr "[:lower:]" "[:upper:]")
httpGet $locale.wttr.in/$city,$region$1
else ## otherwise we are going to use longitude and latitude
location=$(httpGet ipinfo.io/loc) > /dev/null

View File

@ -6,7 +6,7 @@ if [[ -d $HOME/.cache/ytview ]]; then rm -rf $HOME/.cache/ytview/; fi
player=""
configuredClient=""
currentVersion="1.19.1"
currentVersion="1.19.2"
flag=""
## This function determines which http get tool the system has installed and returns an error if there isnt one