Skip to content

Commit

Permalink
Rubocop
Browse files Browse the repository at this point in the history
  • Loading branch information
enthrops committed Mar 5, 2018
1 parent 6a76ef3 commit 29cc8fa
Show file tree
Hide file tree
Showing 9 changed files with 43 additions and 3 deletions.
6 changes: 6 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
inherit_gem:
rubocop-config-umbrellio: lib/rubocop.yml

AllCops:
DisplayCopNames: true
TargetRubyVersion: 2.5
2 changes: 2 additions & 0 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,2 +1,4 @@
# frozen_string_literal: true

source "https://rubygems.org"
gemspec
21 changes: 21 additions & 0 deletions Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,18 @@ PATH
GEM
remote: https://rubygems.org/
specs:
ast (2.4.0)
coderay (1.1.2)
diff-lcs (1.3)
method_source (0.9.0)
parallel (1.12.1)
parser (2.4.0.2)
ast (~> 2.3)
powerpack (0.1.1)
pry (0.11.3)
coderay (~> 1.1.0)
method_source (~> 0.9.0)
rainbow (3.0.0)
rake (10.5.0)
rspec (3.7.0)
rspec-core (~> 3.7.0)
Expand All @@ -26,6 +32,20 @@ GEM
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.7.0)
rspec-support (3.7.1)
rubocop (0.52.1)
parallel (~> 1.10)
parser (>= 2.4.0.2, < 3.0)
powerpack (~> 0.1)
rainbow (>= 2.2.2, < 4.0)
ruby-progressbar (~> 1.7)
unicode-display_width (~> 1.0, >= 1.0.1)
rubocop-config-umbrellio (0.52.1.0)
rubocop (= 0.52.1)
rubocop-rspec (= 1.22.1)
rubocop-rspec (1.22.1)
rubocop (>= 0.52.1)
ruby-progressbar (1.9.0)
unicode-display_width (1.3.0)

PLATFORMS
ruby
Expand All @@ -36,6 +56,7 @@ DEPENDENCIES
pry
rake
rspec
rubocop-config-umbrellio

BUNDLED WITH
1.16.1
4 changes: 3 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
# frozen_string_literal: true

require "bundler/gem_tasks"
require "rspec/core/rake_task"

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

task :default => :spec
task default: :spec
2 changes: 1 addition & 1 deletion bin/console
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env ruby

require "bundler/setup"
require "pry"
require "hourly_logger_rotator"

require "pry"
Pry.start
5 changes: 4 additions & 1 deletion hourly_logger_rotator.gemspec
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

lib = File.expand_path("../lib", __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require "hourly_logger_rotator/version"
Expand All @@ -16,7 +18,8 @@ Gem::Specification.new do |spec|
spec.require_paths = ["lib"]

spec.add_development_dependency "bundler"
spec.add_development_dependency "pry"
spec.add_development_dependency "rake"
spec.add_development_dependency "rspec"
spec.add_development_dependency "pry"
spec.add_development_dependency "rubocop-config-umbrellio"
end
2 changes: 2 additions & 0 deletions lib/hourly_logger_rotator/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module HourlyLoggerRotator
VERSION = "0.2.0"
end
2 changes: 2 additions & 0 deletions spec/hourly_logger_rotator_spec.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

RSpec.describe HourlyLoggerRotator do
pending
end
2 changes: 2 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

require "bundler/setup"
require "hourly_logger_rotator"

Expand Down

0 comments on commit 29cc8fa

Please sign in to comment.