Skip to content

Commit

Permalink
Merge pull request #1 from next-tms/add-rubocop-next
Browse files Browse the repository at this point in the history
Add rubocop-next
  • Loading branch information
brodyhoskins authored Aug 20, 2023
2 parents cf23e64 + cff288d commit d46708a
Show file tree
Hide file tree
Showing 7 changed files with 70 additions and 13 deletions.
15 changes: 15 additions & 0 deletions .github/workflows/checks.yml
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
1 change: 1 addition & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
inherit_from: .rubocop_todo.yml
35 changes: 35 additions & 0 deletions .rubocop_todo.yml
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'
4 changes: 3 additions & 1 deletion Gemfile
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
2 changes: 2 additions & 0 deletions VERSION
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
0.0.1

2 changes: 1 addition & 1 deletion lib/place_kit/version.rb
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
24 changes: 13 additions & 11 deletions place_kit.gemspec
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

0 comments on commit d46708a

Please sign in to comment.