reponaut 1.0.1 → 1.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/features/count.feature +3 -3
- data/features/help.feature +3 -3
- data/lib/reponaut/application.rb +2 -2
- data/lib/reponaut/version.rb +1 -1
- data/reponaut.gemspec +2 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6e27e5b97cd767953b0391626054e89c6e2d2817
|
4
|
+
data.tar.gz: 43c15e3c519eeeb662e16a63aa88d6c22415c1a0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8afbf9470d9fd27c13665afd93f55dfd2a556eed10caeff65ffb21e3adec0041552e46684f267489cc921d06194b928678754c3a286fc853226ebcfbed3712d6
|
7
|
+
data.tar.gz: b66359f6aeea58ddd0b3ba111244991f4029d404ab9168465a62e706b37e694fb445b165bdee827e0a29e9844f0b25637862a31b7e565d103fd9905b1a49a475
|
data/features/count.feature
CHANGED
@@ -23,7 +23,7 @@ Feature: Count repositories by language
|
|
23
23
|
|
24
24
|
Scenario: List repository counts sorted by language count
|
25
25
|
Given the GitHub service returns repository data for the user "mdippery"
|
26
|
-
When I run `reponaut -
|
26
|
+
When I run `reponaut -c mdippery`
|
27
27
|
Then it should pass with:
|
28
28
|
"""
|
29
29
|
Objective-C 5
|
@@ -40,7 +40,7 @@ Feature: Count repositories by language
|
|
40
40
|
|
41
41
|
Scenario: List repository counts sorted by language count using long option
|
42
42
|
Given the GitHub service returns repository data for the user "mdippery"
|
43
|
-
When I run `reponaut --
|
43
|
+
When I run `reponaut --count mdippery`
|
44
44
|
Then it should pass with:
|
45
45
|
"""
|
46
46
|
Objective-C 5
|
@@ -91,7 +91,7 @@ Feature: Count repositories by language
|
|
91
91
|
|
92
92
|
Scenario: List repository counts for source repositories ordered by count
|
93
93
|
Given the GitHub service returns repository data for the user "mdippery"
|
94
|
-
When I run `reponaut -f -
|
94
|
+
When I run `reponaut -f -c mdippery`
|
95
95
|
Then it should pass with:
|
96
96
|
"""
|
97
97
|
Objective-C 5
|
data/features/help.feature
CHANGED
@@ -11,7 +11,7 @@ Feature: Get help
|
|
11
11
|
Usage: reponaut [OPTIONS] USERNAME
|
12
12
|
|
13
13
|
Options:
|
14
|
-
-
|
14
|
+
-c, --count Sort by repo count
|
15
15
|
-f, --ignore-forks Ignore forked repos
|
16
16
|
-h, --help
|
17
17
|
--version
|
@@ -24,7 +24,7 @@ Feature: Get help
|
|
24
24
|
Usage: reponaut [OPTIONS] USERNAME
|
25
25
|
|
26
26
|
Options:
|
27
|
-
-
|
27
|
+
-c, --count Sort by repo count
|
28
28
|
-f, --ignore-forks Ignore forked repos
|
29
29
|
-h, --help
|
30
30
|
--version
|
@@ -55,7 +55,7 @@ Feature: Get help
|
|
55
55
|
Usage: reponaut [OPTIONS] USERNAME
|
56
56
|
|
57
57
|
Options:
|
58
|
-
-
|
58
|
+
-c, --count Sort by repo count
|
59
59
|
-f, --ignore-forks Ignore forked repos
|
60
60
|
-h, --help
|
61
61
|
--version
|
data/lib/reponaut/application.rb
CHANGED
@@ -12,7 +12,7 @@ module Reponaut
|
|
12
12
|
o.separator ''
|
13
13
|
o.separator 'Options:'
|
14
14
|
|
15
|
-
o.bool '-
|
15
|
+
o.bool '-c', '--count', 'Sort by repo count'
|
16
16
|
o.bool '-f', '--ignore-forks', 'Ignore forked repos'
|
17
17
|
|
18
18
|
o.on '-h', '--help' do
|
@@ -41,7 +41,7 @@ module Reponaut
|
|
41
41
|
end
|
42
42
|
stats = Reponaut::StatisticsCalculator.new(repos)
|
43
43
|
counts = stats.language_counts.pairs
|
44
|
-
counts = if opts.
|
44
|
+
counts = if opts.count?
|
45
45
|
counts.sort do |a, b|
|
46
46
|
res = b[1] <=> a[1]
|
47
47
|
if res == 0
|
data/lib/reponaut/version.rb
CHANGED
data/reponaut.gemspec
CHANGED
@@ -17,6 +17,8 @@ Gem::Specification.new do |gem|
|
|
17
17
|
gem.test_files = gem.files.grep(%r{^(test|spec|features|fixtures)/})
|
18
18
|
gem.require_paths = ['lib']
|
19
19
|
|
20
|
+
gem.required_ruby_version = '>= 2.0.0'
|
21
|
+
|
20
22
|
gem.add_runtime_dependency('httparty', '~> 0.13.5')
|
21
23
|
gem.add_runtime_dependency('json', '~> 1.8')
|
22
24
|
gem.add_runtime_dependency('slop', '~> 4.2')
|
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.0
|
4
|
+
version: 1.1.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: 2015-08-
|
11
|
+
date: 2015-08-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: httparty
|
@@ -169,7 +169,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
169
169
|
requirements:
|
170
170
|
- - ">="
|
171
171
|
- !ruby/object:Gem::Version
|
172
|
-
version:
|
172
|
+
version: 2.0.0
|
173
173
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
174
174
|
requirements:
|
175
175
|
- - ">="
|