Skip to content

Commit

Permalink
update ashiba to require at least 2.7 as ruby version and add GH Work…
Browse files Browse the repository at this point in the history
…flows (#2)

* update ashiba

* remove package dependency of rubocop versions

* add mfa_required option
  • Loading branch information
pschaumburg authored Apr 12, 2022
1 parent a62811e commit 78fbffa
Show file tree
Hide file tree
Showing 6 changed files with 43 additions and 4 deletions.
7 changes: 7 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
---
version: 2
updates:
- package-ecosystem: "bundler"
directory: "/"
schedule:
interval: "weekly"
7 changes: 7 additions & 0 deletions .github/workflows/rubygem-linting.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
name: rubygem-linting

on: push

jobs:
rubygem-linting:
uses: tecracer-chef/.github/.github/workflows/rubygem-linting.yml@master
17 changes: 17 additions & 0 deletions .github/workflows/rubygem-publish.yml
Original file line number Diff line number Diff line change
@@ -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}}
4 changes: 2 additions & 2 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
7 changes: 5 additions & 2 deletions ashiba.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down

0 comments on commit 78fbffa

Please sign in to comment.