-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #150 from ninoseki/introduce-standard-and-overcommit
feat: introduce Standard and Overcommit
- Loading branch information
Showing
12 changed files
with
49 additions
and
28 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 |
---|---|---|
@@ -0,0 +1,12 @@ | ||
PreCommit: | ||
BundleCheck: | ||
enabled: true | ||
|
||
RuboCop: | ||
enabled: true | ||
required_executable: bundle | ||
command: ["bundle", "exec", "standardrb"] | ||
on_warn: fail | ||
|
||
YamlSyntax: | ||
enabled: true |
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,4 @@ | ||
ignore: | ||
- "**/*": | ||
- Layout/SpaceInsideHashLiteralBraces | ||
- Style/RescueStandardError |
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 |
---|---|---|
|
@@ -2,5 +2,6 @@ | |
|
||
module Miteru | ||
class HTTPResponseError < StandardError; end | ||
|
||
class DownloadError < StandardError; 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
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,34 +1,36 @@ | ||
# frozen_string_literal: true | ||
|
||
lib = File.expand_path('lib', __dir__) | ||
lib = File.expand_path("lib", __dir__) | ||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) | ||
require "miteru/version" | ||
|
||
Gem::Specification.new do |spec| | ||
spec.name = "miteru" | ||
spec.version = Miteru::VERSION | ||
spec.authors = ["Manabu Niseki"] | ||
spec.email = ["[email protected]"] | ||
spec.name = "miteru" | ||
spec.version = Miteru::VERSION | ||
spec.authors = ["Manabu Niseki"] | ||
spec.email = ["[email protected]"] | ||
|
||
spec.summary = "An experimental phishing kit detector" | ||
spec.description = "An experimental phishing kit detector" | ||
spec.homepage = "https://github.com/ninoseki/miteru" | ||
spec.license = "MIT" | ||
spec.summary = "An experimental phishing kit detector" | ||
spec.description = "An experimental phishing kit detector" | ||
spec.homepage = "https://github.com/ninoseki/miteru" | ||
spec.license = "MIT" | ||
|
||
# Specify which files should be added to the gem when it is released. | ||
# The `git ls-files -z` loads the files in the RubyGem that have been added into git. | ||
spec.files = Dir.chdir(File.expand_path(__dir__)) do | ||
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) } | ||
end | ||
spec.bindir = "exe" | ||
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } | ||
spec.bindir = "exe" | ||
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) } | ||
spec.require_paths = ["lib"] | ||
|
||
spec.add_development_dependency "bundler", "~> 2.2" | ||
spec.add_development_dependency "coveralls_reborn", "~> 0.22" | ||
spec.add_development_dependency "glint", "~> 0.1" | ||
spec.add_development_dependency "overcommit", "~> 0.58" | ||
spec.add_development_dependency "rake", "~> 13.0" | ||
spec.add_development_dependency "rspec", "~> 3.10" | ||
spec.add_development_dependency "standard", "~> 1.3" | ||
spec.add_development_dependency "vcr", "~> 6.0" | ||
spec.add_development_dependency "webmock", "~> 3.14" | ||
spec.add_development_dependency "webrick", "~> 1.7.0" | ||
|
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