reponaut 1.2.0 → 2.0.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,266 @@
1
+ {
2
+ "id": 2870407,
3
+ "name": "staticgenerator",
4
+ "full_name": "mdippery/staticgenerator",
5
+ "owner": {
6
+ "login": "mdippery",
7
+ "id": 22942,
8
+ "avatar_url": "https://avatars.githubusercontent.com/u/22942?v=3",
9
+ "gravatar_id": "",
10
+ "url": "https://api.github.com/users/mdippery",
11
+ "html_url": "https://github.com/mdippery",
12
+ "followers_url": "https://api.github.com/users/mdippery/followers",
13
+ "following_url": "https://api.github.com/users/mdippery/following{/other_user}",
14
+ "gists_url": "https://api.github.com/users/mdippery/gists{/gist_id}",
15
+ "starred_url": "https://api.github.com/users/mdippery/starred{/owner}{/repo}",
16
+ "subscriptions_url": "https://api.github.com/users/mdippery/subscriptions",
17
+ "organizations_url": "https://api.github.com/users/mdippery/orgs",
18
+ "repos_url": "https://api.github.com/users/mdippery/repos",
19
+ "events_url": "https://api.github.com/users/mdippery/events{/privacy}",
20
+ "received_events_url": "https://api.github.com/users/mdippery/received_events",
21
+ "type": "User",
22
+ "site_admin": false
23
+ },
24
+ "private": false,
25
+ "html_url": "https://github.com/mdippery/staticgenerator",
26
+ "description": "StaticGenerator for Django",
27
+ "fork": true,
28
+ "url": "https://api.github.com/repos/mdippery/staticgenerator",
29
+ "forks_url": "https://api.github.com/repos/mdippery/staticgenerator/forks",
30
+ "keys_url": "https://api.github.com/repos/mdippery/staticgenerator/keys{/key_id}",
31
+ "collaborators_url": "https://api.github.com/repos/mdippery/staticgenerator/collaborators{/collaborator}",
32
+ "teams_url": "https://api.github.com/repos/mdippery/staticgenerator/teams",
33
+ "hooks_url": "https://api.github.com/repos/mdippery/staticgenerator/hooks",
34
+ "issue_events_url": "https://api.github.com/repos/mdippery/staticgenerator/issues/events{/number}",
35
+ "events_url": "https://api.github.com/repos/mdippery/staticgenerator/events",
36
+ "assignees_url": "https://api.github.com/repos/mdippery/staticgenerator/assignees{/user}",
37
+ "branches_url": "https://api.github.com/repos/mdippery/staticgenerator/branches{/branch}",
38
+ "tags_url": "https://api.github.com/repos/mdippery/staticgenerator/tags",
39
+ "blobs_url": "https://api.github.com/repos/mdippery/staticgenerator/git/blobs{/sha}",
40
+ "git_tags_url": "https://api.github.com/repos/mdippery/staticgenerator/git/tags{/sha}",
41
+ "git_refs_url": "https://api.github.com/repos/mdippery/staticgenerator/git/refs{/sha}",
42
+ "trees_url": "https://api.github.com/repos/mdippery/staticgenerator/git/trees{/sha}",
43
+ "statuses_url": "https://api.github.com/repos/mdippery/staticgenerator/statuses/{sha}",
44
+ "languages_url": "https://api.github.com/repos/mdippery/staticgenerator/languages",
45
+ "stargazers_url": "https://api.github.com/repos/mdippery/staticgenerator/stargazers",
46
+ "contributors_url": "https://api.github.com/repos/mdippery/staticgenerator/contributors",
47
+ "subscribers_url": "https://api.github.com/repos/mdippery/staticgenerator/subscribers",
48
+ "subscription_url": "https://api.github.com/repos/mdippery/staticgenerator/subscription",
49
+ "commits_url": "https://api.github.com/repos/mdippery/staticgenerator/commits{/sha}",
50
+ "git_commits_url": "https://api.github.com/repos/mdippery/staticgenerator/git/commits{/sha}",
51
+ "comments_url": "https://api.github.com/repos/mdippery/staticgenerator/comments{/number}",
52
+ "issue_comment_url": "https://api.github.com/repos/mdippery/staticgenerator/issues/comments{/number}",
53
+ "contents_url": "https://api.github.com/repos/mdippery/staticgenerator/contents/{+path}",
54
+ "compare_url": "https://api.github.com/repos/mdippery/staticgenerator/compare/{base}...{head}",
55
+ "merges_url": "https://api.github.com/repos/mdippery/staticgenerator/merges",
56
+ "archive_url": "https://api.github.com/repos/mdippery/staticgenerator/{archive_format}{/ref}",
57
+ "downloads_url": "https://api.github.com/repos/mdippery/staticgenerator/downloads",
58
+ "issues_url": "https://api.github.com/repos/mdippery/staticgenerator/issues{/number}",
59
+ "pulls_url": "https://api.github.com/repos/mdippery/staticgenerator/pulls{/number}",
60
+ "milestones_url": "https://api.github.com/repos/mdippery/staticgenerator/milestones{/number}",
61
+ "notifications_url": "https://api.github.com/repos/mdippery/staticgenerator/notifications{?since,all,participating}",
62
+ "labels_url": "https://api.github.com/repos/mdippery/staticgenerator/labels{/name}",
63
+ "releases_url": "https://api.github.com/repos/mdippery/staticgenerator/releases{/id}",
64
+ "deployments_url": "https://api.github.com/repos/mdippery/staticgenerator/deployments",
65
+ "created_at": "2011-11-28T21:32:54Z",
66
+ "updated_at": "2013-01-04T18:14:14Z",
67
+ "pushed_at": "2011-11-30T18:04:16Z",
68
+ "git_url": "git://github.com/mdippery/staticgenerator.git",
69
+ "ssh_url": "git@github.com:mdippery/staticgenerator.git",
70
+ "clone_url": "https://github.com/mdippery/staticgenerator.git",
71
+ "svn_url": "https://github.com/mdippery/staticgenerator",
72
+ "homepage": "http://superjared.com/projects/static-generator/",
73
+ "size": 253,
74
+ "stargazers_count": 1,
75
+ "watchers_count": 1,
76
+ "language": "Python",
77
+ "has_issues": false,
78
+ "has_downloads": true,
79
+ "has_wiki": false,
80
+ "has_pages": false,
81
+ "forks_count": 0,
82
+ "mirror_url": null,
83
+ "open_issues_count": 0,
84
+ "forks": 0,
85
+ "open_issues": 0,
86
+ "watchers": 1,
87
+ "default_branch": "master",
88
+ "parent": {
89
+ "id": 1309472,
90
+ "name": "staticgenerator",
91
+ "full_name": "mrj0/staticgenerator",
92
+ "owner": {
93
+ "login": "mrj0",
94
+ "id": 469704,
95
+ "avatar_url": "https://avatars.githubusercontent.com/u/469704?v=3",
96
+ "gravatar_id": "",
97
+ "url": "https://api.github.com/users/mrj0",
98
+ "html_url": "https://github.com/mrj0",
99
+ "followers_url": "https://api.github.com/users/mrj0/followers",
100
+ "following_url": "https://api.github.com/users/mrj0/following{/other_user}",
101
+ "gists_url": "https://api.github.com/users/mrj0/gists{/gist_id}",
102
+ "starred_url": "https://api.github.com/users/mrj0/starred{/owner}{/repo}",
103
+ "subscriptions_url": "https://api.github.com/users/mrj0/subscriptions",
104
+ "organizations_url": "https://api.github.com/users/mrj0/orgs",
105
+ "repos_url": "https://api.github.com/users/mrj0/repos",
106
+ "events_url": "https://api.github.com/users/mrj0/events{/privacy}",
107
+ "received_events_url": "https://api.github.com/users/mrj0/received_events",
108
+ "type": "User",
109
+ "site_admin": false
110
+ },
111
+ "private": false,
112
+ "html_url": "https://github.com/mrj0/staticgenerator",
113
+ "description": "StaticGenerator for Django",
114
+ "fork": true,
115
+ "url": "https://api.github.com/repos/mrj0/staticgenerator",
116
+ "forks_url": "https://api.github.com/repos/mrj0/staticgenerator/forks",
117
+ "keys_url": "https://api.github.com/repos/mrj0/staticgenerator/keys{/key_id}",
118
+ "collaborators_url": "https://api.github.com/repos/mrj0/staticgenerator/collaborators{/collaborator}",
119
+ "teams_url": "https://api.github.com/repos/mrj0/staticgenerator/teams",
120
+ "hooks_url": "https://api.github.com/repos/mrj0/staticgenerator/hooks",
121
+ "issue_events_url": "https://api.github.com/repos/mrj0/staticgenerator/issues/events{/number}",
122
+ "events_url": "https://api.github.com/repos/mrj0/staticgenerator/events",
123
+ "assignees_url": "https://api.github.com/repos/mrj0/staticgenerator/assignees{/user}",
124
+ "branches_url": "https://api.github.com/repos/mrj0/staticgenerator/branches{/branch}",
125
+ "tags_url": "https://api.github.com/repos/mrj0/staticgenerator/tags",
126
+ "blobs_url": "https://api.github.com/repos/mrj0/staticgenerator/git/blobs{/sha}",
127
+ "git_tags_url": "https://api.github.com/repos/mrj0/staticgenerator/git/tags{/sha}",
128
+ "git_refs_url": "https://api.github.com/repos/mrj0/staticgenerator/git/refs{/sha}",
129
+ "trees_url": "https://api.github.com/repos/mrj0/staticgenerator/git/trees{/sha}",
130
+ "statuses_url": "https://api.github.com/repos/mrj0/staticgenerator/statuses/{sha}",
131
+ "languages_url": "https://api.github.com/repos/mrj0/staticgenerator/languages",
132
+ "stargazers_url": "https://api.github.com/repos/mrj0/staticgenerator/stargazers",
133
+ "contributors_url": "https://api.github.com/repos/mrj0/staticgenerator/contributors",
134
+ "subscribers_url": "https://api.github.com/repos/mrj0/staticgenerator/subscribers",
135
+ "subscription_url": "https://api.github.com/repos/mrj0/staticgenerator/subscription",
136
+ "commits_url": "https://api.github.com/repos/mrj0/staticgenerator/commits{/sha}",
137
+ "git_commits_url": "https://api.github.com/repos/mrj0/staticgenerator/git/commits{/sha}",
138
+ "comments_url": "https://api.github.com/repos/mrj0/staticgenerator/comments{/number}",
139
+ "issue_comment_url": "https://api.github.com/repos/mrj0/staticgenerator/issues/comments{/number}",
140
+ "contents_url": "https://api.github.com/repos/mrj0/staticgenerator/contents/{+path}",
141
+ "compare_url": "https://api.github.com/repos/mrj0/staticgenerator/compare/{base}...{head}",
142
+ "merges_url": "https://api.github.com/repos/mrj0/staticgenerator/merges",
143
+ "archive_url": "https://api.github.com/repos/mrj0/staticgenerator/{archive_format}{/ref}",
144
+ "downloads_url": "https://api.github.com/repos/mrj0/staticgenerator/downloads",
145
+ "issues_url": "https://api.github.com/repos/mrj0/staticgenerator/issues{/number}",
146
+ "pulls_url": "https://api.github.com/repos/mrj0/staticgenerator/pulls{/number}",
147
+ "milestones_url": "https://api.github.com/repos/mrj0/staticgenerator/milestones{/number}",
148
+ "notifications_url": "https://api.github.com/repos/mrj0/staticgenerator/notifications{?since,all,participating}",
149
+ "labels_url": "https://api.github.com/repos/mrj0/staticgenerator/labels{/name}",
150
+ "releases_url": "https://api.github.com/repos/mrj0/staticgenerator/releases{/id}",
151
+ "deployments_url": "https://api.github.com/repos/mrj0/staticgenerator/deployments",
152
+ "created_at": "2011-01-30T17:32:14Z",
153
+ "updated_at": "2016-01-21T11:10:06Z",
154
+ "pushed_at": "2011-11-30T17:08:00Z",
155
+ "git_url": "git://github.com/mrj0/staticgenerator.git",
156
+ "ssh_url": "git@github.com:mrj0/staticgenerator.git",
157
+ "clone_url": "https://github.com/mrj0/staticgenerator.git",
158
+ "svn_url": "https://github.com/mrj0/staticgenerator",
159
+ "homepage": "http://superjared.com/projects/static-generator/",
160
+ "size": 142,
161
+ "stargazers_count": 13,
162
+ "watchers_count": 13,
163
+ "language": "Python",
164
+ "has_issues": false,
165
+ "has_downloads": true,
166
+ "has_wiki": true,
167
+ "has_pages": false,
168
+ "forks_count": 5,
169
+ "mirror_url": null,
170
+ "open_issues_count": 1,
171
+ "forks": 5,
172
+ "open_issues": 1,
173
+ "watchers": 13,
174
+ "default_branch": "master"
175
+ },
176
+ "source": {
177
+ "id": 94689,
178
+ "name": "staticgenerator",
179
+ "full_name": "lucky/staticgenerator",
180
+ "owner": {
181
+ "login": "lucky",
182
+ "id": 3612,
183
+ "avatar_url": "https://avatars.githubusercontent.com/u/3612?v=3",
184
+ "gravatar_id": "",
185
+ "url": "https://api.github.com/users/lucky",
186
+ "html_url": "https://github.com/lucky",
187
+ "followers_url": "https://api.github.com/users/lucky/followers",
188
+ "following_url": "https://api.github.com/users/lucky/following{/other_user}",
189
+ "gists_url": "https://api.github.com/users/lucky/gists{/gist_id}",
190
+ "starred_url": "https://api.github.com/users/lucky/starred{/owner}{/repo}",
191
+ "subscriptions_url": "https://api.github.com/users/lucky/subscriptions",
192
+ "organizations_url": "https://api.github.com/users/lucky/orgs",
193
+ "repos_url": "https://api.github.com/users/lucky/repos",
194
+ "events_url": "https://api.github.com/users/lucky/events{/privacy}",
195
+ "received_events_url": "https://api.github.com/users/lucky/received_events",
196
+ "type": "User",
197
+ "site_admin": false
198
+ },
199
+ "private": false,
200
+ "html_url": "https://github.com/lucky/staticgenerator",
201
+ "description": "StaticGenerator for Django",
202
+ "fork": false,
203
+ "url": "https://api.github.com/repos/lucky/staticgenerator",
204
+ "forks_url": "https://api.github.com/repos/lucky/staticgenerator/forks",
205
+ "keys_url": "https://api.github.com/repos/lucky/staticgenerator/keys{/key_id}",
206
+ "collaborators_url": "https://api.github.com/repos/lucky/staticgenerator/collaborators{/collaborator}",
207
+ "teams_url": "https://api.github.com/repos/lucky/staticgenerator/teams",
208
+ "hooks_url": "https://api.github.com/repos/lucky/staticgenerator/hooks",
209
+ "issue_events_url": "https://api.github.com/repos/lucky/staticgenerator/issues/events{/number}",
210
+ "events_url": "https://api.github.com/repos/lucky/staticgenerator/events",
211
+ "assignees_url": "https://api.github.com/repos/lucky/staticgenerator/assignees{/user}",
212
+ "branches_url": "https://api.github.com/repos/lucky/staticgenerator/branches{/branch}",
213
+ "tags_url": "https://api.github.com/repos/lucky/staticgenerator/tags",
214
+ "blobs_url": "https://api.github.com/repos/lucky/staticgenerator/git/blobs{/sha}",
215
+ "git_tags_url": "https://api.github.com/repos/lucky/staticgenerator/git/tags{/sha}",
216
+ "git_refs_url": "https://api.github.com/repos/lucky/staticgenerator/git/refs{/sha}",
217
+ "trees_url": "https://api.github.com/repos/lucky/staticgenerator/git/trees{/sha}",
218
+ "statuses_url": "https://api.github.com/repos/lucky/staticgenerator/statuses/{sha}",
219
+ "languages_url": "https://api.github.com/repos/lucky/staticgenerator/languages",
220
+ "stargazers_url": "https://api.github.com/repos/lucky/staticgenerator/stargazers",
221
+ "contributors_url": "https://api.github.com/repos/lucky/staticgenerator/contributors",
222
+ "subscribers_url": "https://api.github.com/repos/lucky/staticgenerator/subscribers",
223
+ "subscription_url": "https://api.github.com/repos/lucky/staticgenerator/subscription",
224
+ "commits_url": "https://api.github.com/repos/lucky/staticgenerator/commits{/sha}",
225
+ "git_commits_url": "https://api.github.com/repos/lucky/staticgenerator/git/commits{/sha}",
226
+ "comments_url": "https://api.github.com/repos/lucky/staticgenerator/comments{/number}",
227
+ "issue_comment_url": "https://api.github.com/repos/lucky/staticgenerator/issues/comments{/number}",
228
+ "contents_url": "https://api.github.com/repos/lucky/staticgenerator/contents/{+path}",
229
+ "compare_url": "https://api.github.com/repos/lucky/staticgenerator/compare/{base}...{head}",
230
+ "merges_url": "https://api.github.com/repos/lucky/staticgenerator/merges",
231
+ "archive_url": "https://api.github.com/repos/lucky/staticgenerator/{archive_format}{/ref}",
232
+ "downloads_url": "https://api.github.com/repos/lucky/staticgenerator/downloads",
233
+ "issues_url": "https://api.github.com/repos/lucky/staticgenerator/issues{/number}",
234
+ "pulls_url": "https://api.github.com/repos/lucky/staticgenerator/pulls{/number}",
235
+ "milestones_url": "https://api.github.com/repos/lucky/staticgenerator/milestones{/number}",
236
+ "notifications_url": "https://api.github.com/repos/lucky/staticgenerator/notifications{?since,all,participating}",
237
+ "labels_url": "https://api.github.com/repos/lucky/staticgenerator/labels{/name}",
238
+ "releases_url": "https://api.github.com/repos/lucky/staticgenerator/releases{/id}",
239
+ "deployments_url": "https://api.github.com/repos/lucky/staticgenerator/deployments",
240
+ "created_at": "2008-12-21T02:41:12Z",
241
+ "updated_at": "2016-05-04T21:55:20Z",
242
+ "pushed_at": "2016-01-14T16:35:20Z",
243
+ "git_url": "git://github.com/lucky/staticgenerator.git",
244
+ "ssh_url": "git@github.com:lucky/staticgenerator.git",
245
+ "clone_url": "https://github.com/lucky/staticgenerator.git",
246
+ "svn_url": "https://github.com/lucky/staticgenerator",
247
+ "homepage": "http://superjared.com/projects/static-generator/",
248
+ "size": 144,
249
+ "stargazers_count": 214,
250
+ "watchers_count": 214,
251
+ "language": "Python",
252
+ "has_issues": true,
253
+ "has_downloads": true,
254
+ "has_wiki": true,
255
+ "has_pages": false,
256
+ "forks_count": 46,
257
+ "mirror_url": null,
258
+ "open_issues_count": 8,
259
+ "forks": 46,
260
+ "open_issues": 8,
261
+ "watchers": 214,
262
+ "default_branch": "master"
263
+ },
264
+ "network_count": 46,
265
+ "subscribers_count": 1
266
+ }
@@ -13,6 +13,15 @@ module Reponaut
13
13
  end
14
14
  end
15
15
 
16
+ it "raises a rate limit error if GitHub's rate limit is exceeded" do
17
+ WebMock.disable_net_connect!
18
+ WebMock.reset!
19
+ root = File.expand_path('../../fixtures', __FILE__)
20
+ stub_request(:get, 'https://api.github.com/users/mdippery/repos').
21
+ to_return(:status => 403, :body => IO.read(File.join(root, 'rate_limiting.json')))
22
+ expect { github.repos.count }.to raise_error(RateLimitExceededError)
23
+ end
24
+
16
25
  it 'returns a valid repo name for a repo' do
17
26
  VCR.use_cassette(username) do
18
27
  expect(github.repos[0].full_name).to eq('mdippery/3ddv')
@@ -0,0 +1,59 @@
1
+ require 'spec_helper'
2
+
3
+ module Reponaut
4
+ module Application
5
+ describe 'Presenters' do
6
+ let (:repo) { double('repo', :name => '3ddv',
7
+ :description => 'NEES 3D Data Viewer from the Center for Earthquake Engineering Simulation at RPI',
8
+ :fork? => false) }
9
+ let (:fork) { double('repo', :name => 'mercenary',
10
+ :description => 'An easier way to build your command-line scripts in Ruby.',
11
+ :fork? => true,
12
+ :upstream => 'jekyll/mercenary') }
13
+
14
+ describe SimplePresenter do
15
+ let (:formatter) { SimplePresenter.new }
16
+
17
+ it "prints the repo's name" do
18
+ expect(formatter.format(repo)).to eq('3ddv')
19
+ end
20
+
21
+ it "prints the name of the upstream repo if the repo is a fork" do
22
+ expect(formatter.format(fork)).to eq('mercenary -> jekyll/mercenary')
23
+ end
24
+ end
25
+
26
+ describe LongPresenter do
27
+ let (:formatter) { LongPresenter.new }
28
+
29
+ it "prints the repo's name and description" do
30
+ expected = <<EOS.chomp
31
+ 3ddv
32
+ NEES 3D Data Viewer from the Center for Earthquake Engineering Simulation at RPI
33
+ EOS
34
+ expect(formatter.format(repo)).to eq(expected)
35
+ end
36
+
37
+ it "prints the repo's name, description, and upstream repo's name if the repo is a fork" do
38
+ expected = <<EOS.chomp
39
+ mercenary -> jekyll/mercenary
40
+ An easier way to build your command-line scripts in Ruby.
41
+ EOS
42
+ expect(formatter.format(fork)).to eq(expected)
43
+ end
44
+
45
+ it 'separates multiple repo listings with a blank line' do
46
+ expected = <<EOS.chomp
47
+ 3ddv
48
+ NEES 3D Data Viewer from the Center for Earthquake Engineering Simulation at RPI
49
+
50
+ mercenary -> jekyll/mercenary
51
+ An easier way to build your command-line scripts in Ruby.
52
+ EOS
53
+ actual = formatter.format(repo) + "\n" + formatter.format(fork)
54
+ expect(actual).to eq(expected)
55
+ end
56
+ end
57
+ end
58
+ end
59
+ end
@@ -0,0 +1,64 @@
1
+ require 'spec_helper'
2
+
3
+ module Reponaut
4
+ module Application
5
+ describe LexicographicalSorter do
6
+ it 'sorts two wrapped pairs with the same name equally' do
7
+ s1 = LexicographicalSorter.new(['Java', 10])
8
+ s2 = LexicographicalSorter.new(['Java', 20])
9
+ expect(s1 <=> s2).to eql(0)
10
+ expect(s2 <=> s1).to eql(0)
11
+ end
12
+
13
+ it 'sorts two wrapped pairs with different names alphabetically' do
14
+ s1 = LexicographicalSorter.new(['Java', 10])
15
+ s2 = LexicographicalSorter.new(['C', 20])
16
+ s3 = LexicographicalSorter.new(['Objective-C', 5])
17
+ expect(s1 <=> s2).to be > 0
18
+ expect(s2 <=> s1).to be < 0
19
+ expect(s1 <=> s3).to be < 0
20
+ expect(s3 <=> s1).to be > 0
21
+ expect(s2 <=> s3).to be < 0
22
+ expect(s3 <=> s2).to be > 0
23
+ end
24
+
25
+ it 'returns nil if the comparison object is not a sorter' do
26
+ s1 = LexicographicalSorter.new(['Java', 10])
27
+ expect(s1 <=> ['Java', 10]).to be nil
28
+ end
29
+ end
30
+
31
+ describe NumericalSorter do
32
+ it 'sorts two wrapped pairs by count descending' do
33
+ s1 = NumericalSorter.new(['Java', 5])
34
+ s2 = NumericalSorter.new(['C', 10])
35
+ s3 = NumericalSorter.new(['Objective-C', 7])
36
+ expect(s1 <=> s2).to be > 0
37
+ expect(s2 <=> s1).to be < 0
38
+ expect(s1 <=> s3).to be > 0
39
+ expect(s3 <=> s1).to be < 0
40
+ expect(s2 <=> s3).to be < 0
41
+ expect(s3 <=> s2).to be > 0
42
+ end
43
+
44
+ it 'sorts two wrapped pairs with the same count by name instead' do
45
+ s1 = NumericalSorter.new(['Java', 10])
46
+ s2 = NumericalSorter.new(['C', 10])
47
+ expect(s1 <=> s2).to be > 0
48
+ expect(s2 <=> s1).to be < 0
49
+ end
50
+
51
+ it 'sorts two wrapped pairs that are exactly the same equally' do
52
+ s1 = NumericalSorter.new(['Java', 10])
53
+ s2 = NumericalSorter.new(['Java', 10])
54
+ expect(s1 <=> s2).to eql(0)
55
+ expect(s2 <=> s1).to eql(0)
56
+ end
57
+
58
+ it 'returns nil if the comparison object is not a sorter' do
59
+ s1 = NumericalSorter.new(['Java', 10])
60
+ expect(s1 <=> ['Java', 10]).to be nil
61
+ end
62
+ end
63
+ end
64
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reponaut
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 2.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Dippery
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-05 00:00:00.000000000 Z
11
+ date: 2016-08-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: httparty
@@ -16,42 +16,48 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.13.5
19
+ version: 0.14.0
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.13.5
26
+ version: 0.14.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: json
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1.8'
33
+ version: '2.0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '1.8'
40
+ version: '2.0'
41
41
  - !ruby/object:Gem::Dependency
42
- name: slop
42
+ name: mercenary
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - "~>"
46
46
  - !ruby/object:Gem::Version
47
- version: '4.2'
47
+ version: 0.3.5
48
+ - - "!="
49
+ - !ruby/object:Gem::Version
50
+ version: 0.3.6
48
51
  type: :runtime
49
52
  prerelease: false
50
53
  version_requirements: !ruby/object:Gem::Requirement
51
54
  requirements:
52
55
  - - "~>"
53
56
  - !ruby/object:Gem::Version
54
- version: '4.2'
57
+ version: 0.3.5
58
+ - - "!="
59
+ - !ruby/object:Gem::Version
60
+ version: 0.3.6
55
61
  - !ruby/object:Gem::Dependency
56
62
  name: aruba
57
63
  requirement: !ruby/object:Gem::Requirement
@@ -142,10 +148,16 @@ files:
142
148
  - features/support/aruba.rb
143
149
  - features/support/vcr.rb
144
150
  - lib/reponaut.rb
145
- - lib/reponaut/application.rb
151
+ - lib/reponaut/command.rb
152
+ - lib/reponaut/commands/count.rb
153
+ - lib/reponaut/commands/list.rb
154
+ - lib/reponaut/ext/ENV.rb
146
155
  - lib/reponaut/ext/bool.rb
147
156
  - lib/reponaut/ext/hash.rb
157
+ - lib/reponaut/ext/mercenary.rb
148
158
  - lib/reponaut/github.rb
159
+ - lib/reponaut/presenter.rb
160
+ - lib/reponaut/sorter.rb
149
161
  - lib/reponaut/statistics.rb
150
162
  - lib/reponaut/version.rb
151
163
  - reponaut.gemspec
@@ -154,16 +166,26 @@ files:
154
166
  - spec/fixtures/cassettes/mdippery.yml
155
167
  - spec/fixtures/cassettes/nosuchuser.yml
156
168
  - spec/fixtures/cassettes/testuser1.yml
169
+ - spec/fixtures/rate_limiting.json
170
+ - spec/fixtures/repos/mdippery/Smyck-Color-Scheme.json
171
+ - spec/fixtures/repos/mdippery/dnsimple-python.json
172
+ - spec/fixtures/repos/mdippery/nginx.vim.json
173
+ - spec/fixtures/repos/mdippery/staticgenerator.json
157
174
  - spec/reponaut/bool_spec.rb
158
175
  - spec/reponaut/github_spec.rb
159
176
  - spec/reponaut/hash_spec.rb
177
+ - spec/reponaut/presenter_spec.rb
178
+ - spec/reponaut/sorter_spec.rb
160
179
  - spec/reponaut/statistics_spec.rb
161
180
  - spec/spec_helper.rb
162
181
  - spec/support/vcr.rb
163
182
  homepage: https://github.com/mdippery/reponaut
164
183
  licenses:
165
184
  - MIT
166
- metadata: {}
185
+ metadata:
186
+ build_date: 2016-08-28 17:52:49 PDT
187
+ commit: v2.0.0
188
+ commit_hash: df5fa0aefe17ed3033928aad6e6ea2b0450416b1
167
189
  post_install_message:
168
190
  rdoc_options: []
169
191
  require_paths:
@@ -180,7 +202,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
180
202
  version: '0'
181
203
  requirements: []
182
204
  rubyforge_project:
183
- rubygems_version: 2.4.5.1
205
+ rubygems_version: 2.5.1
184
206
  signing_key:
185
207
  specification_version: 4
186
208
  summary: Analyzes GitHub users' profiles
@@ -196,9 +218,16 @@ test_files:
196
218
  - spec/fixtures/cassettes/mdippery.yml
197
219
  - spec/fixtures/cassettes/nosuchuser.yml
198
220
  - spec/fixtures/cassettes/testuser1.yml
221
+ - spec/fixtures/rate_limiting.json
222
+ - spec/fixtures/repos/mdippery/Smyck-Color-Scheme.json
223
+ - spec/fixtures/repos/mdippery/dnsimple-python.json
224
+ - spec/fixtures/repos/mdippery/nginx.vim.json
225
+ - spec/fixtures/repos/mdippery/staticgenerator.json
199
226
  - spec/reponaut/bool_spec.rb
200
227
  - spec/reponaut/github_spec.rb
201
228
  - spec/reponaut/hash_spec.rb
229
+ - spec/reponaut/presenter_spec.rb
230
+ - spec/reponaut/sorter_spec.rb
202
231
  - spec/reponaut/statistics_spec.rb
203
232
  - spec/spec_helper.rb
204
233
  - spec/support/vcr.rb