Commit Graph
100 Commits
Author SHA1 Message Date
Thibault Jouan d910c46dc2 Configure guard to watch only relevant directories 2015-04-30 08:14:13 +00:00
Thibault Jouan 7fd085c6df Update ruby DB schema 2015-04-30 08:03:53 +00:00
Thibault Jouan 597cd72b96 Merge branch 'dependencies-update'
Update most dependencies, ensure version requirements are locked, and
fix deprecated code.
2015-04-30 05:27:49 +00:00
Thibault Jouan 282eb2ddee Update to rspec 3.2 2015-04-29 14:55:03 +00:00
Thibault Jouan 96246f87bf Soften version requirements for most dependencies 2015-04-29 13:22:48 +00:00
Thibault Jouan 47be6e09f2 Declare and lock all dependencies
* Remove custom gemfile usage;
* Move essential gems from custom gemfile to the standard one;
* Include bundler lock file in version control.
2015-04-29 13:21:15 +00:00
Thibault Jouan 6df77a4888 Change gem sort order in Gemfile 2015-04-29 13:15:13 +00:00
Thibault Jouan 096d808a60 Use custom spork version updated for rspec ~> 2.99 2015-04-29 13:09:05 +00:00
Thibault Jouan fae21e87d4 Fix rspec 2.99 deprecations 2015-04-29 13:06:44 +00:00
Thibault Jouan b70071a7c3 Update rspec configuration for rspec-rails 3 2015-04-29 13:00:14 +00:00
Thibault Jouan 403d9c3df2 Fix rspec-rails mock_model deprecation 2015-04-29 11:38:34 +00:00
Thibault Jouan aa6f6a103e Update to rails 4.2.1 2015-04-29 11:33:21 +00:00
Thibault Jouan 1efb3103d9 Remove respond_to usage in playlists controller
This feature was deprecated by rails.
2015-04-29 11:17:29 +00:00
Thibault Jouan 2dc65f529b Fix rubygems source configured for bundler 2015-04-29 10:38:59 +00:00
Thibault Jouan 5967d237c6 Update database schema 2014-04-03 02:26:15 +00:00
Thibault Jouan 4c6adc6927 Use new "strong parameters" from rails4 2014-04-03 02:20:37 +00:00
Thibault Jouan 1b5055d0a6 Remove extra empty lines in schema migration 2014-04-01 20:15:54 +00:00
Thibault Jouan 53d9956961 Fix default headers 2014-04-01 19:35:28 +00:00
Thibault Jouan 2acf0371b5 Fix coding standards in specs 2014-04-01 19:14:11 +00:00
Thibault Jouan e6f6475705 Fix coding standards in application 2014-04-01 19:02:23 +00:00
Thibault Jouan aca19eb51f Fix coding standards: bang operator 2014-04-01 18:55:46 +00:00
Thibault Jouan 0c7bf69ba2 Use one-liners in specs where possible 2014-04-01 18:55:42 +00:00
Thibault Jouan 4cef7aeab9 Update specs to new rspec syntax 2014-04-01 18:15:44 +00:00
Thibault Jouan 99d106cf36 Restore spork dependency in Gemfile 2014-04-01 14:44:46 +00:00
Thibault Jouan da96c4814a Use ruby 2.x hash syntax 2014-04-01 10:48:18 +00:00
Thibault Jouan 712e9501a2 Update Guardfile 2014-04-01 10:24:57 +00:00
Thibault Jouan 92ac87c54e Merge branch 'rails4'
Upgrade all dependencies, then rails from 3.x to 4.0.
2014-04-01 10:07:56 +00:00
Thibault Jouan aa2b43ab42 Update rails to 4.0:
* Add protected_attributes gem dependency;
* Remove deprecated usages of AR .find method;
2014-04-01 10:01:02 +00:00
Thibault Jouan bd39be32c5 Make Sound#file attr_accessible 2014-04-01 07:48:47 +00:00
Thibault Jouan 3253ddea9b Update shoulda-matchers to last version 2014-04-01 05:19:51 +00:00
Thibault Jouan 97c64d0990 Update capybara to last version 2014-04-01 05:18:19 +00:00
Thibault Jouan eda2f3fbee Update factory girl to last version 2014-04-01 05:04:27 +00:00
Thibault Jouan d2b332215e Remove incorrect mock() usage in specs 2014-04-01 04:58:39 +00:00
Thibault Jouan c1eaf98c02 Update for latest RABL version:
* Fix controller specs to also render RABL views where needed.
2014-04-01 04:52:09 +00:00
Thibault Jouan edef2df77b Update haml gem 2014-04-01 03:44:24 +00:00
Thibault Jouan 51ff46e00b Update pg gem 2014-04-01 03:43:04 +00:00
Thibault Jouan 8a37fde85c Fix name for bcrypt dependency 2014-04-01 03:41:03 +00:00
Thibault Jouan 3abda1db8e Ignore Gemfile.lock 2014-04-01 03:40:51 +00:00
Thibault Jouan d3a04b3621 Merge branch 'cleanup'
Clean up documentation and dependencies.
2014-04-01 03:16:54 +00:00
Thibault Jouan 7efa92ab70 Fix dependencies specification in Gemfile:
* Implement custom Gemfile evaluation;
* Remove all uneeded gems;
* Fix indentation.
2014-04-01 03:15:01 +00:00
Thibault Jouan 3dbaf438a4 Update documentation:
* Remove rails default doc files;
* Fix outdated documentation (installation and contribution).
2014-04-01 03:08:41 +00:00
Thibault Jouan 40f4ced3b8 Add inflection for API acronym 2013-06-30 21:37:30 +00:00
Thibault Jouan 5719cbcbe9 Update auto-generated DB schema definition 2013-06-30 21:32:35 +00:00
Thibault Jouan da5096a26d Update auto-generated DB schema definition 2012-05-12 15:57:22 +00:00
Thibault Jouan 90327a05e5 Bundle thin so that it can be used instead of WEBrick 2012-05-12 15:54:26 +00:00
Thibault Jouan 85efa1729d Use a dedicated dedicated directory for specs 2012-05-04 19:08:29 +00:00
Thibault Jouan 9b9e17e591 Implement track/index action for API 2012-05-03 21:11:03 +00:00
Thibault Jouan fc1ec120ae Add sound/show action (FIXME: need tests!) 2012-05-03 21:11:00 +00:00
Thibault Jouan 9ccd1e10be Allow Content-Length header to be received and sent in CORS requests 2012-05-03 21:03:11 +00:00
Thibault Jouan b40b4d4df3 Fix use of nil in CORS filter when request doesn't have an Origin header 2012-05-03 21:03:11 +00:00
Thibault Jouan df6d4991f8 Implement playlists/create action for API 2012-03-19 02:23:48 +00:00
Thibault Jouan f8ed140af1 Add api_sign_in method for UserIntegrationHelpers 2012-03-19 01:21:58 +00:00
Thibault Jouan 906851f50f Add UserControllersHelpers to assign user in session 2012-03-19 01:20:31 +00:00
Thibault Jouan b25d4d256f Update all bundled gems to lastest versions 2012-03-18 23:51:20 +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 499b06c9e5 Allow API consumer to send credentials on cross-origin requests 2012-03-13 21:12:24 +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 5145717a3c Specify models attributes that must not be mass assignated 2012-01-07 18:26:38 +00:00
Thibault Jouan 5e6781a656 Improve User specs about email uniqueness 2011-12-30 13:40:03 +00:00
Thibault Jouan 0e3cf48d95 Use symbols instead of strings for Haml attributes keys in the layout 2011-12-30 10:42:47 +00:00
Thibault Jouan c764265af2 Improve readability in some views by adding empty lines 2011-12-30 10:41:52 +00:00
Thibault Jouan a7451c5302 Add new guard rule to trigger integration specs when a layout changes 2011-12-30 10:38:29 +00:00
Thibault Jouan cbd5c19930 Ignore data directory from version control 2011-12-25 09:43:53 +00:00
Thibault Jouan 9c03e33216 Add libnotify to Gemfile for linux platform, update Gemfile.lock 2011-12-07 20:51:40 +00:00
Thibault Jouan 81e285ffd4 Remove database_cleaner from Gemfile 2011-12-06 12:44:27 +00:00
Thibault Jouan a36310918c Fix syntax in spec helper 2011-12-05 18:07:46 +00:00
Thibault Jouan fae41abf5d Update config defaults for new rails version 2011-12-04 23:03:31 +00:00
Thibault Jouan 9fc52eb4f5 Update .gitignore file:
* Remove .bundle
* Prefix all path with leading slash
2011-12-04 22:49:10 +00:00
Thibault Jouan ad7b5a5624 Update all bundled gems to latest versions 2011-12-04 22:48:42 +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 222acb4e07 Reload factories for each rspec examples 2011-11-30 21:27:57 +00:00
Thibault Jouan 03e94cb7c1 Fix syntax in view specs 2011-09-22 21:54:09 +00:00
Thibault Jouan 00eff9131a Fix a context definition in track specs 2011-09-22 21:36:11 +00:00
Thibault Jouan 15bce07e2f Remove "#sounds" spec for trak, duplicates with "have_many :sounds" spec 2011-09-22 21:36:06 +00:00
Thibault Jouan ab1af50be6 Ensure related sound is created when saving a track with a file 2011-09-22 21:24:04 +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 d153755296 Add missing spec for "user has many playlists" association 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 a8067404f4 Use rails configuration for sounds file path
* Add sounds_path initializer
2011-09-21 21:21:14 +00:00
Thibault Jouan 6af1540640 Bundle shoulda and use ActiveModel matchers in specs 2011-09-21 00:07:19 +00:00
Thibault Jouan 72f800397d Call mock_model with the class name instead of a string 2011-09-20 23:27:48 +00:00
Thibault Jouan abb7b07c89 Refactor spec clean up 2011-09-20 23:19:28 +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 9a22c4bb94 Remove schema loading for each spec run in spec_helper 2011-09-14 17:40:56 +00:00
Thibault Jouan 639293e4ca Replace cucumber features by rails integration specs 2011-09-14 17:39:14 +00:00
Thibault Jouan 638d379ec6 Add validation on User password presence 2011-09-13 20:10:38 +00:00
Thibault Jouan ffa811db46 Add missing users.email unique index at database level 2011-09-13 20:00:24 +00:00
Thibault Jouan 20e8bdbf4f Change database backend to PostgreSQL
* Bundle pg gem
* Add a database config file sample
2011-09-13 19:26:13 +00:00
Thibault Jouan ceb6f18c01 Refactor factories ;-) 2011-09-08 23:40:36 +00:00
Thibault Jouan 688a178376 Validate uniqueness of user email address
* Make user.email attribute unique
* Render validations error messages in users/new view
2011-09-08 23:09:58 +00:00
Thibault Jouan 35b081ed68 Use a sequence for User email attribute 2011-09-08 23:09:25 +00:00
Thibault Jouan 7d74024dc0 Move user registration in User feature 2011-09-08 12:43:20 +00:00
Thibault Jouan acaa9fc19a Use table for form fields in views 2011-09-07 21:13:20 +00:00