Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
Thomas Heinen committed Nov 26, 2020
0 parents commit 9cb2538
Show file tree
Hide file tree
Showing 12 changed files with 175 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
* text=auto eol=lf
27 changes: 27 additions & 0 deletions .github/ISSUE_TEMPLATE/BUG_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
---
name: 🐛 Bug Report
about: If something isn't working as expected 🤔.
labels: "bug"
---

### Gem version
[Version of the gem where you are encountering the issue]

### Rake version
[Version of rake in your environment]

### Platform Details
[Operating system distribution and release version. Cloud provider if running in the cloud]

### Scenario:
[What you are trying to achieve and you can't?]

### Steps to Reproduce:
[If you are filing an issue what are the things we need to do in order to repro your problem? How are you using this gem or any resources it includes?]

### Expected Result:
[What are you expecting to happen as the consequence of above reproduction steps?]

### Actual Result:
[What actually happens after the reproduction steps? Include the error output or a link to a gist if possible.]

18 changes: 18 additions & 0 deletions .github/ISSUE_TEMPLATE/ENHANCEMENT_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
---
name: 🚀 Enhancement Request
about: I have a suggestion (and may want to implement it 🙂)!
labels: "new feature"
---

### Describe the Enhancement:
<!--- What you are trying to achieve that you can't? -->

### Describe the Need:
<!--- What kind of user do you believe would utilize this enhancement, and how many users might want this functionality -->

### Current Alternative
<!--- Is there a current alternative that you can utilize to workaround the lack of this enhancement -->

### Can We Help You Implement This?:
<!--- The best way to ensure your enhancement is built is to help implement the enhancement yourself. If you're interested in helping out we'd love to give you a hand to make this possible. Let us know if there's something you need. -->

12 changes: 12 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
### Description

[Describe what this change achieves]

### Issues Resolved

[List any existing issues this PR resolves]

### Check List

- [ ] New functionality has been documented in the README if applicable

46 changes: 46 additions & 0 deletions .github/workflows/gempush.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
---
name: Ruby Gem

on:
push:
tags:
- 'v*.*.*'

jobs:
build:
name: Build + Publish
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Ruby 2.6
uses: actions/setup-ruby@v1
with:
ruby-version: 2.6.x

- name: Install necessary gems
run: |
gem install rotp -v 5.1.0 --no-document
- name: prepare credentials
run: |
mkdir -p $HOME/.gem
touch $HOME/.gem/credentials
chmod 0600 $HOME/.gem/credentials
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials
env:
GEM_HOST_API_KEY: ${{secrets.RUBYGEMS_AUTH_TOKEN}}

- name: build gem
run: |
gem build *.gemspec
- name: generateotp
run: echo "::set-env name=OTPTOKEN::$(rotp --secret ${GEM_HOST_OTP_SECRET})"
env:
GEM_HOST_OTP_SECRET: ${{secrets.RUBYGEMS_OTP_SECRET}}

- name: publish
run: |
gem push *.gem --otp ${{ env.OTPTOKEN }}
22 changes: 22 additions & 0 deletions .github/workflows/linting.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
---
name: Linting

on: push

jobs:
lint:
name: Lint code
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Ruby 2.6
uses: actions/setup-ruby@v1
with:
ruby-version: 2.6.x

- name: Install necessary gems
run: bundle install --with=development

- name: Run Markdown Linting
uses: actionshub/markdownlint@master
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.gem
1 change: 1 addition & 0 deletions .mdlrc
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rules "~MD013"
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Changelog

## Version 0.0.1

- Initial version
3 changes: 3 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
source "https://rubygems.org"

gemspec
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# custom_raketasks

## Summary

Placeholder Gem for custom Rake tasks.

## Intention

This gem does not contain any functionality, but is intended
to be overridden by internally-served gems of the same name.

Just deploy your own Rake tasks as `custom_raketasks` on an internal
RubyGems repository and be safe of naming and versioning conflicts
as it will never hit a version 0.1.0 or higher.
25 changes: 25 additions & 0 deletions custom_raketasks.gemspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
Gem::Specification.new do |spec|
spec.name = 'custom_raketasks'
spec.version = '0.0.1'
spec.license = 'Apache-2.0'

spec.summary = 'Placeholder for customer-specific rake tasks'
spec.description = 'No functionality'
spec.authors = ['tecRacer Opensource']
spec.email = ['[email protected]']
spec.homepage = 'https://github.com/tecracer-chef/custom_raketasks'

spec.files = ['README.md']

spec.required_ruby_version = '>= 2.0'

spec.post_install_message = <<~MESSAGE
This is a placeholder for customer-specific Chef Cookstyle rules.
It serves the purpose of allowing internal style rules for Cookstyle
with the same name to keep implementation generic.
If you are seeing this message, you probably have not deployed a
customized raketask gem into your internal RubyGems repository yet.
MESSAGE
end

0 comments on commit 9cb2538

Please sign in to comment.