Skip to content

Commit

Permalink
Adds rescue to import.
Browse files Browse the repository at this point in the history
- changes active_support requirements
  • Loading branch information
LeFnord committed Oct 22, 2023
1 parent ce9cb07 commit 764c2c8
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 2 additions & 0 deletions bin/grape-starter
Original file line number Diff line number Diff line change
Expand Up @@ -109,6 +109,8 @@ command :import do |c|
created_files = Starter::Import.do_it!(path)

`bundle exec rubocop --only Layout -a #{created_files.join(' ')}`
rescue => e
exit_now! e
end
end

Expand Down
3 changes: 1 addition & 2 deletions lib/starter.rb
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# frozen_string_literal: true

require 'awesome_print'
require 'active_support'
require 'active_support/core_ext/string'
require 'active_support/all'
require 'zeitwerk'

loader = Zeitwerk::Loader.for_gem
Expand Down
2 changes: 1 addition & 1 deletion template/config/boot.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

require 'rubygems'
require 'bundler/setup'
require 'active_support'
require 'active_support/all'

Bundler.require :default, ENV.fetch('RACK_ENV', nil)

Expand Down

0 comments on commit 764c2c8

Please sign in to comment.