Skip to content

Commit

Permalink
upgrade to Rails 4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Brian DeHamer committed Apr 15, 2014
1 parent c70b58b commit 30dd1ea
Show file tree
Hide file tree
Showing 12 changed files with 72 additions and 71 deletions.
6 changes: 3 additions & 3 deletions Gemfile
@@ -1,9 +1,9 @@
source 'https://rubygems.org'

gem 'rails', '4.0.4'
gem 'rails', '4.1.0'
gem 'sqlite3'
gem 'faraday_middleware'
gem 'jbuilder', '~> 1.2'
gem 'jbuilder', '~> 2.0'
gem 'docker-api', '1.9.0', require: 'docker'
gem 'active_model_serializers'

Expand All @@ -14,7 +14,7 @@ end

group :test, :development do
gem 'rspec-rails'
gem 'shoulda'
gem 'shoulda-matchers'
end

group :test do
Expand Down
99 changes: 49 additions & 50 deletions Gemfile.lock
@@ -1,36 +1,37 @@
GEM
remote: https://rubygems.org/
specs:
actionmailer (4.0.4)
actionpack (= 4.0.4)
actionmailer (4.1.0)
actionpack (= 4.1.0)
actionview (= 4.1.0)
mail (~> 2.5.4)
actionpack (4.0.4)
activesupport (= 4.0.4)
builder (~> 3.1.0)
erubis (~> 2.7.0)
actionpack (4.1.0)
actionview (= 4.1.0)
activesupport (= 4.1.0)
rack (~> 1.5.2)
rack-test (~> 0.6.2)
actionview (4.1.0)
activesupport (= 4.1.0)
builder (~> 3.1)
erubis (~> 2.7.0)
active_model_serializers (0.8.1)
activemodel (>= 3.0)
activemodel (4.0.4)
activesupport (= 4.0.4)
builder (~> 3.1.0)
activerecord (4.0.4)
activemodel (= 4.0.4)
activerecord-deprecated_finders (~> 1.0.2)
activesupport (= 4.0.4)
arel (~> 4.0.0)
activerecord-deprecated_finders (1.0.3)
activesupport (4.0.4)
activemodel (4.1.0)
activesupport (= 4.1.0)
builder (~> 3.1)
activerecord (4.1.0)
activemodel (= 4.1.0)
activesupport (= 4.1.0)
arel (~> 5.0.0)
activesupport (4.1.0)
i18n (~> 0.6, >= 0.6.9)
minitest (~> 4.2)
multi_json (~> 1.3)
json (~> 1.7, >= 1.7.7)
minitest (~> 5.1)
thread_safe (~> 0.1)
tzinfo (~> 0.3.37)
tzinfo (~> 1.1)
archive-tar-minitar (0.5.2)
arel (4.0.2)
atomic (1.1.16)
builder (3.1.4)
arel (5.0.1.20140414130214)
builder (3.2.2)
coveralls (0.7.0)
multi_json (~> 1.3)
rest-client
Expand All @@ -52,35 +53,37 @@ GEM
faraday (>= 0.7.4, < 0.9)
hike (1.2.3)
i18n (0.6.9)
jbuilder (1.5.3)
activesupport (>= 3.0.0)
multi_json (>= 1.2.0)
jbuilder (2.0.6)
activesupport (>= 3.0.0, < 5)
multi_json (~> 1.2)
json (1.8.1)
mail (2.5.4)
mime-types (~> 1.16)
treetop (~> 1.4.8)
mime-types (1.25.1)
minitest (4.7.5)
minitest (5.3.3)
multi_json (1.9.2)
multipart-post (1.2.0)
polyglot (0.3.4)
rack (1.5.2)
rack-test (0.6.2)
rack (>= 1.0)
rails (4.0.4)
actionmailer (= 4.0.4)
actionpack (= 4.0.4)
activerecord (= 4.0.4)
activesupport (= 4.0.4)
rails (4.1.0)
actionmailer (= 4.1.0)
actionpack (= 4.1.0)
actionview (= 4.1.0)
activemodel (= 4.1.0)
activerecord (= 4.1.0)
activesupport (= 4.1.0)
bundler (>= 1.3.0, < 2.0)
railties (= 4.0.4)
sprockets-rails (~> 2.0.0)
railties (4.0.4)
actionpack (= 4.0.4)
activesupport (= 4.0.4)
railties (= 4.1.0)
sprockets-rails (~> 2.0)
railties (4.1.0)
actionpack (= 4.1.0)
activesupport (= 4.1.0)
rake (>= 0.8.7)
thor (>= 0.18.1, < 2.0)
rake (10.1.1)
rake (10.2.2)
rdoc (4.1.1)
json (~> 1.4)
rest-client (1.6.7)
Expand All @@ -100,11 +103,7 @@ GEM
sdoc (0.4.0)
json (~> 1.8)
rdoc (~> 4.0, < 5.0)
shoulda (3.5.0)
shoulda-context (~> 1.0, >= 1.0.1)
shoulda-matchers (>= 1.4.1, < 3.0)
shoulda-context (1.1.6)
shoulda-matchers (2.5.0)
shoulda-matchers (2.6.0)
activesupport (>= 3.0.0)
simplecov (0.8.2)
docile (~> 1.1.0)
Expand All @@ -116,22 +115,22 @@ GEM
multi_json (~> 1.0)
rack (~> 1.0)
tilt (~> 1.1, != 1.3.0)
sprockets-rails (2.0.1)
sprockets-rails (2.1.3)
actionpack (>= 3.0)
activesupport (>= 3.0)
sprockets (~> 2.8)
sqlite3 (1.3.9)
term-ansicolor (1.3.0)
tins (~> 1.0)
thor (0.19.1)
thread_safe (0.3.1)
atomic (>= 1.1.7, < 2)
thread_safe (0.3.3)
tilt (1.4.1)
tins (1.0.1)
tins (1.1.0)
treetop (1.4.15)
polyglot
polyglot (>= 0.3.1)
tzinfo (0.3.39)
tzinfo (1.1.0)
thread_safe (~> 0.1)

PLATFORMS
ruby
Expand All @@ -142,9 +141,9 @@ DEPENDENCIES
database_cleaner
docker-api (= 1.9.0)
faraday_middleware
jbuilder (~> 1.2)
rails (= 4.0.4)
jbuilder (~> 2.0)
rails (= 4.1.0)
rspec-rails
sdoc
shoulda
shoulda-matchers
sqlite3
2 changes: 1 addition & 1 deletion Rakefile
Expand Up @@ -3,4 +3,4 @@

require File.expand_path('../config/application', __FILE__)

PanamaxApi::Application.load_tasks
Rails.application.load_tasks
2 changes: 1 addition & 1 deletion config/application.rb
Expand Up @@ -3,7 +3,7 @@
# Pick the frameworks you want:
require "active_record/railtie"
require "action_controller/railtie"
require "action_mailer/railtie"
# require "action_mailer/railtie"
# require "sprockets/railtie"
# require "rails/test_unit/railtie"

Expand Down
2 changes: 1 addition & 1 deletion config/environment.rb
Expand Up @@ -2,4 +2,4 @@
require File.expand_path('../application', __FILE__)

# Initialize the Rails application.
PanamaxApi::Application.initialize!
Rails.application.initialize!
2 changes: 1 addition & 1 deletion config/environments/development.rb
Expand Up @@ -14,7 +14,7 @@
config.action_controller.perform_caching = false

# Don't care if the mailer can't send.
config.action_mailer.raise_delivery_errors = false
# config.action_mailer.raise_delivery_errors = false

# Print deprecation notices to the Rails logger.
config.active_support.deprecation = :log
Expand Down
3 changes: 3 additions & 0 deletions config/environments/production.rb
Expand Up @@ -62,4 +62,7 @@

# Use default logging formatter so that PID and timestamp are not suppressed.
config.log_formatter = ::Logger::Formatter.new

# Do not dump schema after migrations.
config.active_record.dump_schema_after_migration = false
end
2 changes: 1 addition & 1 deletion config/environments/test.rb
Expand Up @@ -29,7 +29,7 @@
# Tell Action Mailer not to deliver emails to the real world.
# The :test delivery method accumulates sent emails in the
# ActionMailer::Base.deliveries array.
config.action_mailer.delivery_method = :test
# config.action_mailer.delivery_method = :test

# Print deprecation notices to the stderr.
config.active_support.deprecation = :stderr
Expand Down
3 changes: 3 additions & 0 deletions config/initializers/cookies_serializer.rb
@@ -0,0 +1,3 @@
# Be sure to restart your server when you modify this file.

Rails.application.config.action_dispatch.cookies_serializer = :json
12 changes: 0 additions & 12 deletions config/initializers/secret_token.rb

This file was deleted.

2 changes: 1 addition & 1 deletion config/initializers/session_store.rb
@@ -1,3 +1,3 @@
# Be sure to restart your server when you modify this file.

PanamaxApi::Application.config.session_store :cookie_store, key: '_panamax-api_session'
Rails.application.config.session_store :cookie_store, key: '_panamax-api_session'
8 changes: 8 additions & 0 deletions config/secrets.yml
@@ -0,0 +1,8 @@
development:
secret_key_base: 'e16704fc29b9cdc5031d8f7b0067da08d8c42db36156fc04e8909ab8527175ad42421decc93994edaa36bc93745d13da8f08f4fac4d1e8fa62ad6e9caf881144'

test:
secret_key_base: '16abb07c8b9a0b7b2bb7aaebae8fd8428271b73f4126fe9350f285f0159f95a9faa4c72446e866224754711c0054495d77d82309703f3bc500cb15d56893a94f'

production:
secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>

0 comments on commit 30dd1ea

Please sign in to comment.