Skip to content

Commit

Permalink
rubocop: include gemfile / rakefile / gemspec
Browse files Browse the repository at this point in the history
  • Loading branch information
Rustam Ibragimov committed Jun 24, 2018
1 parent 0f0626e commit ab70051
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .rubocop.yml
Expand Up @@ -9,6 +9,9 @@ AllCops:
- lib/**/*
- spec/**/*
- bin/console
- Rakefile
- Gemfile
- symbiont-ruby.gemspec

Metrics/LineLength:
Max: 120
6 changes: 4 additions & 2 deletions Gemfile
@@ -1,6 +1,8 @@
source "https://rubygems.org"
# frozen_string_literal: true

git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
source 'https://rubygems.org'

git_source(:github) { |repo_name| "https://github.com/#{repo_name}" }

# Specify your gem's dependencies in symbiont-ruby.gemspec
gemspec
2 changes: 1 addition & 1 deletion Rakefile
Expand Up @@ -22,7 +22,7 @@ task yardoc: :doc do
puts 'YARD COVERAGE [SUCCESS] => 100% documentation coverage!'
else
failing_code_objects = undocumented_code_objects.map do |code_object|
"- #{code_object.class} => #{code_object.to_s}"
"- #{code_object.class} => #{code_object}"
end.join("\n")

abort("YARD COVERAGE [FAILURE] => No documentation found for: \n #{failing_code_objects}")
Expand Down
7 changes: 4 additions & 3 deletions symbiont-ruby.gemspec
@@ -1,6 +1,7 @@
# coding: utf-8
# frozen_string_literal: true

lib = File.expand_path('../lib', __FILE__)
lib = File.expand_path('lib', __dir__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'symbiont/version'

Expand All @@ -21,8 +22,8 @@ Gem::Specification.new do |spec|

spec.homepage = 'https://github.com/0exp/symbiont-ruby'
spec.license = 'MIT'
spec.bindir = "bin"
spec.require_paths = ["lib"]
spec.bindir = 'bin'
spec.require_paths = ['lib']

spec.files = `git ls-files -z`.split("\x0").reject do |f|
f.match(%r{^(spec|features)/})
Expand Down

0 comments on commit ab70051

Please sign in to comment.