diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 0a1bda3..3de341f 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -23,5 +23,7 @@ jobs: with: ruby-version: ${{ matrix.ruby }} bundler-cache: true + env: + BUNDLE_WITHOUT: release - name: Run tests run: bundle exec rake spec diff --git a/Gemfile b/Gemfile index fa75df1..841c3ba 100644 --- a/Gemfile +++ b/Gemfile @@ -1,3 +1,7 @@ source 'https://rubygems.org' gemspec + +group :release do + gem 'github_changelog_generator', :require => false +end diff --git a/README.md b/README.md index 78fc286..c87a211 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,12 @@ puppet-lint-file_ensure-check ============================== -[![Build Status](https://img.shields.io/travis/puppet-community/puppet-lint-file_ensure-check.svg)](https://travis-ci.org/puppet-community/puppet-lint-file_ensure-check) -[![Gem Version](https://img.shields.io/gem/v/puppet-lint-file_ensure-check.svg)](https://rubygems.org/gems/puppet-lint-file_ensure-check) -[![Gem Downloads](https://img.shields.io/gem/dt/puppet-lint-file_ensure-check.svg)](https://rubygems.org/gems/puppet-lint-file_ensure-check) -[![Coverage Status](https://img.shields.io/coveralls/puppet-community/puppet-lint-file_ensure-check.svg)](https://coveralls.io/r/puppet-community/puppet-lint-file_ensure-check?branch=master) -[![Gemnasium](https://img.shields.io/gemnasium/puppet-community/puppet-lint-file_ensure-check.svg)](https://gemnasium.com/puppet-community/puppet-lint-file_ensure-check) +[![License](https://img.shields.io/github/license/voxpupuli/puppet-lint-file_ensure-check.svg)](/~https://github.com/voxpupuli/puppet-lint-file_ensure-check/blob/master/LICENSE) +[![Test](/~https://github.com/voxpupuli/puppet-lint-file_ensure-check/actions/workflows/test.yml/badge.svg)](/~https://github.com/voxpupuli/puppet-lint-file_ensure-check/actions/workflows/test.yml) +[![Release](/~https://github.com/voxpupuli/puppet-lint-file_ensure-check/actions/workflows/release.yml/badge.svg)](/~https://github.com/voxpupuli/puppet-lint-file_ensure-check/actions/workflows/release.ym +l) +[![RubyGem Version](https://img.shields.io/gem/v/puppet-lint-file_ensure-check.svg)](https://rubygems.org/gems/puppet-lint-file_ensure-check) +[![RubyGem Downloads](https://img.shields.io/gem/dt/puppet-lint-file_ensure-check.svg)](https://rubygems.org/gems/puppet-lint-file_ensure-check) [![Donated by Camptocamp](https://img.shields.io/badge/donated%20by-camptocamp-fb7047.svg)](#transfer-notice) A puppet-lint plugin to check the ensure attribute on file resources. @@ -68,3 +69,17 @@ The maintainer preferred that Puppet Community take ownership of the module for Existing pull requests and issues were transferred over, please fork and continue to contribute here instead of Camptocamp. Previously: /~https://github.com/camptocamp/puppet-lint-file_ensure-check + +## License + +This gem is licensed under the Apache-2 license. + +## Release information + +To make a new release, please do: +* update the version in the gemspec file +* Install gems with `bundle install --with release --path .vendor` +* generate the changelog with `bundle exec rake changelog` +* Check if the new version matches the closed issues/PRs in the changelog +* Create a PR with it +* After it got merged, push a tag. GitHub actions will do the actual release to rubygems and GitHub Packages diff --git a/puppet-lint-file_ensure-check.gemspec b/puppet-lint-file_ensure-check.gemspec index 6a5cf13..d5e50b7 100644 --- a/puppet-lint-file_ensure-check.gemspec +++ b/puppet-lint-file_ensure-check.gemspec @@ -1,10 +1,10 @@ Gem::Specification.new do |spec| spec.name = 'puppet-lint-file_ensure-check' spec.version = '0.3.1' - spec.homepage = '/~https://github.com/puppet-community/puppet-lint-file_ensure-check' + spec.homepage = '/~https://github.com/voxpupuli/puppet-lint-file_ensure-check' spec.license = 'Apache-2.0' - spec.author = 'Puppet Community' - spec.email = 'raphael.pinson@camptocamp.com' + spec.author = 'Vox Pupuli' + spec.email = 'voxpupuli@groups.io' spec.files = Dir[ 'README.md', 'LICENSE', @@ -21,7 +21,7 @@ Gem::Specification.new do |spec| spec.add_development_dependency 'rspec', '~> 3.0' spec.add_development_dependency 'rspec-its', '~> 1.0' spec.add_development_dependency 'rspec-collection_matchers', '~> 1.0' - spec.add_development_dependency 'mime-types', '~> 1.0' # 2.x dropped Ruby 1.8 support - spec.add_development_dependency 'coveralls', '~> 0.7' unless RUBY_VERSION =~ /^1\.8/ + spec.add_development_dependency 'mime-types' + spec.add_development_dependency 'simplecov' spec.add_development_dependency 'rake' end diff --git a/spec/spec_helper.rb b/spec/spec_helper.rb index b8210a7..4aa9e69 100644 --- a/spec/spec_helper.rb +++ b/spec/spec_helper.rb @@ -1,8 +1,3 @@ -unless RUBY_VERSION =~ /^1\.8/ - require 'coveralls' - Coveralls.wear! -end - require 'puppet-lint' PuppetLint::Plugins.load_spec_helper