Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

WIP: Rails 4.3 → Rails 6, Ruby 2.5 → 3.2.3 Upgrade #50

Closed
wants to merge 2 commits into from
Closed
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
13 changes: 13 additions & 0 deletions .envrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,18 @@
# vim: ft=bash

PATH_add bin
PATH_add /opt/homebrew/bin

export brew_prefix="$(brew --prefix)"
export OBJC_DISABLE_INITIALIZE_FORK_SAFETY=YES

export V8HOME=$(brew --prefix [email protected])

export CFLAGS="-Wno-error=implicit-function-declaration -Wno-error=no-compound-token-split-by-macro"
export CPPFLAGS="$CPPFLAGS -I ${brew_prefix}/include -I ${V8HOME}/include"
export LDFLAGS="$LDFLAGS -L ${brew_prefix}/lib -L ${V8HOME}/lib"

export RUBY_CPPFLAGS="$CPPFLAGS"
export RUBY_CFLAGS="$CFLAGS"

[[ -f .envrc.local ]] && source .envrc.local
1 change: 1 addition & 0 deletions .rspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,3 +3,4 @@
--order rand
--profile 5
--require spec_helper
-b
109 changes: 0 additions & 109 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,112 +1,3 @@
inherit_from: .rubocop_todo.yml
AllCops:
NewCops: enable

Gemspec/DateAssignment: # new in 1.10
Enabled: true
Gemspec/RequireMFA: # new in 1.23
Enabled: true
Layout/LineEndStringConcatenationIndentation: # new in 1.18
Enabled: true
Layout/SpaceBeforeBrackets: # new in 1.7
Enabled: true
Lint/AmbiguousAssignment: # new in 1.7
Enabled: true
Lint/AmbiguousOperatorPrecedence: # new in 1.21
Enabled: true
Lint/AmbiguousRange: # new in 1.19
Enabled: true
Lint/DeprecatedConstants: # new in 1.8
Enabled: true
Lint/DuplicateBranch: # new in 1.3
Enabled: true
Lint/DuplicateRegexpCharacterClassElement: # new in 1.1
Enabled: true
Lint/EmptyBlock: # new in 1.1
Enabled: true
Lint/EmptyClass: # new in 1.3
Enabled: true
Lint/EmptyInPattern: # new in 1.16
Enabled: true
Lint/IncompatibleIoSelectWithFiberScheduler: # new in 1.21
Enabled: true
Lint/LambdaWithoutLiteralBlock: # new in 1.8
Enabled: true
Lint/NoReturnInBeginEndBlocks: # new in 1.2
Enabled: true
Lint/NumberedParameterAssignment: # new in 1.9
Enabled: true
Lint/OrAssignmentToConstant: # new in 1.9
Enabled: true
Lint/RedundantDirGlobSort: # new in 1.8
Enabled: true
Lint/RefinementImportMethods: # new in 1.27
Enabled: true
Lint/RequireRelativeSelfPath: # new in 1.22
Enabled: true
Lint/SymbolConversion: # new in 1.9
Enabled: true
Lint/ToEnumArguments: # new in 1.1
Enabled: true
Lint/TripleQuotes: # new in 1.9
Enabled: true
Lint/UnexpectedBlockArity: # new in 1.5
Enabled: true
Lint/UnmodifiedReduceAccumulator: # new in 1.1
Enabled: true
Lint/UselessRuby2Keywords: # new in 1.23
Enabled: true
Naming/BlockForwarding: # new in 1.24
Enabled: true
Security/IoMethods: # new in 1.22
Enabled: true
Style/ArgumentsForwarding: # new in 1.1
Enabled: true
Style/CollectionCompact: # new in 1.2
Enabled: true
Style/DocumentDynamicEvalDefinition: # new in 1.1
Enabled: true
Style/EndlessMethod: # new in 1.8
Enabled: true
Style/FileRead: # new in 1.24
Enabled: true
Style/FileWrite: # new in 1.24
Enabled: true
Style/HashConversion: # new in 1.10
Enabled: true
Style/HashExcept: # new in 1.7
Enabled: true
Style/IfWithBooleanLiteralBranches: # new in 1.9
Enabled: true
Style/InPatternThen: # new in 1.16
Enabled: true
Style/MapToHash: # new in 1.24
Enabled: true
Style/MultilineInPatternThen: # new in 1.16
Enabled: true
Style/NegatedIfElseCondition: # new in 1.2
Enabled: true
Style/NestedFileDirname: # new in 1.26
Enabled: true
Style/NilLambda: # new in 1.3
Enabled: true
Style/NumberedParameters: # new in 1.22
Enabled: true
Style/NumberedParametersLimit: # new in 1.22
Enabled: true
Style/OpenStructUse: # new in 1.23
Enabled: true
Style/QuotedSymbols: # new in 1.16
Enabled: true
Style/RedundantArgument: # new in 1.4
Enabled: true
Style/RedundantInitialize: # new in 1.27
Enabled: true
Style/RedundantSelfAssignmentBranch: # new in 1.19
Enabled: true
Style/SelectByRegexp: # new in 1.22
Enabled: true
Style/StringChars: # new in 1.12
Enabled: true
Style/SwapValues: # new in 1.1
Enabled: true
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.5.9
3.2.3
112 changes: 112 additions & 0 deletions Brewfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,112 @@
# vim: ft=ruby

tap 'homebrew/bundle'
tap 'homebrew/services'
tap 'heroku/brew'

# heroku CLI
brew 'heroku'

# Build Environment/C/C++
brew 'autoconf'
brew 'automake'
brew 'bash-completion@2'
brew 'bat'
brew 'cmake'
brew 'coreutils'
brew 'direnv'
brew 'fzf'
brew 'gcc'
brew 'glances'
brew 'gnutls'
brew 'gnu-indent'
brew 'gnu-sed'
brew 'gnu-tar'
brew 'gnu-time'
brew 'gnu-which'
brew 'gpg2'
brew 'jemalloc'
brew 'jq'
brew 'libffi'
brew 'libmemcached'
brew 'libpq'
brew 'libtiff'
brew 'libtool'
brew 'libxml2'
brew 'libxslt'
brew 'libyaml'
brew 'libzip'
brew 'make'
brew 'p7zip'
brew 'parallel'
brew 'pcre'
brew 'pcre'
brew 'pg_top'
brew 'pkg-config'
brew 'postgresql@15'
brew 'pstree'
brew 'pyenv'
brew 'rbenv'
brew 'readline'
brew 'redis'
brew 'ripgrep'
brew 'rsync'
brew 'ruby-build'
brew 'ruby-completion'
brew 'shellcheck'
brew 'tree'
brew 'vim'
brew 'watch'
brew 'wget'
brew 'yamlfmt'
brew 'yamllint'
brew 'ydiff'
brew 'yq'
brew 'zlib'
brew 'v8'

cask 'chromedriver'
cask 'github'

cask 'font-andale-mono'
cask 'font-anonymice-powerline'
cask 'font-arvo'
cask 'font-aurulent-sans-mono-nerd-font'
cask 'font-awesome-terminal-fonts'
cask 'font-bitstream-vera-sans-mono-nerd-font'
cask 'font-blex-mono-nerd-font'
cask 'font-cairo'
cask 'font-cascadia-mono'
cask 'font-consolas-for-powerline'
cask 'font-cousine'
cask 'font-cutive-mono'
cask 'font-d2coding'
cask 'font-dejavu-sans-mono-for-powerline'
cask 'font-everson-mono'
cask 'font-fantasque-sans-mono'
cask 'font-fontawesome'
cask 'font-ia-writer-mono'
cask 'font-inconsolata'
cask 'font-jetbrains-mono'
cask 'font-kawkab-mono'
cask 'font-lekton-nerd-font'
cask 'font-menlo-for-powerline'
cask 'font-meslo-for-powerline'
cask 'font-miriam-mono-clm'
cask 'font-monoid'
cask 'font-monoisome'
cask 'font-mononoki'
cask 'font-monoton'
cask 'font-noto-mono'
cask 'font-oswald'
cask 'font-oxygen'
cask 'font-oxygen-mono'
cask 'font-powerline-symbols'
cask 'font-pt-mono'
cask 'font-roboto'
cask 'font-roboto-mono-nerd-font'
cask 'font-share-tech-mono'
cask 'font-sometype-mono'
cask 'font-titillium'
cask 'font-ubuntu'
cask 'font-victor-mono'
Loading