gh_contrib 0.0.2 → 0.1.0
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.
- checksums.yaml +4 -4
- data/README.md +4 -0
- data/lib/gh_contrib/agent.rb +1 -1
- data/lib/gh_contrib/version.rb +1 -1
- metadata +3 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 79585607d2e4b91a941ac9910a24605d2984d896
|
|
4
|
+
data.tar.gz: 1bf38c5c1377d00461e1ecf3fb692f3ece5b7ab0
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f7e5f54328475f73c63d8d6523d1f8be5d0b23b232491756e573ef8bd67d6c48ee5a775bb1efaca576f8588109b26da85a3b959a15102445ccedd4c5857deca1
|
|
7
|
+
data.tar.gz: 62873bf3e27ca10d0d0f9045d566d145addb9bd4f9b7c12720fb72400d539428515a35dead202d4964ed1713f48be568d60860c1f46643d0fc2e14c9cfc23bd3
|
data/README.md
CHANGED
|
@@ -51,3 +51,7 @@ $ gh_contrib banyan | jq 'reduce .[].count as $item (0; . + $item)'
|
|
|
51
51
|
## Limitations
|
|
52
52
|
|
|
53
53
|
* You can't enable two factor authentication for this user if you want to get the data as logged in :cry:.
|
|
54
|
+
|
|
55
|
+
## Caveat
|
|
56
|
+
|
|
57
|
+
* Since it's not an official API, it might be broken anytime :dizzy_face:.
|
data/lib/gh_contrib/agent.rb
CHANGED
|
@@ -11,7 +11,7 @@ module GhContrib
|
|
|
11
11
|
|
|
12
12
|
def login(username, password)
|
|
13
13
|
page = @agent.get "#{GITHUB_URL}/login"
|
|
14
|
-
form = page.forms[
|
|
14
|
+
form = page.forms[0]
|
|
15
15
|
form.field_with(name: 'login').value = username
|
|
16
16
|
form.field_with(name: 'password').value = password
|
|
17
17
|
@agent.submit(form)
|
data/lib/gh_contrib/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: gh_contrib
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0
|
|
4
|
+
version: 0.1.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Kohei Hasegawa
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2016-02-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: commander
|
|
@@ -132,9 +132,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
132
132
|
version: '0'
|
|
133
133
|
requirements: []
|
|
134
134
|
rubyforge_project:
|
|
135
|
-
rubygems_version: 2.
|
|
135
|
+
rubygems_version: 2.4.5.1
|
|
136
136
|
signing_key:
|
|
137
137
|
specification_version: 4
|
|
138
138
|
summary: Show contributions of GitHub.
|
|
139
139
|
test_files: []
|
|
140
|
-
has_rdoc:
|