Commit 464b004

mo khan <mo@mokhan.ca>
2025-09-26 21:02:01
chore: remove rubocop, gh actions and bundler audit
1 parent 0f78e70
.github/workflows/ci.yml
@@ -1,26 +0,0 @@
-name: ci
-on:
-  push:
-    branches: [main]
-  pull_request:
-    branches: [main]
-jobs:
-  test:
-    runs-on: ubuntu-latest
-    steps:
-      - uses: actions/checkout@v2
-      - uses: ruby/setup-ruby@v1
-        with:
-          ruby-version: '2.6'
-          bundler-cache: true
-      - run: ./bin/setup
-      - run: ./bin/test
-  style:
-    runs-on: ubuntu-latest
-    steps:
-      - uses: actions/checkout@v2
-      - uses: ruby/setup-ruby@v1
-        with:
-          ruby-version: '2.6'
-      - run: ./bin/setup
-      - run: ./bin/style
bin/docker-build
@@ -1,21 +0,0 @@
-#!/bin/sh
-set -e
-[ -z "$DEBUG" ] || set -x
-
-cd "$(dirname "$0")/.."
-
-rm -fr pkg/
-mkdir -p pkg/
-cp Dockerfile pkg/
-docker pull ruby:2.6-alpine
-docker image build \
-  --no-cache \
-  -t "mokhan/minbox:latest" \
-  -f pkg/Dockerfile pkg/
-
-if [[ -z "${DOCKER_PUSH}" ]]; then
-  echo 'skip push'
-else
-  echo 'pushing...'
-  docker push "mokhan/minbox:latest"
-fi
bin/style
@@ -1,8 +0,0 @@
-#!/bin/sh
-
-set -e
-[ -z "$DEBUG" ] || set -x
-
-cd "$(dirname "$0")/.."
-
-bundle exec rake lint
spec/minbox/server_spec.rb
@@ -110,7 +110,6 @@ RSpec.describe Minbox::Server do
         let!(:mail) { create_mail }
         let!(:mail_string) { mail.to_s }
 
-        # rubocop:disable RSpec/ExampleLength
         specify do
           threads = []
           10.times do |_n|
@@ -127,7 +126,6 @@ RSpec.describe Minbox::Server do
             threads.map(&:join)
           end
         end
-        # rubocop:enable RSpec/ExampleLength
       end
     end
   end
.rspec
@@ -1,3 +1,1 @@
---format documentation
---color
 --require spec_helper
.rubocop.yml
@@ -1,94 +0,0 @@
-require:
-  - rubocop/cop/internal_affairs
-  - rubocop-rspec
-
-AllCops:
-  Exclude:
-    - 'coverage/**/*'
-    - 'pkg/**/*'
-    - 'tmp/**/*'
-    - 'vendor/**/*'
-  TargetRubyVersion: 2.6
-
-Layout/AlignParameters:
-  Enabled: true
-  EnforcedStyle: with_fixed_indentation
-  IndentationWidth: 2
-
-Layout/ClassStructure:
-  Enabled: true
-  Categories:
-    module_inclusion:
-      - include
-      - prepend
-      - extend
-  ExpectedOrder:
-      - module_inclusion
-      - constants
-      - public_class_methods
-      - initializer
-      - instance_methods
-      - protected_methods
-      - private_methods
-
-Layout/EndOfLine:
-  EnforcedStyle: lf
-
-Layout/IndentArray:
-  EnforcedStyle: consistent
-
-Layout/IndentHeredoc:
-  EnforcedStyle: active_support
-
-Layout/MultilineMethodCallIndentation:
-  Enabled: true
-  EnforcedStyle: indented
-
-Lint/AmbiguousBlockAssociation:
-  Exclude:
-    - 'spec/**/*.rb'
-
-Lint/InterpolationCheck:
-  Exclude:
-    - 'spec/**/*.rb'
-
-Metrics/BlockLength:
-  Exclude:
-    - '**/*.rake'
-    - '*.gemspec'
-    - 'Rakefile'
-    - 'spec/**/*.rb'
-
-Metrics/ModuleLength:
-  Exclude:
-    - 'spec/**/*.rb'
-
-Metrics/LineLength:
-  Exclude:
-    - 'spec/**/*.rb'
-  IgnoredPatterns:
-    - '^#*'
-
-Naming/RescuedExceptionsVariableName:
-  PreferredName: error
-
-Style/Documentation:
-  Enabled: false
-
-Style/EachWithObject:
-  Enabled: false
-
-Style/StringLiterals:
-  EnforcedStyle: 'double_quotes'
-
-Style/TrailingCommaInArrayLiteral:
-  Enabled: false
-
-Style/TrailingCommaInHashLiteral:
-  Enabled: false
-
-RSpec/NamedSubject:
-  Enabled: false
-
-RSpec/NestedGroups:
-  Max: 4
.ruby-version
@@ -1,1 +0,0 @@
-2.6.7
Dockerfile
@@ -1,12 +0,0 @@
-FROM ruby:2.6-alpine
-WORKDIR /opt/minbox
-EXPOSE 25
-VOLUME ["/opt/minbox/tmp"]
-ENV PACKAGES build-base tzdata
-RUN apk update && \
-    apk upgrade && \
-    apk add $PACKAGES && \
-    gem install minbox && \
-    rm -fr /var/cache/apk/* && \
-    apk del build-base
-CMD ["minbox", "server", "localhost", "25", "--output=stdout file"]
Gemfile.lock
@@ -15,17 +15,12 @@ PATH
 GEM
   remote: https://rubygems.org/
   specs:
-    ast (2.4.3)
     base64 (0.3.0)
-    bundler-audit (0.9.2)
-      bundler (>= 1.2.0, < 3)
-      thor (~> 1.0)
     concurrent-ruby (1.3.5)
     date (3.4.1)
     diff-lcs (1.6.2)
-    faker (1.9.6)
-      i18n (>= 0.7)
-    ffi (1.17.2)
+    faker (3.5.2)
+      i18n (>= 1.8.11, < 2)
     ffi (1.17.2-x86_64-linux-gnu)
     hashie (3.6.0)
     i18n (1.14.7)
@@ -50,19 +45,10 @@ GEM
     net-smtp (0.5.1)
       net-protocol
     openssl (3.3.0)
-    parallel (1.27.0)
-    parser (3.3.9.0)
-      ast (~> 2.4.1)
-      racc
-    prism (1.5.1)
-    racc (1.8.1)
-    rainbow (3.1.1)
     rake (13.3.0)
     rb-fsevent (0.11.2)
     rb-inotify (0.11.1)
       ffi (~> 1.0)
-    regexp_parser (2.11.3)
-    rexml (3.4.4)
     rspec (3.13.1)
       rspec-core (~> 3.13.0)
       rspec-expectations (~> 3.13.0)
@@ -76,38 +62,18 @@ GEM
       diff-lcs (>= 1.2.0, < 2.0)
       rspec-support (~> 3.13.0)
     rspec-support (3.13.6)
-    rubocop (0.93.1)
-      parallel (~> 1.10)
-      parser (>= 2.7.1.5)
-      rainbow (>= 2.2.2, < 4.0)
-      regexp_parser (>= 1.8)
-      rexml
-      rubocop-ast (>= 0.6.0)
-      ruby-progressbar (~> 1.7)
-      unicode-display_width (>= 1.4.0, < 2.0)
-    rubocop-ast (1.47.1)
-      parser (>= 3.3.7.2)
-      prism (~> 1.4)
-    rubocop-rspec (1.44.1)
-      rubocop (~> 0.87)
-      rubocop-ast (>= 0.7.1)
-    ruby-progressbar (1.13.0)
     thor (1.4.0)
     timeout (0.4.3)
-    unicode-display_width (1.8.0)
 
 PLATFORMS
   x86_64-linux
 
 DEPENDENCIES
   bundler (~> 2.0)
-  bundler-audit (~> 0.6)
-  faker (~> 1.9)
+  faker (~> 3.0)
   minbox!
   rake (~> 13.0)
   rspec (~> 3.0)
-  rubocop (~> 0.52)
-  rubocop-rspec (~> 1.22)
 
 BUNDLED WITH
    2.7.2
LICENSE.txt
@@ -1,6 +1,6 @@
 The MIT License (MIT)
 
-Copyright (c) 2019 mokha
+Copyright (c) 2019 mo khan
 
 Permission is hereby granted, free of charge, to any person obtaining a copy
 of this software and associated documentation files (the "Software"), to deal
minbox.gemspec
@@ -45,10 +45,7 @@ Gem::Specification.new do |spec|
   spec.add_dependency "openssl", "~> 3.0"
   spec.add_dependency "thor", "~> 1.0"
   spec.add_development_dependency "bundler", "~> 2.0"
-  spec.add_development_dependency "bundler-audit", "~> 0.6"
-  spec.add_development_dependency "faker", "~> 1.9"
+  spec.add_development_dependency "faker", "~> 3.0"
   spec.add_development_dependency "rake", "~> 13.0"
   spec.add_development_dependency "rspec", "~> 3.0"
-  spec.add_development_dependency "rubocop", "~> 0.52"
-  spec.add_development_dependency "rubocop-rspec", "~> 1.22"
 end
Rakefile
@@ -1,13 +1,7 @@
 # frozen_string_literal: true
 
-require "bundler/audit/task"
 require "bundler/gem_tasks"
 require "rspec/core/rake_task"
-require "rubocop/rake_task"
 
 RSpec::Core::RakeTask.new(:spec)
-RuboCop::RakeTask.new(:rubocop)
-Bundler::Audit::Task.new
-
-task lint: [:rubocop, "bundle:audit"]
 task default: :spec