Skip to content

Commit

Permalink
Update patch order
Browse files Browse the repository at this point in the history
  • Loading branch information
hannahramadan committed Jan 6, 2025
1 parent a33b673 commit 4c1e6e0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
8 changes: 4 additions & 4 deletions lib/boot/strap.rb
Original file line number Diff line number Diff line change
Expand Up @@ -27,11 +27,11 @@
# - Next, use the "RUBYOPT" environment variable to require ("-r") this
# file (note that the ".rb" extension is dropped):
# ```
# export RUBYOPT="-r /newrelic/lib/boot/strap"
# export RUBYOPT="-r /Users/hramadan/newrelic-ruby-agent/lib/boot/strap.rb"
# ```
# - Add your New Relic license key as an environment variable.
# ```
# export NEW_RELIC_LICENSE_KEY=1a2b3c4d5e67f8g9h0i
# export NEW_RELIC_LICENSE_KEY=47ae68e8919929c1d99fa3a1a36a0aa8c06ba690
# ```
# - Launch an existing Ruby app as usual. For a Ruby on Rails app, this might
# involve running `bin/rails server`.
Expand All @@ -44,9 +44,9 @@ module NRBundlerPatch
NR_AGENT_GEM = 'newrelic_rpm'

def require(*_groups)
super

require_newrelic

super
end

def require_newrelic
Expand Down
2 changes: 1 addition & 1 deletion test/new_relic/boot/strap_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ def test_the_overall_prepend_based_monkeypatch
end

assert_equal 2, required_gems.size, "Expected 2 gems to be required, saw #{required_gems.size}."
assert_equal [PhonyBundler::DEFAULT_GEM_NAME, 'newrelic_rpm'], required_gems,
assert_equal ['newrelic_rpm', PhonyBundler::DEFAULT_GEM_NAME], required_gems,
"Expected to see 'newrelic_rpm' required. Only saw #{required_gems}"
end

Expand Down

0 comments on commit 4c1e6e0

Please sign in to comment.