gitfave 0.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 08ec85e6193d5ef3ec1577ecd536752efa29ca82
4
+ data.tar.gz: 0886ea9eabf32bb8cc50c0c25b43c8c1703d019d
5
+ SHA512:
6
+ metadata.gz: 7cf2b93af6be2c2602319a7ccab80e4fc64be14f8e248513e31b2ef1098f3db0fcaf274c2ce70f40050b3f8b99fb04c2258ab3a5605422c2ca1368a7ade94e88
7
+ data.tar.gz: f837978f102dbb40b2d7444187a591c338a9bbb4e6b3e58f763897fbfdbd76d3a2454a4b4ee03dfd335609aa50249aa0b8d53dcc4cf98709ceb98c2cd09c4e07
data/.gitignore ADDED
@@ -0,0 +1,17 @@
1
+ *.gem
2
+ *.rbc
3
+ .bundle
4
+ .config
5
+ .yardoc
6
+ Gemfile.lock
7
+ InstalledFiles
8
+ _yardoc
9
+ coverage
10
+ doc/
11
+ lib/bundler/man
12
+ pkg
13
+ rdoc
14
+ spec/reports
15
+ test/tmp
16
+ test/version_tmp
17
+ tmp
data/.rspec ADDED
@@ -0,0 +1 @@
1
+ --color
data/Gemfile ADDED
@@ -0,0 +1,8 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gem 'rspec'
4
+ gem 'webmock'
5
+ gem 'pry'
6
+
7
+ # Specify your gem's dependencies in gitfave.gemspec
8
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2014 Mark Provan
2
+
3
+ MIT License
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,29 @@
1
+ # Gitfave
2
+
3
+ TODO: Write a gem description
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ gem 'gitfave'
10
+
11
+ And then execute:
12
+
13
+ $ bundle
14
+
15
+ Or install it yourself as:
16
+
17
+ $ gem install gitfave
18
+
19
+ ## Usage
20
+
21
+ TODO: Write usage instructions here
22
+
23
+ ## Contributing
24
+
25
+ 1. Fork it ( http://github.com/<my-github-username>/gitfave/fork )
26
+ 2. Create your feature branch (`git checkout -b my-new-feature`)
27
+ 3. Commit your changes (`git commit -am 'Add some feature'`)
28
+ 4. Push to the branch (`git push origin my-new-feature`)
29
+ 5. Create new Pull Request
data/Rakefile ADDED
@@ -0,0 +1 @@
1
+ require "bundler/gem_tasks"
data/gitfave.gemspec ADDED
@@ -0,0 +1,22 @@
1
+ # coding: utf-8
2
+ lib = File.expand_path('../lib', __FILE__)
3
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
+ require 'gitfave/version'
5
+
6
+ Gem::Specification.new do |spec|
7
+ spec.name = "gitfave"
8
+ spec.version = Gitfave::VERSION
9
+ spec.authors = ["Mark Provan"]
10
+ spec.email = ["markgprovan@gmail.com"]
11
+ spec.summary = %q{Finds a Github users favoured langauge.}
12
+ spec.homepage = ""
13
+ spec.license = "MIT"
14
+
15
+ spec.files = `git ls-files -z`.split("\x0")
16
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
17
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
18
+ spec.require_paths = ["lib"]
19
+
20
+ spec.add_development_dependency "bundler", "~> 1.5"
21
+ spec.add_development_dependency "rake"
22
+ end
@@ -0,0 +1,20 @@
1
+ require "net/http"
2
+ require "json"
3
+
4
+ module Gitfave
5
+ class Client
6
+ attr_accessor :username
7
+
8
+ def initialize(username)
9
+ @username = username
10
+ end
11
+
12
+ def fetch_repositories
13
+ Net::HTTP.get(URI "https://api.github.com/users/#{@username}/repos")
14
+ end
15
+
16
+ def user_repositories
17
+ JSON.parse fetch_repositories
18
+ end
19
+ end
20
+ end
@@ -0,0 +1,3 @@
1
+ module Gitfave
2
+ VERSION = "0.0.1"
3
+ end
data/lib/gitfave.rb ADDED
@@ -0,0 +1,38 @@
1
+ require "gitfave/version"
2
+ require "gitfave/client"
3
+
4
+ module Gitfave
5
+
6
+ class Main
7
+ attr_accessor :username, :client
8
+
9
+ def initialize(username)
10
+ @username = username
11
+ @client = Client.new(@username)
12
+ end
13
+
14
+ def language_count
15
+ all_repo_languages = @client.user_repositories.map {|repo| repo["language"]}
16
+ languages_used = all_repo_languages.uniq
17
+ languages_used.each.map {|language| {:language => language, :count => all_repo_languages.count(language)}}
18
+ end
19
+
20
+ def users_favourite_language
21
+ most_popular_count = 0
22
+ most_popular_language = nil
23
+ language_count.each do |lc|
24
+ if lc[:count] > most_popular_count
25
+ most_popular_language = lc
26
+ most_popular_count = lc[:count]
27
+ end
28
+ end
29
+
30
+ return most_popular_language
31
+ end
32
+
33
+ def print_favourite_language
34
+ favourite = users_favourite_language
35
+ "#{@username}'s favourite language is #{favourite[:language]}, having used it #{favourite[:count]} time(s)"
36
+ end
37
+ end
38
+ end
@@ -0,0 +1,27 @@
1
+ require "spec_helper"
2
+ require "pry"
3
+
4
+ module Gitfave
5
+ describe Client do
6
+
7
+ before(:each) do
8
+ @client = Gitfave::Client.new("markprovan")
9
+ stub_request(:get, "https://api.github.com/users/markprovan/repos").
10
+ with(:headers => {'Accept'=>'*/*', 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'Host'=>'api.github.com', 'User-Agent'=>'Ruby'}).
11
+ to_return(:status => 200, :body => File.read("spec/support/markprovan.json"), :headers => {})
12
+ end
13
+
14
+ it "should be initialized with a github username" do
15
+ @client.username.should eql "markprovan"
16
+ end
17
+
18
+ it "should make a request to the correct Github API endpoint" do
19
+ Net::HTTP.should_receive(:get).with(URI "https://api.github.com/users/markprovan/repos")
20
+ @client.fetch_repositories
21
+ end
22
+
23
+ it "should parse the response from Github into an Array" do
24
+ @client.user_repositories.class.should be Array
25
+ end
26
+ end
27
+ end
@@ -0,0 +1,27 @@
1
+ require 'spec_helper'
2
+
3
+ describe Gitfave::Main do
4
+ before(:each) do
5
+ stub_request(:get, "https://api.github.com/users/markprovan/repos").
6
+ with(:headers => {'Accept'=>'*/*', 'Accept-Encoding'=>'gzip;q=1.0,deflate;q=0.6,identity;q=0.3', 'Host'=>'api.github.com', 'User-Agent'=>'Ruby'}).
7
+ to_return(:status => 200, :body => File.read("spec/support/markprovan.json"), :headers => {})
8
+ @gitfave = Gitfave::Main.new("markprovan")
9
+ end
10
+ it "should return a count of each language present, as a hash" do
11
+ @gitfave.language_count.should eql [
12
+ {:language=>"Ruby", :count=>2},
13
+ {:language=>"JavaScript", :count=>1},
14
+ {:language=>"Scala", :count=>1},
15
+ {:language=>"CSS", :count=>1}
16
+ ]
17
+ end
18
+
19
+ it "should return the users favoured language, the most popular one" do
20
+ ruby = {:language=>"Ruby", :count=>2}
21
+ @gitfave.users_favourite_language.should eql ruby
22
+ end
23
+
24
+ it "should print out the users favoured language in English" do
25
+ @gitfave.print_favourite_language.should eql "markprovan's favourite language is Ruby, having used it 2 time(s)"
26
+ end
27
+ end
@@ -0,0 +1,9 @@
1
+ require 'rubygems'
2
+ require 'bundler/setup'
3
+ require 'gitfave'
4
+ require 'webmock/rspec'
5
+ WebMock.disable_net_connect!(allow_localhost: true)
6
+
7
+ RSpec.configure do |config|
8
+
9
+ end
@@ -0,0 +1,432 @@
1
+ [
2
+ {
3
+ "id": 10512242,
4
+ "name": "botbot",
5
+ "full_name": "markprovan/botbot",
6
+ "owner": {
7
+ "login": "markprovan",
8
+ "id": 70797,
9
+ "avatar_url": "https://avatars.githubusercontent.com/u/70797?",
10
+ "gravatar_id": "747fb50017944a3ca06b77fc2d51ba3b",
11
+ "url": "https://api.github.com/users/markprovan",
12
+ "html_url": "https://github.com/markprovan",
13
+ "followers_url": "https://api.github.com/users/markprovan/followers",
14
+ "following_url": "https://api.github.com/users/markprovan/following{/other_user}",
15
+ "gists_url": "https://api.github.com/users/markprovan/gists{/gist_id}",
16
+ "starred_url": "https://api.github.com/users/markprovan/starred{/owner}{/repo}",
17
+ "subscriptions_url": "https://api.github.com/users/markprovan/subscriptions",
18
+ "organizations_url": "https://api.github.com/users/markprovan/orgs",
19
+ "repos_url": "https://api.github.com/users/markprovan/repos",
20
+ "events_url": "https://api.github.com/users/markprovan/events{/privacy}",
21
+ "received_events_url": "https://api.github.com/users/markprovan/received_events",
22
+ "type": "User",
23
+ "site_admin": false
24
+ },
25
+ "private": false,
26
+ "html_url": "https://github.com/markprovan/botbot",
27
+ "description": "A gem to detect bots in Rails",
28
+ "fork": false,
29
+ "url": "https://api.github.com/repos/markprovan/botbot",
30
+ "forks_url": "https://api.github.com/repos/markprovan/botbot/forks",
31
+ "keys_url": "https://api.github.com/repos/markprovan/botbot/keys{/key_id}",
32
+ "collaborators_url": "https://api.github.com/repos/markprovan/botbot/collaborators{/collaborator}",
33
+ "teams_url": "https://api.github.com/repos/markprovan/botbot/teams",
34
+ "hooks_url": "https://api.github.com/repos/markprovan/botbot/hooks",
35
+ "issue_events_url": "https://api.github.com/repos/markprovan/botbot/issues/events{/number}",
36
+ "events_url": "https://api.github.com/repos/markprovan/botbot/events",
37
+ "assignees_url": "https://api.github.com/repos/markprovan/botbot/assignees{/user}",
38
+ "branches_url": "https://api.github.com/repos/markprovan/botbot/branches{/branch}",
39
+ "tags_url": "https://api.github.com/repos/markprovan/botbot/tags",
40
+ "blobs_url": "https://api.github.com/repos/markprovan/botbot/git/blobs{/sha}",
41
+ "git_tags_url": "https://api.github.com/repos/markprovan/botbot/git/tags{/sha}",
42
+ "git_refs_url": "https://api.github.com/repos/markprovan/botbot/git/refs{/sha}",
43
+ "trees_url": "https://api.github.com/repos/markprovan/botbot/git/trees{/sha}",
44
+ "statuses_url": "https://api.github.com/repos/markprovan/botbot/statuses/{sha}",
45
+ "languages_url": "https://api.github.com/repos/markprovan/botbot/languages",
46
+ "stargazers_url": "https://api.github.com/repos/markprovan/botbot/stargazers",
47
+ "contributors_url": "https://api.github.com/repos/markprovan/botbot/contributors",
48
+ "subscribers_url": "https://api.github.com/repos/markprovan/botbot/subscribers",
49
+ "subscription_url": "https://api.github.com/repos/markprovan/botbot/subscription",
50
+ "commits_url": "https://api.github.com/repos/markprovan/botbot/commits{/sha}",
51
+ "git_commits_url": "https://api.github.com/repos/markprovan/botbot/git/commits{/sha}",
52
+ "comments_url": "https://api.github.com/repos/markprovan/botbot/comments{/number}",
53
+ "issue_comment_url": "https://api.github.com/repos/markprovan/botbot/issues/comments/{number}",
54
+ "contents_url": "https://api.github.com/repos/markprovan/botbot/contents/{+path}",
55
+ "compare_url": "https://api.github.com/repos/markprovan/botbot/compare/{base}...{head}",
56
+ "merges_url": "https://api.github.com/repos/markprovan/botbot/merges",
57
+ "archive_url": "https://api.github.com/repos/markprovan/botbot/{archive_format}{/ref}",
58
+ "downloads_url": "https://api.github.com/repos/markprovan/botbot/downloads",
59
+ "issues_url": "https://api.github.com/repos/markprovan/botbot/issues{/number}",
60
+ "pulls_url": "https://api.github.com/repos/markprovan/botbot/pulls{/number}",
61
+ "milestones_url": "https://api.github.com/repos/markprovan/botbot/milestones{/number}",
62
+ "notifications_url": "https://api.github.com/repos/markprovan/botbot/notifications{?since,all,participating}",
63
+ "labels_url": "https://api.github.com/repos/markprovan/botbot/labels{/name}",
64
+ "releases_url": "https://api.github.com/repos/markprovan/botbot/releases{/id}",
65
+ "created_at": "2013-06-05T20:35:31Z",
66
+ "updated_at": "2013-10-06T03:20:21Z",
67
+ "pushed_at": "2013-09-20T17:47:29Z",
68
+ "git_url": "git://github.com/markprovan/botbot.git",
69
+ "ssh_url": "git@github.com:markprovan/botbot.git",
70
+ "clone_url": "https://github.com/markprovan/botbot.git",
71
+ "svn_url": "https://github.com/markprovan/botbot",
72
+ "homepage": null,
73
+ "size": 136,
74
+ "stargazers_count": 0,
75
+ "watchers_count": 0,
76
+ "language": "Ruby",
77
+ "has_issues": true,
78
+ "has_downloads": true,
79
+ "has_wiki": true,
80
+ "forks_count": 0,
81
+ "mirror_url": null,
82
+ "open_issues_count": 0,
83
+ "forks": 0,
84
+ "open_issues": 0,
85
+ "watchers": 0,
86
+ "default_branch": "master"
87
+ },
88
+ {
89
+ "id": 14305252,
90
+ "name": "cobweb",
91
+ "full_name": "markprovan/cobweb",
92
+ "owner": {
93
+ "login": "markprovan",
94
+ "id": 70797,
95
+ "avatar_url": "https://avatars.githubusercontent.com/u/70797?",
96
+ "gravatar_id": "747fb50017944a3ca06b77fc2d51ba3b",
97
+ "url": "https://api.github.com/users/markprovan",
98
+ "html_url": "https://github.com/markprovan",
99
+ "followers_url": "https://api.github.com/users/markprovan/followers",
100
+ "following_url": "https://api.github.com/users/markprovan/following{/other_user}",
101
+ "gists_url": "https://api.github.com/users/markprovan/gists{/gist_id}",
102
+ "starred_url": "https://api.github.com/users/markprovan/starred{/owner}{/repo}",
103
+ "subscriptions_url": "https://api.github.com/users/markprovan/subscriptions",
104
+ "organizations_url": "https://api.github.com/users/markprovan/orgs",
105
+ "repos_url": "https://api.github.com/users/markprovan/repos",
106
+ "events_url": "https://api.github.com/users/markprovan/events{/privacy}",
107
+ "received_events_url": "https://api.github.com/users/markprovan/received_events",
108
+ "type": "User",
109
+ "site_admin": false
110
+ },
111
+ "private": false,
112
+ "html_url": "https://github.com/markprovan/cobweb",
113
+ "description": "Web crawler with very flexible crawling options. Can either use standalone or can be used with resque to perform clustered crawls.",
114
+ "fork": true,
115
+ "url": "https://api.github.com/repos/markprovan/cobweb",
116
+ "forks_url": "https://api.github.com/repos/markprovan/cobweb/forks",
117
+ "keys_url": "https://api.github.com/repos/markprovan/cobweb/keys{/key_id}",
118
+ "collaborators_url": "https://api.github.com/repos/markprovan/cobweb/collaborators{/collaborator}",
119
+ "teams_url": "https://api.github.com/repos/markprovan/cobweb/teams",
120
+ "hooks_url": "https://api.github.com/repos/markprovan/cobweb/hooks",
121
+ "issue_events_url": "https://api.github.com/repos/markprovan/cobweb/issues/events{/number}",
122
+ "events_url": "https://api.github.com/repos/markprovan/cobweb/events",
123
+ "assignees_url": "https://api.github.com/repos/markprovan/cobweb/assignees{/user}",
124
+ "branches_url": "https://api.github.com/repos/markprovan/cobweb/branches{/branch}",
125
+ "tags_url": "https://api.github.com/repos/markprovan/cobweb/tags",
126
+ "blobs_url": "https://api.github.com/repos/markprovan/cobweb/git/blobs{/sha}",
127
+ "git_tags_url": "https://api.github.com/repos/markprovan/cobweb/git/tags{/sha}",
128
+ "git_refs_url": "https://api.github.com/repos/markprovan/cobweb/git/refs{/sha}",
129
+ "trees_url": "https://api.github.com/repos/markprovan/cobweb/git/trees{/sha}",
130
+ "statuses_url": "https://api.github.com/repos/markprovan/cobweb/statuses/{sha}",
131
+ "languages_url": "https://api.github.com/repos/markprovan/cobweb/languages",
132
+ "stargazers_url": "https://api.github.com/repos/markprovan/cobweb/stargazers",
133
+ "contributors_url": "https://api.github.com/repos/markprovan/cobweb/contributors",
134
+ "subscribers_url": "https://api.github.com/repos/markprovan/cobweb/subscribers",
135
+ "subscription_url": "https://api.github.com/repos/markprovan/cobweb/subscription",
136
+ "commits_url": "https://api.github.com/repos/markprovan/cobweb/commits{/sha}",
137
+ "git_commits_url": "https://api.github.com/repos/markprovan/cobweb/git/commits{/sha}",
138
+ "comments_url": "https://api.github.com/repos/markprovan/cobweb/comments{/number}",
139
+ "issue_comment_url": "https://api.github.com/repos/markprovan/cobweb/issues/comments/{number}",
140
+ "contents_url": "https://api.github.com/repos/markprovan/cobweb/contents/{+path}",
141
+ "compare_url": "https://api.github.com/repos/markprovan/cobweb/compare/{base}...{head}",
142
+ "merges_url": "https://api.github.com/repos/markprovan/cobweb/merges",
143
+ "archive_url": "https://api.github.com/repos/markprovan/cobweb/{archive_format}{/ref}",
144
+ "downloads_url": "https://api.github.com/repos/markprovan/cobweb/downloads",
145
+ "issues_url": "https://api.github.com/repos/markprovan/cobweb/issues{/number}",
146
+ "pulls_url": "https://api.github.com/repos/markprovan/cobweb/pulls{/number}",
147
+ "milestones_url": "https://api.github.com/repos/markprovan/cobweb/milestones{/number}",
148
+ "notifications_url": "https://api.github.com/repos/markprovan/cobweb/notifications{?since,all,participating}",
149
+ "labels_url": "https://api.github.com/repos/markprovan/cobweb/labels{/name}",
150
+ "releases_url": "https://api.github.com/repos/markprovan/cobweb/releases{/id}",
151
+ "created_at": "2013-11-11T15:47:12Z",
152
+ "updated_at": "2013-11-11T15:53:52Z",
153
+ "pushed_at": "2013-11-11T15:53:22Z",
154
+ "git_url": "git://github.com/markprovan/cobweb.git",
155
+ "ssh_url": "git@github.com:markprovan/cobweb.git",
156
+ "clone_url": "https://github.com/markprovan/cobweb.git",
157
+ "svn_url": "https://github.com/markprovan/cobweb",
158
+ "homepage": "",
159
+ "size": 5480,
160
+ "stargazers_count": 0,
161
+ "watchers_count": 0,
162
+ "language": "JavaScript",
163
+ "has_issues": false,
164
+ "has_downloads": true,
165
+ "has_wiki": true,
166
+ "forks_count": 0,
167
+ "mirror_url": null,
168
+ "open_issues_count": 0,
169
+ "forks": 0,
170
+ "open_issues": 0,
171
+ "watchers": 0,
172
+ "default_branch": "master"
173
+ },
174
+ {
175
+ "id": 14499094,
176
+ "name": "refinerycms",
177
+ "full_name": "markprovan/refinerycms",
178
+ "owner": {
179
+ "login": "markprovan",
180
+ "id": 70797,
181
+ "avatar_url": "https://avatars.githubusercontent.com/u/70797?",
182
+ "gravatar_id": "747fb50017944a3ca06b77fc2d51ba3b",
183
+ "url": "https://api.github.com/users/markprovan",
184
+ "html_url": "https://github.com/markprovan",
185
+ "followers_url": "https://api.github.com/users/markprovan/followers",
186
+ "following_url": "https://api.github.com/users/markprovan/following{/other_user}",
187
+ "gists_url": "https://api.github.com/users/markprovan/gists{/gist_id}",
188
+ "starred_url": "https://api.github.com/users/markprovan/starred{/owner}{/repo}",
189
+ "subscriptions_url": "https://api.github.com/users/markprovan/subscriptions",
190
+ "organizations_url": "https://api.github.com/users/markprovan/orgs",
191
+ "repos_url": "https://api.github.com/users/markprovan/repos",
192
+ "events_url": "https://api.github.com/users/markprovan/events{/privacy}",
193
+ "received_events_url": "https://api.github.com/users/markprovan/received_events",
194
+ "type": "User",
195
+ "site_admin": false
196
+ },
197
+ "private": false,
198
+ "html_url": "https://github.com/markprovan/refinerycms",
199
+ "description": "An extendable Ruby on Rails CMS that supports Rails 3.2",
200
+ "fork": true,
201
+ "url": "https://api.github.com/repos/markprovan/refinerycms",
202
+ "forks_url": "https://api.github.com/repos/markprovan/refinerycms/forks",
203
+ "keys_url": "https://api.github.com/repos/markprovan/refinerycms/keys{/key_id}",
204
+ "collaborators_url": "https://api.github.com/repos/markprovan/refinerycms/collaborators{/collaborator}",
205
+ "teams_url": "https://api.github.com/repos/markprovan/refinerycms/teams",
206
+ "hooks_url": "https://api.github.com/repos/markprovan/refinerycms/hooks",
207
+ "issue_events_url": "https://api.github.com/repos/markprovan/refinerycms/issues/events{/number}",
208
+ "events_url": "https://api.github.com/repos/markprovan/refinerycms/events",
209
+ "assignees_url": "https://api.github.com/repos/markprovan/refinerycms/assignees{/user}",
210
+ "branches_url": "https://api.github.com/repos/markprovan/refinerycms/branches{/branch}",
211
+ "tags_url": "https://api.github.com/repos/markprovan/refinerycms/tags",
212
+ "blobs_url": "https://api.github.com/repos/markprovan/refinerycms/git/blobs{/sha}",
213
+ "git_tags_url": "https://api.github.com/repos/markprovan/refinerycms/git/tags{/sha}",
214
+ "git_refs_url": "https://api.github.com/repos/markprovan/refinerycms/git/refs{/sha}",
215
+ "trees_url": "https://api.github.com/repos/markprovan/refinerycms/git/trees{/sha}",
216
+ "statuses_url": "https://api.github.com/repos/markprovan/refinerycms/statuses/{sha}",
217
+ "languages_url": "https://api.github.com/repos/markprovan/refinerycms/languages",
218
+ "stargazers_url": "https://api.github.com/repos/markprovan/refinerycms/stargazers",
219
+ "contributors_url": "https://api.github.com/repos/markprovan/refinerycms/contributors",
220
+ "subscribers_url": "https://api.github.com/repos/markprovan/refinerycms/subscribers",
221
+ "subscription_url": "https://api.github.com/repos/markprovan/refinerycms/subscription",
222
+ "commits_url": "https://api.github.com/repos/markprovan/refinerycms/commits{/sha}",
223
+ "git_commits_url": "https://api.github.com/repos/markprovan/refinerycms/git/commits{/sha}",
224
+ "comments_url": "https://api.github.com/repos/markprovan/refinerycms/comments{/number}",
225
+ "issue_comment_url": "https://api.github.com/repos/markprovan/refinerycms/issues/comments/{number}",
226
+ "contents_url": "https://api.github.com/repos/markprovan/refinerycms/contents/{+path}",
227
+ "compare_url": "https://api.github.com/repos/markprovan/refinerycms/compare/{base}...{head}",
228
+ "merges_url": "https://api.github.com/repos/markprovan/refinerycms/merges",
229
+ "archive_url": "https://api.github.com/repos/markprovan/refinerycms/{archive_format}{/ref}",
230
+ "downloads_url": "https://api.github.com/repos/markprovan/refinerycms/downloads",
231
+ "issues_url": "https://api.github.com/repos/markprovan/refinerycms/issues{/number}",
232
+ "pulls_url": "https://api.github.com/repos/markprovan/refinerycms/pulls{/number}",
233
+ "milestones_url": "https://api.github.com/repos/markprovan/refinerycms/milestones{/number}",
234
+ "notifications_url": "https://api.github.com/repos/markprovan/refinerycms/notifications{?since,all,participating}",
235
+ "labels_url": "https://api.github.com/repos/markprovan/refinerycms/labels{/name}",
236
+ "releases_url": "https://api.github.com/repos/markprovan/refinerycms/releases{/id}",
237
+ "created_at": "2013-11-18T17:05:32Z",
238
+ "updated_at": "2013-11-19T21:14:37Z",
239
+ "pushed_at": "2013-11-19T21:09:59Z",
240
+ "git_url": "git://github.com/markprovan/refinerycms.git",
241
+ "ssh_url": "git@github.com:markprovan/refinerycms.git",
242
+ "clone_url": "https://github.com/markprovan/refinerycms.git",
243
+ "svn_url": "https://github.com/markprovan/refinerycms",
244
+ "homepage": "http://refinerycms.com/guides/",
245
+ "size": 21374,
246
+ "stargazers_count": 0,
247
+ "watchers_count": 0,
248
+ "language": "Ruby",
249
+ "has_issues": false,
250
+ "has_downloads": false,
251
+ "has_wiki": true,
252
+ "forks_count": 0,
253
+ "mirror_url": null,
254
+ "open_issues_count": 0,
255
+ "forks": 0,
256
+ "open_issues": 0,
257
+ "watchers": 0,
258
+ "default_branch": "master"
259
+ },
260
+ {
261
+ "id": 17190605,
262
+ "name": "scala-learning",
263
+ "full_name": "markprovan/scala-learning",
264
+ "owner": {
265
+ "login": "markprovan",
266
+ "id": 70797,
267
+ "avatar_url": "https://avatars.githubusercontent.com/u/70797?",
268
+ "gravatar_id": "747fb50017944a3ca06b77fc2d51ba3b",
269
+ "url": "https://api.github.com/users/markprovan",
270
+ "html_url": "https://github.com/markprovan",
271
+ "followers_url": "https://api.github.com/users/markprovan/followers",
272
+ "following_url": "https://api.github.com/users/markprovan/following{/other_user}",
273
+ "gists_url": "https://api.github.com/users/markprovan/gists{/gist_id}",
274
+ "starred_url": "https://api.github.com/users/markprovan/starred{/owner}{/repo}",
275
+ "subscriptions_url": "https://api.github.com/users/markprovan/subscriptions",
276
+ "organizations_url": "https://api.github.com/users/markprovan/orgs",
277
+ "repos_url": "https://api.github.com/users/markprovan/repos",
278
+ "events_url": "https://api.github.com/users/markprovan/events{/privacy}",
279
+ "received_events_url": "https://api.github.com/users/markprovan/received_events",
280
+ "type": "User",
281
+ "site_admin": false
282
+ },
283
+ "private": false,
284
+ "html_url": "https://github.com/markprovan/scala-learning",
285
+ "description": "Files I've created learning Scala",
286
+ "fork": false,
287
+ "url": "https://api.github.com/repos/markprovan/scala-learning",
288
+ "forks_url": "https://api.github.com/repos/markprovan/scala-learning/forks",
289
+ "keys_url": "https://api.github.com/repos/markprovan/scala-learning/keys{/key_id}",
290
+ "collaborators_url": "https://api.github.com/repos/markprovan/scala-learning/collaborators{/collaborator}",
291
+ "teams_url": "https://api.github.com/repos/markprovan/scala-learning/teams",
292
+ "hooks_url": "https://api.github.com/repos/markprovan/scala-learning/hooks",
293
+ "issue_events_url": "https://api.github.com/repos/markprovan/scala-learning/issues/events{/number}",
294
+ "events_url": "https://api.github.com/repos/markprovan/scala-learning/events",
295
+ "assignees_url": "https://api.github.com/repos/markprovan/scala-learning/assignees{/user}",
296
+ "branches_url": "https://api.github.com/repos/markprovan/scala-learning/branches{/branch}",
297
+ "tags_url": "https://api.github.com/repos/markprovan/scala-learning/tags",
298
+ "blobs_url": "https://api.github.com/repos/markprovan/scala-learning/git/blobs{/sha}",
299
+ "git_tags_url": "https://api.github.com/repos/markprovan/scala-learning/git/tags{/sha}",
300
+ "git_refs_url": "https://api.github.com/repos/markprovan/scala-learning/git/refs{/sha}",
301
+ "trees_url": "https://api.github.com/repos/markprovan/scala-learning/git/trees{/sha}",
302
+ "statuses_url": "https://api.github.com/repos/markprovan/scala-learning/statuses/{sha}",
303
+ "languages_url": "https://api.github.com/repos/markprovan/scala-learning/languages",
304
+ "stargazers_url": "https://api.github.com/repos/markprovan/scala-learning/stargazers",
305
+ "contributors_url": "https://api.github.com/repos/markprovan/scala-learning/contributors",
306
+ "subscribers_url": "https://api.github.com/repos/markprovan/scala-learning/subscribers",
307
+ "subscription_url": "https://api.github.com/repos/markprovan/scala-learning/subscription",
308
+ "commits_url": "https://api.github.com/repos/markprovan/scala-learning/commits{/sha}",
309
+ "git_commits_url": "https://api.github.com/repos/markprovan/scala-learning/git/commits{/sha}",
310
+ "comments_url": "https://api.github.com/repos/markprovan/scala-learning/comments{/number}",
311
+ "issue_comment_url": "https://api.github.com/repos/markprovan/scala-learning/issues/comments/{number}",
312
+ "contents_url": "https://api.github.com/repos/markprovan/scala-learning/contents/{+path}",
313
+ "compare_url": "https://api.github.com/repos/markprovan/scala-learning/compare/{base}...{head}",
314
+ "merges_url": "https://api.github.com/repos/markprovan/scala-learning/merges",
315
+ "archive_url": "https://api.github.com/repos/markprovan/scala-learning/{archive_format}{/ref}",
316
+ "downloads_url": "https://api.github.com/repos/markprovan/scala-learning/downloads",
317
+ "issues_url": "https://api.github.com/repos/markprovan/scala-learning/issues{/number}",
318
+ "pulls_url": "https://api.github.com/repos/markprovan/scala-learning/pulls{/number}",
319
+ "milestones_url": "https://api.github.com/repos/markprovan/scala-learning/milestones{/number}",
320
+ "notifications_url": "https://api.github.com/repos/markprovan/scala-learning/notifications{?since,all,participating}",
321
+ "labels_url": "https://api.github.com/repos/markprovan/scala-learning/labels{/name}",
322
+ "releases_url": "https://api.github.com/repos/markprovan/scala-learning/releases{/id}",
323
+ "created_at": "2014-02-25T22:33:31Z",
324
+ "updated_at": "2014-04-16T05:11:05Z",
325
+ "pushed_at": "2014-02-25T22:54:08Z",
326
+ "git_url": "git://github.com/markprovan/scala-learning.git",
327
+ "ssh_url": "git@github.com:markprovan/scala-learning.git",
328
+ "clone_url": "https://github.com/markprovan/scala-learning.git",
329
+ "svn_url": "https://github.com/markprovan/scala-learning",
330
+ "homepage": null,
331
+ "size": 100,
332
+ "stargazers_count": 0,
333
+ "watchers_count": 0,
334
+ "language": "Scala",
335
+ "has_issues": true,
336
+ "has_downloads": true,
337
+ "has_wiki": true,
338
+ "forks_count": 0,
339
+ "mirror_url": null,
340
+ "open_issues_count": 0,
341
+ "forks": 0,
342
+ "open_issues": 0,
343
+ "watchers": 0,
344
+ "default_branch": "master"
345
+ },
346
+ {
347
+ "id": 12767890,
348
+ "name": "web-starter-template",
349
+ "full_name": "markprovan/web-starter-template",
350
+ "owner": {
351
+ "login": "markprovan",
352
+ "id": 70797,
353
+ "avatar_url": "https://avatars.githubusercontent.com/u/70797?",
354
+ "gravatar_id": "747fb50017944a3ca06b77fc2d51ba3b",
355
+ "url": "https://api.github.com/users/markprovan",
356
+ "html_url": "https://github.com/markprovan",
357
+ "followers_url": "https://api.github.com/users/markprovan/followers",
358
+ "following_url": "https://api.github.com/users/markprovan/following{/other_user}",
359
+ "gists_url": "https://api.github.com/users/markprovan/gists{/gist_id}",
360
+ "starred_url": "https://api.github.com/users/markprovan/starred{/owner}{/repo}",
361
+ "subscriptions_url": "https://api.github.com/users/markprovan/subscriptions",
362
+ "organizations_url": "https://api.github.com/users/markprovan/orgs",
363
+ "repos_url": "https://api.github.com/users/markprovan/repos",
364
+ "events_url": "https://api.github.com/users/markprovan/events{/privacy}",
365
+ "received_events_url": "https://api.github.com/users/markprovan/received_events",
366
+ "type": "User",
367
+ "site_admin": false
368
+ },
369
+ "private": false,
370
+ "html_url": "https://github.com/markprovan/web-starter-template",
371
+ "description": "A basic site structure I use for static sites.",
372
+ "fork": false,
373
+ "url": "https://api.github.com/repos/markprovan/web-starter-template",
374
+ "forks_url": "https://api.github.com/repos/markprovan/web-starter-template/forks",
375
+ "keys_url": "https://api.github.com/repos/markprovan/web-starter-template/keys{/key_id}",
376
+ "collaborators_url": "https://api.github.com/repos/markprovan/web-starter-template/collaborators{/collaborator}",
377
+ "teams_url": "https://api.github.com/repos/markprovan/web-starter-template/teams",
378
+ "hooks_url": "https://api.github.com/repos/markprovan/web-starter-template/hooks",
379
+ "issue_events_url": "https://api.github.com/repos/markprovan/web-starter-template/issues/events{/number}",
380
+ "events_url": "https://api.github.com/repos/markprovan/web-starter-template/events",
381
+ "assignees_url": "https://api.github.com/repos/markprovan/web-starter-template/assignees{/user}",
382
+ "branches_url": "https://api.github.com/repos/markprovan/web-starter-template/branches{/branch}",
383
+ "tags_url": "https://api.github.com/repos/markprovan/web-starter-template/tags",
384
+ "blobs_url": "https://api.github.com/repos/markprovan/web-starter-template/git/blobs{/sha}",
385
+ "git_tags_url": "https://api.github.com/repos/markprovan/web-starter-template/git/tags{/sha}",
386
+ "git_refs_url": "https://api.github.com/repos/markprovan/web-starter-template/git/refs{/sha}",
387
+ "trees_url": "https://api.github.com/repos/markprovan/web-starter-template/git/trees{/sha}",
388
+ "statuses_url": "https://api.github.com/repos/markprovan/web-starter-template/statuses/{sha}",
389
+ "languages_url": "https://api.github.com/repos/markprovan/web-starter-template/languages",
390
+ "stargazers_url": "https://api.github.com/repos/markprovan/web-starter-template/stargazers",
391
+ "contributors_url": "https://api.github.com/repos/markprovan/web-starter-template/contributors",
392
+ "subscribers_url": "https://api.github.com/repos/markprovan/web-starter-template/subscribers",
393
+ "subscription_url": "https://api.github.com/repos/markprovan/web-starter-template/subscription",
394
+ "commits_url": "https://api.github.com/repos/markprovan/web-starter-template/commits{/sha}",
395
+ "git_commits_url": "https://api.github.com/repos/markprovan/web-starter-template/git/commits{/sha}",
396
+ "comments_url": "https://api.github.com/repos/markprovan/web-starter-template/comments{/number}",
397
+ "issue_comment_url": "https://api.github.com/repos/markprovan/web-starter-template/issues/comments/{number}",
398
+ "contents_url": "https://api.github.com/repos/markprovan/web-starter-template/contents/{+path}",
399
+ "compare_url": "https://api.github.com/repos/markprovan/web-starter-template/compare/{base}...{head}",
400
+ "merges_url": "https://api.github.com/repos/markprovan/web-starter-template/merges",
401
+ "archive_url": "https://api.github.com/repos/markprovan/web-starter-template/{archive_format}{/ref}",
402
+ "downloads_url": "https://api.github.com/repos/markprovan/web-starter-template/downloads",
403
+ "issues_url": "https://api.github.com/repos/markprovan/web-starter-template/issues{/number}",
404
+ "pulls_url": "https://api.github.com/repos/markprovan/web-starter-template/pulls{/number}",
405
+ "milestones_url": "https://api.github.com/repos/markprovan/web-starter-template/milestones{/number}",
406
+ "notifications_url": "https://api.github.com/repos/markprovan/web-starter-template/notifications{?since,all,participating}",
407
+ "labels_url": "https://api.github.com/repos/markprovan/web-starter-template/labels{/name}",
408
+ "releases_url": "https://api.github.com/repos/markprovan/web-starter-template/releases{/id}",
409
+ "created_at": "2013-09-11T21:11:57Z",
410
+ "updated_at": "2013-09-11T21:15:16Z",
411
+ "pushed_at": "2013-09-11T21:15:16Z",
412
+ "git_url": "git://github.com/markprovan/web-starter-template.git",
413
+ "ssh_url": "git@github.com:markprovan/web-starter-template.git",
414
+ "clone_url": "https://github.com/markprovan/web-starter-template.git",
415
+ "svn_url": "https://github.com/markprovan/web-starter-template",
416
+ "homepage": null,
417
+ "size": 196,
418
+ "stargazers_count": 0,
419
+ "watchers_count": 0,
420
+ "language": "CSS",
421
+ "has_issues": true,
422
+ "has_downloads": true,
423
+ "has_wiki": true,
424
+ "forks_count": 0,
425
+ "mirror_url": null,
426
+ "open_issues_count": 0,
427
+ "forks": 0,
428
+ "open_issues": 0,
429
+ "watchers": 0,
430
+ "default_branch": "master"
431
+ }
432
+ ]
metadata ADDED
@@ -0,0 +1,90 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: gitfave
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.1
5
+ platform: ruby
6
+ authors:
7
+ - Mark Provan
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2014-05-01 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.5'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.5'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ description:
42
+ email:
43
+ - markgprovan@gmail.com
44
+ executables: []
45
+ extensions: []
46
+ extra_rdoc_files: []
47
+ files:
48
+ - ".gitignore"
49
+ - ".rspec"
50
+ - Gemfile
51
+ - LICENSE.txt
52
+ - README.md
53
+ - Rakefile
54
+ - gitfave.gemspec
55
+ - lib/gitfave.rb
56
+ - lib/gitfave/client.rb
57
+ - lib/gitfave/version.rb
58
+ - spec/gitfave/client_spec.rb
59
+ - spec/gitfave_spec.rb
60
+ - spec/spec_helper.rb
61
+ - spec/support/markprovan.json
62
+ homepage: ''
63
+ licenses:
64
+ - MIT
65
+ metadata: {}
66
+ post_install_message:
67
+ rdoc_options: []
68
+ require_paths:
69
+ - lib
70
+ required_ruby_version: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - ">="
73
+ - !ruby/object:Gem::Version
74
+ version: '0'
75
+ required_rubygems_version: !ruby/object:Gem::Requirement
76
+ requirements:
77
+ - - ">="
78
+ - !ruby/object:Gem::Version
79
+ version: '0'
80
+ requirements: []
81
+ rubyforge_project:
82
+ rubygems_version: 2.2.2
83
+ signing_key:
84
+ specification_version: 4
85
+ summary: Finds a Github users favoured langauge.
86
+ test_files:
87
+ - spec/gitfave/client_spec.rb
88
+ - spec/gitfave_spec.rb
89
+ - spec/spec_helper.rb
90
+ - spec/support/markprovan.json