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

Update Ruby examples to latest versions #36

Merged
merged 5 commits into from
Aug 17, 2018
Merged

Conversation

delner
Copy link
Collaborator

@delner delner commented Aug 14, 2018

Our Ruby examples are out of date, showing Rails 3 apps. Let's update them to the latest Rails and dd-trace-rb version.

@delner delner added ruby WIP work in progress, do not merge labels Aug 14, 2018
@delner delner self-assigned this Aug 14, 2018
@delner delner requested a review from palazzem August 14, 2018 20:55
set_http_auth
end

def set_http_auth
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These tests weren't working because they weren't setting authentication credentials. This fixes them to work with basic auth.

@@ -0,0 +1 @@
export DD_API_KEY=<Your Datadog API key here>
Copy link
Collaborator Author

@delner delner Aug 14, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Added .envrc to allow users who use Direnv to setup their API key, without needing to modify code that's checked into Git.


# queues
gem 'delayed_job_active_record'
gem 'daemons'

# testing
gem 'rails-controller-testing'
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These gems were extracted from Rails 5 and need to be added.

get '/'
end
end
# Currently broken in 0.0.7 of rails-perftest.
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These tests don't work anymore, because rails-perftest has a bug in it that hasn't been fixed. We can enable this again whenever they get around to fixing it.

Copy link
Contributor

@palazzem palazzem left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you very much!

@delner delner force-pushed the delner/update_ruby branch 4 times, most recently from 6de2b58 to d5f9f49 Compare August 15, 2018 20:10
@delner delner removed the WIP work in progress, do not merge label Aug 16, 2018
@delner
Copy link
Collaborator Author

delner commented Aug 16, 2018

Ready for review now.

@delner delner merged commit 856d9c1 into master Aug 17, 2018
@delner delner deleted the delner/update_ruby branch August 17, 2018 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants