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

Document latest release instead of master #666

Closed
dentarg opened this issue Apr 29, 2017 · 3 comments
Closed

Document latest release instead of master #666

dentarg opened this issue Apr 29, 2017 · 3 comments

Comments

@dentarg
Copy link
Contributor

dentarg commented Apr 29, 2017

The following isn't a great user experience at all, and makes you scratch your head for quite a bit.

$ bundle init
Writing new Gemfile to /private/tmp/raven/Gemfile

$ echo "gem 'sentry-raven'" >> Gemfile

$ bundle
Fetching gem metadata from https://rubygems.org/..........
Fetching version metadata from https://rubygems.org/.
Resolving dependencies...
Using multipart-post 2.0.0
Using bundler 1.14.6
Installing faraday 0.12.1
Installing sentry-raven 2.4.0
Bundle complete! 1 Gemfile dependency, 4 gems now installed.
Use `bundle show [gemname]` to see where a bundled gem is installed.

Using snippet from https://docs.sentry.io/clients/ruby/config/

$ cat app.rb
require "raven"

Raven.configure do |config|
  config.sanitize_data_for_request_methods = %w(PATCH) # Only send data for PATCH request method
  config.processors -= [Raven::Processor::RequestMethodData] # Do this to always send request data
  config.processors -= [Raven::Processor::Cookies] # Do this to send cookies by default
end
$ bundle exec ruby app.rb
app.rb:4:in `block in <main>': undefined method `sanitize_data_for_request_methods=' for #<Raven::Configuration:0x007f9af990b3e8> (NoMethodError)
	from /Users/dentarg/.gem/ruby/2.2.7/gems/sentry-raven-2.4.0/lib/raven/instance.rb:68:in `configure'
	from /Users/dentarg/.rubies/ruby-2.2.7/lib/ruby/2.2.0/forwardable.rb:204:in `configure'
	from app.rb:3:in `<main>'
@dentarg
Copy link
Contributor Author

dentarg commented Apr 29, 2017

Do docs.sentry.io hold docs for specific versions? Would be great to be able to see the docs for 2.4.0.

@dentarg
Copy link
Contributor Author

dentarg commented Apr 29, 2017

@nateberkopec
Copy link
Contributor

Opening this in the sentry-docs repo

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants