diff --git a/.yardopts b/.yardopts index 841e11a47..1613ffa06 100644 --- a/.yardopts +++ b/.yardopts @@ -1 +1 @@ ---no-private --output-dir docs lib/**/*.rb --markup-provider=redcarpet --markup=markdown - README.md +--no-private --markup-provider=redcarpet --markup=markdown lib/**/*.rb - README.md diff --git a/sidekiq-unique-jobs.gemspec b/sidekiq-unique-jobs.gemspec index 4522c8859..b3f01e774 100644 --- a/sidekiq-unique-jobs.gemspec +++ b/sidekiq-unique-jobs.gemspec @@ -1,6 +1,6 @@ # frozen_string_literal: true -lib = File.expand_path("lib", __FILE__) +lib = File.expand_path("lib", __dir__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require "sidekiq_unique_jobs/version" diff --git a/update_docs.sh b/update_docs.sh index b31929d7b..ed528bf04 100755 --- a/update_docs.sh +++ b/update_docs.sh @@ -15,7 +15,7 @@ rake yard git checkout gh-pages -if [[ "$(git branch | grep \* | cut -d ' ' -f2)" != "gh-pages" ]]; then +if [[ "$(git branch | grep \* | cut -d ' ' -f2)" != "gh-pages" ]]; then git checkout -b gh-pages fi; @@ -28,7 +28,7 @@ mv doc/* ./ echo "Sending new documentation to github" git add --all git commit -a -m 'Update documentation' -git push --force +git push --set-upstream origin gh-pages --force if [[ $stash_created == 1 ]]; then git stash pop