diff --git a/.github/dependabot.yml b/.github/dependabot.yml new file mode 100644 index 0000000..4f9a4fe --- /dev/null +++ b/.github/dependabot.yml @@ -0,0 +1,7 @@ +--- +version: 2 +updates: + - package-ecosystem: "bundler" + directory: "/" + schedule: + interval: "weekly" diff --git a/.github/workflows/rubygem-linting.yml b/.github/workflows/rubygem-linting.yml new file mode 100644 index 0000000..8e1177c --- /dev/null +++ b/.github/workflows/rubygem-linting.yml @@ -0,0 +1,7 @@ +name: rubygem-linting + +on: push + +jobs: + rubygem-linting: + uses: tecracer-chef/.github/.github/workflows/rubygem-linting.yml@master diff --git a/.github/workflows/rubygem-publish.yml b/.github/workflows/rubygem-publish.yml new file mode 100644 index 0000000..e4d2e37 --- /dev/null +++ b/.github/workflows/rubygem-publish.yml @@ -0,0 +1,17 @@ +--- +name: rubygem-publish + +on: + push: + tags: + - 'v*.*.*' + +jobs: + rubygem-publish: + uses: tecracer-chef/.github/.github/workflows/rubygem-publish.yml@master + secrets: + TR_RUBYGEM_HOST_URL: ${{secrets.TR_RUBYGEM_HOST_URL}} + TR_RUBYGEM_AUTH_TOKEN: ${{secrets.TR_RUBYGEM_AUTH_TOKEN}} + PUBLIC_RUBYGEM_HOST_URL: ${{secrets.PUBLIC_RUBYGEM_HOST_URL}} + PUBLIC_RUBYGEM_AUTH_TOKEN: ${{secrets.PUBLIC_RUBYGEM_AUTH_TOKEN}} + PUBLIC_RUBYGEM_HOST_OTP_SECRET: ${{secrets.PUBLIC_RUBYGEM_HOST_OTP_SECRET}} diff --git a/.rubocop.yml b/.rubocop.yml index 1cb1e2f..9061401 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -2,14 +2,14 @@ require: rubocop-rspec AllCops: - TargetRubyVersion: 2.4 + TargetRubyVersion: 2.7 Exclude: - 'pkg/**/*' - 'Rakefile' - 'tasks/**/*' - 'templates/**/*' -Layout/AlignHash: +Layout/HashAlignment: Exclude: - 'spec/lib/*_spec.rb' Layout/MultilineHashBraceLayout: diff --git a/CHANGELOG.md b/CHANGELOG.md index 68f455c..39be44e 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,11 @@ ## Unreleased +## Version 0.8.0 + +- Update minimum ruby version to 2.7 +- Add GitHub Workflows + ## Version 0.7.0 - Add ability to run commands at the end diff --git a/ashiba.gemspec b/ashiba.gemspec index c79eb07..640036d 100644 --- a/ashiba.gemspec +++ b/ashiba.gemspec @@ -22,10 +22,13 @@ Gem::Specification.new do |spec| spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) } spec.require_paths = ['lib'] + spec.required_ruby_version = '>= 2.7' + spec.metadata = { 'rubygems_mfa_required' => 'true' } + spec.add_development_dependency "bump", "~> 0.9" spec.add_development_dependency 'mdl', '~> 0.4' - spec.add_development_dependency 'rspec', '~> 3.7' - spec.add_development_dependency 'rubocop-rspec', '~> 1.18' + spec.add_development_dependency 'rspec' + spec.add_development_dependency 'rubocop-rspec' spec.add_dependency 'hashie', '~> 3.5' spec.add_dependency 'highline', '~> 1.7'