28 Commits

Author SHA1 Message Date
Thibault Jouan
906851f50f Add UserControllersHelpers to assign user in session 2012-03-19 01:20:31 +00:00
Thibault Jouan
10a8e1f094 Remove v0 version namespacing for API 2012-03-18 23:16:43 +00:00
Thibault Jouan
5dfafdcc46 Implement sessions/create in JSON API 2012-03-18 17:30:36 +00:00
Thibault Jouan
196ea16a94 Use RABL to build JSON responses given by API 2012-03-11 23:31:01 +00:00
Thibault Jouan
8681999d4c Fix API playlists controller spec filename 2012-03-11 22:30:17 +00:00
Thibault Jouan
0177fd2c08 Simplify JSON.parse call in api playlists controller spec 2012-03-11 22:20:19 +00:00
Thibault Jouan
6379da88e2 Implement Cross-Origin Resource Sharing:
* Add Api::ApplicationController
* Route OPTION requests (CORS preflight) to API application controller
* Filter all API requests through #cor_filter in API application
  controller
2012-03-11 22:19:42 +00:00
Thibault Jouan
88d3242843 Implements playlists/index action in JSON API 2012-02-26 11:33:43 +00:00
Thibault Jouan
e647821f6f Specify binary encoding when reading Sound file in SoundsController spec 2011-11-30 21:28:53 +00:00
Thibault Jouan
37735a354d Replace mock expectations with classic specs in tracks controller 2011-09-22 21:01:28 +00:00
Thibault Jouan
2d478352bd Improve some definitions in sounds controller specs 2011-09-22 20:27:50 +00:00
Thibault Jouan
686162e270 Fix playlists controller specs for POST create action 2011-09-22 20:27:46 +00:00
Thibault Jouan
27550fd14e Save track files in new Sound model:
* Consolidate migrations
* Add Sound model. Each sound can belong to a track and contains
  informations about one sound file.
2011-09-20 17:43:20 +00:00
Thibault Jouan
f49a5a3f67 Update to rails 3.1.0
* Bump rails version to 3.1.0 in Gemfile
* Update config files
* Fix bcrypt monkey patch for specs
* Fix TracksController
* Replace track streaming with track download
* Remove assets from application layout
2011-09-15 16:10:21 +00:00
Thibault Jouan
1057cab009 Implement user registration feature
* Add users/new action and view
* Add users/create action
* Add link to sign up in sign in page
2011-09-07 18:36:06 +00:00
Thibault Jouan
4f66db2682 Refactor code related to authentication:
* User model
* SessionsController
2011-08-29 20:23:20 +00:00
Thibault Jouan
07c2b5f525 Remove extra attribute change in SessionsController POST create spec 2011-08-24 20:30:53 +00:00
Thibault Jouan
c023a071d0 Fix playlist/update action behaviour with invalid params 2011-08-24 20:27:30 +00:00
Thibault Jouan
7b2b594d7d Improve PlaylistsController POST create specs 2011-08-24 19:55:11 +00:00
Thibault Jouan
7bf4d4c5f9 Add authentication and User model
* Add User model
* Add SessionsController
* Add password authentication on User
* Request authentication for all actions except sign in
* Add some helpers for ApplicationController
* Update features to work with mandatory authentication
2011-08-06 23:04:36 +00:00
Thibault Jouan
46abe07268 Add latest added tracks list on the home page 2011-07-27 22:10:22 +00:00
Thibault Jouan
b39bc2d6da Add home page with playlists list and link to add a track 2011-07-27 19:40:30 +00:00
Thibault Jouan
2f6a447416 Implement track/stream
* Add Streamer class
* Use FactoryGirl for factories
* Add sha256 field to tracks
* Add mime_type field to tracks
2011-07-26 16:59:47 +00:00
Thibault Jouan
47fa969617 Use factory_girl_rails for factories 2011-07-25 22:56:30 +00:00
Thibault Jouan
6af96b0f75 Add track/{new,create} with file upload for the track 2011-07-24 18:50:57 +00:00
Thibault Jouan
34b38b77cf Implement tracks/{show,listen} 2011-07-19 19:42:45 +00:00
Thibault Jouan
301205d3f0 Implement playlist edit feature
* Display playlists as links in index
* Move playlist form in a partial
2011-07-13 17:52:27 +00:00
Thibault Jouan
33f979b573 Add basic playlists management
* Index of playlists
* Create a new playlist
* Basic playlist model with mandatory name
2011-07-12 00:32:06 +00:00