Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
56 changes: 56 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
*.gem
*.rbc
/.config
/coverage/
/InstalledFiles
/pkg/
/spec/reports/
/spec/examples.txt
/test/tmp/
/test/version_tmp/
/tmp/

# Used by dotenv library to load environment variables.
# .env

# Ignore Byebug command history file.
.byebug_history

## Specific to RubyMotion:
.dat*
.repl_history
build/
*.bridgesupport
build-iPhoneOS/
build-iPhoneSimulator/

## Specific to RubyMotion (use of CocoaPods):
#
# We recommend against adding the Pods directory to your .gitignore. However
# you should judge for yourself, the pros and cons are mentioned at:
# https://guides.cocoapods.org/using/using-cocoapods.html#should-i-check-the-pods-directory-into-source-control
#
# vendor/Pods/

## Documentation cache and generated files:
/.yardoc/
/_yardoc/
/doc/
/rdoc/

## Environment normalization:
/.bundle/
/vendor/bundle
/lib/bundler/man/

# for a library or gem, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in:
Gemfile.lock
.ruby-version
.ruby-gemset

# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
.rvmrc

# Used by RuboCop. Remote config files pulled in from inherit_from directive.
# .rubocop-https?--*
46 changes: 46 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
plugins:
- rubocop-performance
- rubocop-rake
- rubocop-minitest

AllCops:
NewCops: enable

Layout/LineLength:
Max: 140

Metrics/BlockLength:
Exclude:
- 'spec/**/*.rb'

Layout/ArgumentAlignment:
EnforcedStyle: with_fixed_indentation

Bundler/OrderedGems:
TreatCommentsAsGroupSeparators: true

Layout/MultilineMethodCallIndentation:
EnforcedStyle: indented

Layout/ArrayAlignment:
EnforcedStyle: with_fixed_indentation

Style/Documentation:
Enabled: false

Style/FrozenStringLiteralComment:
Enabled: true
SafeAutoCorrect: true

Style/TrailingCommaInArguments:
EnforcedStyleForMultiline: comma

Style/TrailingCommaInArrayLiteral:
EnforcedStyleForMultiline: comma

Style/TrailingCommaInHashLiteral:
EnforcedStyleForMultiline: comma

Style/HashSyntax:
Enabled: true
EnforcedShorthandSyntax: always
17 changes: 17 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# frozen_string_literal: true

require 'rake'
require 'minitest/test_task'
require 'bundler/gem_tasks'
require 'rubocop/rake_task'

RuboCop::RakeTask.new

Minitest::TestTask.create(:test) do |task|
task.libs << 'lib'
task.libs << 'test'
task.test_globs = ['test/*/**/*.rb']
task.warning = true
end

task default: %i[rubocop test]
2 changes: 1 addition & 1 deletion leopard.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
spec.email = ['[email protected]']

spec.summary = 'A server to supervise concurrent NATS ServiceApi workers.'
spec.description = 'Leopard is a puma-like server for managing concurrent NATS ServiceApi endpoint workers' # rubocop:disable Layout/LineLength
spec.description = 'Leopard is a puma-like server for managing concurrent NATS ServiceApi endpoint workers'
spec.homepage = 'https://github.com/rubyists/leopard'
spec.license = 'MIT'
spec.required_ruby_version = '>= 3.3.0'
Expand Down
9 changes: 9 additions & 0 deletions lib/leopard/version.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
# frozen_string_literal: true

module Rubyists
module Leopard
# x-release-please-start-version
VERSION = '0.1.0'
# x-release-please-end
end
end