Skip to content

Commit 75cf427

Browse files
author
Austin Schneider
committed
upgrade rails
1 parent faa2d86 commit 75cf427

File tree

7 files changed

+118
-90
lines changed

7 files changed

+118
-90
lines changed

Gemfile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
source 'http://rubygems.org'
22

3-
gem 'rails', '3.1.1'
3+
gem 'rails', '3.2.14'
44
gem 'pg', '0.11.0'
5-
gem 'haml-rails', '0.3.4'
5+
gem 'haml-rails', '0.3.5'
66
gem 'jquery-rails', '1.0.16'
77
gem 'httparty', '0.8.1'
88
gem 'squeel', '0.9.3'
@@ -14,8 +14,8 @@ gem 'kaminari', '0.12.4'
1414
# Gems used only for assets and not required
1515
# in production environments by default.
1616
group :assets do
17-
gem 'sass-rails', '~> 3.1.4'
18-
gem 'coffee-rails', '~> 3.1.1'
17+
gem 'sass-rails', '~> 3.2.6'
18+
gem 'coffee-rails', '~> 3.2.2'
1919
gem 'uglifier', '>= 1.0.3'
2020
end
2121

Gemfile.lock

Lines changed: 71 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -4,39 +4,38 @@ GEM
44
accept_values_for (0.4.3)
55
activemodel (>= 3.0.0)
66
rspec
7-
actionmailer (3.1.1)
8-
actionpack (= 3.1.1)
9-
mail (~> 2.3.0)
10-
actionpack (3.1.1)
11-
activemodel (= 3.1.1)
12-
activesupport (= 3.1.1)
7+
actionmailer (3.2.14)
8+
actionpack (= 3.2.14)
9+
mail (~> 2.5.4)
10+
actionpack (3.2.14)
11+
activemodel (= 3.2.14)
12+
activesupport (= 3.2.14)
1313
builder (~> 3.0.0)
1414
erubis (~> 2.7.0)
15-
i18n (~> 0.6)
16-
rack (~> 1.3.2)
17-
rack-cache (~> 1.1)
18-
rack-mount (~> 0.8.2)
15+
journey (~> 1.0.4)
16+
rack (~> 1.4.5)
17+
rack-cache (~> 1.2)
1918
rack-test (~> 0.6.1)
20-
sprockets (~> 2.0.2)
21-
activemodel (3.1.1)
22-
activesupport (= 3.1.1)
19+
sprockets (~> 2.2.1)
20+
activemodel (3.2.14)
21+
activesupport (= 3.2.14)
2322
builder (~> 3.0.0)
24-
i18n (~> 0.6)
25-
activerecord (3.1.1)
26-
activemodel (= 3.1.1)
27-
activesupport (= 3.1.1)
28-
arel (~> 2.2.1)
23+
activerecord (3.2.14)
24+
activemodel (= 3.2.14)
25+
activesupport (= 3.2.14)
26+
arel (~> 3.0.2)
2927
tzinfo (~> 0.3.29)
30-
activeresource (3.1.1)
31-
activemodel (= 3.1.1)
32-
activesupport (= 3.1.1)
33-
activesupport (3.1.1)
28+
activeresource (3.2.14)
29+
activemodel (= 3.2.14)
30+
activesupport (= 3.2.14)
31+
activesupport (3.2.14)
32+
i18n (~> 0.6, >= 0.6.4)
3433
multi_json (~> 1.0)
3534
addressable (2.2.6)
36-
arel (2.2.1)
35+
arel (3.0.2)
3736
artifice (0.6)
3837
rack-test
39-
builder (3.0.0)
38+
builder (3.0.4)
4039
capybara (1.1.1)
4140
mime-types (>= 1.16)
4241
nokogiri (>= 1.3.3)
@@ -46,13 +45,13 @@ GEM
4645
xpath (~> 0.1.4)
4746
childprocess (0.2.2)
4847
ffi (~> 1.0.6)
49-
coffee-rails (3.1.1)
48+
coffee-rails (3.2.2)
5049
coffee-script (>= 2.2.0)
51-
railties (~> 3.1.0)
50+
railties (~> 3.2.0)
5251
coffee-script (2.2.0)
5352
coffee-script-source
5453
execjs
55-
coffee-script-source (1.1.2)
54+
coffee-script-source (1.6.3)
5655
crack (0.3.1)
5756
cucumber (1.1.1)
5857
builder (>= 2.1.2)
@@ -79,66 +78,64 @@ GEM
7978
ffi (1.0.9)
8079
gherkin (2.6.2)
8180
json (>= 1.4.6)
82-
haml (3.1.3)
83-
haml-rails (0.3.4)
84-
actionpack (~> 3.0)
85-
activesupport (~> 3.0)
86-
haml (~> 3.0)
87-
railties (~> 3.0)
88-
hike (1.2.1)
81+
haml (3.1.8)
82+
haml-rails (0.3.5)
83+
actionpack (>= 3.1, < 4.1)
84+
activesupport (>= 3.1, < 4.1)
85+
haml (~> 3.1)
86+
railties (>= 3.1, < 4.1)
87+
hike (1.2.3)
8988
httparty (0.8.1)
9089
multi_json
9190
multi_xml
92-
i18n (0.6.0)
91+
i18n (0.6.5)
92+
journey (1.0.4)
9393
jquery-rails (1.0.16)
9494
railties (~> 3.0)
9595
thor (~> 0.14)
96-
json (1.6.1)
96+
json (1.8.0)
9797
json_pure (1.6.1)
9898
kaminari (0.12.4)
9999
rails (>= 3.0.0)
100100
launchy (2.0.5)
101101
addressable (~> 2.2.6)
102-
mail (2.3.0)
103-
i18n (>= 0.4.0)
102+
mail (2.5.4)
104103
mime-types (~> 1.16)
105104
treetop (~> 1.4.8)
106-
mime-types (1.17.2)
107-
multi_json (1.0.3)
105+
mime-types (1.25)
106+
multi_json (1.8.0)
108107
multi_xml (0.4.1)
109108
nokogiri (1.5.0)
110109
pg (0.11.0)
111110
polyamorous (0.5.0)
112111
activerecord (~> 3.0)
113112
polyglot (0.3.3)
114-
rack (1.3.5)
115-
rack-cache (1.1)
113+
rack (1.4.5)
114+
rack-cache (1.2)
116115
rack (>= 0.4)
117-
rack-mount (0.8.3)
118-
rack (>= 1.0.0)
119116
rack-protection (1.5.0)
120117
rack
121-
rack-ssl (1.3.2)
118+
rack-ssl (1.3.3)
122119
rack
123-
rack-test (0.6.1)
120+
rack-test (0.6.2)
124121
rack (>= 1.0)
125-
rails (3.1.1)
126-
actionmailer (= 3.1.1)
127-
actionpack (= 3.1.1)
128-
activerecord (= 3.1.1)
129-
activeresource (= 3.1.1)
130-
activesupport (= 3.1.1)
122+
rails (3.2.14)
123+
actionmailer (= 3.2.14)
124+
actionpack (= 3.2.14)
125+
activerecord (= 3.2.14)
126+
activeresource (= 3.2.14)
127+
activesupport (= 3.2.14)
131128
bundler (~> 1.0)
132-
railties (= 3.1.1)
133-
railties (3.1.1)
134-
actionpack (= 3.1.1)
135-
activesupport (= 3.1.1)
129+
railties (= 3.2.14)
130+
railties (3.2.14)
131+
actionpack (= 3.2.14)
132+
activesupport (= 3.2.14)
136133
rack-ssl (~> 1.3.2)
137134
rake (>= 0.8.7)
138135
rdoc (~> 3.4)
139-
thor (~> 0.14.6)
140-
rake (0.9.2.2)
141-
rdoc (3.11)
136+
thor (>= 0.14.6, < 2.0)
137+
rake (10.1.0)
138+
rdoc (3.12.2)
142139
json (~> 1.4)
143140
redis (2.2.2)
144141
redis-namespace (1.0.4)
@@ -171,13 +168,11 @@ GEM
171168
rubyzip (0.9.4)
172169
rufus-scheduler (2.0.12)
173170
tzinfo (>= 0.3.23)
174-
sass (3.1.10)
175-
sass-rails (3.1.4)
176-
actionpack (~> 3.1.0)
177-
railties (~> 3.1.0)
178-
sass (>= 3.1.4)
179-
sprockets (~> 2.0.0)
180-
tilt (~> 1.3.2)
171+
sass (3.2.10)
172+
sass-rails (3.2.6)
173+
railties (~> 3.2.0)
174+
sass (>= 3.1.10)
175+
tilt (~> 1.3)
181176
selenium-webdriver (2.10.0)
182177
childprocess (>= 0.2.1)
183178
ffi (= 1.0.9)
@@ -190,22 +185,23 @@ GEM
190185
rack-protection (~> 1.1, >= 1.1.2)
191186
tilt (~> 1.3, >= 1.3.3)
192187
tilt (~> 1.3, >= 1.3.3)
193-
sprockets (2.0.3)
188+
sprockets (2.2.2)
194189
hike (~> 1.2)
190+
multi_json (~> 1.0)
195191
rack (~> 1.0)
196192
tilt (~> 1.1, != 1.3.0)
197193
squeel (0.9.3)
198194
activerecord (~> 3.0)
199195
activesupport (~> 3.0)
200196
polyamorous (~> 0.5.0)
201197
term-ansicolor (1.0.7)
202-
thor (0.14.6)
203-
tilt (1.3.3)
198+
thor (0.18.1)
199+
tilt (1.4.1)
204200
timecop (0.3.5)
205-
treetop (1.4.10)
201+
treetop (1.4.15)
206202
polyglot
207203
polyglot (>= 0.3.1)
208-
tzinfo (0.3.31)
204+
tzinfo (0.3.37)
209205
uglifier (1.0.4)
210206
execjs (>= 0.3.0)
211207
multi_json (>= 1.0.2)
@@ -223,23 +219,23 @@ PLATFORMS
223219
DEPENDENCIES
224220
accept_values_for (~> 0.4.3)
225221
artifice (~> 0.6)
226-
coffee-rails (~> 3.1.1)
222+
coffee-rails (~> 3.2.2)
227223
cucumber-rails (~> 1.2.0)
228224
database_cleaner (~> 0.6.7)
229225
factory_girl_rails (~> 1.3.0)
230226
faker (~> 1.0.1)
231-
haml-rails (= 0.3.4)
227+
haml-rails (= 0.3.5)
232228
httparty (= 0.8.1)
233229
jquery-rails (= 1.0.16)
234230
kaminari (= 0.12.4)
235231
launchy (~> 2.0.5)
236232
pg (= 0.11.0)
237-
rails (= 3.1.1)
233+
rails (= 3.2.14)
238234
resque (= 1.20.0)
239235
resque-scheduler (= 1.9.9)
240236
resque_spec (~> 0.7.0)
241237
rspec-rails (~> 2.7.0)
242-
sass-rails (~> 3.1.4)
238+
sass-rails (~> 3.2.6)
243239
squeel (= 0.9.3)
244240
timecop (~> 0.3.5)
245241
uglifier (>= 1.0.3)

config/application.rb

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010

1111
if defined?(Bundler)
1212
# If you precompile assets before deploying to production, use this line
13-
Bundler.require(*Rails.groups(assets: %w(development test)))
13+
Bundler.require(*Rails.groups(:assets => %w(development test)))
1414
# If you want your assets lazily compiled in production, use this line
1515
# Bundler.require(:default, :assets, Rails.env)
1616
end
@@ -22,7 +22,8 @@ class Application < Rails::Application
2222
# -- all .rb files in that directory are automatically loaded.
2323

2424
# Custom directories with classes and modules you want to be autoloadable.
25-
config.autoload_paths += %W(#{config.root}/lib/pinger)
25+
config.autoload_paths += %W[#{config.root}/lib/pinger]
26+
# config.eager_load_paths += %W[#{config.root}/lib/pinger]
2627

2728
# Only load the plugins named here, in the order given (default is alphabetical).
2829
# :all can be used as a placeholder for all plugins not explicitly named.
@@ -45,6 +46,20 @@ class Application < Rails::Application
4546
# Configure sensitive parameters which will be filtered from the log file.
4647
config.filter_parameters += [:password]
4748

49+
# Enable escaping HTML in JSON.
50+
config.active_support.escape_html_entities_in_json = true
51+
52+
# Use SQL instead of Active Record's schema dumper when creating the database.
53+
# This is necessary if your schema can't be completely dumped by the schema dumper,
54+
# like if you have constraints or database-specific column types
55+
# config.active_record.schema_format = :sql
56+
57+
# Enforce whitelist mode for mass assignment.
58+
# This will create an empty whitelist of attributes available for mass-assignment for all models
59+
# in your app. As such, your models will need to explicitly whitelist or blacklist accessible
60+
# parameters by using an attr_accessible or attr_protected declaration.
61+
config.active_record.whitelist_attributes = false
62+
4863
# Enable the asset pipeline
4964
config.assets.enabled = true
5065

config/environments/development.rb

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
# Settings specified here will take precedence over those in config/application.rb
33

44
# In the development environment your application's code is reloaded on
5-
# every request. This slows down response time but is perfect for development
5+
# every request. This slows down response time but is perfect for development
66
# since you don't have to restart the web server when you make code changes.
77
config.cache_classes = false
88

@@ -22,6 +22,13 @@
2222
# Only use best-standards-support built into browsers
2323
config.action_dispatch.best_standards_support = :builtin
2424

25+
# Raise exception on mass assignment protection for Active Record models
26+
config.active_record.mass_assignment_sanitizer = :strict
27+
28+
# Log the query plan for queries taking more than this (works
29+
# with SQLite, MySQL, and PostgreSQL)
30+
config.active_record.auto_explain_threshold_in_seconds = 0.5
31+
2532
# Do not compress assets
2633
config.assets.compress = false
2734

config/environments/production.rb

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020
# Generate digests for assets URLs
2121
config.assets.digest = true
2222

23-
# Defaults to Rails.root.join("public/assets")
23+
# Defaults to nil and saved in location specified by config.assets.prefix
2424
# config.assets.manifest = YOUR_PATH
2525

2626
# Specifies the header that your server uses for sending files
@@ -33,8 +33,11 @@
3333
# See everything in the log (default is :info)
3434
# config.log_level = :debug
3535

36+
# Prepend all log lines with the following tags
37+
# config.log_tags = [ :subdomain, :uuid ]
38+
3639
# Use a different logger for distributed setups
37-
# config.logger = SyslogLogger.new
40+
# config.logger = ActiveSupport::TaggedLogging.new(SyslogLogger.new)
3841

3942
# Use a different cache store in production
4043
# config.cache_store = :mem_cache_store
@@ -57,4 +60,8 @@
5760

5861
# Send deprecation notices to registered listeners
5962
config.active_support.deprecation = :notify
63+
64+
# Log the query plan for queries taking more than this (works
65+
# with SQLite, MySQL, and PostgreSQL)
66+
# config.active_record.auto_explain_threshold_in_seconds = 0.5
6067
end

config/environments/test.rb

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22
# Settings specified here will take precedence over those in config/application.rb
33

44
# The test environment is used exclusively to run your application's
5-
# test suite. You never need to work with it otherwise. Remember that
5+
# test suite. You never need to work with it otherwise. Remember that
66
# your test database is "scratch space" for the test suite and is wiped
7-
# and recreated between test runs. Don't rely on the data there!
7+
# and recreated between test runs. Don't rely on the data there!
88
config.cache_classes = true
99

1010
# Configure static asset server for tests with Cache-Control for performance
@@ -29,10 +29,8 @@
2929
# ActionMailer::Base.deliveries array.
3030
config.action_mailer.delivery_method = :test
3131

32-
# Use SQL instead of Active Record's schema dumper when creating the test database.
33-
# This is necessary if your schema can't be completely dumped by the schema dumper,
34-
# like if you have constraints or database-specific column types
35-
# config.active_record.schema_format = :sql
32+
# Raise exception on mass assignment protection for Active Record models
33+
config.active_record.mass_assignment_sanitizer = :strict
3634

3735
# Print deprecation notices to the stderr
3836
config.active_support.deprecation = :stderr

0 commit comments

Comments
 (0)