Skip to content

Commit

Permalink
Merge pull request collectiveidea#163 from collectiveidea/standard
Browse files Browse the repository at this point in the history
Add standard gem and apply recommendations
  • Loading branch information
danielmorrison authored Jan 29, 2019
2 parents ec707ef + 7ced935 commit 3a8656b
Show file tree
Hide file tree
Showing 9 changed files with 364 additions and 292 deletions.
4 changes: 4 additions & 0 deletions .standard.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
ruby_version: 2.3.0
ignore:
- 'spec/**/*':
- Lint/AmbiguousBlockAssociation
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,4 +32,4 @@ rvm:
- "2.4"
- "2.5"
- ruby-head
script: bundle exec rspec
script: bundle exec rake
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,8 @@ source "https://rubygems.org"

gemspec

gem "standard"

group :test do
gem "codeclimate-test-reporter", require: false
gem "rspec", "~> 3.7"
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
[![Build Status](https://img.shields.io/travis/collectiveidea/interactor/master.svg)](https://travis-ci.org/collectiveidea/interactor)
[![Maintainability](https://img.shields.io/codeclimate/maintainability/collectiveidea/interactor.svg)](https://codeclimate.com/github/collectiveidea/interactor)
[![Test Coverage](https://img.shields.io/codeclimate/coverage-letter/collectiveidea/interactor.svg)](https://codeclimate.com/github/collectiveidea/interactor)
[![Ruby Style Guide](https://img.shields.io/badge/code_style-standard-brightgreen.svg)](https://github.com/testdouble/standard)

## Getting Started

Expand Down
3 changes: 2 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
require "bundler/gem_tasks"
require "rspec/core/rake_task"
require "standard/rake"

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

task default: :spec
task default: [:standard, :spec]
4 changes: 2 additions & 2 deletions interactor.gemspec
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# encoding: utf-8
require "English"

Gem::Specification.new do |spec|
spec.name = "interactor"
Expand All @@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
spec.homepage = "https://github.com/collectiveidea/interactor"
spec.license = "MIT"

spec.files = `git ls-files`.split($/)
spec.files = `git ls-files`.split($INPUT_RECORD_SEPARATOR)
spec.test_files = spec.files.grep(/^spec/)

spec.add_development_dependency "bundler"
Expand Down
Loading

0 comments on commit 3a8656b

Please sign in to comment.