Skip to content

Commit

Permalink
Merge pull request #5 from go-labs/rubocop
Browse files Browse the repository at this point in the history
rubocop fixes
  • Loading branch information
crojasaragonez committed May 25, 2018
2 parents 376f889 + 3eb03ef commit b0e1436
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 7 deletions.
2 changes: 2 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
Documentation:
Enabled: false
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
language: ruby
rvm:
- 2.1.2
- 2.5.1
before_install: gem install bundler -v 1.10.2
2 changes: 1 addition & 1 deletion lib/rspec_pacman_formatter/pacman.rb
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ def update_progress_line

def step(character)
@progress_line = @progress_line.sub(/#{Regexp.quote(Characters::PACMAN)}|#{Regexp.quote(Characters::PACDOT)}/, character)
print format("%s\r", @progress_line)
print "#{@progress_line}\r"
return unless @progress_line[-1] =~ /ᗣ|\./
@repetitions += 1
puts
Expand Down
2 changes: 1 addition & 1 deletion lib/rspec_pacman_formatter/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module RspecPacmanFormatter
VERSION = '0.1.5'.freeze
VERSION = '0.1.6'.freeze
end
5 changes: 2 additions & 3 deletions rspec_pacman_formatter.gemspec
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
# coding: utf-8
lib = File.expand_path('../lib', __FILE__)
lib = File.expand_path('lib', __dir__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'rspec_pacman_formatter/version'

Expand All @@ -19,8 +18,8 @@ Gem::Specification.new do |spec|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ['lib']

spec.add_dependency 'rspec'
spec.add_dependency 'colorize'
spec.add_dependency 'rspec'
spec.add_development_dependency 'bundler', '~> 1.10'
spec.add_development_dependency 'rake', '~> 10.0'
end
2 changes: 1 addition & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
$LOAD_PATH.unshift File.expand_path('../../lib', __FILE__)
$LOAD_PATH.unshift File.expand_path('../lib', __dir__)
require 'rspec_pacman_formatter'

0 comments on commit b0e1436

Please sign in to comment.