Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
bastelfreak committed Aug 16, 2021
0 parents commit 04879bd
Show file tree
Hide file tree
Showing 9 changed files with 806 additions and 0 deletions.
8 changes: 8 additions & 0 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
version: 2
updates:
- package-ecosystem: bundler
directory: "/"
schedule:
interval: daily
time: "13:00"
open-pull-requests-limit: 10
32 changes: 32 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Release

on:
push:
tags:
- '*'

jobs:
release:
runs-on: ubuntu-latest
if: github.repository_owner == 'voxpupuli'
steps:
- uses: actions/checkout@v2
- name: Install Ruby 3.0
uses: ruby/setup-ruby@v1
with:
ruby-version: '3.0'
env:
BUNDLE_WITHOUT: release
- name: Build gem
run: gem build *.gemspec
- name: Publish gem to rubygems.org
run: gem push *.gem
env:
GEM_HOST_API_KEY: '${{ secrets.RUBYGEMS_AUTH_TOKEN }}'
- name: Setup GitHub packages access
run: |
mkdir -p ~/.gem
echo ":github: Bearer ${{ secrets.GITHUB_TOKEN }}" >> ~/.gem/credentials
chmod 0600 ~/.gem/credentials
- name: Publish gem to GitHub packages
run: gem push --key github --host https://rubygems.pkg.github.com/voxpupuli *.gem
30 changes: 30 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: Test

on:
- pull_request
- push

env:
BUNDLE_WITHOUT: release

jobs:
test:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- ruby: "2.4"
- ruby: "2.5"
- ruby: "2.6"
- ruby: "2.7"
- ruby: "3.0"
steps:
- uses: actions/checkout@v2
- name: Install Ruby ${{ matrix.ruby }}
uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- name: Build the gem
run: gem build *.gemspec
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.vendor/
Gemfile.lock
.bundle/
7 changes: 7 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
source 'https://rubygems.org'

gemspec

group :release do
gem 'github_changelog_generator', '>= 1.16.4', :require => false
end
661 changes: 661 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
# voxpupuli-puppet-lint-plugins gem

[![License](https://img.shields.io/github/license/voxpupuli/voxpupuli-puppet-lint-plugins.svg)](https://github.com/voxpupuli/voxpupuli-puppet-lint-plugins/blob/master/LICENSE)
[![Test](https://github.com/voxpupuli/voxpupuli-puppet-lint-plugins/actions/workflows/test.yml/badge.svg)](https://github.com/voxpupuli/voxpupuli-puppet-lint-plugins/actions/workflows/test.yml)
[![Release](https://github.com/voxpupuli/voxpupuli-puppet-lint-plugins/actions/workflows/release.yml/badge.svg)](https://github.com/voxpupuli/voxpupuli-puppet-lint-plugins/actions/workflows/release.yml)
[![RubyGem Version](https://img.shields.io/gem/v/voxpupuli-puppet-lint-plugins.svg)](https://rubygems.org/gems/voxpupuli-puppet-lint-plugins)
[![RubyGem Downloads](https://img.shields.io/gem/dt/voxpupuli-puppet-lint-plugins.svg)](https://rubygems.org/gems/voxpupuli-puppet-lint-plugins)

This is a tiny helper gem that pulls in various puppet-lint plugins that are
used by [Vox Pupuli](http://voxpupuli.org/) modules. This was previously handled
by the voxpupuli-test gem. We decoupled it to allow an easy integration into
PDK-style modules.
19 changes: 19 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
require 'rspec/core/rake_task'

RSpec::Core::RakeTask.new(:spec)

task :default => :spec

begin
require 'rubygems'
require 'github_changelog_generator/task'
rescue LoadError
else
GitHubChangelogGenerator::RakeTask.new :changelog do |config|
config.exclude_labels = %w{duplicate question invalid wontfix wont-fix skip-changelog}
config.user = 'voxpupuli'
config.project = 'voxpupuli-puppet-lint-plugins'
gem_version = Gem::Specification.load("#{config.project}.gemspec").version
config.future_release = gem_version
end
end
34 changes: 34 additions & 0 deletions voxpupuli-puppet-lint-plugins.gemspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# -*- encoding: utf-8 -*-

Gem::Specification.new do |s|
s.name = 'voxpupuli-puppet-lint-plugins'
s.version = '1.0.0'
s.authors = ['Vox Pupuli']
s.email = ['pmc@voxpupuli.org']
s.homepage = 'https://github.com/voxpupuli/voxpupuli-puppet-lint-plugins'
s.summary = 'Helper Gem that pulls in all the puppet-lint plugins that Vox Pupuli uses'
s.description = 'A package that depends on all the puppet-lint-* gems Vox Pupuli modules need and puppet-lint itself'
s.licenses = 'AGPL-3'


# some of the plugins claim to require Ruby 2.4.0 or newer
s.required_ruby_version = '>= 2.4.0'

# pull in puppet-lint 2.5.0; required for Ruby 3 support
s.add_runtime_dependency 'puppet-lint', '>= 2.5.0'
s.add_runtime_dependency 'puppet-lint-absolute_classname-check', '>= 2.0.0'
s.add_runtime_dependency 'puppet-lint-anchor-check'
s.add_runtime_dependency 'puppet-lint-classes_and_types_beginning_with_digits-check'
s.add_runtime_dependency 'puppet-lint-leading_zero-check'
s.add_runtime_dependency 'puppet-lint-legacy_facts-check'
s.add_runtime_dependency 'puppet-lint-topscope-variable-check'
s.add_runtime_dependency 'puppet-lint-trailing_comma-check'
s.add_runtime_dependency 'puppet-lint-unquoted_string-check'
s.add_runtime_dependency 'puppet-lint-variable_contains_upcase'
s.add_runtime_dependency 'puppet-lint-version_comparison-check'
s.add_runtime_dependency 'puppet-lint-resource_reference_syntax'
s.add_runtime_dependency 'puppet-lint-manifest_whitespace-check'
s.add_runtime_dependency 'puppet-lint-file_ensure-check'
s.add_runtime_dependency 'puppet-lint-strict_indent-check'
s.add_runtime_dependency 'puppet-lint-optional_default-check'
end

0 comments on commit 04879bd

Please sign in to comment.