This repository has been archived by the owner on Aug 6, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
30 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,3 @@ | ||
--format documentation | ||
--color | ||
--require spec_helper |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
# coding: utf-8 | ||
lib = File.expand_path("../lib", __FILE__) | ||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) | ||
require "egad/version" | ||
require "rubocop/egad/version" | ||
|
||
Gem::Specification.new do |spec| | ||
spec.name = "egad" | ||
spec.version = Egad::VERSION | ||
spec.version = RuboCop::Egad::VERSION | ||
spec.authors = ["Peter Graham"] | ||
spec.email = ["[email protected]"] | ||
|
||
|
@@ -23,11 +23,11 @@ Gem::Specification.new do |spec| | |
|
||
spec.required_ruby_version = ">= 2.3.0" | ||
|
||
spec.add_dependency "activesupport", "5.1.1" | ||
spec.add_dependency "cri", "2.9.1" | ||
spec.add_dependency "paint", "2.0.0" | ||
spec.add_dependency "activesupport", ">= 4" | ||
|
||
spec.add_development_dependency "bundler", "~> 1.15" | ||
spec.add_runtime_dependency 'rubocop', '>= 0.48.0' | ||
|
||
spec.add_development_dependency "bundler", "~> 1.14" | ||
spec.add_development_dependency "rake", "~> 10.0" | ||
spec.add_development_dependency "rspec", "~> 3.0" | ||
spec.add_development_dependency "rspec-its" | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,11 @@ | ||
require "active_support" | ||
require "active_support/core_ext" | ||
require "cri" | ||
require "find" | ||
require "paint" | ||
require "rubocop" | ||
|
||
require "egad/cli" | ||
require "egad/version" | ||
require "rubocop/egad/version" | ||
require "rubocop/cop/egad/add_index" | ||
|
||
module Egad | ||
module RuboCop | ||
module Egad | ||
end | ||
end |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
module RuboCop | ||
module Cop | ||
module Egad | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
module RuboCop | ||
module Egad | ||
VERSION = "0.1.0" | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,5 @@ | ||
require "spec_helper" | ||
|
||
RSpec.describe Egad do | ||
describe RuboCop::Egad do | ||
it "has a version number" do | ||
expect(Egad::VERSION).not_to be nil | ||
end | ||
|
||
it "does something useful" do | ||
expect(false).to eq(true) | ||
expect(described_class::VERSION).not_to be nil | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,15 @@ | ||
require "bundler/setup" | ||
require "egad" | ||
require "rspec/collection_matchers" | ||
require "rspec/its" | ||
|
||
RSpec.configure do |config| | ||
# Enable flags like --only-failures and --next-failure | ||
config.example_status_persistence_file_path = ".rspec_status" | ||
|
||
# Disable RSpec exposing methods globally on `Module` and `main` | ||
config.disable_monkey_patching! | ||
|
||
config.expect_with :rspec do |c| | ||
c.syntax = :expect | ||
end | ||
config.filter_run :focus | ||
config.run_all_when_everything_filtered = true | ||
end |