Commit Graph

3239 Commits

Author SHA1 Message Date
Vishnu Atrai
357837288f gem ruby-debug19 for console error if ruby-debug19 not found 2011-12-25 15:19:52 +05:30
José Valim
7c9bcbb5e4 Use 1.9 hash syntax instead. 2011-12-24 22:06:25 +01:00
Sergey Nartimov
5ca86ac8f9 deprecate String#encoding_aware? and remove its usage 2011-12-24 15:57:54 +03:00
Vijay Dev
cd2c31a1c4 A few doc changes 2011-12-24 17:29:43 +05:30
José Valim
8a04bd0c83 Fix regexp intervals. 2011-12-24 12:53:56 +01:00
José Valim
b4e97ea2d9 Tidy up migration types. 2011-12-24 10:38:19 +01:00
Dmitrii Samoilov
7a47f362c8 added ability to specify from cli when generating a model/migration whether particular property should be an index like this 'rails g model person name:string:index profile:string' 2011-12-24 10:01:54 +01:00
Jeremy Kemper
2adc145264 Depend on 4.0.0.beta gems. Use https for github urls. 2011-12-22 10:56:22 -07:00
Sergey Nartimov
4f6af26a88 remove AS whiny nil extension and deprecate config.whiny_nils 2011-12-22 10:28:36 +03:00
Jeremy Kemper
5a4b41443c Move SubTestTask. Soften up tests. 2011-12-21 12:44:14 -07:00
Jeremy Kemper
4f629ed4bb Restore rake TEST=test/unit/foo_test.rb support.
Add your own test tasks as dependencies on the `test:run` task instead of `test` itself.

  namespace :test do
    task run: 'test:acceptance'

    Rails::SubTestTask.new acceptance: 'test:prepare' do |t|
      t.libs << 'test'
      t.pattern = 'test/acceptance/**/*_test.rb'
    end
  end
2011-12-21 10:11:57 -07:00
Jeremy Kemper
14c89e7285 Rails::SubTestTask warns on test failure and moves on. Renamed from TestTaskWithoutDescription.
This makes it easier to add your own tests to the default suite:

  task test: 'test:acceptance'

  namespace :test do
    Rails::SubTestTask.new acceptance: 'test:prepare' do |t|
      t.libs << 'test'
      t.pattern = 'test/acceptance/**/*_test.rb'
    end
  end

Now `rake` runs unit, functional, integration, and acceptance tests.
2011-12-21 10:04:56 -07:00
Vijay Dev
c1b2642a9e Merge branch 'master' of github.com:lifo/docrails 2011-12-21 22:26:10 +05:30
José Valim
618cb44291 Merge pull request #4079 from drogus/http_digest_issue
Fix http digest authentication when url ends with `/` or `?`
2011-12-21 05:14:26 -08:00
Hendy Tanata
fc7e5db90a Doc fixes on Rails::Generators::Base.hook_for. 2011-12-21 00:58:36 -08:00
Piotr Sarnacki
482ec2ac3f Add ORIGINAL_FULLPATH to env
This behaves similarly to REQUEST_URI, but
we need to implement it on our own because
REQUEST_URI is not reliable.

Note that since PATH_INFO does not contain
information about trailing question mark,
this is not 100% accurate, for example
`/foo?` will result in `/foo` in ORIGINAL_FULLPATH
2011-12-21 00:02:40 +01:00
Piotr Sarnacki
cc192900f2 Merge pull request #4063 from andrew/patch-1
Added Capistrano to the development group in Gemfile
2011-12-20 11:01:17 -08:00
Andrew Nesbitt
c7a485a289 Added Capistrano to the development group in Gemfile
There's no need for Capistrano to be install on a server, the extra argument in the comment implies this now.
2011-12-20 18:32:01 +00:00
Arun Agrawal
568777bcd0 It should be README.rdoc fixes #4067 2011-12-20 23:55:57 +05:30
José Valim
51095be1b0 Get rid of more 1.8.x dead code 2011-12-20 17:59:26 +01:00
José Valim
9cf38be008 Get rid of --old-style-hash 2011-12-20 17:59:26 +01:00
José Valim
4fa615a866 Update ruby_version_check. 2011-12-20 16:55:01 +01:00
David Heinemeier Hansson
632fa15fa4 rails/master is now 4.0.0.beta and will only support Ruby 1.9.3+ 2011-12-20 09:30:37 -06:00
Jo Liss
22cb97ba5c Add db/*.sqlite3-journal to .gitignore
These can pop up while the SQLite DB is being written to.
2011-12-20 16:14:07 +01:00
Aaron Patterson
572c3d5178 * BufferedLogger is deprecated. Use ActiveSupport::Logger, or the logger
from Ruby stdlib.
2011-12-19 18:41:37 -08:00
David Heinemeier Hansson
9d6e52b55e Party like its R-C-UNO! 2011-12-19 18:34:57 -06:00
David Heinemeier Hansson
1e941dde7c Add an invitation to use jbuilder, since we are not going to bundle it in 3.2 2011-12-19 18:27:19 -06:00
Piotr Sarnacki
fe72f7d8c5 Merge pull request #4009 from kirs/generate-rake-task
Rake tasks generator
2011-12-17 14:05:26 -08:00
Kir
5e68fed450 Rake tasks generator with test 2011-12-17 16:42:35 +04:00
José Valim
8de96949e9 Use gem versions of sass-rails and coffee-rails. 2011-12-17 12:58:11 +01:00
José Valim
02127e6406 Allow a custom exceptions app to set. 2011-12-16 10:45:59 +01:00
José Valim
deef8dd682 Extract the rendering of public exceptions pages into a Rack app. 2011-12-16 10:45:59 +01:00
Rafael Valverde
4baf145375 Fixed small typo in the Rails::Engine documentation. 2011-12-15 17:03:19 -02:00
José Valim
26e7400cc5 Fix diagnostics page for routing errors. 2011-12-15 19:43:49 +01:00
José Valim
283a087634 Clean up the cache before the request in case we are running in the reload_classes_only_on_change schema. 2011-12-15 18:48:10 +01:00
Steven Anderson
54f60c1063 Added .sass-cache/ directory to the genrated gitignore in engines. 2011-12-15 12:38:52 +00:00
Aaron Patterson
e9382474fd seed file was already tested for existence. ಠ_ಠ 2011-12-14 19:09:31 -08:00
Dieter Komendera
6cbe2709d6 dbconsole: Use the app's database_configuration instead of duplicating code. 2011-12-14 14:08:41 +01:00
José Valim
80256abb39 FileUpdateChecker should be able to handle deleted files. 2011-12-13 11:23:21 +01:00
José Valim
1f5b9bbdb3 Clean up FileUpdateChecker API. 2011-12-13 10:07:02 +01:00
José Valim
693d2be827 Move hooks back to initializers (we need an API that allows hooks to be replaced). 2011-12-13 09:29:18 +01:00
José Valim
cd3033eb62 Add config.file_watcher so developers can provide their own watchers (for instance, hooking on fsevents). 2011-12-13 09:29:18 +01:00
José Valim
148d15d824 Merge pull request #3958 from lest/comment-on-whitelist
commented whitelist mode enforcement for mass assignment
2011-12-12 23:57:02 -08:00
José Valim
11aa167e23 Revert "Provide a unique point for running initializers."
This reverts commit c2e3ce8d1e1174e66536d59d8d97eb2cc8ce6f25.

Conflicts:

	railties/lib/rails/application/configuration.rb
	railties/lib/rails/application/finisher.rb
	railties/lib/rails/engine.rb
2011-12-13 08:52:52 +01:00
lest
f2fa4837a8 commented whitelist mode enforcement for mass assignment 2011-12-13 10:14:38 +03:00
Piotr Sarnacki
3d4f913f77 Merge pull request #3950 from guilleiguaran/use-https-for-rubygems-in-apps
Use rubygems https endpoint for the Gemfile on new apps
2011-12-12 17:45:18 -08:00
José Valim
fa1d9a884c Speed up development by only reloading classes if dependencies files changed.
This can be turned off by setting `config.reload_classes_only_on_change` to false.

Extensions like Active Record should add their respective files like db/schema.rb and db/structure.sql to `config.watchable_files` if they want their changes to affect classes reloading.

Thanks to https://github.com/paneq/active_reload and Pastorino for the inspiration. <3
2011-12-12 22:54:04 +01:00
Aaron Patterson
b04e2d86df strip whitespace errors from the generated Gemfile 2011-12-12 13:46:16 -08:00
Guillermo Iguaran
f8fa383531 Use rubygems https endpoint for the Gemfile on new apps 2011-12-12 12:37:37 -05:00
Piotrek Okoński
5266eb9f61 Default relative_url_root to ENV["RAILS_RELATIVE_URL_ROOT"]. Fixes #3365 2011-12-12 17:11:07 +01:00