A Gem to make you happy!
Creates a collection in ~/.get_happy/collection.yml
with your favorite links and after by $ get_happy
open one of them
Add this line to your application's Gemfile:
gem 'get_happy'
And then execute:
$ bundle
Or install it yourself as:
$ gem install get_happy
$ get_happy help
Commands:
get_happy add [LINKS] # add a link to collection
get_happy clean # clean collection
get_happy delete # delete a url
get_happy help [COMMAND] # Describe available commands or one specific command
get_happy import_playlist [ID] # import a youtube playlist
get_happy list # list collection
get_happy play # play a random song
get_happy seed # seed with some sample urls
Play a random song
$ get_happy
List collection
$ get_happy list
Ioannis Total 4
๐ https://www.youtube.com/watch?v=oijgjddWhjI
๐ https://www.youtube.com/watch?v=YESZ1S1zLWg
๐ https://www.youtube.com/watch?v=vyGv-dV_bV8
๐ https://www.youtube.com/watch?v=yBP_Re9r9MI
๐ https://www.youtube.com/watch?v=N43cdFeSNnQ
๐ https://www.youtube.com/watch?v=jXjdyfkL5Ko
Seed with some sample urls
$ get_happy seed
Clean collection
$ get_happy clean
=> Collection is empty
Add a link to collection
$ get_happy add https://www.youtube.com/watch?v=s3Q80mk7bxE
Or add multiply
$ get_happy add https://www.youtube.com/watch?v=s3Q80mk7bxE, https://www.youtube.com/watch?v=PWgvGjAhvIw
Delete a url
$ get_happy delete https://www.youtube.com/watch?v=s3Q80mk7bxE
Import Youtube Playlist
$ get_happy import_playlist B2A4E1367126848D
=> Found 25 items
=> Import playlist?
Git repo Sync
Add a repo
$ get_happy settings --options=repo:"[email protected]:msroot/get_happy_sync.git"
=> {"repo"=>"[email protected]:msroot/get_happy_sync.git"}
and sync
$ get_happy sync
=>
Version
$ get_happy version
=> 1.0.2
- Fork it ( https://github.com/msroot/get_happy/fork )
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create a new Pull Request
Copyright (c) 2015 Ioannis Kolovos
MIT License
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.