Skip to content
This repository has been archived by the owner on Mar 29, 2019. It is now read-only.

[V2] Rails 3.1 porting #306

Closed
wants to merge 163 commits into from
Closed

[V2] Rails 3.1 porting #306

wants to merge 163 commits into from

Conversation

marutosi
Copy link
Contributor

New version of #300.

Toshi MARUYAMA and others added 30 commits June 17, 2011 10:45
--HG--
extra : source : 8e03b160eb52a5f1e77cb0816fe136e6d93434b3
--HG--
extra : source : 35b1a3ae9e65e36c97b5112afb1f617e9b76b50d
…ins.rake

--HG--
extra : source : 2ade0e29cbefe9688847def54018d3900f7991bf
--HG--
extra : source : ee8efc8b49b04838b989e27e79359c30aa3ef090
--HG--
extra : source : fbb0c08aa5993d310e848de61f2a9b93e218bbf9
--HG--
extra : source : c048a5f505c19010b1039e1338df30bb1fc4ca91
--HG--
extra : source : 5de973de532c6af93ec7477ff0ef701153954683
…ation.routes.url_helpers"

--HG--
extra : source : 3053a4d2820d02ca4efd1fc9352b4225edd31710
…g/environments/development.rb

$ rake db:migrate RAILS_ENV=development --trace
rake aborted!
undefined method `debug_rjs=' for ActionView::Base:Class
.
.
.
/REDMINE-1/hg-workdir/redmine-rails3-bb/config/environment.rb:5

--HG--
extra : source : ed91c7c0e4b94b12506f4b19551a2a457feb9065
$ rake test:units

/REDMINE-1/hg-workdir/redmine-rails3-bb/test/unit/project_test.rb:69:
  undefined method `should_validate_presence_of' for ProjectTest:Class (NoMethodError)

--HG--
extra : source : 164d68b15de7d55e8d63b7733d1404134665a2b4
--HG--
extra : source : 624d2b498d6b06966225579c56d3885bd656d803
…per"

--HG--
extra : source : f5b681c32b191e197cde79edc0c3b037db5f3d93
--HG--
extra : source : 1fe9eb17cd7feb30f913a48571942da5262f46d0
<pre>
Failure:
test_index_csv_export(TimelogControllerTest) [test/functional/timelog_controller_test.rb:325]:
<"text/csv"> expected but was
<"text/csv; header=present">.
</pre>

--HG--
extra : source : f28f3bbc5d292ac62f22574ab92d96f600f5c6be
awesome_nested_set would have needed to be updated for rails 3.1,
unvendoring it makes updates easier.
The patches to the vendored awesome_nested_set will have to be reviewed and adapted.

--HG--
extra : source : 224df005aeb75b5dfb02d44f0d6817c8486dcd04
--HG--
extra : source : e25da5d45bace74c97a273805f414e8e36b502ed
…lumn

The single-table inheritance mechanism failed to locate the subclass: 'child'.
This error is raised because the column 'type' is reserved for storing the class in case of inheritance.
Please rename this column if you didn't intend it to be used for storing the inheritance class
or overwrite Parent.inheritance_column to use another column for that information.
(ActiveRecord::SubclassNotFound)

http://www.42.mach7x.com/2011/07/22/the-single-table-inheritance-mechanism-failed-to-locate-the-subclass/

--HG--
extra : source : 9f698693eb19b4e0b24741eedb0b0af7a7e7bc69
The single-table inheritance mechanism failed to locate the subclass: 'child'.
This error is raised because the column 'type' is reserved for storing the class in case of inheritance.
Please rename this column if you didn't intend it to be used for storing the inheritance class
or overwrite Parent.inheritance_column to use another column for that information.
(ActiveRecord::SubclassNotFound)

--HG--
extra : source : ee6b986d30171e9a96f405582f9808fe65659c0e
…roller.rb

On Rails 3.0:
DEPRECATION WARNING: exempt_from_layout is no longer needed,
because layouts in Rails 3 are restricted to the content-type of the template that was rendered.

--HG--
extra : source : 1eb7ec37583fa5cb3e2d1f3f10ff824fc47f07ce
…acts_as_watchable/lib/acts_as_watchable.rb

--HG--
extra : source : 221aad0751853472b5e75815e8477d361dc20e3c
…ication.routes.url_helpers"

--HG--
extra : source : d5633a9e8c6b4f6462c2461ffd8a563be5d8d2c5
….1 incompatibilities, moving to Gemfile

<pre>
$ rake db:migrate RAILS_ENV=test --trace
rake aborted!
uninitialized constant OpenIdAuthentication::Railtie::ControllerMethods
/home/xxxxx/.rvm/gems/ruby-1.8.7-p357/gems/open_id_authentication-1.1.0/lib/open_id_authentication.rb:49
</pre>

--HG--
extra : source : c5ae1b17503b655368a864d93af7086a044b04ba
--HG--
extra : source : 8757a367281bf7d47a8e54992a86efbf39fc8fee
…ews/layouts/mailer.html.erb

--HG--
rename : app/views/layouts/mailer.text.html.erb => app/views/layouts/mailer.html.erb
extra : source : d80b333cb48f0f69b9740fd5a812d7138159af25
…/mailer/*.text.erb

--HG--
rename : app/views/mailer/account_activated.text.plain.rhtml => app/views/mailer/account_activated.text.erb
rename : app/views/mailer/account_activation_request.text.plain.rhtml => app/views/mailer/account_activation_request.text.erb
rename : app/views/mailer/account_information.text.plain.rhtml => app/views/mailer/account_information.text.erb
rename : app/views/mailer/attachments_added.text.plain.rhtml => app/views/mailer/attachments_added.text.erb
rename : app/views/mailer/document_added.text.plain.rhtml => app/views/mailer/document_added.text.erb
rename : app/views/mailer/issue_add.text.plain.rhtml => app/views/mailer/issue_add.text.erb
rename : app/views/mailer/issue_edit.text.plain.rhtml => app/views/mailer/issue_edit.text.erb
rename : app/views/mailer/lost_password.text.plain.rhtml => app/views/mailer/lost_password.text.erb
rename : app/views/mailer/mail_handler_confirmation.text.plain.rhtml => app/views/mailer/mail_handler_confirmation.text.erb
rename : app/views/mailer/mail_handler_missing_information.text.plain.rhtml => app/views/mailer/mail_handler_missing_information.text.erb
rename : app/views/mailer/mail_handler_unauthorized_action.text.plain.rhtml => app/views/mailer/mail_handler_unauthorized_action.text.erb
rename : app/views/mailer/message_posted.text.plain.rhtml => app/views/mailer/message_posted.text.erb
rename : app/views/mailer/news_added.text.plain.rhtml => app/views/mailer/news_added.text.erb
rename : app/views/mailer/news_comment_added.text.plain.rhtml => app/views/mailer/news_comment_added.text.erb
rename : app/views/mailer/register.text.plain.rhtml => app/views/mailer/register.text.erb
rename : app/views/mailer/reminder.text.plain.rhtml => app/views/mailer/reminder.text.erb
rename : app/views/mailer/test.text.plain.rhtml => app/views/mailer/test.text.erb
rename : app/views/mailer/wiki_content_added.text.plain.rhtml => app/views/mailer/wiki_content_added.text.erb
rename : app/views/mailer/wiki_content_updated.text.plain.rhtml => app/views/mailer/wiki_content_updated.text.erb
extra : source : d790a5bae1f1a3ec5d24c83b4278024a077c7b23
…mailer/*.html.erb

--HG--
rename : app/views/mailer/account_activated.text.html.rhtml => app/views/mailer/account_activated.html.erb
rename : app/views/mailer/account_activation_request.text.html.rhtml => app/views/mailer/account_activation_request.html.erb
rename : app/views/mailer/account_information.text.html.rhtml => app/views/mailer/account_information.html.erb
rename : app/views/mailer/attachments_added.text.html.rhtml => app/views/mailer/attachments_added.html.erb
rename : app/views/mailer/document_added.text.html.rhtml => app/views/mailer/document_added.html.erb
rename : app/views/mailer/issue_add.text.html.rhtml => app/views/mailer/issue_add.html.erb
rename : app/views/mailer/issue_edit.text.html.rhtml => app/views/mailer/issue_edit.html.erb
rename : app/views/mailer/lost_password.text.html.rhtml => app/views/mailer/lost_password.html.erb
rename : app/views/mailer/mail_handler_confirmation.text.html.rhtml => app/views/mailer/mail_handler_confirmation.html.erb
rename : app/views/mailer/mail_handler_missing_information.text.html.rhtml => app/views/mailer/mail_handler_missing_information.html.erb
rename : app/views/mailer/mail_handler_unauthorized_action.text.html.rhtml => app/views/mailer/mail_handler_unauthorized_action.html.erb
rename : app/views/mailer/message_posted.text.html.rhtml => app/views/mailer/message_posted.html.erb
rename : app/views/mailer/news_added.text.html.rhtml => app/views/mailer/news_added.html.erb
rename : app/views/mailer/news_comment_added.text.html.rhtml => app/views/mailer/news_comment_added.html.erb
rename : app/views/mailer/register.text.html.rhtml => app/views/mailer/register.html.erb
rename : app/views/mailer/reminder.text.html.rhtml => app/views/mailer/reminder.html.erb
rename : app/views/mailer/test.text.html.rhtml => app/views/mailer/test.html.erb
rename : app/views/mailer/wiki_content_added.text.html.rhtml => app/views/mailer/wiki_content_added.html.erb
rename : app/views/mailer/wiki_content_updated.text.html.rhtml => app/views/mailer/wiki_content_updated.html.erb
extra : source : 56aebe43f722055e058f670bcac9689fc8ffc6dc
--HG--
extra : source : e048f4f735a23b48973566e97d2faf14e2dff5d9
--HG--
extra : source : a18ee21a68f4f7229b5525b68a41c407209c452f
--HG--
extra : source : 17c193814943a7bfded6dd903158c7597861876d
--HG--
extra : source : 2ff3a1e0d5096bc16fa26638fe2b5510881b53e4
marutosi and others added 25 commits July 17, 2013 20:21
… AutoCompletesControllerTest

--HG--
extra : source : 1a908eb709e25c40468495f234b73321d8ee5cc5
--HG--
extra : source : bbbf90fe55658fda71d4b10689b2569469e9bc10
--HG--
extra : source : e077a01d3579a41e2dd370bbb316a8fd91fe4eae
--HG--
extra : source : 7adabe9800c8cf80808b346446f4a9cda9e7cef4
--HG--
extra : source : 929506efc0cf53e62a749f38bf6b32b966a5aeb2
--HG--
rename : test/object_daddy_helpers.rb => test/object_helpers.rb
extra : source : f41b644cb6dcab95432f8bcd579cac1e05c1753c
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8277 e93f8b46-1217-0410-a6f0-8f06a7374b81

--HG--
extra : source : d1015554c14b13eebe07c0b10beeafef97a43d39
--HG--
extra : source : f8f4b70fae0ee0b3785024af5c91089ebd9fa2dd
<pre>
$ rake db:migrate RAILS_ENV=test

*** Mocha deprecation warning: Change `require 'mocha'` to `require 'mocha/setup'`.

rake aborted!
MiniTest v5.0.6 is out of date.
`gem install minitest` and add `gem 'minitest' to you test helper.
/home/xxxxxx/.rvm/gems/ruby-1.9.3-p448/gems/turn-0.9.6/lib/turn/minitest.rb:23:in `<top (required)>'
/home/xxxxxx/.rvm/gems/ruby-1.9.3-p448/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
/home/xxxxxx/.rvm/gems/ruby-1.9.3-p448/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `block in require'
/home/xxxxxx/.rvm/gems/ruby-1.9.3-p448/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:236:in `load_dependency'
/home/xxxxxx/.rvm/gems/ruby-1.9.3-p448/gems/activesupport-3.2.13/lib/active_support/dependencies.rb:251:in `require'
/home/xxxxxx/.rvm/gems/ruby-1.9.3-p448/gems/turn-0.9.6/lib/turn.rb:13:in `<top (required)>'
/home/xxxxxx/.rvm/gems/ruby-1.9.3-p448@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `require'
/home/xxxxxx/.rvm/gems/ruby-1.9.3-p448@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:72:in `block (2 levels) in require'
/home/xxxxxx/.rvm/gems/ruby-1.9.3-p448@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `each'
/home/xxxxxx/.rvm/gems/ruby-1.9.3-p448@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:70:in `block in require'
/home/xxxxxx/.rvm/gems/ruby-1.9.3-p448@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `each'
/home/xxxxxx/.rvm/gems/ruby-1.9.3-p448@global/gems/bundler-1.3.5/lib/bundler/runtime.rb:59:in `require'
/home/xxxxxx/.rvm/gems/ruby-1.9.3-p448@global/gems/bundler-1.3.5/lib/bundler.rb:132:in `require'
/REDMINE-1/git-workdir/redmine/config/application.rb:7:in `<top (required)>'
/REDMINE-1/git-workdir/redmine/Rakefile:4:in `require'
/REDMINE-1/git-workdir/redmine/Rakefile:4:in `<top (required)>'
/home/xxxxxx/.rvm/gems/ruby-1.9.3-p448/bin/ruby_noexec_wrapper:14:in `eval'
/home/xxxxxx/.rvm/gems/ruby-1.9.3-p448/bin/ruby_noexec_wrapper:14:in `<main>'
(See full trace by running task with --trace)
</pre>

--HG--
extra : source : 482ca5fe94358b6f672bd6d9a770469217d4c15c
--HG--
extra : source : e73b4b388162968ae4ba50db612f2eda5f0d13ce
--HG--
extra : source : 1889c3ff0ef7d89be245a8f8051926fadefcec9c
--HG--
extra : source : 050d2d3b8e5a1ce0021293ed3295de2521b46c7e
…zed.rb

--HG--
extra : source : 34e2203627270feb7187712230838ccead037904
…_helper_test.rb.

ActionView::Helpers::ActiveRecordHelper at test/helper_testcase.rb
does not exist on Rails 3.0.

git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@6107 e93f8b46-1217-0410-a6f0-8f06a7374b81

--HG--
extra : source : 83cab88efc7e41242c897dfd908ba1f4f8911567
--HG--
extra : source : c649793a9bbb72a579dde6892c0c3719d8f00153
--HG--
extra : source : 5b5f2f9b509d722293678bf7ddff53214fc1df35
ActionView::Helpers::ActiveRecordHelper at test/helper_testcase.rb
does not exist on Rails 3.0.

--HG--
extra : source : a8c76e7910f22e8261f23f0aa73b0a38752d6ef8
ActionView::Helpers::ActiveRecordHelper at test/helper_testcase.rb
does not exist on Rails 3.0.

--HG--
extra : source : 974ee7ecaf8da00e19ca1aa8661938771e48ebb3
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8278 e93f8b46-1217-0410-a6f0-8f06a7374b81

--HG--
extra : source : 3eb2f1276ca18f771a38f78ad325bfba6d77fef8
--HG--
extra : source : aa13be89fd5d42b09f78f2df32bd3f3743433f96
--HG--
extra : source : 136b292c3d409364e20a141d3c6670516985294c
--HG--
extra : source : 61fc84520bbd6960b37eb69a705cc30a967b2760
…is rake task

--HG--
extra : source : d8ebacc3a619236614a635c126a57537d90a887f
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8997 e93f8b46-1217-0410-a6f0-8f06a7374b81

--HG--
extra : source : fb7a2bf906025b918558a84e403236984c7352db
This was referenced Jul 20, 2013
@marutosi
Copy link
Contributor Author

I send new pull request #315.

@marutosi marutosi closed this Jul 22, 2013
@marutosi marutosi deleted the rails3.1-v2 branch July 22, 2013 15:53
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

10 participants