Upgraded to Rails 4.0.13; Rebuilt Gemfile.lock file

This commit is contained in:
Al Snow
2015-01-10 09:45:51 -05:00
7 changed files with 50 additions and 1646 deletions
+1 -1
View File
@@ -1,7 +1,7 @@
source 'https://rubygems.org' source 'https://rubygems.org'
#don't upgrade #don't upgrade
gem 'rails', '4.0.12' gem 'rails', '4.0.13'
ruby '2.1.5' ruby '2.1.5'
+38 -32
View File
@@ -1,25 +1,25 @@
GEM GEM
remote: https://rubygems.org/ remote: https://rubygems.org/
specs: specs:
actionmailer (4.0.12) actionmailer (4.0.13)
actionpack (= 4.0.12) actionpack (= 4.0.13)
mail (~> 2.5, >= 2.5.4) mail (~> 2.5, >= 2.5.4)
actionpack (4.0.12) actionpack (4.0.13)
activesupport (= 4.0.12) activesupport (= 4.0.13)
builder (~> 3.1.0) builder (~> 3.1.0)
erubis (~> 2.7.0) erubis (~> 2.7.0)
rack (~> 1.5.2) rack (~> 1.5.2)
rack-test (~> 0.6.2) rack-test (~> 0.6.2)
activemodel (4.0.12) activemodel (4.0.13)
activesupport (= 4.0.12) activesupport (= 4.0.13)
builder (~> 3.1.0) builder (~> 3.1.0)
activerecord (4.0.12) activerecord (4.0.13)
activemodel (= 4.0.12) activemodel (= 4.0.13)
activerecord-deprecated_finders (~> 1.0.2) activerecord-deprecated_finders (~> 1.0.2)
activesupport (= 4.0.12) activesupport (= 4.0.13)
arel (~> 4.0.0) arel (~> 4.0.0)
activerecord-deprecated_finders (1.0.3) activerecord-deprecated_finders (1.0.3)
activesupport (4.0.12) activesupport (4.0.13)
i18n (~> 0.6, >= 0.6.9) i18n (~> 0.6, >= 0.6.9)
minitest (~> 4.2) minitest (~> 4.2)
multi_json (~> 1.3) multi_json (~> 1.3)
@@ -32,13 +32,13 @@ GEM
cucumber (>= 1.1.1) cucumber (>= 1.1.1)
rspec-expectations (>= 2.7.0) rspec-expectations (>= 2.7.0)
bcrypt (3.1.9) bcrypt (3.1.9)
better_errors (2.1.0) better_errors (2.1.1)
coderay (>= 1.0.0) coderay (>= 1.0.0)
erubis (>= 2.6.6) erubis (>= 2.6.6)
rack (>= 0.9.0) rack (>= 0.9.0)
binding_of_caller (0.7.2) binding_of_caller (0.7.2)
debug_inspector (>= 0.0.1) debug_inspector (>= 0.0.1)
brakeman (2.6.3) brakeman (3.0.0)
erubis (~> 2.6) erubis (~> 2.6)
fastercsv (~> 1.5) fastercsv (~> 1.5)
haml (>= 3.0, < 5.0) haml (>= 3.0, < 5.0)
@@ -79,7 +79,7 @@ GEM
multi_json (>= 1.7.5, < 2.0) multi_json (>= 1.7.5, < 2.0)
multi_test (>= 0.1.1) multi_test (>= 0.1.1)
daemons (1.1.9) daemons (1.1.9)
database_cleaner (1.3.0) database_cleaner (1.4.0)
debug_inspector (0.0.2) debug_inspector (0.0.2)
diff-lcs (1.2.5) diff-lcs (1.2.5)
docile (1.1.5) docile (1.1.5)
@@ -92,7 +92,7 @@ GEM
execjs (2.2.2) execjs (2.2.2)
fastercsv (1.5.5) fastercsv (1.5.5)
ffi (1.9.6) ffi (1.9.6)
foreman (0.76.0) foreman (0.77.0)
dotenv (~> 1.0.2) dotenv (~> 1.0.2)
thor (~> 0.19.1) thor (~> 0.19.1)
formatador (0.2.5) formatador (0.2.5)
@@ -103,12 +103,14 @@ GEM
trollop (~> 2.0) trollop (~> 2.0)
gherkin (2.12.2) gherkin (2.12.2)
multi_json (~> 1.3) multi_json (~> 1.3)
guard (2.10.5) guard (2.11.1)
formatador (>= 0.2.4) formatador (>= 0.2.4)
listen (~> 2.7) listen (~> 2.7)
lumberjack (~> 1.0) lumberjack (~> 1.0)
nenv (~> 0.1) nenv (~> 0.1)
notiffany (~> 0.0)
pry (>= 0.9.12) pry (>= 0.9.12)
shellany (~> 0.0)
thor (>= 0.18.1) thor (>= 0.18.1)
guard-brakeman (0.8.3) guard-brakeman (0.8.3)
brakeman (>= 2.1.1) brakeman (>= 2.1.1)
@@ -131,18 +133,18 @@ GEM
hitimes (1.2.2) hitimes (1.2.2)
http_parser.rb (0.6.0) http_parser.rb (0.6.0)
i18n (0.7.0) i18n (0.7.0)
jquery-fileupload-rails (0.4.1) jquery-fileupload-rails (0.4.2)
actionpack (>= 3.1) actionpack (>= 3.1)
railties (>= 3.1) railties (>= 3.1)
jquery-rails (3.1.2) jquery-rails (3.1.2)
railties (>= 3.0, < 5.0) railties (>= 3.0, < 5.0)
thor (>= 0.14, < 2.0) thor (>= 0.14, < 2.0)
json (1.8.1) json (1.8.2)
kgio (2.9.2) kgio (2.9.2)
launchy (2.4.3) launchy (2.4.3)
addressable (~> 2.3) addressable (~> 2.3)
libv8 (3.16.14.7) libv8 (3.16.14.7)
listen (2.8.4) listen (2.8.5)
celluloid (>= 0.15.2) celluloid (>= 0.15.2)
rb-fsevent (>= 0.9.3) rb-fsevent (>= 0.9.3)
rb-inotify (>= 0.9) rb-inotify (>= 0.9)
@@ -169,6 +171,9 @@ GEM
nenv (0.1.1) nenv (0.1.1)
nokogiri (1.6.1) nokogiri (1.6.1)
mini_portile (~> 0.5.0) mini_portile (~> 0.5.0)
notiffany (0.0.3)
nenv (~> 0.1)
shellany (~> 0.0)
poltergeist (1.5.1) poltergeist (1.5.1)
capybara (~> 2.1) capybara (~> 2.1)
cliver (~> 0.3.1) cliver (~> 0.3.1)
@@ -185,19 +190,19 @@ GEM
rack rack
rack-protection (1.5.3) rack-protection (1.5.3)
rack rack
rack-test (0.6.2) rack-test (0.6.3)
rack (>= 1.0) rack (>= 1.0)
rails (4.0.12) rails (4.0.13)
actionmailer (= 4.0.12) actionmailer (= 4.0.13)
actionpack (= 4.0.12) actionpack (= 4.0.13)
activerecord (= 4.0.12) activerecord (= 4.0.13)
activesupport (= 4.0.12) activesupport (= 4.0.13)
bundler (>= 1.3.0, < 2.0) bundler (>= 1.3.0, < 2.0)
railties (= 4.0.12) railties (= 4.0.13)
sprockets-rails (~> 2.0) sprockets-rails (~> 2.0)
railties (4.0.12) railties (4.0.13)
actionpack (= 4.0.12) actionpack (= 4.0.13)
activesupport (= 4.0.12) activesupport (= 4.0.13)
rake (>= 0.8.7) rake (>= 0.8.7)
thor (>= 0.18.1, < 2.0) thor (>= 0.18.1, < 2.0)
raindrops (0.13.0) raindrops (0.13.0)
@@ -210,7 +215,7 @@ GEM
rspec-core (~> 2.14.0) rspec-core (~> 2.14.0)
rspec-expectations (~> 2.14.0) rspec-expectations (~> 2.14.0)
rspec-mocks (~> 2.14.0) rspec-mocks (~> 2.14.0)
rspec-core (2.14.8) rspec-core (2.14.0)
rspec-expectations (2.14.5) rspec-expectations (2.14.5)
diff-lcs (>= 1.1.3, < 2.0) diff-lcs (>= 1.1.3, < 2.0)
rspec-mocks (2.14.6) rspec-mocks (2.14.6)
@@ -235,6 +240,7 @@ GEM
sprockets-rails (>= 2.0, < 4.0) sprockets-rails (>= 2.0, < 4.0)
tilt (~> 1.1) tilt (~> 1.1)
sexp_processor (4.4.4) sexp_processor (4.4.4)
shellany (0.0.1)
simplecov (0.9.1) simplecov (0.9.1)
docile (~> 1.1.0) docile (~> 1.1.0)
multi_json (~> 1.0) multi_json (~> 1.0)
@@ -279,11 +285,11 @@ GEM
hitimes hitimes
travis-lint (2.0.0) travis-lint (2.0.0)
json json
trollop (2.0) trollop (2.1.1)
turbolinks (2.5.3) turbolinks (2.5.3)
coffee-rails coffee-rails
tzinfo (0.3.42) tzinfo (0.3.42)
uglifier (2.6.0) uglifier (2.7.0)
execjs (>= 0.3.0) execjs (>= 0.3.0)
json (>= 1.8.0) json (>= 1.8.0)
unicorn (4.8.3) unicorn (4.8.3)
@@ -325,7 +331,7 @@ DEPENDENCIES
powder powder
pry pry
rack-livereload rack-livereload
rails (= 4.0.12) rails (= 4.0.13)
rb-fsevent rb-fsevent
rspec-rails (= 2.14.2) rspec-rails (= 2.14.2)
sass-rails sass-rails
+5 -1
View File
@@ -76,7 +76,11 @@ class User < ActiveRecord::Base
def assign_user_id def assign_user_id
unless @skip_user_id_assign.present? || self.user_id.present? unless @skip_user_id_assign.present? || self.user_id.present?
user = User.order("user_id").last user = User.order("user_id").last
uid = user.user_id.to_i + 1 if user && user.user_id && !(User.exists?(:user_id => "#{user.user_id.to_i + 1}")) uid = if user && user.user_id && !(User.exists?(:user_id => "#{user.user_id.to_i + 1}"))
user.user_id.to_i + 1
else
1
end
self.user_id = uid.to_s if uid self.user_id = uid.to_s if uid
end end
end end
+1 -1
View File
@@ -1,6 +1,6 @@
<footer> <footer>
<p align="center"> <p align="center">
&copy; The Open Web Application Security Project - OWASP, 2013 &copy; The Open Web Application Security Project - OWASP, 2015
</p> </p>
</footer> </footer>
+2 -2
View File
@@ -18,8 +18,8 @@ Railsgoat::Application.configure do
# Raise exceptions instead of rendering exception templates. # Raise exceptions instead of rendering exception templates.
config.action_dispatch.show_exceptions = false config.action_dispatch.show_exceptions = false
# Disable request forgery protection in test environment. # Disable request forgery protection in test environment
config.action_controller.allow_forgery_protection = false config.action_controller.allow_forgery_protection = true
# Tell Action Mailer not to deliver emails to the real world. # Tell Action Mailer not to deliver emails to the real world.
# The :test delivery method accumulates sent emails in the # The :test delivery method accumulates sent emails in the
-1606
View File
File diff suppressed because it is too large Load Diff
+3 -3
View File
@@ -5,14 +5,14 @@ class UserFixture
end end
def self.normal_user def self.normal_user
password = 'aoeuaoeu' password = 'thi$ 1s cOmplExEr'
user = User.new(:first_name => 'Joe', :last_name => 'Schmoe', user = User.new(:first_name => 'Joe', :last_name => 'Schmoe',
:email => 'joe@schmoe.com', :password => password, :password_confirmation => password) :email => 'joe@schmoe.com', :password => password, :password_confirmation => password)
def user.clear_password def user.clear_password
'aoeuaoeu' 'thi$ 1s cOmplExEr'
end end
user.build_benefits_data user.build_benefits_data
user.save! user.save!
user user
end end
end end