Skip to content

Commit

Permalink
Release 1.20.0
Browse files Browse the repository at this point in the history
  • Loading branch information
pengwynn committed Dec 22, 2012
1 parent a946aeb commit dc2c04c
Show file tree
Hide file tree
Showing 3 changed files with 30 additions and 1 deletion.
11 changes: 11 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,16 @@
# CHANGELOG

# 1.20.0

* [@joeyw](https://github.com/joeyw) added `.all_users` and `.all_repositories`
* [@joeyw](https://github.com/joeyw) added `.issues_comments` and `.pull_request_comments`
* [@x3ro](https://github.com/x3ro) added some date parsing to Commits API
* .netrc support

View [the full changelog][1.20.0].
[1.20.0]: https://github.com/pengwynn/octokit/compare/v1.19.0...v1.20.0


# 1.19.0

This version has some substantial rewiring internally to support non-JSON
Expand Down
18 changes: 18 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -68,6 +68,23 @@ client = Octokit::Client.new(:login => "me", :oauth_token => "oauth2token")
client.follow("sferik")
```

### Using `.netrc` for stored credentials

Octokit now supports [`.netrc`][netrc] files for storing your GitHub Basic Auth
credentials. Given a `~/.netrc` like the following

```
machine api.github.com login pengwynn password 0ct0c4tz4ev3r!
```

You can make authenticated calls by telling Octokit to use credentials from
this file:

```ruby
Octokit.netrc => true # or /path/to/file
Octokit.user # authenticates as 'pengwynn' user
```

## Requesting a specific media type

You can pass an `:accept` option value to request a particular [media
Expand Down Expand Up @@ -178,3 +195,4 @@ Copyright (c) 2011 Wynn Netherland, Adam Stacoviak, Erik Michaels-Ober. See
[license]: https://github.com/pengwynn/octokit/blob/master/LICENSE.md
[media-types]: http://developer.github.com/v3/media/
[oauth]: http://developer.github.com/v3/oauth
[netrc]: http://www.gnu.org/software/inetutils/manual/html_node/The-_002enetrc-File.html
2 changes: 1 addition & 1 deletion lib/octokit/version.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module Octokit
VERSION = "1.19.0" unless defined?(Octokit::VERSION)
VERSION = "1.20.0" unless defined?(Octokit::VERSION)
end

0 comments on commit dc2c04c

Please sign in to comment.