Rashmi Yadav
585e64fb14
Unused variable warning removed
2012-11-27 15:24:25 +05:30
Carlos Antonio da Silva
8df46eac76
Refactor generators tests to include test helpers in the parent class
2012-11-27 00:07:48 -02:00
Arun Agrawal
4a7a858ae7
Initialize accessors to remove some warnings in Ruby 2.0
2012-11-21 00:48:21 +05:30
Gaurish Sharma
61425f2c6d
Better Error handling when parsing database.yaml
...
Provides a better error message incase the database.yaml
has some errors.
2012-11-20 17:04:47 +05:30
Rafael Mendonça França
133cdf0ec0
Merge pull request #8262 from senny/8229_correct_bundler_require_in_engines
...
require bundler groups to include rake-tasks in engines
2012-11-19 06:14:58 -08:00
Carlos Antonio da Silva
12d32ddea2
Refactor config abort message a bit for dbconsole
...
Remove not used variable.
Remove config attr_reader causing warning.
Fix indent in runner file.
2012-11-18 23:59:20 -02:00
Carlos Antonio da Silva
53aefdec91
Fix rails db command with sqlite3 database
...
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 .
2012-11-18 23:52:39 -02:00
Yves Senn
a1fd9cd1a0
require bundler groups to include rake-tasks in engines
...
If you generate a full engine, this will include rake tasks from
your gem under the `app` namespace. For example if you have a dependency
on `rspec-rails` in your engine's `gemspec`. You will get the task `app:spec`
Closes #8229
2012-11-18 18:03:27 +01:00
Yves Senn
7cb0c8852b
cleanup, remove whitspace from railties CHANGELOG
2012-11-18 18:03:27 +01:00
Robert Nesius
716222c664
Adding sqlserver.yml template to satisfy "-d sqlserver" being given
...
invocations of "rails new".
2012-11-16 23:20:59 -06:00
Vijay Dev
7b70eeed43
Merge branch 'master' of github.com:lifo/docrails
...
Conflicts:
actionpack/lib/action_dispatch/routing/redirection.rb
2012-11-17 01:50:49 +05:30
Santiago Pastorino
8eefdb6d70
Add UpgradeSignatureToEncryptionCookieStore
...
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
2012-11-16 17:29:26 -02:00
Santiago Pastorino
571b747ed2
Remove duplicated get /foo/write_session
2012-11-16 17:29:25 -02:00
Santiago Pastorino
1acdc4d930
Remove unused config option
2012-11-16 17:29:25 -02:00
Carlos Antonio da Silva
2bad4d2842
Remove config.threadsafe! from production env template
...
Closes #8232 [ci skip]
2012-11-16 09:44:59 -02:00
Santiago Pastorino
ef8b845de7
Merge pull request #8112 from rails/encrypted_cookies
...
Encrypted cookies
2012-11-15 12:17:25 -08:00
Aaron Patterson
e5946e0396
asset compilation should not require a database connection
2012-11-13 16:35:16 -08:00
Rafael Mendonça França
3c5c93b2eb
Merge pull request #8169 from nicolasdespres/robust_git_repository_check
...
Rake test:uncommitted finds git directory in ancestors.
2012-11-13 13:51:19 -08:00
Nicolas Despres
f945178a60
Add ChangeLog entry.
2012-11-13 19:05:38 +01:00
Guillermo Iguaran
8132bb6f79
Update production.rb: Split long comment in two lines
2012-11-12 11:35:06 -05:00
Guillermo Iguaran
40f5f31952
Update production.rb documentation: only files in app/assets are in config.assets.precompile
2012-11-12 11:19:20 -05:00
Arun Agrawal
5ff5cce81a
Removing warning : ambiguous first argument
2012-11-11 15:16:35 +05:30
Nicolas Despres
df822961ee
Rake test:uncommitted finds git directory in ancestors.
...
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.
2012-11-10 20:39:04 +01:00
Arun Agrawal
c33c991eab
Removing warning : assigned but unused variable
2012-11-10 17:34:39 +05:30
Aaron Patterson
3ae8d6d67c
make the extremely useful logs debug level
2012-11-09 13:49:46 +09:00
Aaron Patterson
e61ffe060e
copy the log level from the config settings
2012-11-09 13:46:18 +09:00
Vinny Diehl
a96a176930
Clean up gemspecs
...
Organized the gemspec files a bit.
* Made quotes more consistent (single quotes dominated, so I used
that).
* Moved license line down a line, separating it logically, and removed
the extra whitespace before its = operator.
* Minor whitespace fixes.
2012-11-08 19:09:43 -05:00
Yves Senn
1785bf7d67
plugin new
adds dummy app tasks when necessary.
...
Closes #8121
The `plugin new` generator always adds the dummy app rake tasks,
when a dummy app was created.
2012-11-08 13:08:19 +01:00
Carlos Antonio da Silva
1fef1bedbc
Remove some line breaks between array items that make the assert file tests harder to read
2012-11-04 19:22:05 -02:00
Santiago Pastorino
4faa041845
Rename secret_token_key to secret_key_base
2012-11-03 14:57:54 -02:00
Santiago Pastorino
851e8fe897
Cache generated keys per KeyGenerator instance using salt + key_size
2012-11-03 14:57:54 -02:00
Santiago Pastorino
47da574474
Allow users to change the default salt if they want, shouldn't be necessary
2012-11-03 14:57:54 -02:00
Santiago Pastorino
5d23925f84
Use derived keys everywhere, http_authentication was missing it
2012-11-03 14:57:54 -02:00
Santiago Pastorino
fb0cea2b8c
Add encrypted cookie store
2012-11-03 14:57:54 -02:00
Santiago Pastorino
e272000c80
Warn config.derive_keys will be true by default in 4.1
2012-11-03 14:57:53 -02:00
Santiago Pastorino
60609bb50d
Sign cookies using key deriver
2012-11-03 14:57:53 -02:00
Arun Agrawal
d065938663
Small change to remove warning unused variable.
2012-11-01 10:25:20 +05:30
Steve Klabnik
b3125c89f4
Make sure that RAILS_ENV is set when accessing Rails.env
...
Fixes #8025
2012-10-31 17:05:26 -07:00
Alexey Gaziev
b955939d55
Make caller attribute in deprecation methods optional
2012-10-30 10:23:41 +08:00
Carlos Antonio da Silva
d1c95d912e
Merge pull request #8063 from nikitug/deprecation_caller_context
...
Provide a call stack for deprecation warnings where needed.
2012-10-29 08:42:16 -07:00
Nikita Afanasenko
0b7067d849
Provide a call stack for deprecation warnings where needed.
...
It's sometimes hard to quickly find where deprecated call was performed, especially in case of migrating between Rails versions. So this is an attempt to improve the call stack part of the warning message by providing caller explicitly.
2012-10-29 19:22:59 +04:00
Carlos Antonio da Silva
72e6fb005f
Fix deprecation message in test for Path#children
2012-10-29 12:53:32 -02:00
Rafael Mendonça França
29b1dc273e
Add test to deprecation of Path#children
2012-10-29 11:14:20 -02:00
Rafael Mendonça França
3663057518
Merge pull request #7587 from elia/fix-too-eager-loading
...
Should not eager_load app/assets
Conflicts:
railties/CHANGELOG.md
2012-10-29 11:14:14 -02:00
Rafael Mendonça França
2e44dda27a
USe the released version of sprockets-rails in a new Rails 4 application
2012-10-27 16:49:34 -02:00
Jeremy Kemper
bf2009f995
Job consumer logs to Rails.logger by default
2012-10-26 16:18:52 -07:00
Tima Maslyuchenko
ff29dd8309
changed test case name
2012-10-23 12:43:11 +03:00
Geoffrey Roguelon
1f74315f85
Remove extra line in Gemfile under turbolinks.
2012-10-21 20:17:23 +02:00
Vijay Dev
f938019da2
Merge branch 'master' of github.com:lifo/docrails
...
Conflicts:
activesupport/lib/active_support/core_ext/hash/slice.rb
guides/source/active_support_core_extensions.md
2012-10-21 18:49:19 +05:30
Rafael Mendonça França
bfc6c17a87
We don't need this anymore since we had a sprockets-rails release
2012-10-19 22:27:20 -03:00