Skip to content

Commit

Permalink
Version 2.0 (#73)
Browse files Browse the repository at this point in the history
  • Loading branch information
epistrephein authored Apr 18, 2020
1 parent 1f095ea commit 46cb385
Show file tree
Hide file tree
Showing 66 changed files with 2,648 additions and 586 deletions.
2 changes: 1 addition & 1 deletion .env.dev
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
RACK_ENV=development
PORT=4567
REDIS_URL=redis://localhost:6379
REDIS_URL=redis://localhost:6379/0
3 changes: 0 additions & 3 deletions .env.test

This file was deleted.

4 changes: 4 additions & 0 deletions .github/CODEOWNERS
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
# These owners will be the default owners for everything in the repo.
# Unless a later match takes precedence, they will be requested for review
# when someone opens a pull request.
* @epistrephein
25 changes: 25 additions & 0 deletions .github/ISSUE_TEMPLATE/BUG_REPORT.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
---
name: Bug report
about: Report something that isn't working as expected.
labels: bug
assignees: epistrephein

---

## Bug description
A clear and concise description of what the bug is, what you expected to happen and what happened instead.

## Steps to reproduce
1. Instantiate object...
2. Call method...
3. Error is raised...

## Environment
- Ruby version:
- OS and version:

## Logs
If applicable, add logs or screenshots to help explain your problem.

## Additional context
Add any other context about the problem here.
19 changes: 19 additions & 0 deletions .github/ISSUE_TEMPLATE/FEATURE_REQUEST.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
---
name: Feature request
about: Suggest an idea for this project.
labels: feature
assignees: epistrephein

---

## Feature description
A clear and concise description of what problem you're trying to solve and what you'd want to happen.

## Possible implementations
If possible, suggest a way to add this feature.

## Alternatives considered
A description of any alternative solutions or features you've considered.

## Additional context
Add any other context about the feature here.
22 changes: 22 additions & 0 deletions .github/PULL_REQUEST_TEMPLATE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
## Pull Request description
A clear and concise explanation of what changes your PR introduces and why this was needed.

## Pull Request checklist

###### Kind of change
- [ ] My code is a **minor change** (typo, configuration, anything not related to core functionality)
- [ ] My code is a **bug fix** (non-breaking change which fixes an issue)
- [ ] My code is a **new feature** (non-breaking change which adds functionality)
- [ ] My code introduces a **breaking change** (fix or feature that would break existing functionality)

###### Style and tests
- [ ] My code follows the code style of this project
- [ ] I have added tests to cover my changes
- [ ] All new and existing tests passed

###### Documentation
- [ ] My changes require a change to the documentation
- [ ] I have updated the documentation accordingly

###### Changelog
- [ ] I have included the CHANGELOG entry for the changes
64 changes: 34 additions & 30 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,45 +1,49 @@
*.gem
*.rbc
# Environment normalization
/.bundle
/.config
/coverage/
/InstalledFiles
/pkg/
/test/tmp/
/test/version_tmp/
/tmp/

## Version specifiers:
.ruby-version
.ruby-gemset
/vendor/bundle
/lib/bundler/man

## Environment normalization:
/.bundle/
/lib/bundler/man/
# Gems
*.gem
/pkg

## RSpec:
/spec/reports/
/spec/examples.txt
# RSpec
.rspec_status
/spec/reports
/spec/examples.txt
/coverage

## Documentation cache:
/.yardoc/
/_yardoc/
/doc/
/rdoc/

## Sass:
.sass-cache/
# Documentation cache
/.yardoc
/_yardoc
/doc
/rdoc

## Logs:
# Logs
*.log
*.log.[0-9]*

## Databases:
# Temp
/InstalledFiles
/test/tmp
/test/version_tmp
/tmp

# Databases
*.sqlite
*.db

## Redis:
# Redis
*.rdb

## RVM:
# Pry/Byebug
.pryrc
.pry_history
.byebug_history

# RVM
.rvmrc

# RuboCop
.rubocop-https?--*
5 changes: 5 additions & 0 deletions .hound.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
fail_on_violations: true

rubocop:
config_file: .rubocop.yml
version: 0.80.0
2 changes: 1 addition & 1 deletion .rerun
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
--no-notify
--pattern '{app.rb,helpers/**/*.rb,models/**/*.rb,routes/**/*.rb}'
--pattern '{app.rb,views/**/*.erb}'
3 changes: 0 additions & 3 deletions .rspec
Original file line number Diff line number Diff line change
@@ -1,4 +1 @@
--color
--format documentation
--order random
--require spec_helper
125 changes: 125 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,125 @@
AllCops:
DisplayCopNames: true
DisplayStyleGuide: true
TargetRubyVersion: 2.3

# Check the indentation of the first argument in a method call.
Layout/FirstArgumentIndentation:
EnforcedStyle: consistent

# Check the indentation of the first element in an array literal.
Layout/FirstArrayElementIndentation:
EnforcedStyle: consistent

# Check the indentation of the first key in a hash literal.
Layout/FirstHashElementIndentation:
EnforcedStyle: consistent

# Align the elements of a hash literal if they span more than one line.
Layout/HashAlignment:
EnforcedHashRocketStyle: table
EnforcedColonStyle: table

# Limit lines to 80 characters.
Layout/LineLength:
Enabled: false

# Enforce the indentation of the method name part in method calls that span more than one line.
Layout/MultilineMethodCallIndentation:
Enabled: false

# Check for ambiguous regexp literals in the first argument of a method invocation without parentheses.
Lint/AmbiguousRegexpLiteral:
Enabled: false

# A calculated magnitude based on number of assignments, branches, and conditions.
Metrics/AbcSize:
Enabled: false

# Avoid long blocks with many lines.
Metrics/BlockLength:
Enabled: false

# Avoid excessive block nesting.
Metrics/BlockNesting:
Enabled: false

# Avoid classes longer than 100 lines of code.
Metrics/ClassLength:
Enabled: false

# A complexity metric that is strongly correlated to the number of test cases needed to validate a method.
Metrics/CyclomaticComplexity:
Enabled: false

# Avoid methods longer than 10 lines of code.
Metrics/MethodLength:
Enabled: false

# Avoid modules longer than 100 lines of code.
Metrics/ModuleLength:
Enabled: false

# Avoid parameter lists longer than three or four parameters.
Metrics/ParameterLists:
Enabled: false

# A complexity metric geared towards measuring complexity for a human reader.
Metrics/PerceivedComplexity:
Enabled: false

# Use only ASCII symbols in comments.
Style/AsciiComments:
Enabled: false

# Do not place comments on the same line as certain keywords.
Style/CommentedKeyword:
Enabled: false

# Document classes and non-namespace modules.
Style/Documentation:
Enabled: false

# Put empty method definitions on a single line.
Style/EmptyMethod:
Enabled: false

# Enforce each_key and each_value Hash methods.
Style/HashEachMethods:
Enabled: true

# Enforce the use of transform_keys Hash method.
Style/HashTransformKeys:
Enabled: false

# Enforce the use of transform_values Hash method.
Style/HashTransformValues:
Enabled: true

# Favor modifier if/unless usage when you have a single-line body.
Style/IfUnlessModifier:
Enabled: false

# Add underscores to large numeric literals to improve their readability.
Style/NumericLiterals:
Enabled: false

# Check for the use of predicate or comparison methods for numeric comparisons.
Style/NumericPredicate:
Enabled: false

# Enforce using / or %r around regular expressions.
Style/RegexpLiteral:
Enabled: false

# Use %i for arrays of symbols.
Style/SymbolArray:
Enabled: false

# Favor modifier while/until usage when you have a single-line body.
Style/WhileUntilModifier:
Enabled: false

# Use %w or %W for arrays of words.
Style/WordArray:
Enabled: false
1 change: 1 addition & 0 deletions .ruby-gemset
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
rubies
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2.7.0
17 changes: 7 additions & 10 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,13 @@
sudo: false
---
language: ruby
cache: bundler
before_install: gem install bundler -v '< 2.0'
install: bundle install --with test --without development production
services:
- redis-server
before_script:
- bundle exec rake redis:populate
- bundle exec thin start -R config.ru -e $RACK_ENV &
os: linux
dist: bionic
before_install:
- gem install bundler:2.1.2
- bundle config set without 'development production'
script: bundle exec rspec
rvm:
- 2.3.1
- 2.7.0
branches:
only: master
notifications:
Expand Down
Loading

0 comments on commit 46cb385

Please sign in to comment.