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

Major release 9 #1810

Merged
merged 134 commits into from
Feb 14, 2023
Merged
Show file tree
Hide file tree
Changes from 129 commits
Commits
Show all changes
134 commits
Select commit Hold shift + click to select a range
52e4c65
enable thread tracing by default
tannalynn Jan 26, 2023
1a84808
add changelog entry
tannalynn Jan 26, 2023
72c94bb
don't check if thread segment created by
tannalynn Jan 26, 2023
e325646
Merge branch 'major-release-9' into enable_thread_tracing_default
tannalynn Jan 26, 2023
2880f67
add disable tracing calls to infinite tracing
tannalynn Jan 26, 2023
590bc05
added tests to confirm thread tracing is
tannalynn Jan 26, 2023
7abedc8
Merge branch 'major-release-9' into enable_thread_tracing_default
tannalynn Jan 26, 2023
a33b7e9
update changelog
tannalynn Jan 26, 2023
ca69e9f
Run all ci on push to major-release-9 branch until
tannalynn Jan 26, 2023
7fc9243
fix concurrent_ruby test that wasn't
tannalynn Jan 27, 2023
c890712
Merge branch 'dev' into major-release-9
tannalynn Jan 27, 2023
e3d3165
Merge branch 'major-release-9' into enable_thread_tracing_default
tannalynn Jan 27, 2023
5ab7120
fix rake multitask instrumentation
tannalynn Jan 27, 2023
0ed7b5f
fix typo
tannalynn Jan 30, 2023
5feff29
dont notify slack for major release branch
tannalynn Jan 30, 2023
46566b2
removed comment that is no longer accurate
tannalynn Jan 30, 2023
06529af
update test for before_invoke_transaction for
tannalynn Jan 30, 2023
8aa84eb
move method being called in both if and else
tannalynn Jan 30, 2023
52ee350
Merge pull request #1767 from newrelic/enable_thread_tracing_default
tannalynn Jan 31, 2023
35f5a08
Merge branch 'dev' into major-release-9
tannalynn Jan 31, 2023
0d5dcd4
set apdex_t config to non public.
tannalynn Feb 1, 2023
68ed111
removed deprecated *.capture_attribute configs and
tannalynn Feb 1, 2023
99bd9b1
removed ignore_errors and updated tests
tannalynn Feb 1, 2023
dc34209
rubocop mad
tannalynn Feb 1, 2023
b8a3753
add rails and sinatra errors to default ignore
tannalynn Feb 1, 2023
09cba98
put back for test
tannalynn Feb 1, 2023
f0a0a0a
fix rails tests
tannalynn Feb 2, 2023
f6fb55d
rubocop mad
tannalynn Feb 2, 2023
3090435
removed analytic_event configs
tannalynn Feb 2, 2023
89b1744
fix transaction_events related tests
tannalynn Feb 2, 2023
5228552
put default ignored error classes back
tannalynn Feb 2, 2023
c29fbba
removed several instrumentation configs
tannalynn Feb 2, 2023
31f62cf
remove references to now deleted configs
tannalynn Feb 2, 2023
07bfb62
remove test for deleted config
tannalynn Feb 2, 2023
9f98858
remove deprecated configs and fix grape name
tannalynn Feb 2, 2023
c4af2a8
update instrumentation nameing
tannalynn Feb 2, 2023
64fbf76
remove decprecated net http prepend config
tannalynn Feb 2, 2023
f5d6b6b
update rails test using analytic_events config
tannalynn Feb 3, 2023
b012ff9
update rake test using deprecated config
tannalynn Feb 3, 2023
19e2839
Remove support for Ruby 2.2 and 2.3
hannahramadan Jan 31, 2023
c60ca5a
remove keep_trying config
tannalynn Feb 3, 2023
f9ca111
Merge pull request #1778 from newrelic/ruby-2-deprecation
hannahramadan Feb 3, 2023
b434d82
Merge branch 'major-release-9' into remove_deprecated_configs
tannalynn Feb 3, 2023
658762a
removed deprecated jobs capture_params configs
tannalynn Feb 3, 2023
fe38b65
remove resque test for deleted config
tannalynn Feb 3, 2023
405c81e
rubocop
tannalynn Feb 3, 2023
1f74d80
delete commented out code
tannalynn Feb 3, 2023
cd7a931
update sidekiq param tests
tannalynn Feb 3, 2023
5e50412
delete js_errors_beta config
tannalynn Feb 3, 2023
1c58bc1
remvoe whitespace
tannalynn Feb 3, 2023
37f9cfe
removed one of the CAT configs
tannalynn Feb 3, 2023
abb9b27
Deprecate Rainbows
hannahramadan Feb 3, 2023
6273661
Deprecate Sunspot
hannahramadan Feb 3, 2023
ded91bb
Deprecate Datamapper
hannahramadan Feb 3, 2023
4532c0c
Deprecate Authlogic
hannahramadan Feb 3, 2023
82f9c08
Deprecate Acts As Solr
hannahramadan Feb 3, 2023
1784e2c
Merge branch 'dev' into major-release-9
tannalynn Feb 3, 2023
9204269
Small change to jumpstart CI
hannahramadan Feb 3, 2023
74d3922
Add space back in
hannahramadan Feb 3, 2023
8b75702
Enable defer_rails_initialization config by environment variable only
kaylareopelle Dec 15, 2022
91d9fc6
CHANGELOG entry
hannahramadan Feb 3, 2023
443d66d
Merge pull request #1788 from newrelic/NR1786-remove-deprecated-techn…
hannahramadan Feb 3, 2023
1bad6a7
Merge branch 'major-release-9' into remove_deprecated_configs
tannalynn Feb 3, 2023
57a2ee8
Merge pull request #1782 from newrelic/remove_deprecated_configs
tannalynn Feb 3, 2023
12573dd
Merge branch 'dev' into major-release-9
tannalynn Feb 3, 2023
3f9065b
added to changelog
tannalynn Feb 3, 2023
cdcac14
Remove support for `disable_transaction_tracing`
hannahramadan Feb 4, 2023
bdf1a85
CHANGELOG update
hannahramadan Feb 4, 2023
47219eb
Merge pull request #1792 from newrelic/NR745-remove-deprecated-method…
hannahramadan Feb 4, 2023
02fcc7c
add changelog entry for removed configs
tannalynn Feb 6, 2023
05d4fba
reorganize
tannalynn Feb 6, 2023
8fb5537
fix formatting
tannalynn Feb 6, 2023
b6972cc
fix formatting
tannalynn Feb 6, 2023
61e8c56
Merge pull request #1796 from newrelic/deprecated_config_changelog
tannalynn Feb 6, 2023
9461a50
set_transaction_name forces name and category
tannalynn Feb 6, 2023
c3b0c49
added changelog entry
tannalynn Feb 6, 2023
7192742
Update CHANGELOG.md
tannalynn Feb 6, 2023
315107e
Merge pull request #1797 from newrelic/allow_set_txn_name_to_change_c…
tannalynn Feb 6, 2023
068ff73
update license_key description for docs site
tannalynn Feb 6, 2023
7a9f524
remove analytic event category from docs rake task
tannalynn Feb 6, 2023
de9cb8a
Community contribution changelog update
hannahramadan Feb 6, 2023
589b439
Merge pull request #1798 from newrelic/update-changelog
hannahramadan Feb 6, 2023
2c17fa0
Merge branch 'dev' into major-release-9
tannalynn Feb 7, 2023
02c2660
Merge branch 'major-release-9' of github.com:newrelic/newrelic-ruby-a…
tannalynn Feb 7, 2023
2061169
add fiber instrumentation
tannalynn Feb 7, 2023
ddd3683
update current segment key to fiber id
tannalynn Feb 7, 2023
56f193b
fix segment starting id reference
tannalynn Feb 7, 2023
df936f3
add some fiber tests
tannalynn Feb 7, 2023
c4f8463
fix chain initialize for fiber
tannalynn Feb 7, 2023
3be9703
fix parent tracking
tannalynn Feb 7, 2023
8e1c6d9
use safe navigation operator
tannalynn Feb 7, 2023
e818f64
update thread + fiber tests to be together
tannalynn Feb 8, 2023
68186b9
update fiber and thread test
tannalynn Feb 8, 2023
e0cace0
add changelog entry
tannalynn Feb 8, 2023
04b532e
transaction doesn't store state
tannalynn Feb 8, 2023
abe1bac
remove commented out code
tannalynn Feb 8, 2023
784fa92
clean up current_segment method
tannalynn Feb 8, 2023
0fd2631
Update lib/new_relic/agent/configuration/default_source.rb
tannalynn Feb 8, 2023
5b4095d
Update CHANGELOG.md
tannalynn Feb 8, 2023
20286b9
Update test/multiverse/suites/thread/Envfile
tannalynn Feb 8, 2023
b34deff
Update newrelic.yml
tannalynn Feb 8, 2023
c4dc2d8
Update lib/new_relic/agent/instrumentation/fiber.rb
tannalynn Feb 8, 2023
137ecce
Merge pull request #1802 from newrelic/add_fiber_instrumentation
tannalynn Feb 8, 2023
5ebba55
Merge branch 'dev' into major-release-9
tannalynn Feb 8, 2023
8c0d48e
Merge branch 'major-release-9' of github.com:newrelic/newrelic-ruby-a…
tannalynn Feb 8, 2023
a6f3b77
Merge branch 'dev' into major-release-9
tannalynn Feb 8, 2023
d139c1c
Replace 'MessageBroker/' with 'ActiveSupport/'
hannahramadan Feb 8, 2023
3f7f7d9
Trim adapter
hannahramadan Feb 9, 2023
09a7fe3
Udate changelog
hannahramadan Feb 9, 2023
2113522
Community changelog updates
hannahramadan Feb 9, 2023
2864447
Update CHANGELOG.md
fallwith Feb 9, 2023
70fed2a
Merge pull request #1811 from newrelic/activejob_metric_rename
hannahramadan Feb 9, 2023
ef4d5b7
Merge pull request #1813 from newrelic/changelog-updates
hannahramadan Feb 9, 2023
234887d
Merge branch 'dev' into major-release-9
tannalynn Feb 9, 2023
aa6e37c
Merge branch 'dev' into bugfix/rails-init-env-toggle
tannalynn Feb 9, 2023
002afc0
mark defer_rails_initialization as external
tannalynn Feb 9, 2023
afe03d7
check if rack mini profiler is using prepend
tannalynn Feb 9, 2023
7881f35
remove env only config from newrelic.yml example
tannalynn Feb 13, 2023
9188085
removed test that has never worked and
tannalynn Feb 13, 2023
3ae8614
removed commented test
tannalynn Feb 13, 2023
82ea7e0
Merge branch 'major-release-9' into bugfix/rails-init-env-toggle
tannalynn Feb 13, 2023
96677d6
add changelog entry
tannalynn Feb 13, 2023
319c909
Update CHANGELOG.md
tannalynn Feb 13, 2023
b61e30b
Merge pull request #1791 from newrelic/bugfix/rails-init-env-toggle
tannalynn Feb 13, 2023
fede26b
remove jruby running on push
tannalynn Feb 13, 2023
e6e8cd7
remove release 9.0 branch from scheduled CI
tannalynn Feb 13, 2023
08c66ac
bump version to 9.0
tannalynn Feb 13, 2023
64671be
update 9.0 description
tannalynn Feb 13, 2023
b5c67a5
Merge branch 'dev' into major-release-9
tannalynn Feb 13, 2023
aaabb87
uncomment slack notify job
tannalynn Feb 13, 2023
560af01
Update CHANGELOG with community contributions
hannahramadan Feb 13, 2023
bd8d117
Link PRs to CHANGELOG entries
hannahramadan Feb 13, 2023
a1597ea
remove puts
tannalynn Feb 13, 2023
4c9ccfe
Merge branch 'major-release-9' of github.com:newrelic/newrelic-ruby-a…
tannalynn Feb 13, 2023
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
22 changes: 11 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby-version: [2.2.10, 3.2.0]
ruby-version: [2.4.10, 3.2.0]
steps:
- name: Configure git
run: 'git config --global init.defaultBranch main'
Expand All @@ -54,27 +54,27 @@ jobs:
key: ${{ matrix.ruby-version }}
map: |
{
"2.2.10": {
"rails": "norails,rails41,rails32"
"2.4.10": {
"rails": "norails,rails42,rails52"
},
"3.2.0": {
"rails": "norails,rails61,rails70"
}
}

- if: matrix.ruby-version == '2.2.10'
- if: matrix.ruby-version == '2.4.10'
name: Prepare mysql dirextory
run: sudo chown -R $USER /usr/local

- if: matrix.ruby-version == '2.2.10'
- if: matrix.ruby-version == '2.4.10'
name: Cache mysql55
id: mysql55-cache
uses: actions/cache@v3.2.2
with:
path: /usr/local/mysql55
key: mysql55-install

- if: steps.mysql55-cache.outputs.cache-hit != 'true' && matrix.ruby-version == '2.2.10'
- if: steps.mysql55-cache.outputs.cache-hit != 'true' && matrix.ruby-version == '2.4.10'
name: Install mysql55
run: sudo ./test/script/install_mysql55

Expand Down Expand Up @@ -139,7 +139,7 @@ jobs:
--health-timeout 5s
--health-retries 5
mongodb:
image: ${{ contains(fromJson('["2.2.10", "2.3.8", "2.4.10"]'), matrix.ruby-version) && 'mongo:5.0.11' || 'mongo:latest' }}
image: ${{ contains(fromJson('["2.4.10"]'), matrix.ruby-version) && 'mongo:5.0.11' || 'mongo:latest' }}
ports:
- 27017:27017
mysql:
Expand Down Expand Up @@ -183,7 +183,7 @@ jobs:
fail-fast: false
matrix:
multiverse: [agent, background, background_2, database, frameworks, httpclients, httpclients_2, rails, rest]
ruby-version: [2.2.10, 3.2.0]
ruby-version: [2.4.10, 3.2.0]

steps:
- name: Configure git
Expand All @@ -202,19 +202,19 @@ jobs:
ruby-version: ${{ matrix.ruby-version }}

# This allows the cache in the following step to be able to write files to the directory needed for mysql
- if: matrix.ruby-version == '2.2.10'
- if: matrix.ruby-version == '2.4.10'
name: Prepare mysql directory
run: sudo chown -R $USER /usr/local

- if: matrix.ruby-version == '2.2.10'
- if: matrix.ruby-version == '2.4.10'
name: Cache mysql55
id: mysql55-cache
uses: actions/cache@v3.2.2
with:
path: /usr/local/mysql55
key: mysql55-install

- if: steps.mysql55-cache.outputs.cache-hit != 'true' && matrix.ruby-version == '2.2.10'
- if: steps.mysql55-cache.outputs.cache-hit != 'true' && matrix.ruby-version == '2.4.10'
name: Install mysql55
run: sudo ./test/script/install_mysql55

Expand Down
98 changes: 46 additions & 52 deletions .github/workflows/ci_cron.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
strategy:
fail-fast: false
matrix:
ruby-version: [2.2.10, 2.3.8, 2.4.10, 2.5.9, 2.6.10, 2.7.7, 3.0.5, 3.1.3, 3.2.0]
ruby-version: [2.4.10, 2.5.9, 2.6.10, 2.7.7, 3.0.5, 3.1.3, 3.2.0]

steps:
- name: Configure git
Expand All @@ -61,12 +61,6 @@ jobs:
key: ${{ matrix.ruby-version }}
map: |
{
"2.2.10": {
"rails": "norails,rails41,rails40,rails32"
},
"2.3.8": {
"rails": "norails,rails52,rails51,rails42,rails41,rails40,rails32"
},
"2.4.10": {
"rails": "norails,rails52,rails51,rails42"
},
Expand All @@ -90,19 +84,19 @@ jobs:
}
}

- if: matrix.ruby-version == '2.2.10' || matrix.ruby-version == '2.3.8' || matrix.ruby-version == '2.4.10' || matrix.ruby-version == '2.5.9' || matrix.ruby-version == '2.6.10'
- if: matrix.ruby-version == '2.4.10' || matrix.ruby-version == '2.5.9' || matrix.ruby-version == '2.6.10'
name: Prepare mysql dirextory
run: sudo chown -R $USER /usr/local

- if: matrix.ruby-version == '2.2.10' || matrix.ruby-version == '2.3.8' || matrix.ruby-version == '2.4.10' || matrix.ruby-version == '2.5.9' || matrix.ruby-version == '2.6.10'
- if: matrix.ruby-version == '2.4.10' || matrix.ruby-version == '2.5.9' || matrix.ruby-version == '2.6.10'
name: Cache mysql55
id: mysql55-cache
uses: actions/cache@v3.2.2
with:
path: /usr/local/mysql55
key: mysql55-install

- if: steps.mysql55-cache.outputs.cache-hit != 'true' && ( matrix.ruby-version == '2.2.10' || matrix.ruby-version == '2.3.8' || matrix.ruby-version == '2.4.10' || matrix.ruby-version == '2.5.9' || matrix.ruby-version == '2.6.10')
- if: steps.mysql55-cache.outputs.cache-hit != 'true' && ( matrix.ruby-version == '2.4.10' || matrix.ruby-version == '2.5.9' || matrix.ruby-version == '2.6.10')
name: Install mysql55
run: sudo ./test/script/install_mysql55

Expand Down Expand Up @@ -159,7 +153,7 @@ jobs:
--health-timeout 5s
--health-retries 5
mongodb:
image: ${{ contains(fromJson('["2.2.10", "2.3.8", "2.4.10"]'), matrix.ruby-version) && 'mongo:5.0.11' || 'mongo:latest' }}
image: ${{ contains(fromJson('["2.4.10"]'), matrix.ruby-version) && 'mongo:5.0.11' || 'mongo:latest' }}
ports:
- 27017:27017
mysql:
Expand Down Expand Up @@ -203,7 +197,7 @@ jobs:
fail-fast: false
matrix:
multiverse: [agent, background, background_2, database, frameworks, httpclients, httpclients_2, rails, rest]
ruby-version: [2.2.10, 2.3.8, 2.4.10, 2.5.9, 2.6.10, 2.7.7, 3.0.5, 3.1.3, 3.2.0]
ruby-version: [2.4.10, 2.5.9, 2.6.10, 2.7.7, 3.0.5, 3.1.3, 3.2.0]
steps:
- name: Configure git
run: 'git config --global init.defaultBranch main'
Expand All @@ -220,19 +214,19 @@ jobs:
with:
ruby-version: ${{ matrix.ruby-version }}

- if: matrix.ruby-version == '2.2.10' || matrix.ruby-version == '2.3.8'
- if: matrix.ruby-version == '2.4.10'
name: Prepare mysql dirextory
run: sudo chown -R $USER /usr/local

- if: matrix.ruby-version == '2.2.10' || matrix.ruby-version == '2.3.8'
- if: matrix.ruby-version == '2.4.10'
name: Cache mysql55
id: mysql55-cache
uses: actions/cache@v3.2.2
with:
path: /usr/local/mysql55
key: mysql55-install

- if: steps.mysql55-cache.outputs.cache-hit != 'true' && ( matrix.ruby-version == '2.2.10' || matrix.ruby-version == '2.3.8')
- if: steps.mysql55-cache.outputs.cache-hit != 'true' && ( matrix.ruby-version == '2.4.10')
name: Install mysql55
run: sudo ./test/script/install_mysql55

Expand Down Expand Up @@ -310,40 +304,40 @@ jobs:
uses: ./.github/actions/annotate


notify_slack_fail:
name: Notify slack fail
needs: [unit_tests, multiverse, infinite_tracing]
runs-on: ubuntu-22.04
if: always()
steps:
- uses: technote-space/workflow-conclusion-action@v3
- uses: voxmedia/github-action-slack-notify-build@v1
if: ${{ env.WORKFLOW_CONCLUSION == 'failure' && github.event_name != 'workflow_dispatch' }}
env:
SLACK_BOT_TOKEN: ${{ secrets.RUBY_GITHUB_ACTIONS_BOT_WEBHOOK }}
with:
channel: ruby-agent-notifications
status: FAILED
color: danger


notify_slack_success:
name: Notify slack success
needs: [unit_tests, multiverse, infinite_tracing]
runs-on: ubuntu-22.04
if: always()
steps:
- uses: technote-space/workflow-conclusion-action@v3
- run: echo ${{ github.event_name }}
- uses: Mercymeilya/last-workflow-status@v0.3.2
id: last_status
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
- uses: voxmedia/github-action-slack-notify-build@v1
if: ${{ env.WORKFLOW_CONCLUSION == 'success' && steps.last_status.outputs.last_status == 'failure' && github.event_name != 'workflow_dispatch' }}
env:
SLACK_BOT_TOKEN: ${{ secrets.RUBY_GITHUB_ACTIONS_BOT_WEBHOOK }}
with:
channel: ruby-agent-notifications
status: SUCCESS
color: good
# notify_slack_fail:
tannalynn marked this conversation as resolved.
Show resolved Hide resolved
# name: Notify slack fail
# needs: [unit_tests, multiverse, infinite_tracing]
# runs-on: ubuntu-22.04
# if: always()
# steps:
# - uses: technote-space/workflow-conclusion-action@v3
# - uses: voxmedia/github-action-slack-notify-build@v1
# if: ${{ env.WORKFLOW_CONCLUSION == 'failure' && github.event_name != 'workflow_dispatch' }}
# env:
# SLACK_BOT_TOKEN: ${{ secrets.RUBY_GITHUB_ACTIONS_BOT_WEBHOOK }}
# with:
# channel: ruby-agent-notifications
# status: FAILED
# color: danger


# notify_slack_success:
# name: Notify slack success
# needs: [unit_tests, multiverse, infinite_tracing]
# runs-on: ubuntu-22.04
# if: always()
# steps:
# - uses: technote-space/workflow-conclusion-action@v3
# - run: echo ${{ github.event_name }}
# - uses: Mercymeilya/last-workflow-status@v0.3.2
# id: last_status
# with:
# github_token: ${{ secrets.GITHUB_TOKEN }}
# - uses: voxmedia/github-action-slack-notify-build@v1
# if: ${{ env.WORKFLOW_CONCLUSION == 'success' && steps.last_status.outputs.last_status == 'failure' && github.event_name != 'workflow_dispatch' }}
# env:
# SLACK_BOT_TOKEN: ${{ secrets.RUBY_GITHUB_ACTIONS_BOT_WEBHOOK }}
# with:
# channel: ruby-agent-notifications
# status: SUCCESS
# color: good
31 changes: 6 additions & 25 deletions .github/workflows/scripts/setup_bundler
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ function using_old_rails {

function using_old_ruby {
# example RUBY_VERSION strings:
# '2.2.10' => true, starts with "2", next digit is not a "6" or "7"
# '2.4.10' => true, starts with "2", next digit is not a "6" or "7"
# '2.7.7' => false, starts with "2", next digit is "7"
# '3.1.3' => false, does not start with "2"
echo "DEBUG: RUBY_VERSION = $RUBY_VERSION"
Expand All @@ -28,12 +28,7 @@ function update_to_desired_rubygems_version {
# correctly install Bundler 1.17 for the multiverse test suite
# Rubies < 2.3 need to use update_rubygems,
# newer Rubies can use 'gem update --system'
if [[ $RUBY_VERSION = "2.2.10" ]]; then
echo "DEBUG: installing rubygems-update version 2.7.11"
gem install rubygems-update:2.7.11
echo "DEBUG: running 'rubygems-update'"
update_rubygems
elif [[ $RUBY_VERSION =~ 2.[^7] ]]; then
if [[ $RUBY_VERSION =~ 2.[^7] ]]; then
echo "DEBUG: running 'gem update --system 3.0.6 --force'"
gem update --system 3.0.6 --force >/dev/null
else
Expand All @@ -56,23 +51,10 @@ function install_desired_bundler_version {
echo "DEBUG: running 'gem list bundler'"
gem list bundler
echo "DEBUG: RUBY_VERSION = $RUBY_VERSION"
if [[ $RUBY_VERSION != "2.2.10" ]]; then
echo "DEBUG: running 'gem uninstall bundler'"
gem uninstall bundler
echo "DEBUG: running 'gem list bundler' again"
gem list bundler
fi
}

function configure_bundler {
if ! [[ $RUBY_VERSION =~ 2.[23] ]]; then
echo "DEBUG: Ruby is not at version 2.2-2.5, skipping 'bundler config'"
return
fi

# add mysql specific config for bundler when we are using older mysql
echo "DEBUG: running 'bundle config'"
bundle config --global build.mysql2 --with-mysql-config=/usr/local/mysql55/bin/mysql_config
echo "DEBUG: running 'gem uninstall bundler'"
gem uninstall bundler
echo "DEBUG: running 'gem list bundler' again"
gem list bundler
}

function install_ruby_version_specific_gems {
Expand Down Expand Up @@ -108,7 +90,6 @@ function set_up_bundler {

update_to_desired_rubygems_version
install_desired_bundler_version
configure_bundler
}

echo "DEBUG: setting up Bundler"
Expand Down
28 changes: 0 additions & 28 deletions .rubocop.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1081,18 +1081,6 @@ Performance/MapCompact:
Performance/MethodObjectAsBlock:
Enabled: false

# TODO: OLD RUBIES - Requires 2.4
Performance/RegexpMatch:
Enabled: false

# TODO: OLD RUBIES - Requires 2.4
Performance/Sum:
Enabled: false

# TODO: OLD RUBIES - Requires 2.3
Performance/UnfreezeString:
Enabled: false

# Disabling for now
Security/Eval:
Enabled: false
Expand Down Expand Up @@ -1330,11 +1318,6 @@ Style/ExplicitBlockArgument:
Style/ExponentialNotation:
Enabled: false

# TODO: MAJOR VERSION - Re-enable FetchEnvVar after dropping support for Ruby 2.2
# Ruby 2.3+ allows for ENV.fetch('KEY') { default }
Style/FetchEnvVar:
Enabled: false

Style/FloatDivision:
Enabled: false

Expand Down Expand Up @@ -1740,17 +1723,6 @@ Style/RescueStandardError:
Style/ReturnNil:
Enabled: false

# Can't use, not available in Ruby 2.2
Style/SafeNavigation:
Enabled: false
# ConvertCodeThatCanStartToReturnNil: false
# AllowedMethods:
# - present?
# - blank?
# - presence
# - try
# - try!

Style/Sample:
Enabled: true

Expand Down
Loading