Homebrew will automatically download the latest version of a piece of software. For my homework to install "Hive", I have to try a specific version of 'Hive' (version 1.2.1), so I'll search how to install a older version of 'Hive', and here are the results:
$ brew tap Homebrew/versions
Then search for desired packages, for me it would be 'hive'
$ brew search hive
This gives me the result:
homebrew/versions/hive12
Finally I install that version
$ brew install homebrew/versions/hive12
And that's how is done!
Reference:
http://apple.stackexchange.com/questions/171530/how-do-i-downgrade-node-or-install-a-specific-previous-version-using-homebrew