Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | Fix rails db command with sqlite3 database | Carlos Antonio da Silva | 2012-11-18 | 1 | -0/+8 |
| | | | | | | | | | | | | | | | | | | | | | | | | When using sqlite3 it was attempting to find the database file based on Rails.root, the problem is that Rails.root is not always present because we try to first manually load "config/database.yml" instead of loading the entire app, to make "rails db" faster. This means that when we're in the root path of the app, calling "rails db" won't allow us to use Rails.root, making the command fail for sqlite3 with the error: ./rails/commands/dbconsole.rb:62:in `start': undefined method `root' for Rails:Module (NoMethodError) The fix is to simply not pass any dir string to File.expand_path, which will make it use the current directory of the process as base, or the root path of the app, which is what we want. When we are in any other subdirectory, calling "rails db" should work just fine, because "config/database.yml" won't be found, thus "rails db" will fallback to loading the app, making Rails.root available. Closes #8257. | ||||
* | Add UpgradeSignatureToEncryptionCookieStore | Santiago Pastorino | 2012-11-16 | 1 | -0/+110 |
| | | | | | | This allows easy upgrading from the old signed Cookie Store <= 3.2 or the deprecated one in 4.0 (the ones that doesn't use key derivation) to the new one that signs using key derivation | ||||
* | Remove duplicated get /foo/write_session | Santiago Pastorino | 2012-11-16 | 1 | -1/+0 |
| | |||||
* | Remove unused config option | Santiago Pastorino | 2012-11-16 | 1 | -1/+0 |
| | |||||
* | Merge pull request #8112 from rails/encrypted_cookies | Santiago Pastorino | 2012-11-15 | 7 | -10/+66 |
|\ | | | | | Encrypted cookies | ||||
| * | Rename secret_token_key to secret_key_base | Santiago Pastorino | 2012-11-03 | 4 | -6/+6 |
| | | |||||
| * | Use derived keys everywhere, http_authentication was missing it | Santiago Pastorino | 2012-11-03 | 3 | -19/+4 |
| | | |||||
| * | Add encrypted cookie store | Santiago Pastorino | 2012-11-03 | 2 | -1/+52 |
| | | |||||
| * | Sign cookies using key deriver | Santiago Pastorino | 2012-11-03 | 3 | -5/+25 |
| | | |||||
* | | asset compilation should not require a database connection | Aaron Patterson | 2012-11-13 | 1 | -0/+26 |
| | | |||||
* | | Merge pull request #8169 from nicolasdespres/robust_git_repository_check | Rafael Mendonça França | 2012-11-13 | 1 | -0/+29 |
|\ \ | | | | | | | Rake test:uncommitted finds git directory in ancestors. | ||||
| * | | Rake test:uncommitted finds git directory in ancestors. | Nicolas Despres | 2012-11-10 | 1 | -0/+29 |
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Sometimes your git directory is an ancestor of your application root directory. For example: ./repo/.git/ ./repo/app/Rakefile In this case rake test:uncommitted will be unable to detect your SCM. This patch fixes this and add a test. | ||||
* | | | Removing warning : ambiguous first argument | Arun Agrawal | 2012-11-11 | 1 | -2/+2 |
|/ / | |||||
* | | Removing warning : assigned but unused variable | Arun Agrawal | 2012-11-10 | 1 | -1/+1 |
| | | |||||
* | | `plugin new` adds dummy app tasks when necessary. | Yves Senn | 2012-11-08 | 1 | -0/+6 |
| | | | | | | | | | | | | | | Closes #8121 The `plugin new` generator always adds the dummy app rake tasks, when a dummy app was created. | ||||
* | | Remove some line breaks between array items that make the assert file tests ↵ | Carlos Antonio da Silva | 2012-11-04 | 3 | -41/+18 |
|/ | | | | harder to read | ||||
* | Small change to remove warning unused variable. | Arun Agrawal | 2012-11-01 | 1 | -1/+1 |
| | |||||
* | Fix deprecation message in test for Path#children | Carlos Antonio da Silva | 2012-10-29 | 1 | -1/+1 |
| | |||||
* | Add test to deprecation of Path#children | Rafael Mendonça França | 2012-10-29 | 1 | -0/+6 |
| | |||||
* | Merge pull request #7587 from elia/fix-too-eager-loading | Rafael Mendonça França | 2012-10-29 | 1 | -0/+3 |
| | | | | | | Should not eager_load app/assets Conflicts: railties/CHANGELOG.md | ||||
* | Job consumer logs to Rails.logger by default | Jeremy Kemper | 2012-10-26 | 1 | -0/+1 |
| | |||||
* | changed test case name | Tima Maslyuchenko | 2012-10-23 | 1 | -1/+1 |
| | |||||
* | Remove warning setting eager_load | Rafael Mendonça França | 2012-10-18 | 1 | -0/+1 |
| | |||||
* | Don't use action_controller.perform_caching to enable rack-rack. | Rafael Mendonça França | 2012-10-18 | 2 | -6/+13 |
| | | | | | Setting the action_dispatch.rack_cache options to true or a hash should be the way to enable it. | ||||
* | Fix the app_generator and plugin_new tests | Rafael Mendonça França | 2012-10-18 | 1 | -1/+1 |
| | |||||
* | Switch to new sprockets-rails plugin | Joshua Peek | 2012-10-15 | 2 | -127/+54 |
| | |||||
* | Merge branch 'master' into asset-path-helper | Joshua Peek | 2012-10-15 | 34 | -239/+239 |
|\ | | | | | | | | | Conflicts: railties/test/application/configuration_test.rb | ||||
| * | Fix typo in #7941 | Jeremy Kemper | 2012-10-14 | 1 | -1/+1 |
| | | |||||
| * | Use Ruby 1.9 Hash syntax in railties | Robin Dupret | 2012-10-14 | 32 | -215/+215 |
| | | |||||
| * | Test that a Rails.queue consumer is automatically started in production | Jeremy Kemper | 2012-10-13 | 1 | -1/+11 |
| | | |||||
| * | Backpedal from class-oriented config.queue. Set an actual queue instance. | Jeremy Kemper | 2012-10-12 | 2 | -11/+3 |
| | | |||||
| * | Tighten up asset precompile tests | Jeremy Kemper | 2012-10-12 | 2 | -4/+3 |
| | | |||||
| * | Remove the queue container. Premature consolidation. Set up and maintain ↵ | Jeremy Kemper | 2012-10-12 | 2 | -9/+8 |
| | | | | | | | | queues in the classes that use them instead. | ||||
* | | Remove old asset_path from rails config | Joshua Peek | 2012-10-15 | 1 | -20/+0 |
|/ | |||||
* | ActiveSupport::SynchronousQueue doesn't have the drain method. | Rafael Mendonça França | 2012-10-12 | 1 | -4/+4 |
| | | | | | Now we are using teh SynchronousQueue in the test environment instead of the TestQueue | ||||
* | Move the TestQueue tests to the proper file | Rafael Mendonça França | 2012-10-12 | 1 | -47/+0 |
| | |||||
* | Add .rake to `rake notes` and `rake notes:custom` | Brent J. Nordquist | 2012-10-12 | 1 | -1/+3 |
| | |||||
* | Immediately run queued jobs in tests. Otherwise you have to explicitly drain ↵ | Jeremy Kemper | 2012-10-12 | 1 | -3/+3 |
| | | | | the queue to actually deliver your emails. | ||||
* | No need to test for rack-cache present in Gemfile | Arun Agrawal | 2012-10-11 | 1 | -5/+0 |
| | | | | | | as it's removed here 1fc795468525d8622cdca474a54c8310a514aa46 | ||||
* | warning fixed: ambiguous first argument; put parentheses or even spaces | Arun Agrawal | 2012-10-10 | 1 | -7/+7 |
| | |||||
* | Update test locations | Mike Moore | 2012-10-09 | 11 | -65/+67 |
| | | | | | | | | | | | | | | Change the default test locations to avoid confusion around the common testing terms "unit" and "functional". Add new rake tasks for the new locations, while maintaining backwards compatibility with the old rake tasks. New testing locations are as follows: app/models -> test/models (was test/units) app/helpers -> test/helpers (was test/units/helpers) app/controllers -> test/controllers (was test/functional) app/mailers -> test/mailers (was test/functional) | ||||
* | Remove duplicated test | Guillermo Iguaran | 2012-10-09 | 1 | -15/+0 |
| | |||||
* | Minor test refactoring: Use add_to_env instead of an initializer | Guillermo Iguaran | 2012-10-09 | 1 | -1/+1 |
| | |||||
* | Fix middleware cache tests enabling rack_cache | Guillermo Iguaran | 2012-10-05 | 1 | -0/+2 |
| | |||||
* | config.action_dispatch.rack_cache should set explicitly to enable Rack::Cache | Guillermo Iguaran | 2012-10-04 | 1 | -1/+10 |
| | |||||
* | Use String#exclude? to make sure that Active Support is not loaded when | Rafael Mendonça França | 2012-10-04 | 1 | -1/+1 |
| | | | | | | | bare is true. We need to change this since coffee-rails loads ActionView that loads core_ext/array/access. | ||||
* | Remove action cache related tests | Rafael Mendonça França | 2012-10-04 | 1 | -42/+0 |
| | |||||
* | Make Rails.public_path return a Pathname | Prem Sichanugrist | 2012-10-02 | 1 | -1/+9 |
| | |||||
* | Merge pull request #6952 from NZKoz/key_generator | Michael Koziarski | 2012-10-02 | 1 | -0/+1 |
|\ | | | | | Add ActiveSupport::KeyGenerator as a simple wrapper around PBKDF2 | ||||
| * | Provide access to the application's KeyGenerator | Michael Koziarski | 2012-10-01 | 1 | -0/+1 |
| | | | | | | | | Available both as an env entry for rack and an instance method on Rails::Application for other uses |