README.md in nylas-0.18.1 vs README.md in nylas-0.18.2
- old
+ new
@@ -255,11 +255,11 @@
### Getting the raw contents of a message
It's possible to access the unprocessed contents of a message using the raw method:
```ruby
-raw_contents = message.raw.rfc2822
+raw_contents = message.raw
```
### Creating and Sending Drafts
@@ -443,10 +443,10 @@
If it's your first time updating the ruby gems, you may be prompted for the username/password for rubygems.org. Members of the Nylas team can find that by doing `fetch-password rubygems`.
## OAuth self-test
-Because it's very important that we don't break OAuth, we require releasers to run the OAuth self-test before releasing a version of the gem. The self-test is a small sinatra program which will ask you to click on a couple URLs. You need to make sure that following the URLs return a working token.
+Because it's very important that we don't break OAuth, we require releasers to run the OAuth self-test before releasing a version of the gem. The self-test is a small sinatra program which will ask you to click on a couple URLs. You need to make sure that following the URLs returns a working token.
To set up the program, you need to copy `tests/credentials.rb.templates` as `test/credentials.rb` and edit the `APP_ID` and `APP_SECRET` with a working Nylas API app id and secret. You also need to set up a `/callback` URL in the Nylas admin panel.
You can then run the program using `cd tests && ruby -I../lib auth.rb`