-
Notifications
You must be signed in to change notification settings - Fork 0
Home
ben-biddington edited this page Sep 14, 2010
·
10 revisions
This is a JRuby project based on spotify-api which is in turn based on Jotify.
- Spotify premium account
- Settings file
.jotify-settings.xml
for your Spotify account, see How to configure you system with Spotify credentials - Download and install JRuby
- If you’re using RubyMine, add jRuby as another SDK:
File > Settings > Ruby SDK and Gems > Add Ruby Interpreter >
Find JRuby.exe, e.g. C:\Program Files\jruby-1.4.0\bin\jruby.exe - Install gems: rack, rack-test, rspec, sinatra, haml, activesupport, nokogiri and json-jruby. You can do this via command line, or by adding gems in RubyMine.
All you need is a properties file that looks like this:
<?xml version="1.0" encoding="UTF-8"?> <!DOCTYPE properties SYSTEM "http://java.sun.com/dtd/properties.dtd"> <properties> <entry key="login.username">your spotify username</entry> <entry key="login.password">your spotify password</entry> </properties>
placed in whatever this means on your machine:
System.getProperty("user.home") + "/.jotify-settings.xml"
On Windows, find your home folder using:
>echo "%USERPROFILE%"
For example, I have:
C:\Documents and Settings\benb\.jotify-settings.xml