Skip to content

Commit

Permalink
Sync development files.
Browse files Browse the repository at this point in the history
  • Loading branch information
envygeeks committed Nov 13, 2018
1 parent fcb16d4 commit f24ac1f
Show file tree
Hide file tree
Showing 8 changed files with 60 additions and 72 deletions.
18 changes: 1 addition & 17 deletions .codeclimate.yml
@@ -1,23 +1,7 @@
version: "2"
plugins:
# --
# 😞
# @see https://github.com/seattlerb/ruby_parser/issues/255
# This can break on some Regexps.
# So it's disabled.
# --
duplication:
enabled: false
rubocop:
# --
# 🤨
# We must set the default version we want.
# Sometimes CodeClimate lags.
# --
channel: rubocop-0-52
enabled: true
config:
file: .rubocop.yml
enabled: false
ratings:
paths:
- "spec/tests/**.rb"
Expand Down
27 changes: 19 additions & 8 deletions .github/issue_template.md → .github/ISSUE_TEMPLATE/bug_report.md
@@ -1,22 +1,33 @@
---
name: Bug Report
about: Report an Issue!
---

<!--
If this is a security related bug, please email the maintainer of this
repository (found via `CODEOWNERS`) and let them know in private... all
security issues are handled promptly and quickly, however an early
release could severely impact people.
If this is a security related bug, please email the maintainer of
this repository (found via `security`) and let them know in private...
all security issues are handled promptly, and quickly, however an
early release could severely impact people.
-->

- [ ] I tried updating to the latest version.
- [ ] I can't, there is an issue.
- [ ] I tried updating to the latest version
- [ ] I can't, there is an issue
- [ ] This is about an < latest
- [ ] I understand older versions may be unsupported
- [ ] I Am on Windows
- [ ] Ubuntu Bash on Windows
- [ ] Fedora Bash on Windows
- [ ] Other Bash on Windows
- [ ] I Am on Linux
- [ ] Ubuntu
- [ ] Fedora
- [ ] I Am on macOS
- [ ] CentOS
- [ ] Redhat
- [ ] Debian
- [ ] I am on macOS 10.13
- [ ] I am on macOS 10.14
- [ ] I'm on Docker
- [ ] I understand Docker may be unsupported.
- [ ] I understand Docker may be unsupported

## Description

Expand Down
22 changes: 22 additions & 0 deletions .github/ISSUE_TEMPLATE/feature_request.md
@@ -0,0 +1,22 @@
---
name: Feature Request
about: Suggest an Idea!
---

- [ ] This feature is not on the latest version

## Request

<!--
Replace this with a description of what you would like,
make sure to include as much detail as you can so that your
feature can be implemented quickly if accepted.
-->

## Examples

```sh
# Your example
# Maybe multiple
# Examples?
```
1 change: 1 addition & 0 deletions .github/security
@@ -0,0 +1 @@
* @envygeeks
35 changes: 3 additions & 32 deletions Rakefile
Expand Up @@ -4,38 +4,9 @@
# Author: Jordon Bedwell
# Encoding: utf-8

# --
# 🔖
# RSpec, MiniTest, Whatever.
# --
task :spec do
exec "script/test"
end
# --
# 🔖
# RSpec, MiniTest, Whatever.
# --
task :test do
exec "script/test"
end
# --
# 🔖
# @see .rubocop.yml
# Rubocop.
# --
task :rubocop do
exec "script/lint"
end
# --
# 🔖
# @see .rubocop.yml
# Rubocop.
# --
task :lint do
exec "script/lint"
end

# --
task default: [:spec]
task(:spec) { exec "script/test" }
task(:test) { exec "script/test" }
Dir.glob("script/rake.d/*.rake").each do |v|
load v
end
7 changes: 5 additions & 2 deletions script/install
Expand Up @@ -7,8 +7,11 @@ set -e

f=script/script.d/install
[ "$SKIP_SCRIPTD" != "true" ] && [ -x $f ] && exec $f "$@"
if bundle check 1>/dev/null 2>&1; then bundle update
else bundle install --path vendor/bundle
if bundle check 1>/dev/null 2>&1; then
bundle update
else
bundle install --path \
vendor/bundle
fi

bundle clean
Expand Down
2 changes: 1 addition & 1 deletion script/sync
Expand Up @@ -22,7 +22,7 @@ trim() {
# Determine what we are working with.
# --

skip_if_exists=(Gemfile)
skip_if_exists=(Gemfile .travis.yml)
sync_language=$(git config envygeeks.language || echo "")
skip_if_external=(CONTRIBUTING.md CODE_OF_CONDUCT.md .github/codeowners)
skip_if_external+=(.github/issue_template.md .github/pull_request_template.md)
Expand Down
20 changes: 8 additions & 12 deletions script/test
Expand Up @@ -26,15 +26,11 @@ hasGem() {
# having to do excessive customization of the CI.
# --
f=script/script.d/test
if [ "$LINTING" != "true" ]; then
[ "$SKIP_SCRIPTD" != "true" ] && [ -x $f ] && exec $f "$@"
hasGem "minitest" && [ $# -gt 0 ] && exec ruby -rminitest/autorun "$@"
hasGem "minitest" && exec ruby -rminitest/autorun test/**/*_{test,spec}.rb
hasGem "rspec" && exec bundle exec rspec "$@"
hasGem "rspec-rails" && exec bundle exec rspec "$@"
[ -x bin/rails ] && exec bin/rails test "$@"
[ $# -gt 0 ] && exec ruby -Itest "$@"
exec ruby -Itest test/**/*_test.rb
else
script/lint "$@"
fi
[ "$SKIP_SCRIPTD" != "true" ] && [ -x $f ] && exec $f "$@"
hasGem "minitest" && [ $# -gt 0 ] && exec ruby -rminitest/autorun "$@"
hasGem "minitest" && exec ruby -rminitest/autorun test/**/*_{test,spec}.rb
hasGem "rspec" && exec bundle exec rspec "$@"
hasGem "rspec-rails" && exec bundle exec rspec "$@"
[ -x bin/rails ] && exec bin/rails test "$@"
[ $# -gt 0 ] && exec ruby -Itest "$@"
exec ruby -Itest test/**/*_test.rb

0 comments on commit f24ac1f

Please sign in to comment.