diff --git a/Gemfile b/Gemfile index 3e77cb9..445cdf9 100644 --- a/Gemfile +++ b/Gemfile @@ -8,6 +8,16 @@ gem 'rails', '3.2.13' gem 'sqlite3' gem 'foreman' + +group :development do + gem 'brakeman' + gem 'guard-brakeman' + gem 'rb-fsevent' + gem 'guard-shell' + gem 'bundler-audit' +end + + # Gems used only for assets and not required # in production environments by default. group :assets do @@ -20,6 +30,7 @@ group :assets do gem 'uglifier', '>= 1.0.3' end + gem 'jquery-rails' # To use ActiveModel has_secure_password diff --git a/Gemfile.lock b/Gemfile.lock index 45e2f2f..921ee6c 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -29,7 +29,21 @@ GEM i18n (= 0.6.1) multi_json (~> 1.0) arel (3.0.2) + brakeman (1.9.5) + erubis (~> 2.6) + fastercsv (~> 1.5) + haml (>= 3.0, < 5.0) + highline (~> 1.6) + multi_json (~> 1.2) + ruby2ruby (= 2.0.3) + ruby_parser (~> 3.1.1) + sass (~> 3.0) + slim (~> 1.3.6) + terminal-table (~> 1.4) builder (3.0.4) + bundler-audit (0.1.2) + bundler (~> 1.2) + coderay (1.0.9) coffee-rails (3.2.2) coffee-script (>= 2.2.0) railties (~> 3.2.0) @@ -40,9 +54,25 @@ GEM erubis (2.7.0) execjs (1.4.0) multi_json (~> 1.0) + fastercsv (1.5.5) foreman (0.62.0) thor (>= 0.13.6) - hike (1.2.1) + formatador (0.2.4) + guard (1.7.0) + formatador (>= 0.2.4) + listen (>= 0.6.0) + lumberjack (>= 1.0.2) + pry (>= 0.9.10) + thor (>= 0.14.6) + guard-brakeman (0.6.3) + brakeman (>= 1.8.2) + guard (>= 1.1.0) + guard-shell (0.5.1) + guard (>= 1.1.0) + haml (4.0.2) + tilt + highline (1.6.16) + hike (1.2.2) i18n (0.6.1) journey (1.0.4) jquery-rails (2.2.1) @@ -50,13 +80,20 @@ GEM thor (>= 0.14, < 2.0) json (1.7.7) kgio (2.8.0) + listen (0.7.3) + lumberjack (1.0.3) mail (2.5.3) i18n (>= 0.4.0) mime-types (~> 1.16) treetop (~> 1.4.8) - mime-types (1.21) - multi_json (1.7.1) + method_source (0.8.1) + mime-types (1.22) + multi_json (1.7.2) polyglot (0.3.3) + pry (0.9.12) + coderay (~> 1.0.5) + method_source (~> 0.8) + slop (~> 3.4) rack (1.4.5) rack-cache (1.2) rack (>= 0.4) @@ -80,27 +117,40 @@ GEM rdoc (~> 3.4) thor (>= 0.14.6, < 2.0) raindrops (0.10.0) - rake (10.0.3) + rake (10.0.4) + rb-fsevent (0.9.3) rdoc (3.12.2) json (~> 1.4) + ruby2ruby (2.0.3) + ruby_parser (~> 3.1) + sexp_processor (~> 4.0) + ruby_parser (3.1.3) + sexp_processor (~> 4.1) sass (3.2.7) sass-rails (3.2.6) railties (~> 3.2.0) sass (>= 3.1.10) tilt (~> 1.3) + sexp_processor (4.2.1) + slim (1.3.8) + temple (~> 0.6.3) + tilt (~> 1.3.3) + slop (3.4.4) sprockets (2.2.2) hike (~> 1.2) multi_json (~> 1.0) rack (~> 1.0) tilt (~> 1.1, != 1.3.0) sqlite3 (1.3.7) - thor (0.17.0) - tilt (1.3.6) + temple (0.6.3) + terminal-table (1.4.5) + thor (0.18.1) + tilt (1.3.7) treetop (1.4.12) polyglot polyglot (>= 0.3.1) tzinfo (0.3.37) - uglifier (1.3.0) + uglifier (2.0.1) execjs (>= 0.3.0) multi_json (~> 1.0, >= 1.0.2) unicorn (4.6.2) @@ -112,10 +162,15 @@ PLATFORMS ruby DEPENDENCIES + brakeman + bundler-audit coffee-rails (~> 3.2.1) foreman + guard-brakeman + guard-shell jquery-rails rails (= 3.2.13) + rb-fsevent sass-rails (~> 3.2.3) sqlite3 uglifier (>= 1.0.3) diff --git a/Guardfile b/Guardfile new file mode 100644 index 0000000..8cc9be1 --- /dev/null +++ b/Guardfile @@ -0,0 +1,13 @@ +# A sample Guardfile +# More info at https://github.com/guard/guard#readme + +guard 'brakeman', :run_on_start => true do + watch(%r{^app/.+\.(erb|haml|rhtml|rb)$}) + watch(%r{^config/.+\.rb$}) + watch(%r{^lib/.+\.rb$}) + watch('Gemfile') +end + +guard :shell do + watch(%r{^Gemfile|Gemfile.lock$}) { system("bundle-audit")} +end \ No newline at end of file