Songle Song URI Parser
The Songle Song URI parser is a gem package providing class to handle the Song URI.
What is Song URI?
The Song URI is an unique ID of the song that is managed by the Songle.
This gem package can parse it.
Usage
Prerequirements
- ruby >= 2.4
Installation
$ gem install songle-song-uri-parser
Example
require "songle-song-uri-parser"
song =
::Songle::SongURI.parse("https://staff.aist.go.jp/t.nakano/music/VocaWatcher.Prologue.Miku.mp3")
p song.permalink #=> "https://staff.aist.go.jp/t.nakano/music/VocaWatcher.Prologue.Miku.mp3"
p song.type #=> "mp3"
p song.to_s #=> "https://songle.jp/songs/staff.aist.go.jp%2Ft.nakano%2Fmusic%2FVocaWatcher.Prologue.Miku.mp3"
Development
Prerequirements
- ruby >= 2.4
Install dependenting gem packages using bundler.
$ bundle install
Running test
$ rake spec
Contributing
Bug reports and pull requests are welcome on GitHub at https://github.com/hinata/songle-song-uri-parser.
License
The gem is available as open source under the terms of the MIT License.