Skip to content

Commit

Permalink
improve code readability and update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
dorianmariecom committed Sep 6, 2024
1 parent fba60ad commit f10a31e
Show file tree
Hide file tree
Showing 3 changed files with 11 additions and 5 deletions.
10 changes: 7 additions & 3 deletions bin/rspec
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,15 @@ ENV["BUNDLE_GEMFILE"] ||= File.expand_path("../Gemfile", __dir__)
bundle_binstub = File.expand_path("bundle", __dir__)

if File.file?(bundle_binstub)
if File.read(bundle_binstub, 300).include?("This file was generated by Bundler")
if File.read(bundle_binstub, 300).include?(
"This file was generated by Bundler"
)
load(bundle_binstub)
else
abort("Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again.")
abort(
"Your `bin/bundle` was not generated by Bundler, so this binstub cannot run.
Replace `bin/bundle` by running `bundle binstubs bundler --force`, then run this command again."
)
end
end

Expand Down
2 changes: 1 addition & 1 deletion dorian.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ Gem::Specification.new do |s|
s.add_dependency "dorian-to_struct"
s.add_dependency "git"
s.add_dependency "json"
s.add_dependency "ostruct"
s.add_dependency "parallel"
s.add_dependency "yaml"
s.add_dependency "ostruct"

s.metadata = { "rubygems_mfa_required" => "true" }
s.required_ruby_version = ">= 3.3"
Expand Down
4 changes: 3 additions & 1 deletion lib/dorian/bin.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,9 @@ def initialize
alias: :d
},
progress: :boolean,
headers: { default: true },
headers: {
default: true
},
progress_format: {
alias: :pf,
type: :string
Expand Down

0 comments on commit f10a31e

Please sign in to comment.