README.md in awesome_bot-1.9.1 vs README.md in awesome_bot-1.10.0
- old
+ new
@@ -21,10 +21,11 @@
```
Usage: awesome_bot [file or files]
awesome_bot [options]
-f, --files [files] Comma separated files to check
--allow-dupe Duplicate URLs are allowed
+ --allow-ssl SSL errors are allowed
--allow-redirect Redirected URLs are allowed
--allow-timeout URLs that time out are allowed
-t, --set-timeout [seconds] Set connection timeout
-w, --white-list [urls] Comma separated URLs to white list
```
@@ -71,9 +72,30 @@
$ awesome_bot docs/*.md
# check all markdown files in docs/ directory
$ awesome_bot README.md --allow-timeout --t 5
# speed up validation by setting a timeout of 5s per link request and allowing timeouts
+```
+
+```shell
+(master) $ git branch
+* master
+(master) $ git checkout -b new-branch
+Switched to a new branch 'new-branch'
+(new-branch) $ touch new-readme.md && echo 'https://github.com/dkhamsing' >> new-readme.md
+(new-branch) $ git add new-readme.md
+(new-branch) $ git commit -m 'Testing'
+[new-branch ef47336] Testing
+ 1 file changed, 1 insertion(+)
+ create mode 100644 new-readme.md
+(new-branch) $ git diff master.. --name-only | grep '.md' | xargs awesome_bot
+> Checking links in new-readme.md
+Links to check: 1
+ 1. https://github.com/dkhamsing
+Checking URLs: ✓
+No issues :-)
+
+Wrote results to ab-results-new-readme.md.json
```
### Library
```ruby