-
Notifications
You must be signed in to change notification settings - Fork 0
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 #1 from next-tms/add-rubocop-next
Add rubocop-next
- Loading branch information
Showing
7 changed files
with
70 additions
and
13 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,15 @@ | ||
name: Checks | ||
on: [push] | ||
jobs: | ||
syntax: | ||
name: rubocop | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- uses: ruby/setup-ruby@v1 | ||
with: | ||
ruby-version: 3.2.2 | ||
- run: | | ||
gem install bundler | ||
bundle install --jobs 4 --retry 3 | ||
- run: bundle exec rubocop |
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 @@ | ||
inherit_from: .rubocop_todo.yml |
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,35 @@ | ||
# This configuration was generated by | ||
# `rubocop --auto-gen-config --exclude-limit 10000` | ||
# on 2023-08-20 18:49:14 UTC using RuboCop version 1.56.0. | ||
# The point is for the user to remove these configuration records | ||
# one by one as the offenses are removed from the code base. | ||
# Note that changes in the inspected code, or installation of new | ||
# versions of RuboCop, may require this file to be generated again. | ||
|
||
# Offense count: 1 | ||
# Configuration parameters: AllowedMethods, AllowedPatterns, CountRepeatedAttributes. | ||
Metrics/AbcSize: | ||
Max: 34 | ||
|
||
# Offense count: 1 | ||
# Configuration parameters: AllowedMethods, AllowedPatterns. | ||
Metrics/CyclomaticComplexity: | ||
Max: 10 | ||
|
||
# Offense count: 1 | ||
# Configuration parameters: CountComments, CountAsOne, AllowedMethods, AllowedPatterns. | ||
Metrics/MethodLength: | ||
Max: 18 | ||
|
||
# Offense count: 1 | ||
# Configuration parameters: AllowedMethods, AllowedPatterns. | ||
Metrics/PerceivedComplexity: | ||
Max: 10 | ||
|
||
# Offense count: 1 | ||
# Configuration parameters: AllowedConstants. | ||
Style/Documentation: | ||
Exclude: | ||
- 'spec/**/*' | ||
- 'test/**/*' | ||
- 'lib/place_kit.rb' |
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 @@ | ||
source "https://rubygems.org" | ||
# 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 |
---|---|---|
@@ -0,0 +1,2 @@ | ||
0.0.1 | ||
|
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,5 +1,5 @@ | ||
# frozen_string_literal: true | ||
|
||
module PlaceKit | ||
VERSION = '0.0.1' | ||
VERSION = File.read(File.expand_path('../../VERSION', __dir__)).strip.freeze | ||
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,26 +1,28 @@ | ||
# frozen_string_literal: true | ||
|
||
lib = File.expand_path('lib', __dir__) | ||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) | ||
|
||
require 'place_kit/version' | ||
version = File.read(File.expand_path('VERSION', __dir__)).strip.freeze | ||
|
||
Gem::Specification.new do |spec| | ||
spec.name = 'place_kit' | ||
spec.version = PlaceKit::VERSION | ||
spec.date = '2022-04-02' | ||
|
||
spec.authors = ['Third Party Transportation Systems LLC'] | ||
spec.email = ['[email protected]'] | ||
spec.version = version | ||
|
||
spec.summary = 'Time zone lookup by country, region, and city 🚀' | ||
spec.description = 'Time zone lookup by country, region, and city for those times when latitude/longitude coordinates just aren’t available 🚀' | ||
spec.authors = 'Third Party Transportation Systems LLC' | ||
spec.email = '[email protected]' | ||
|
||
spec.description = <<~DESCRIPTION.gsub("\n", '') | ||
Time zone lookup by country, region, and city for those times when latitude/longitude coordinates just aren’t | ||
available 🚀 | ||
DESCRIPTION | ||
spec.homepage = 'https://github.com/next-tms/place_kit' | ||
spec.summary = 'Time zone lookup by country, region, and city 🚀' | ||
|
||
spec.files = Dir['lib/**/*'] | ||
spec.require_paths = ['lib'] | ||
|
||
spec.add_dependency 'activesupport', '>= 6.0.0', '< 7.1' | ||
spec.add_dependency 'fastcsv', '~> 0.0.6' | ||
|
||
spec.add_development_dependency 'rubocop-next', '~> 1.0.0' | ||
|
||
spec.required_ruby_version = '>= 3.2.0' | ||
end |