Skip to content

Commit

Permalink
Upgrade to rails 3.1 and required (minor) code changes.
Browse files Browse the repository at this point in the history
  • Loading branch information
ajsalminen committed Mar 9, 2013
1 parent efa2c47 commit a13eb4c
Show file tree
Hide file tree
Showing 4 changed files with 81 additions and 70 deletions.
4 changes: 2 additions & 2 deletions Gemfile
@@ -1,11 +1,11 @@
source 'http://rubygems.org' source 'http://rubygems.org'


gem 'rails', '~>3.0.19' gem 'rails', '~>3.1.0'


# Bundle edge Rails instead: # Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git' # gem 'rails', :git => 'git://github.com/rails/rails.git'


gem 'pg', '0.10.0' gem 'pg', '~>0.11.0'
gem 'nokogiri', '1.4.4' gem 'nokogiri', '1.4.4'
gem 'haml-rails', '0.3.4' gem 'haml-rails', '0.3.4'
gem 'will_paginate' gem 'will_paginate'
Expand Down
143 changes: 76 additions & 67 deletions Gemfile.lock
Expand Up @@ -2,100 +2,109 @@ GEM
remote: http://rubygems.org/ remote: http://rubygems.org/
specs: specs:
RedCloth (4.2.3) RedCloth (4.2.3)
abstract (1.0.0) actionmailer (3.1.11)
actionmailer (3.0.20) actionpack (= 3.1.11)
actionpack (= 3.0.20) mail (~> 2.3.3)
mail (~> 2.2.19) actionpack (3.1.11)
actionpack (3.0.20) activemodel (= 3.1.11)
activemodel (= 3.0.20) activesupport (= 3.1.11)
activesupport (= 3.0.20) builder (~> 3.0.0)
builder (~> 2.1.2) erubis (~> 2.7.0)
erubis (~> 2.6.6) i18n (~> 0.6)
i18n (~> 0.5.0) rack (~> 1.3.6)
rack (~> 1.2.5) rack-cache (~> 1.2)
rack-mount (~> 0.6.14) rack-mount (~> 0.8.2)
rack-test (~> 0.5.7) rack-test (~> 0.6.1)
tzinfo (~> 0.3.23) sprockets (~> 2.0.4)
activemodel (3.0.20) activemodel (3.1.11)
activesupport (= 3.0.20) activesupport (= 3.1.11)
builder (~> 2.1.2) builder (~> 3.0.0)
i18n (~> 0.5.0) i18n (~> 0.6)
activerecord (3.0.20) activerecord (3.1.11)
activemodel (= 3.0.20) activemodel (= 3.1.11)
activesupport (= 3.0.20) activesupport (= 3.1.11)
arel (~> 2.0.10) arel (~> 2.2.3)
tzinfo (~> 0.3.23) tzinfo (~> 0.3.29)
activeresource (3.0.20) activeresource (3.1.11)
activemodel (= 3.0.20) activemodel (= 3.1.11)
activesupport (= 3.0.20) activesupport (= 3.1.11)
activesupport (3.0.20) activesupport (3.1.11)
arel (2.0.10) multi_json (~> 1.0)
builder (2.1.2) arel (2.2.3)
builder (3.0.4)
coderay (0.9.7) coderay (0.9.7)
diff-lcs (1.1.2) diff-lcs (1.2.1)
erubis (2.6.6) erubis (2.7.0)
abstract (>= 1.0.0) haml (3.1.8)
haml (3.0.25)
haml-rails (0.3.4) haml-rails (0.3.4)
actionpack (~> 3.0) actionpack (~> 3.0)
activesupport (~> 3.0) activesupport (~> 3.0)
haml (~> 3.0) haml (~> 3.0)
railties (~> 3.0) railties (~> 3.0)
highlight (1.1.3) highlight (1.1.3)
activesupport (>= 2.0.0) activesupport (>= 2.0.0)
i18n (0.5.0) hike (1.2.1)
i18n (0.6.4)
json (1.7.7) json (1.7.7)
mail (2.2.19) mail (2.3.3)
activesupport (>= 2.3.6)
i18n (>= 0.4.0) i18n (>= 0.4.0)
mime-types (~> 1.16) mime-types (~> 1.16)
treetop (~> 1.4.8) treetop (~> 1.4.8)
mime-types (1.21) mime-types (1.21)
multi_json (1.6.1)
nokogiri (1.4.4) nokogiri (1.4.4)
pg (0.10.0) pg (0.11.0)
pg_search (0.2) pg_search (0.2)
polyglot (0.3.3) polyglot (0.3.3)
rack (1.2.8) rack (1.3.10)
rack-mount (0.6.14) rack-cache (1.2)
rack (>= 0.4)
rack-mount (0.8.3)
rack (>= 1.0.0) rack (>= 1.0.0)
rack-test (0.5.7) rack-ssl (1.3.3)
rack
rack-test (0.6.2)
rack (>= 1.0) rack (>= 1.0)
rails (3.0.20) rails (3.1.11)
actionmailer (= 3.0.20) actionmailer (= 3.1.11)
actionpack (= 3.0.20) actionpack (= 3.1.11)
activerecord (= 3.0.20) activerecord (= 3.1.11)
activeresource (= 3.0.20) activeresource (= 3.1.11)
activesupport (= 3.0.20) activesupport (= 3.1.11)
bundler (~> 1.0) bundler (~> 1.0)
railties (= 3.0.20) railties (= 3.1.11)
railties (3.0.20) railties (3.1.11)
actionpack (= 3.0.20) actionpack (= 3.1.11)
activesupport (= 3.0.20) activesupport (= 3.1.11)
rack-ssl (~> 1.3.2)
rake (>= 0.8.7) rake (>= 0.8.7)
rdoc (~> 3.4) rdoc (~> 3.4)
thor (~> 0.14.4) thor (~> 0.14.6)
rake (10.0.3) rake (10.0.3)
rdoc (3.12.2) rdoc (3.12.2)
json (~> 1.4) json (~> 1.4)
rspec (2.4.0) rspec-core (2.13.0)
rspec-core (~> 2.4.0) rspec-expectations (2.13.0)
rspec-expectations (~> 2.4.0) diff-lcs (>= 1.1.3, < 2.0)
rspec-mocks (~> 2.4.0) rspec-mocks (2.13.0)
rspec-core (2.4.0) rspec-rails (2.13.0)
rspec-expectations (2.4.0) actionpack (>= 3.0)
diff-lcs (~> 1.1.2) activesupport (>= 3.0)
rspec-mocks (2.4.0) railties (>= 3.0)
rspec-rails (2.4.1) rspec-core (~> 2.13.0)
actionpack (~> 3.0) rspec-expectations (~> 2.13.0)
activesupport (~> 3.0) rspec-mocks (~> 2.13.0)
railties (~> 3.0) sprockets (2.0.4)
rspec (~> 2.4.0) hike (~> 1.2)
rack (~> 1.0)
tilt (~> 1.1, != 1.3.0)
thor (0.14.6) thor (0.14.6)
tilt (1.3.5)
treetop (1.4.12) treetop (1.4.12)
polyglot polyglot
polyglot (>= 0.3.1) polyglot (>= 0.3.1)
tzinfo (0.3.36) tzinfo (0.3.36)
will_paginate (2.3.15) will_paginate (3.0.4)


PLATFORMS PLATFORMS
ruby ruby
Expand All @@ -106,8 +115,8 @@ DEPENDENCIES
haml-rails (= 0.3.4) haml-rails (= 0.3.4)
highlight (~> 1.1.3) highlight (~> 1.1.3)
nokogiri (= 1.4.4) nokogiri (= 1.4.4)
pg (= 0.10.0) pg (~> 0.11.0)
pg_search (= 0.2) pg_search (= 0.2)
rails (~> 3.0.19) rails (~> 3.1.0)
rspec-rails rspec-rails
will_paginate will_paginate
2 changes: 2 additions & 0 deletions app/controllers/search_controller.rb
@@ -1,3 +1,5 @@
require 'will_paginate/array'

class SearchController < ApplicationController class SearchController < ApplicationController
PER_PAGE = 30 PER_PAGE = 30


Expand Down
2 changes: 1 addition & 1 deletion config/environments/development.rb
Expand Up @@ -11,7 +11,7 @@


# Show full error reports and disable caching # Show full error reports and disable caching
config.consider_all_requests_local = true config.consider_all_requests_local = true
config.action_view.debug_rjs = true #config.action_view.debug_rjs = true
config.action_controller.perform_caching = false config.action_controller.perform_caching = false


# Don't care if the mailer can't send # Don't care if the mailer can't send
Expand Down

0 comments on commit a13eb4c

Please sign in to comment.