diff --git a/Gemfile b/Gemfile index 1a29225d..57d22a2e 100644 --- a/Gemfile +++ b/Gemfile @@ -1,7 +1,6 @@ source 'https://rubygems.org' -ruby '2.1.1' -gem 'rails', '4.2.0.beta2' +gem 'rails', '4.2.2' gem 'bcrypt', '3.1.7' gem 'faker', '1.4.2' gem 'carrierwave', '0.10.0' @@ -10,13 +9,12 @@ gem 'fog', '1.23.0' gem 'will_paginate', '3.0.7' gem 'bootstrap-will_paginate', '0.0.10' gem 'bootstrap-sass', '3.2.0.0' -gem 'sass-rails', '5.0.0.beta1' +gem 'sass-rails', '5.0.2' gem 'uglifier', '2.5.3' -gem 'coffee-rails', '4.0.1' -gem 'jquery-rails', '3.1.2' +gem 'coffee-rails', '4.1.0' +gem 'jquery-rails', '4.0.0.beta2' gem 'turbolinks', '2.3.0' -gem 'jbuilder', '2.1.3' -gem 'rails-html-sanitizer', '1.0.1' +gem 'jbuilder', '2.2.3' gem 'sdoc', '0.4.0', group: :doc group :development, :test do @@ -36,4 +34,4 @@ group :production do gem 'pg', '0.17.1' gem 'rails_12factor', '0.0.2' gem 'unicorn', '4.8.3' -end \ No newline at end of file +end diff --git a/Gemfile.lock b/Gemfile.lock index 85d4272f..708a7873 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,43 +1,43 @@ GEM remote: https://rubygems.org/ specs: - actionmailer (4.2.0.beta2) - actionpack (= 4.2.0.beta2) - actionview (= 4.2.0.beta2) - activejob (= 4.2.0.beta2) + actionmailer (4.2.2) + actionpack (= 4.2.2) + actionview (= 4.2.2) + activejob (= 4.2.2) mail (~> 2.5, >= 2.5.4) - rails-dom-testing (~> 1.0, >= 1.0.3) - actionpack (4.2.0.beta2) - actionview (= 4.2.0.beta2) - activesupport (= 4.2.0.beta2) - rack (~> 1.6.0.beta) + rails-dom-testing (~> 1.0, >= 1.0.5) + actionpack (4.2.2) + actionview (= 4.2.2) + activesupport (= 4.2.2) + rack (~> 1.6) rack-test (~> 0.6.2) - rails-dom-testing (~> 1.0, >= 1.0.3) + rails-dom-testing (~> 1.0, >= 1.0.5) rails-html-sanitizer (~> 1.0, >= 1.0.1) - actionview (4.2.0.beta2) - activesupport (= 4.2.0.beta2) + actionview (4.2.2) + activesupport (= 4.2.2) builder (~> 3.1) erubis (~> 2.7.0) - rails-dom-testing (~> 1.0, >= 1.0.3) + rails-dom-testing (~> 1.0, >= 1.0.5) rails-html-sanitizer (~> 1.0, >= 1.0.1) - activejob (4.2.0.beta2) - activesupport (= 4.2.0.beta2) + activejob (4.2.2) + activesupport (= 4.2.2) globalid (>= 0.3.0) - activemodel (4.2.0.beta2) - activesupport (= 4.2.0.beta2) + activemodel (4.2.2) + activesupport (= 4.2.2) builder (~> 3.1) - activerecord (4.2.0.beta2) - activemodel (= 4.2.0.beta2) - activesupport (= 4.2.0.beta2) - arel (>= 6.0.0.beta1, < 6.1) - activesupport (4.2.0.beta2) - i18n (>= 0.7.0.beta1, < 0.8) + activerecord (4.2.2) + activemodel (= 4.2.2) + activesupport (= 4.2.2) + arel (~> 6.0) + activesupport (4.2.2) + i18n (~> 0.7) json (~> 1.7, >= 1.7.7) minitest (~> 5.1) - thread_safe (~> 0.1) + thread_safe (~> 0.3, >= 0.3.4) tzinfo (~> 1.1) - ansi (1.4.3) - arel (6.0.0.beta1) + ansi (1.5.0) + arel (6.0.0) bcrypt (3.1.7) binding_of_caller (0.7.3.pre1) debug_inspector (>= 0.0.1) @@ -58,22 +58,22 @@ GEM celluloid (0.16.0) timers (~> 4.0.0) coderay (1.1.0) - coffee-rails (4.0.1) + coffee-rails (4.1.0) coffee-script (>= 2.2.0) railties (>= 4.0.0, < 5.0) coffee-script (2.3.0) coffee-script-source execjs - coffee-script-source (1.8.0) - columnize (0.8.9) + coffee-script-source (1.9.0) + columnize (0.9.0) debug_inspector (0.0.2) debugger-linecache (1.2.0) erubis (2.7.0) - excon (0.39.6) - execjs (2.2.1) + excon (0.44.2) + execjs (2.3.0) faker (1.4.2) i18n (~> 0.5) - ffi (1.9.5) + ffi (1.9.6) fog (1.23.0) fog-brightbox fog-core (~> 1.23) @@ -81,11 +81,11 @@ GEM fog-softlayer ipaddress (~> 0.5) nokogiri (~> 1.5, >= 1.5.11) - fog-brightbox (0.5.1) + fog-brightbox (0.7.1) fog-core (~> 1.22) fog-json - inflecto - fog-core (1.24.0) + inflecto (~> 0.0.2) + fog-core (1.28.0) builder excon (~> 0.38) formatador (~> 0.2) @@ -94,132 +94,138 @@ GEM net-ssh (>= 2.1.3) fog-json (1.0.0) multi_json (~> 1.0) - fog-softlayer (0.3.18) + fog-softlayer (0.4.1) fog-core fog-json formatador (0.2.5) - globalid (0.3.0) + globalid (0.3.5) activesupport (>= 4.1.0) - guard (2.6.1) + guard (2.12.1) formatador (>= 0.2.4) listen (~> 2.7) lumberjack (~> 1.0) + nenv (~> 0.1) + notiffany (~> 0.0) pry (>= 0.9.12) + shellany (~> 0.0) thor (>= 0.18.1) guard-minitest (2.3.1) guard (~> 2.0) minitest (>= 3.0) - hike (1.2.3) hitimes (1.2.2) - i18n (0.7.0.beta1) + i18n (0.7.0) inflecto (0.0.2) ipaddress (0.8.0) - jbuilder (2.1.3) + jbuilder (2.2.3) activesupport (>= 3.0.0, < 5) multi_json (~> 1.2) - jquery-rails (3.1.2) - railties (>= 3.0, < 5.0) + jquery-rails (4.0.0.beta2) + rails-dom-testing (~> 1.0) + railties (>= 4.2.0.beta, < 5.0) thor (>= 0.14, < 2.0) - json (1.8.1) - kgio (2.9.2) - listen (2.7.11) + json (1.8.3) + kgio (2.9.3) + listen (2.8.5) celluloid (>= 0.15.2) rb-fsevent (>= 0.9.3) rb-inotify (>= 0.9) - loofah (2.0.1) + loofah (2.0.2) nokogiri (>= 1.5.9) lumberjack (1.0.9) - mail (2.6.1) + mail (2.6.3) mime-types (>= 1.16, < 3) method_source (0.8.2) - mime-types (2.3) + mime-types (2.6.1) mini_backtrace (0.1.3) minitest (> 1.2.0) rails (>= 2.3.3) mini_magick (3.8.0) subexec (~> 0.2.1) - mini_portile (0.6.0) - minitest (5.4.2) + mini_portile (0.6.2) + minitest (5.7.0) minitest-reporters (1.0.5) ansi builder minitest (>= 5.0) ruby-progressbar - multi_json (1.10.1) + multi_json (1.11.1) + nenv (0.2.0) net-scp (1.2.1) net-ssh (>= 2.6.5) - net-ssh (2.9.1) - nokogiri (1.6.3.1) - mini_portile (= 0.6.0) + net-ssh (2.9.2) + nokogiri (1.6.6.2) + mini_portile (~> 0.6.0) + notiffany (0.0.5) + nenv (~> 0.1) + shellany (~> 0.0) pg (0.17.1) pry (0.10.1) coderay (~> 1.1.0) method_source (~> 0.8.1) slop (~> 3.4) - rack (1.6.0.beta) - rack-test (0.6.2) + rack (1.6.2) + rack-test (0.6.3) rack (>= 1.0) - rails (4.2.0.beta2) - actionmailer (= 4.2.0.beta2) - actionpack (= 4.2.0.beta2) - actionview (= 4.2.0.beta2) - activejob (= 4.2.0.beta2) - activemodel (= 4.2.0.beta2) - activerecord (= 4.2.0.beta2) - activesupport (= 4.2.0.beta2) + rails (4.2.2) + actionmailer (= 4.2.2) + actionpack (= 4.2.2) + actionview (= 4.2.2) + activejob (= 4.2.2) + activemodel (= 4.2.2) + activerecord (= 4.2.2) + activesupport (= 4.2.2) bundler (>= 1.3.0, < 2.0) - railties (= 4.2.0.beta2) - sprockets-rails (~> 3.0.0.beta1) + railties (= 4.2.2) + sprockets-rails rails-deprecated_sanitizer (1.0.3) activesupport (>= 4.2.0.alpha) - rails-dom-testing (1.0.3) - activesupport + rails-dom-testing (1.0.6) + activesupport (>= 4.2.0.beta, < 5.0) nokogiri (~> 1.6.0) rails-deprecated_sanitizer (>= 1.0.1) - rails-html-sanitizer (1.0.1) + rails-html-sanitizer (1.0.2) loofah (~> 2.0) rails_12factor (0.0.2) rails_serve_static_assets rails_stdout_logging - rails_serve_static_assets (0.0.2) + rails_serve_static_assets (0.0.4) rails_stdout_logging (0.0.3) - railties (4.2.0.beta2) - actionpack (= 4.2.0.beta2) - activesupport (= 4.2.0.beta2) + railties (4.2.2) + actionpack (= 4.2.2) + activesupport (= 4.2.2) rake (>= 0.8.7) thor (>= 0.18.1, < 2.0) raindrops (0.13.0) - rake (10.3.2) + rake (10.4.2) rb-fsevent (0.9.4) rb-inotify (0.9.5) ffi (>= 0.5.0) - rdoc (4.1.2) + rdoc (4.2.0) json (~> 1.4) - ruby-progressbar (1.6.0) - sass (3.4.5) - sass-rails (5.0.0.beta1) + ruby-progressbar (1.7.1) + sass (3.4.12) + sass-rails (5.0.2) railties (>= 4.0.0, < 5.0) - sass (~> 3.2) - sprockets (~> 2.12) + sass (~> 3.1) + sprockets (>= 2.8, < 4.0) sprockets-rails (>= 2.0, < 4.0) + tilt (~> 1.1) sdoc (0.4.0) json (~> 1.8) rdoc (~> 4.0, < 5.0) + shellany (0.0.1) slop (3.6.0) spring (1.1.3) - sprockets (2.12.2) - hike (~> 1.2) - multi_json (~> 1.0) + sprockets (3.2.0) rack (~> 1.0) - tilt (~> 1.1, != 1.3.0) - sprockets-rails (3.0.0.beta1) - actionpack (>= 4.0) - activesupport (>= 4.0) - sprockets (~> 2.8) + sprockets-rails (2.3.1) + actionpack (>= 3.0) + activesupport (>= 3.0) + sprockets (>= 2.8, < 4.0) sqlite3 (1.3.9) subexec (0.2.3) thor (0.19.1) - thread_safe (0.3.4) + thread_safe (0.3.5) tilt (1.4.1) timers (4.0.1) hitimes @@ -250,20 +256,19 @@ DEPENDENCIES bootstrap-will_paginate (= 0.0.10) byebug (= 3.4.0) carrierwave (= 0.10.0) - coffee-rails (= 4.0.1) + coffee-rails (= 4.1.0) faker (= 1.4.2) fog (= 1.23.0) guard-minitest (= 2.3.1) - jbuilder (= 2.1.3) - jquery-rails (= 3.1.2) + jbuilder (= 2.2.3) + jquery-rails (= 4.0.0.beta2) mini_backtrace (= 0.1.3) mini_magick (= 3.8.0) minitest-reporters (= 1.0.5) pg (= 0.17.1) - rails (= 4.2.0.beta2) - rails-html-sanitizer (= 1.0.1) + rails (= 4.2.2) rails_12factor (= 0.0.2) - sass-rails (= 5.0.0.beta1) + sass-rails (= 5.0.2) sdoc (= 0.4.0) spring (= 1.1.3) sqlite3 (= 1.3.9) diff --git a/Guardfile b/Guardfile index 460db6ca..f30bb0f2 100644 --- a/Guardfile +++ b/Guardfile @@ -26,8 +26,8 @@ guard :minitest, spring: true, all_on_start: false do ['test/controllers/sessions_controller_test.rb', 'test/integration/users_login_test.rb'] end - watch('app/models/micropost.rb') do - ['test/models/micropost_test.rb', 'test/models/user_test.rb'] + watch('app/controllers/account_activations_controller.rb') do + 'test/integration/users_signup_test.rb' end watch(%r{app/views/users/*}) do resource_tests('users') + diff --git a/app/assets/stylesheets/custom.css.scss b/app/assets/stylesheets/custom.css.scss index 7bd784dc..7be6c379 100644 --- a/app/assets/stylesheets/custom.css.scss +++ b/app/assets/stylesheets/custom.css.scss @@ -7,10 +7,6 @@ $gray-medium-light: #eaeaea; /* universal */ -html { - overflow-y: scroll; -} - body { padding-top: 60px; } diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb index 29f39b8a..6340bec2 100644 --- a/app/helpers/application_helper.rb +++ b/app/helpers/application_helper.rb @@ -1,12 +1,12 @@ module ApplicationHelper - + # Returns the full title on a per-page basis. def full_title(page_title = '') base_title = "Ruby on Rails Tutorial Sample App" if page_title.empty? base_title else - "#{page_title} | #{base_title}" + page_title + " | " + base_title end end end diff --git a/app/models/user.rb b/app/models/user.rb index 4607312f..a43ee558 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -6,5 +6,5 @@ class User < ActiveRecord::Base format: { with: VALID_EMAIL_REGEX }, uniqueness: { case_sensitive: false } has_secure_password - validates :password, length: { minimum: 6 } + validates :password, presence: true, length: { minimum: 6 } end diff --git a/app/views/layouts/_header.html.erb b/app/views/layouts/_header.html.erb index b404175e..1e535b96 100644 --- a/app/views/layouts/_header.html.erb +++ b/app/views/layouts/_header.html.erb @@ -2,7 +2,7 @@