-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Security Fixes #35
Security Fixes #35
Conversation
@@ -5,8 +5,6 @@ gemspec | |||
group :development, :test do | |||
gem 'pry-byebug' | |||
gem 'rack-test' | |||
gem 'rails' | |||
gem 'rails-api' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't see these referenced anywhere so I removed them. It appears removing these two gems takes care of most of the reported vulnerabilities (they were never real vulnerabilities that could be exploited outside of the dev env).
@@ -15,12 +15,4 @@ RSpec::Core::RakeTask.new(:spec) do |t| | |||
t.pattern = 'spec/ops/**/*_spec.rb' | |||
end | |||
|
|||
desc 'Executes the example tests' | |||
task 'test:examples' do | |||
%w(rails_app_sample sinatra).each do |ex| |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
These sample apps had already been removed so this Rake task didn't work anymore.
$stderr.puts e.message | ||
$stderr.puts 'Run `bundle install` to install missing gems' | ||
$stderr.warn e.message | ||
$stderr.warn 'Run `bundle install` to install missing gems' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Rubocop yelled at me about these.
# pass arguments to test call. This is useful for calling a single test. | ||
bundle exec rspec "$1" | ||
else | ||
bundle exec rake test:examples && bundle exec rspec |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
rake test:examples
is gone.
bundle exec rubocop -D $auto_correct | ||
|
||
if [[ -n "$1" && $1 != "-a" ]]; then |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Shellcheck complained about these.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
you might want to bump a version at the same time
064d2be
to
d41db0e
Compare
[Card](https://rentpath.atlassian.net/browse/SRV-5995) * Remove test:examples Rake task as sample apps have been removed * Remove reference to old Rake task in script/test * Remove rails and rails-api as dependencies * Bump version
d41db0e
to
fe2846e
Compare
Card