octokit 0.6.2 → 0.6.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/.travis.yml +3 -2
- data/CHANGELOG.md +20 -0
- data/Gemfile +5 -1
- data/README.md +67 -0
- data/lib/faraday/response/raise_error.rb +1 -1
- data/lib/octokit/client/commits.rb +2 -2
- data/lib/octokit/client/connection.rb +5 -7
- data/lib/octokit/client/issues.rb +19 -19
- data/lib/octokit/client/network.rb +2 -2
- data/lib/octokit/client/objects.rb +6 -6
- data/lib/octokit/client/organizations.rb +18 -18
- data/lib/octokit/client/pulls.rb +3 -3
- data/lib/octokit/client/repositories.rb +29 -29
- data/lib/octokit/client/request.rb +20 -19
- data/lib/octokit/client/timelines.rb +5 -5
- data/lib/octokit/client/users.rb +15 -15
- data/lib/octokit/configuration.rb +4 -15
- data/lib/octokit/version.rb +1 -1
- data/octokit.gemspec +14 -14
- data/spec/fixtures/{blob.json → v2/blob.json} +0 -0
- data/spec/fixtures/{blob_metadata.json → v2/blob_metadata.json} +0 -0
- data/spec/fixtures/{blobs.json → v2/blobs.json} +0 -0
- data/spec/fixtures/{branches.json → v2/branches.json} +0 -0
- data/spec/fixtures/{collaborators.json → v2/collaborators.json} +0 -0
- data/spec/fixtures/{comment.json → v2/comment.json} +0 -0
- data/spec/fixtures/{comments.json → v2/comments.json} +0 -0
- data/spec/fixtures/{commit.json → v2/commit.json} +0 -0
- data/spec/fixtures/{commits.json → v2/commits.json} +0 -0
- data/spec/fixtures/{contributors.json → v2/contributors.json} +0 -0
- data/spec/fixtures/v2/delete_failure.json +1 -0
- data/spec/fixtures/{delete_token.json → v2/delete_token.json} +0 -0
- data/spec/fixtures/{emails.json → v2/emails.json} +0 -0
- data/spec/fixtures/{followers.json → v2/followers.json} +0 -0
- data/spec/fixtures/{following.json → v2/following.json} +0 -0
- data/spec/fixtures/{issue.json → v2/issue.json} +0 -0
- data/spec/fixtures/{issues.json → v2/issues.json} +0 -0
- data/spec/fixtures/{labels.json → v2/labels.json} +0 -0
- data/spec/fixtures/{languages.json → v2/languages.json} +0 -0
- data/spec/fixtures/{network.json → v2/network.json} +0 -0
- data/spec/fixtures/{network_data.json → v2/network_data.json} +0 -0
- data/spec/fixtures/{network_meta.json → v2/network_meta.json} +0 -0
- data/spec/fixtures/{organization.json → v2/organization.json} +0 -0
- data/spec/fixtures/{organizations.json → v2/organizations.json} +0 -0
- data/spec/fixtures/{public_keys.json → v2/public_keys.json} +0 -0
- data/spec/fixtures/{pull.json → v2/pull.json} +0 -0
- data/spec/fixtures/{pulls.json → v2/pulls.json} +0 -0
- data/spec/fixtures/{raw.txt → v2/raw.txt} +0 -0
- data/spec/fixtures/{repositories.json → v2/repositories.json} +0 -0
- data/spec/fixtures/{repository.json → v2/repository.json} +0 -0
- data/spec/fixtures/{tags.json → v2/tags.json} +0 -0
- data/spec/fixtures/{team.json → v2/team.json} +0 -0
- data/spec/fixtures/{teams.json → v2/teams.json} +0 -0
- data/spec/fixtures/{tree.json → v2/tree.json} +0 -0
- data/spec/fixtures/{tree_metadata.json → v2/tree_metadata.json} +0 -0
- data/spec/fixtures/{user.json → v2/user.json} +0 -0
- data/spec/fixtures/{users.json → v2/users.json} +0 -0
- data/spec/fixtures/{watchers.json → v2/watchers.json} +0 -0
- data/spec/fixtures/v3/issues.json +1580 -0
- data/spec/helper.rb +3 -3
- data/spec/octokit/client/commits_spec.rb +2 -2
- data/spec/octokit/client/issues_spec.rb +25 -26
- data/spec/octokit/client/network_spec.rb +2 -2
- data/spec/octokit/client/objects_spec.rb +6 -9
- data/spec/octokit/client/organizations_spec.rb +19 -19
- data/spec/octokit/client/pulls_spec.rb +3 -3
- data/spec/octokit/client/repositories_spec.rb +44 -31
- data/spec/octokit/client/users_spec.rb +21 -21
- data/spec/octokit/client_spec.rb +8 -7
- metadata +110 -96
- data/README.markdown +0 -73
- data/changelog.markdown +0 -42
data/README.markdown
DELETED
@@ -1,73 +0,0 @@
|
|
1
|
-
Octokit
|
2
|
-
=======
|
3
|
-
Simple Ruby wrapper for the GitHub v2 API.
|
4
|
-
|
5
|
-
Installation
|
6
|
-
------------
|
7
|
-
gem install octokit
|
8
|
-
|
9
|
-
Continuous Integration
|
10
|
-
----------------------
|
11
|
-
[](http://travis-ci.org/pengwynn/octokit)
|
12
|
-
|
13
|
-
Some examples
|
14
|
-
-------------
|
15
|
-
|
16
|
-
### Show a user
|
17
|
-
|
18
|
-
Octokit.user('pengwynn')
|
19
|
-
=> <#Hashie::Mash blog="http://wynnnetherland.com" company="Orrka" created_at="2008/02/25 10:24:19 -0800" email="wynn.netherland@gmail.com" followers_count=21 following_count=55 id=865 location="Dallas, TX" login="pengwynn" name="Wynn Netherland" public_gist_count=4 public_repo_count=16>
|
20
|
-
|
21
|
-
### Show who a user follows
|
22
|
-
|
23
|
-
Octokit.following('pengwynn')
|
24
|
-
=> ["cglee", "bryansray", "rails", "zachinglis", "wycats", "obie", "mully", "squeejee", "jderrett", "Shopify", "ReinH", "technoweenie", "errfree", "defunkt", "joshsusser", "hashrocket", "newbamboo", "bigtiger", "github", "jamis", "jeresig", "thoughtbot", "therealadam", "jnunemaker", "seaofclouds", "choan", "llimllib", "kwhinnery", "marshall", "handcrafted", "adamstac", "jashkenas", "dan", "remy", "hayesdavis", "documentcloud", "imathis", "mdeiters", "njonsson", "asenchi", "mattsa", "marclove", "webiest", "brogers", "polomasta", "stephp", "mchelen", "piyush", "davidnorth", "rmetzler", "jferris", "madrobby", "zh", "erikvold", "desandro"]
|
25
|
-
|
26
|
-
Working with repositories
|
27
|
-
-------------------------
|
28
|
-
For convenience, methods that require a repo argument may be passed in any of the following forms
|
29
|
-
|
30
|
-
* "pengwynn/linked"
|
31
|
-
* {:username => 'pengwynn', :name => 'linkedin'}
|
32
|
-
* {:username => 'pengwynn', :repo => 'linkedin'}
|
33
|
-
* instance of Repository
|
34
|
-
|
35
|
-
### Show a repo
|
36
|
-
|
37
|
-
Octokit.repo("pengwynn/linkedin")
|
38
|
-
=> <#Hashie::Mash description="Ruby wrapper for the LinkedIn API" fork=false forks=1 homepage="http://bit.ly/ruby-linkedin" name="linkedin" open_issues=2 owner="pengwynn" private=false url="http://github.com/pengwynn/linkedin" watchers=36>
|
39
|
-
|
40
|
-
Authenticated requests
|
41
|
-
----------------------
|
42
|
-
Some methods require authentication so you'll need to pass a login and an api_token. You can find your GitHub API token on your [account page](https://github.com/account)
|
43
|
-
|
44
|
-
client = Octokit::Client.new(:login => 'pengwynn', :token => 'OU812')
|
45
|
-
client.follow!('adamstac')
|
46
|
-
|
47
|
-
Read the full [docs](http://rdoc.info/projects/pengwynn/octokit)
|
48
|
-
|
49
|
-
TODO
|
50
|
-
----
|
51
|
-
* Feed parsing
|
52
|
-
* More examples
|
53
|
-
|
54
|
-
Submitting a Pull Request
|
55
|
-
-------------------------
|
56
|
-
1. Fork the project.
|
57
|
-
2. Create a topic branch.
|
58
|
-
3. Implement your feature or bug fix.
|
59
|
-
4. Add documentation for your feature or bug fix.
|
60
|
-
5. Run <tt>bundle exec rake doc:yard</tt>. If your changes are not 100% documented, go back to step 4.
|
61
|
-
6. Add specs for your feature or bug fix.
|
62
|
-
7. Run <tt>bundle exec rake spec</tt>. If your changes are not 100% covered, go back to step 6.
|
63
|
-
8. Commit and push your changes.
|
64
|
-
9. Submit a pull request. Please do not include changes to the version or gemspec. (If you want to create your own version for some reason, please do so in a separate commit.)
|
65
|
-
|
66
|
-
Credits
|
67
|
-
-------
|
68
|
-
Octokit is inspired by [Octopi](http://github.com/fcoury/octopi) and aims to be a lightweight, less active-resourcey alternative.
|
69
|
-
|
70
|
-
Copyright
|
71
|
-
---------
|
72
|
-
Copyright (c) 2011 [Wynn Netherland](http://wynnnetherland.com), [Adam Stacoviak](http://adamstacoviak.com/), [Erik Michaels-Ober](https://github.com/sferik).
|
73
|
-
See [LICENSE](https://github.com/pengwynn/octokit/blob/master/LICENSE) for details.
|
data/changelog.markdown
DELETED
@@ -1,42 +0,0 @@
|
|
1
|
-
# Changelog
|
2
|
-
## 0.5.0
|
3
|
-
* Rewrote all tests in rspec
|
4
|
-
* A handful of backwards-incompatible API changes
|
5
|
-
## 0.4.1
|
6
|
-
* Patch from [karlfreeman](http://github.com/karlfreeman) to fix user search
|
7
|
-
## 0.4.0
|
8
|
-
* Renamed to Ocotokit
|
9
|
-
* Switched to Faraday from HTTParty
|
10
|
-
## 0.3.0
|
11
|
-
* Added set_repo_info patch from [Scott Bronson](http://github.com/bronson)
|
12
|
-
## 0.2.4
|
13
|
-
* Rev'd HTTParty dependency, switched to Bundler
|
14
|
-
## 0.2.3
|
15
|
-
* Patch from [Sutto](http://github.com/Sutto) to use authentication with list repos if available
|
16
|
-
## 0.2.2
|
17
|
-
* Patch from [abrader](http://github.com/abrader) to add auth_params query to the blob, tree, and repo class methods
|
18
|
-
## 0.2.1
|
19
|
-
* Contributors API courtesy of @enricob
|
20
|
-
## 0.2.0
|
21
|
-
* Commits API courtesy of @enricob
|
22
|
-
|
23
|
-
## 0.1.4
|
24
|
-
|
25
|
-
* Preserved links array and content for events parsed from feeds
|
26
|
-
|
27
|
-
## 0.1.3
|
28
|
-
|
29
|
-
* Added Download event
|
30
|
-
|
31
|
-
## 0.1.2
|
32
|
-
|
33
|
-
* Added Delete event type
|
34
|
-
* Added Public event type
|
35
|
-
|
36
|
-
## 0.1.1
|
37
|
-
|
38
|
-
* Added Comment event type
|
39
|
-
|
40
|
-
## 0.0.1 Initial version
|
41
|
-
|
42
|
-
* GitHub v2 API complete
|