diff --git a/.codeclimate.yml b/.codeclimate.yml deleted file mode 100644 index 7d060c3..0000000 --- a/.codeclimate.yml +++ /dev/null @@ -1,34 +0,0 @@ ---- -engines: - brakeman: - enabled: false - bundler-audit: - enabled: true - duplication: - enabled: true - config: - languages: - - ruby - fixme: - enabled: true - git-legal: - # Looks like there needs to be a subscription to Git Legal Pro for this - # config to be effective, so for now, leave this engine off, and depend - # on the integration directly with Git Legal on pull requests. - enabled: false - config: - # For the resume gem itself - allow_unknown_libraries: true - license_whitelist: ["GNU General Public License 3.0"] - rubocop: - # 20190209 NOTE: The version of Rubocop on Code Climate currently only - # supports up to Ruby 2.5, while current Rubocop is up to 2.6, so for now, - # disable old Rubocop on Code Climate. - enabled: false -ratings: - paths: - - "Gemfile.lock" - - "*.gemspec" - - "**.rb" -exclude_paths: -- "spec/**/*" diff --git a/.gitignore b/.gitignore index b3837ea..26de5b5 100644 --- a/.gitignore +++ b/.gitignore @@ -1,4 +1,5 @@ coverage/ +doc/ .DS_Store *.pdf strings_*.rb diff --git a/.rubocop.yml b/.rubocop.yml index 83c047c..7a43a89 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -55,8 +55,7 @@ Metrics/BlockLength: - "configure" - "context" - "describe" - # NOTE: Re-enable this when Code Climate Rubocop version updates - # - "new" + - "new" Metrics/MethodLength: Max: 16 diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index f1efe7b..0000000 --- a/.travis.yml +++ /dev/null @@ -1,43 +0,0 @@ -# References: -# - https://docs.travis-ci.com/user/caching/#Bundler -dist: focal -os: linux -language: ruby -cache: bundler -rvm: - - 3.2.2 -addons: - code_climate: - repo_token: $CODECLIMATE_REPO_TOKEN -before_install: - # Prevent issues like the following happening: - # https://github.com/sickill/rainbow/issues/44 - - gem update --system - - gem install i18n rspec bundler -before_script: - - curl -L https://codeclimate.com/downloads/test-reporter/test-reporter-latest-linux-amd64 > ./cc-test-reporter - - chmod +x ./cc-test-reporter - - ./cc-test-reporter before-build -script: - # Ensure gem dependencies do not have known vulnerabilities - - bin/bundle-audit check --update - # Run tests - - bin/rspec spec/ --no-drb --format progress - # Check for any code reeks - - bin/reek - # Check for any code style violations - - bin/rubocop --display-cop-names - # NOTE: The 'no's below indicate not wanting to get CI to attempt to open - # the generated PDF - # Agree to installing prawn and prawn-table gems - - printf "yes\nno\n" | bin/resume - - bin/resume -l it <<< "no\n" - # Agree to installing rubyzip and downloading custom font - - printf "yes\nno\n" | bin/resume -l ja - - bin/rake resume - - ruby resume.rb <<< "no\n" - - ruby resume.rb -l it <<< "no\n" - - ruby resume.rb -l ja <<< "no\n" -after_script: - # Send results to Code Climate - - ./cc-test-reporter after-build --exit-code $TRAVIS_TEST_RESULT diff --git a/README.md b/README.md index 40f4cb8..c98c02a 100644 --- a/README.md +++ b/README.md @@ -1,19 +1,6 @@ # Resume - - Build Status - - - Code Climate - - - Documentation Status - - - Known Vulnerabilities - -
-
+[![Build Status][Build Status image]][Build Status url] This is a [Ruby][] command line interface (CLI) application that generates my resume. I made it in order to teach myself a bit about the Ruby [PDF][] @@ -139,6 +126,8 @@ bin/rake resume:delete_assets [this StackOverflow thread][stackoverflow-transparent-link]. [Base64]: http://ruby-doc.org/stdlib-2.3.0/libdoc/base64/rdoc/Base64.html +[Build Status image]: https://github.com/paulfioravanti/resume/actions/workflows/ci.yml/badge.svg +[Build Status url]: https://github.com/paulfioravanti/resume/actions/workflows/ci.yml [i18n]: https://github.com/ruby-i18n/i18n [JSON]: https://en.wikipedia.org/wiki/JSON [PDF]: https://en.wikipedia.org/wiki/PDF diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index 49e31d4..03dd305 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -22,7 +22,7 @@ module Resume require "prawn/table" # Grab the resume background image. This serves two purposes: # 1. Grabs the biggest image and puts it in the tmp directory - # if it"s not already there + # if it's not already there # 2. Tests out network connection # If the file is fetched locally, chances are high that the # resume has already been generated once and there won"t be