-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add frozen string literal + small update (#50)
* Update fakefs and rubocop to latest version Remove `spec` from files (spec are included when gem installed) Remove `test_files` (not required anymore) * Regenerate rubocop Fix frozen_string_literal * Update ruby/setup-ruby to v1
- Loading branch information
1 parent
7b67ad9
commit 23737d2
Showing
15 changed files
with
73 additions
and
83 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
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
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
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
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,3 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
source 'https://rubygems.org' | ||
|
||
gemspec |
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,3 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
begin | ||
require 'rspec/core/rake_task' | ||
RSpec::Core::RakeTask.new(:spec) | ||
|
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,3 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'pathspec/gitignorespec' | ||
require 'pathspec/regexspec' | ||
require 'find' | ||
|
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
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,3 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'pathspec/spec' | ||
|
||
class PathSpec | ||
|
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,3 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
class PathSpec | ||
# Abstract spec | ||
class Spec | ||
|
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,3 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
lib = File.expand_path('lib', __dir__) | ||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) | ||
|
||
|
@@ -8,21 +10,20 @@ Gem::Specification.new do |s| | |
s.description = 'Use to match path patterns such as gitignore' | ||
s.authors = ['Brandon High'] | ||
s.email = '[email protected]' | ||
s.files = Dir.glob('{lib,spec,docs}/**/*') + %w[LICENSE README.md CHANGELOG.md] | ||
s.files = Dir.glob('{lib,docs}/**/*') + %w[LICENSE README.md CHANGELOG.md] | ||
s.bindir = 'bin' | ||
s.executables << 'pathspec-rb' | ||
s.test_files = s.files.grep(%r{^spec/}) | ||
s.require_paths = ['lib'] | ||
s.metadata['allowed_push_host'] = 'https://rubygems.org' | ||
s.metadata['rubygems_mfa_required'] = 'true' | ||
s.homepage = 'https://github.com/highb/pathspec-ruby' | ||
s.license = 'Apache-2.0' | ||
s.required_ruby_version = '>= 3.1.0' | ||
s.add_development_dependency 'bundler', '~> 2.2' | ||
s.add_development_dependency 'fakefs', '~> 1.3' | ||
s.add_development_dependency 'fakefs', '~> 2.5' | ||
s.add_development_dependency 'kramdown', '~> 2.3' | ||
s.add_development_dependency 'rake', '~> 13.0' | ||
s.add_development_dependency 'rspec', '~> 3.10' | ||
s.add_development_dependency 'rubocop', '~> 1.7' | ||
s.add_development_dependency 'rubocop', '~> 1.63.0' | ||
s.add_development_dependency 'simplecov', '~> 0.21' | ||
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,3 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
begin | ||
require 'simplecov' | ||
SimpleCov.start | ||
|
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,3 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'spec_helper' | ||
require 'pathspec/gitignorespec' | ||
|
||
|
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,3 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'spec_helper' | ||
require 'pathspec/spec' | ||
|
||
|
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,3 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
require 'spec_helper' | ||
require 'fakefs/safe' | ||
require 'pathspec' | ||
|