Giter Site home page Giter Site logo

Comments (10)

gordielachance avatar gordielachance commented on August 20, 2024 1

I guess you meant

 gem 'playlist', git: 'https://github.com/njh/ruby-playlist'

but anyway, OK, I got it, thanks !

from ruby-playlist.

njh avatar njh commented on August 20, 2024

I did add support for JSPF (http://www.xspf.org/jspf/) in 5ae308f but it isn't in a released version. Is that any use to you?

Or would do you mean a JSON export of the internal data model?
I was considering adding support for YAML and JSON.
And maybe write a schema 🤔

from ruby-playlist.

gordielachance avatar gordielachance commented on August 20, 2024

wow ! JSPF would be exactly what i'm looking for. Didn't knew about that.
For your information, i'm working on a music API, that's why i'm interested in your project.
Would you considerer release that ?
Thanks.

from ruby-playlist.

gordielachance avatar gordielachance commented on August 20, 2024

I'm quite new to Ruby, how could I test this ? (where are stored the gems ?)
Thanks !!!

from ruby-playlist.

njh avatar njh commented on August 20, 2024

I personally use bundler for my gems.

You can add the current git version to your project's Gemfile using:

gem 'rack', git: 'https://github.com/njh/ruby-playlist'

Otherwise you will have to clone the repo and then build and install the gem locally:

git clone https://github.com/njh/ruby-playlist
cd ruby-playlist/
gem install rspec rubocop yard
rake build
gem install ./pkg/playlist-1.3.0.gem

from ruby-playlist.

gordielachance avatar gordielachance commented on August 20, 2024

I can confirm JSPF works with 1.3.0.

This is the output for the tracklist image - is this correct ? The specs here just show an URL. Track images seems ok (just an URL).

"image": {
  "height": null,
  "url": "https://i.scdn.co/image/ab67706c0000da84c3f4168e56a7662a53c0142a",
  "width": null
}

Thanks for your great work.

from ruby-playlist.

njh avatar njh commented on August 20, 2024

Thanks for testing!

Ok, I will check the image thing and then make a release.

from ruby-playlist.

njh avatar njh commented on August 20, 2024

Hi,

There isn't any code that would add width and height to an image object when serialising to JSPF. Are you assigning it from some kind of object, rather than a string?

I wonder if I should be calling #to_s on values somewhere - although it doesn't seem very rubyish.

from ruby-playlist.

gordielachance avatar gordielachance commented on August 20, 2024

mhh i'm check, yes, maybe that's my error. Thanks.

from ruby-playlist.

gordielachance avatar gordielachance commented on August 20, 2024

it was my error, thanks.

from ruby-playlist.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.