Skip to content

Commit

Permalink
Update rails to version 4.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
sferik committed Apr 10, 2014
1 parent 5334593 commit a35381f
Show file tree
Hide file tree
Showing 23 changed files with 187 additions and 95 deletions.
6 changes: 5 additions & 1 deletion Gemfile
@@ -1,7 +1,7 @@
source 'https://rubygems.org'
ruby '2.1.1'

gem 'rails', '~> 4.0.4'
gem 'rails', '~> 4.1.0'

gem 'haml'
gem 'omniauth'
Expand All @@ -19,6 +19,10 @@ group :production do
gem 'puma'
end

group :development do
gem 'spring'
end

group :test do
gem 'coveralls', require: false
gem 'mocha', require: false
Expand Down
75 changes: 41 additions & 34 deletions Gemfile.lock
@@ -1,35 +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)
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)
actionview (4.1.0)
activesupport (= 4.1.0)
builder (~> 3.1)
erubis (~> 2.7.0)
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)
addressable (2.3.6)
arel (4.0.2)
arel (5.0.0)
ast (1.1.0)
buftok (0.2.0)
builder (3.1.4)
builder (3.2.2)
coveralls (0.7.0)
multi_json (~> 1.3)
rest-client
Expand Down Expand Up @@ -60,7 +62,7 @@ GEM
thread_safe (~> 0.3, >= 0.3.1)
metaclass (0.0.4)
mime-types (1.25.1)
minitest (4.7.5)
minitest (5.3.2)
mocha (1.0.0)
metaclass (~> 0.0.1)
multi_json (1.9.2)
Expand All @@ -86,22 +88,24 @@ GEM
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.1.0)
sprockets-rails (~> 2.0)
rails_12factor (0.0.2)
rails_serve_static_assets
rails_stdout_logging
rails_serve_static_assets (0.0.2)
rails_stdout_logging (0.0.3)
railties (4.0.4)
actionpack (= 4.0.4)
activesupport (= 4.0.4)
railties (4.1.0)
actionpack (= 4.1.0)
activesupport (= 4.1.0)
rake (>= 0.8.7)
thor (>= 0.18.1, < 2.0)
rainbow (2.0.0)
Expand Down Expand Up @@ -133,6 +137,7 @@ GEM
simplecov-html (~> 0.8.0)
simplecov-html (0.8.0)
slop (3.5.0)
spring (1.1.2)
sprockets (2.12.0)
hike (~> 1.2)
multi_json (~> 1.0)
Expand Down Expand Up @@ -164,7 +169,8 @@ GEM
simple_oauth (~> 0.2.0)
twitter-text (1.9.0)
unf (~> 0.1.0)
tzinfo (0.3.39)
tzinfo (1.1.0)
thread_safe (~> 0.1)
uglifier (2.5.0)
execjs (>= 0.3.0)
json (>= 1.8.0)
Expand All @@ -185,12 +191,13 @@ DEPENDENCIES
omniauth
omniauth-twitter
puma
rails (~> 4.0.4)
rails (~> 4.1.0)
rails_12factor
rubocop
sass-rails
sdoc
simplecov
spring
twitter
twitter-text
uglifier
Expand Down
2 changes: 1 addition & 1 deletion Rakefile
Expand Up @@ -3,4 +3,4 @@

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

SignInWithTwitter::Application.load_tasks
Rails.application.load_tasks
6 changes: 4 additions & 2 deletions app/assets/stylesheets/application.css
Expand Up @@ -5,8 +5,10 @@
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
*
* You're free to add application-wide styles to this file and they'll appear at the top of the
* compiled file, but it's generally better to create a new file per style scope.
* You're free to add application-wide styles to this file and they'll appear at the bottom of the
* compiled file so the styles you add here take precedence over styles defined in any styles
* defined in the other CSS/SCSS files in this directory. It is generally better to create a new
* file per style scope.
*
*= require_self
*= require bootstrap
Expand Down
4 changes: 4 additions & 0 deletions bin/rails
@@ -1,4 +1,8 @@
#!/usr/bin/env ruby
begin
load File.expand_path("../spring", __FILE__)
rescue LoadError
end
APP_PATH = File.expand_path('../../config/application', __FILE__)
require_relative '../config/boot'
require 'rails/commands'
4 changes: 4 additions & 0 deletions bin/rake
@@ -1,4 +1,8 @@
#!/usr/bin/env ruby
begin
load File.expand_path("../spring", __FILE__)
rescue LoadError
end
require_relative '../config/boot'
require 'rake'
Rake.application.run
18 changes: 18 additions & 0 deletions bin/spring
@@ -0,0 +1,18 @@
#!/usr/bin/env ruby

# This file loads spring without using Bundler, in order to be fast
# It gets overwritten when you run the `spring binstub` command

unless defined?(Spring)
require "rubygems"
require "bundler"

if match = Bundler.default_lockfile.read.match(/^GEM$.*?^ spring \((.*?)\)$.*?^$/m)
ENV["GEM_PATH"] = ([Bundler.bundle_path.to_s] + Gem.path).join(File::PATH_SEPARATOR)
ENV["GEM_HOME"] = ""
Gem.paths = ENV

gem "spring", match[1]
require "spring/binstub"
end
end
2 changes: 1 addition & 1 deletion config/application.rb
Expand Up @@ -6,7 +6,7 @@

# Require the gems listed in Gemfile, including any gems
# you've limited to :test, :development, or :production.
Bundler.require(:default, Rails.env)
Bundler.require(*Rails.groups)

module SignInWithTwitter
class Application < Rails::Application
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.
SignInWithTwitter::Application.initialize!
Rails.application.initialize!
12 changes: 10 additions & 2 deletions config/environments/development.rb
@@ -1,4 +1,4 @@
SignInWithTwitter::Application.configure do
Rails.application.configure do
# Settings specified here will take precedence over those in config/application.rb.

# In the development environment your application's code is reloaded on
Expand All @@ -19,11 +19,19 @@
# Print deprecation notices to the Rails logger.
config.active_support.deprecation = :log

# Raise an error on page load if there are pending migrations
# Raise an error on page load if there are pending migrations.
# config.active_record.migration_error = :page_load

# Debug mode disables concatenation and preprocessing of assets.
# This option may cause significant delays in view rendering with a large
# number of complex assets.
config.assets.debug = true

# Adds additional error checking when serving assets at runtime.
# Checks for improperly declared sprockets dependencies.
# Raises helpful error messages.
config.assets.raise_runtime_errors = true

# Raises error for missing translations
# config.action_view.raise_on_missing_translations = true
end
9 changes: 6 additions & 3 deletions config/environments/production.rb
@@ -1,11 +1,11 @@
SignInWithTwitter::Application.configure do
Rails.application.configure do
# Settings specified here will take precedence over those in config/application.rb.

# Code is not reloaded between requests.
config.cache_classes = true

# Eager load code on boot. This eager loads most of Rails and
# your application in memory, allowing both thread web servers
# your application in memory, allowing both threaded web servers
# and those relying on copy on write to perform better.
# Rake tasks automatically ignore this option for performance.
config.eager_load = true
Expand Down Expand Up @@ -66,7 +66,7 @@
# config.action_mailer.raise_delivery_errors = false

# Enable locale fallbacks for I18n (makes lookups for any locale fall back to
# the I18n.default_locale when a translation can not be found).
# the I18n.default_locale when a translation cannot be found).
config.i18n.fallbacks = true

# Send deprecation notices to registered listeners.
Expand All @@ -77,4 +77,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
5 changes: 4 additions & 1 deletion config/environments/test.rb
@@ -1,4 +1,4 @@
SignInWithTwitter::Application.configure do
Rails.application.configure do
# Settings specified here will take precedence over those in config/application.rb.

# The test environment is used exclusively to run your application's
Expand Down Expand Up @@ -33,4 +33,7 @@

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

# Raises error for missing translations
# config.action_view.raise_on_missing_translations = true
end
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
1 change: 0 additions & 1 deletion config/initializers/mime_types.rb
Expand Up @@ -2,4 +2,3 @@

# Add new mime types for use in respond_to blocks:
# Mime::Type.register "text/richtext", :rtf
# Mime::Type.register_alias "text/html", :iphone
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.

SignInWithTwitter::Application.config.session_store :cookie_store, key: '_sign-in-with-twitter_session'
Rails.application.config.session_store :cookie_store, key: '_sign-in-with-twitter_session'
2 changes: 1 addition & 1 deletion config/routes.rb
@@ -1,4 +1,4 @@
SignInWithTwitter::Application.routes.draw do
Rails.application.routes.draw do
root to: 'welcome#index'
get '/auth/twitter/callback', to: 'sessions#create', as: 'callback'
get '/auth/failure', to: 'sessions#error', as: 'failure'
Expand Down
22 changes: 22 additions & 0 deletions config/secrets.yml
@@ -0,0 +1,22 @@
# Be sure to restart your server when you modify this file.

# Your secret key is used for verifying the integrity of signed cookies.
# If you change this key, all old signed cookies will become invalid!

# Make sure the secret is at least 30 characters and all random,
# no regular words or you'll be exposed to dictionary attacks.
# You can use `rake secret` to generate a secure secret key.

# Make sure the secrets in this file are kept private
# if you're sharing your code publicly.

development:
secret_key_base: 897459781f31ab5890c56e73f3d91a957618a824cb8296722a7540188f299ffb921b4bf75aebfdbacc0dd9952152ae5051ae1322855c0f0cae7072801f164008

test:
secret_key_base: 35f5cb86b58c53c13f3555e3e096c136efd02525e7908aa77ae13996ba5407b2ee396e8e981dd0b4bc5b39a226e37b8e99fcc77c0d09fe2036d4e7f9ab0d84d3

# Do not keep production secrets in the repository,
# instead read values from the environment.
production:
secret_key_base: <%= ENV["SECRET_KEY_BASE"] %>

0 comments on commit a35381f

Please sign in to comment.