Skip to content

๐ŸŽผA gem to make you happy! Open a random url from your list

License

Notifications You must be signed in to change notification settings

msroot/get_happy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

48 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

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:"[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

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.

About

๐ŸŽผA gem to make you happy! Open a random url from your list

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages