No commit activity in last 3 years
No release in over 3 years
The Songle Song URI parser is a gem package providing class to handle the Song URI. The Song URI is an unique ID of the song that is managed by the Songle. This gem package can parse it.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
~> 3.0
 Project Readme

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.