rubhub 0.0.4 → 0.1.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/README.md +0 -124
- data/test/test.rb +9 -0
- metadata +21 -36
- checksums.yaml +0 -7
data/README.md
CHANGED
@@ -1,124 +0,0 @@
|
|
1
|
-
*rubhub - Ruby Gem for the Github API*
|
2
|
-
=================================================
|
3
|
-
-------------------------------------------------
|
4
|
-
A minimal Ruby Gem created for making interaction with the Github API(v3) easy and predictable.
|
5
|
-
|
6
|
-
http://developer.github.com/v3/
|
7
|
-
|
8
|
-
*Installation*
|
9
|
-
-------------------------------------------------
|
10
|
-
<pre>
|
11
|
-
gem install rubhub
|
12
|
-
</pre>
|
13
|
-
|
14
|
-
*Basic Authentication*
|
15
|
-
-------------------------------------------------
|
16
|
-
Use a username and password associated with a Github account.
|
17
|
-
|
18
|
-
Example:
|
19
|
-
<pre>
|
20
|
-
require 'rubhub'
|
21
|
-
g = Github.new( username, password )
|
22
|
-
</pre>
|
23
|
-
|
24
|
-
*Making Requests*
|
25
|
-
=================================================
|
26
|
-
-------------------------------------------------
|
27
|
-
Use the API documentation as a reference. The library is structured exactly like the API v3 documentation.
|
28
|
-
|
29
|
-
*Example Request for Authenticated User's Data*
|
30
|
-
-------------------------------------------------
|
31
|
-
<pre>
|
32
|
-
response = g.users.getUser()
|
33
|
-
</pre>
|
34
|
-
<h4>The response...</h4>
|
35
|
-
<pre>
|
36
|
-
{
|
37
|
-
"type": "User",
|
38
|
-
"url": "https://api.github.com/users/username",
|
39
|
-
"private_gists": 2,
|
40
|
-
"created_at": "2011-07-07T22:20:48Z",
|
41
|
-
"email": "example@gmail.com",
|
42
|
-
"html_url": "https://github.com/username",
|
43
|
-
"gravatar_id": "123123123123123123123123123",
|
44
|
-
"collaborators": 1,
|
45
|
-
"hireable": false,
|
46
|
-
"disk_usage": 13348,
|
47
|
-
"total_private_repos": 3,
|
48
|
-
"following": 4,
|
49
|
-
"blog": "http://www.yoursitename.com/",
|
50
|
-
"bio": null,
|
51
|
-
"avatar_url": "https://www.avatar.com/pathtoyouravatar.png",
|
52
|
-
"login": "username",
|
53
|
-
"owned_private_repos": 3,
|
54
|
-
"followers": 1,
|
55
|
-
"name": "Your Name",
|
56
|
-
"plan": {
|
57
|
-
"private_repos": 10,
|
58
|
-
"collaborators": 3,
|
59
|
-
"space": 614400,
|
60
|
-
"name": "micro"
|
61
|
-
},
|
62
|
-
"location": "Your City, NY",
|
63
|
-
"id": 902312,
|
64
|
-
"public_repos": 0,
|
65
|
-
"public_gists": 17,
|
66
|
-
"company": "Your Company Name, LLC"
|
67
|
-
}
|
68
|
-
</pre>
|
69
|
-
|
70
|
-
|
71
|
-
*Example Request Creating a New Repository*
|
72
|
-
-------------------------------------------------
|
73
|
-
<pre>
|
74
|
-
# Using just the new Repo name
|
75
|
-
response = g.repos.createUserRepo( "MyNewRepo" )
|
76
|
-
|
77
|
-
# Using some other parameters
|
78
|
-
name = 'MyNewRepo'
|
79
|
-
desc = 'Some description.'
|
80
|
-
page = 'www.homepage.com'
|
81
|
-
private = TRUE
|
82
|
-
has_issues = TRUE
|
83
|
-
has_wiki = TRUE
|
84
|
-
has_downloads = TRUE
|
85
|
-
response = g.repos.createUserRepo( name, desc, page, private, has_issues, has_wiki, has_downloads )
|
86
|
-
</pre>
|
87
|
-
|
88
|
-
<h4>The response...</h4>
|
89
|
-
<pre>
|
90
|
-
{
|
91
|
-
"url": "https://api.github.com/repos/username/MyNewRepo",
|
92
|
-
"watchers": 1,
|
93
|
-
"has_issues": true,
|
94
|
-
"created_at": "2012-02-14T03:40:49Z",
|
95
|
-
"html_url": "https://github.com/username/MyNewRepo",
|
96
|
-
"has_downloads": true,
|
97
|
-
"ssh_url": "git@github.com:username/MyNewRepo.git",
|
98
|
-
"svn_url": "https://github.com/username/MyNewRepo",
|
99
|
-
"description": "Some description.",
|
100
|
-
"mirror_url": null,
|
101
|
-
"clone_url": "https://github.com/username/MyNewRepo.git",
|
102
|
-
"forks": 1,
|
103
|
-
"fork": false,
|
104
|
-
"has_wiki": true,
|
105
|
-
"private": True,
|
106
|
-
"homepage": "www.homepage.com",
|
107
|
-
"size": 0,
|
108
|
-
"updated_at": "2012-02-14T03:40:49Z",
|
109
|
-
"owner": {
|
110
|
-
"url": "https://api.github.com/users/username",
|
111
|
-
"avatar_url": "https://secure.gravatar.com/avatar/someimage.png",
|
112
|
-
"gravatar_id": "948f18791231231231231231231",
|
113
|
-
"login": "username",
|
114
|
-
"id": 901650
|
115
|
-
},
|
116
|
-
"name": "MyNewRepo",
|
117
|
-
"open_issues": 0,
|
118
|
-
"master_branch": null,
|
119
|
-
"pushed_at": null,
|
120
|
-
"id": 3436770,
|
121
|
-
"git_url": "git://github.com/username/MyNewRepo.git",
|
122
|
-
"language": null
|
123
|
-
}
|
124
|
-
</pre>
|
data/test/test.rb
ADDED
metadata
CHANGED
@@ -1,55 +1,38 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rubhub
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.1.3
|
5
|
+
prerelease:
|
5
6
|
platform: ruby
|
6
7
|
authors:
|
7
8
|
- Sean Kennedy
|
8
9
|
autorequire:
|
9
10
|
bindir: bin
|
10
11
|
cert_chain: []
|
11
|
-
date: 2012-
|
12
|
+
date: 2012-03-08 00:00:00.000000000 Z
|
12
13
|
dependencies:
|
13
14
|
- !ruby/object:Gem::Dependency
|
14
15
|
name: json
|
15
|
-
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirement: &21544728 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
16
18
|
requirements:
|
17
|
-
- -
|
19
|
+
- - ~>
|
18
20
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
20
|
-
- - ">="
|
21
|
-
- !ruby/object:Gem::Version
|
22
|
-
version: 1.7.7
|
21
|
+
version: 1.5.4
|
23
22
|
type: :runtime
|
24
23
|
prerelease: false
|
25
|
-
version_requirements:
|
26
|
-
requirements:
|
27
|
-
- - "~>"
|
28
|
-
- !ruby/object:Gem::Version
|
29
|
-
version: '1.7'
|
30
|
-
- - ">="
|
31
|
-
- !ruby/object:Gem::Version
|
32
|
-
version: 1.7.7
|
24
|
+
version_requirements: *21544728
|
33
25
|
- !ruby/object:Gem::Dependency
|
34
26
|
name: rest-client
|
35
|
-
requirement: !ruby/object:Gem::Requirement
|
27
|
+
requirement: &21544416 !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
36
29
|
requirements:
|
37
|
-
- -
|
38
|
-
- !ruby/object:Gem::Version
|
39
|
-
version: '1.6'
|
40
|
-
- - ">="
|
30
|
+
- - ~>
|
41
31
|
- !ruby/object:Gem::Version
|
42
32
|
version: 1.6.7
|
43
33
|
type: :runtime
|
44
34
|
prerelease: false
|
45
|
-
version_requirements:
|
46
|
-
requirements:
|
47
|
-
- - "~>"
|
48
|
-
- !ruby/object:Gem::Version
|
49
|
-
version: '1.6'
|
50
|
-
- - ">="
|
51
|
-
- !ruby/object:Gem::Version
|
52
|
-
version: 1.6.7
|
35
|
+
version_requirements: *21544416
|
53
36
|
description: An intuitive wrapper for the Github Api v3.
|
54
37
|
email: cspheregreen@gmail.com
|
55
38
|
executables: []
|
@@ -57,6 +40,8 @@ extensions: []
|
|
57
40
|
extra_rdoc_files: []
|
58
41
|
files:
|
59
42
|
- README.md
|
43
|
+
- lib/rubhub.rb
|
44
|
+
- lib/github/github.rb
|
60
45
|
- lib/github/events/events.rb
|
61
46
|
- lib/github/gists/gists.rb
|
62
47
|
- lib/github/gists/gists_comments.rb
|
@@ -66,7 +51,6 @@ files:
|
|
66
51
|
- lib/github/gitdata/gitdata_references.rb
|
67
52
|
- lib/github/gitdata/gitdata_tags.rb
|
68
53
|
- lib/github/gitdata/gitdata_trees.rb
|
69
|
-
- lib/github/github.rb
|
70
54
|
- lib/github/issues/issues.rb
|
71
55
|
- lib/github/issues/issues_comments.rb
|
72
56
|
- lib/github/issues/issues_events.rb
|
@@ -89,28 +73,29 @@ files:
|
|
89
73
|
- lib/github/users/users_emails.rb
|
90
74
|
- lib/github/users/users_followers.rb
|
91
75
|
- lib/github/users/users_keys.rb
|
92
|
-
-
|
76
|
+
- test/test.rb
|
93
77
|
homepage: http://rubygems.org/gems/rubhub
|
94
78
|
licenses: []
|
95
|
-
metadata: {}
|
96
79
|
post_install_message:
|
97
80
|
rdoc_options: []
|
98
81
|
require_paths:
|
99
82
|
- lib
|
100
83
|
required_ruby_version: !ruby/object:Gem::Requirement
|
84
|
+
none: false
|
101
85
|
requirements:
|
102
|
-
- -
|
86
|
+
- - ! '>='
|
103
87
|
- !ruby/object:Gem::Version
|
104
88
|
version: '0'
|
105
89
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
90
|
+
none: false
|
106
91
|
requirements:
|
107
|
-
- -
|
92
|
+
- - ! '>='
|
108
93
|
- !ruby/object:Gem::Version
|
109
94
|
version: '0'
|
110
95
|
requirements: []
|
111
96
|
rubyforge_project:
|
112
|
-
rubygems_version:
|
97
|
+
rubygems_version: 1.8.17
|
113
98
|
signing_key:
|
114
|
-
specification_version:
|
99
|
+
specification_version: 3
|
115
100
|
summary: Intuitive wrapper for the Github Api v3.
|
116
101
|
test_files: []
|
checksums.yaml
DELETED
@@ -1,7 +0,0 @@
|
|
1
|
-
---
|
2
|
-
SHA1:
|
3
|
-
metadata.gz: 3f2e1422df2e24b4607033dc67d95e8bda5270e9
|
4
|
-
data.tar.gz: d948e92b6718fbf8af00ed519c8e3f5d468b8eb3
|
5
|
-
SHA512:
|
6
|
-
metadata.gz: 42d3a1159de5cb94185481adef849e84c2af98c137395051fbfc80f8203f38fe78ef2307b66e50731763e43afbe7a5541a961f6f3399846112331650417f6fa6
|
7
|
-
data.tar.gz: 79614f4f66e18f46f86c67ff12b1467a06a67c8e5ea7c8212e6ad6627c7b732e35801fd0997b425a7e3a3d37fcfcdc6314c75b69a2595d58a6807357eb7cbfd8
|