lib/dockerfile-rails/scanner.rb in dockerfile-rails-0.4.5 vs lib/dockerfile-rails/scanner.rb in dockerfile-rails-0.4.6

- old
+ new

@@ -11,10 +11,12 @@ @sqlite3 = true elsif database == 'postgresql' @postgresql = true elsif database == 'mysql' or database == 'mysql2' @mysql = true + elsif database == 'sqlserver' + @sqlserver = true end ### ruby gems ### @gemfile = [] @@ -27,10 +29,13 @@ if File.exist? 'Gemfile' begin gemfile_definition = Bundler::Definition.build('Gemfile', nil, []) @gemfile += gemfile_definition.dependencies.map(&:name) - @git = !gemfile_definition.spec_git_paths.empty? + + unless ENV['RAILS_ENV'] == 'test' + @git = !gemfile_definition.spec_git_paths.empty? + end rescue => error STDERR.puts error.message end end