Project

get_happy

0.0
No commit activity in last 3 years
No release in over 3 years
Creates a collection with your music favorite links and opens a random one
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.7
~> 0.7.11
>= 2.12.5, ~> 2.12
>= 4.5.0, ~> 4.5
>= 5.5.1, ~> 5.5
~> 10.0
>= 3.2.0, ~> 3.2

Runtime

~> 0.19.1
 Project Readme

Gem Version Build Status Code Climate Inline docs Coverage Status

GetHappy

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

Installation

Add this line to your application's Gemfile:

gem 'get_happy'

And then execute:

$ bundle

Or install it yourself as:

$ gem install get_happy

Usage

$ 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:"git@github.com:msroot/get_happy_sync.git"
=> {"repo"=>"git@github.com:msroot/get_happy_sync.git"}

and sync

$ get_happy sync
=> 

Version

$ get_happy version
=> 1.0.2

Contributing

  1. Fork it ( https://github.com/msroot/get_happy/fork )
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create a new Pull Request

License

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.