gitget 0.5.2 → 0.6.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/.gitignore +1 -0
- data/Gemfile.lock +1 -1
- data/lib/gitget/github_repository.rb +2 -7
- data/lib/gitget/version.rb +1 -1
- data/spec/developer_spec.rb +2 -2
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: be91e87cfac4c9b5f5827a68037219b3de8f4673
|
|
4
|
+
data.tar.gz: cc3255bdf15b65499fb9ccf0db53a965a745ff8f
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 038bc1d488caa64fcf06fdcd3a44bd8c38f1048c4f23e2a1643ff2a7739e030721d4ff9d41aae8065b7ceb75c1ef2125fd3c777be5541760dc1dbd4cb77d7562
|
|
7
|
+
data.tar.gz: 94ab1e34a7ee9f035432337d14e3c577d509460e10b00b945a03a963929c5b6d08cce6b2f798be6d0ff451b290a6b01ed6c212fe114524ef409c01629478a599
|
data/.gitignore
CHANGED
data/Gemfile.lock
CHANGED
|
@@ -13,18 +13,13 @@ module Github
|
|
|
13
13
|
load_data(data)
|
|
14
14
|
end
|
|
15
15
|
|
|
16
|
-
def stats
|
|
16
|
+
def stats(stat_names: ['code_frequency'])
|
|
17
17
|
return @stats if @stats
|
|
18
18
|
|
|
19
19
|
@stats = {}
|
|
20
20
|
stats_promises = {}
|
|
21
21
|
|
|
22
|
-
|
|
23
|
-
'contributors',
|
|
24
|
-
'code_frequency',
|
|
25
|
-
'participation']
|
|
26
|
-
|
|
27
|
-
stats_array.each do |stat|
|
|
22
|
+
stat_names.each do |stat|
|
|
28
23
|
stats_promises[stat.to_sym] = Concurrent::Promise.execute {
|
|
29
24
|
Github::API.repo_stat(@full_name, stat)
|
|
30
25
|
}
|
data/lib/gitget/version.rb
CHANGED
data/spec/developer_spec.rb
CHANGED
|
@@ -19,7 +19,7 @@ describe 'Github specifications' do
|
|
|
19
19
|
end
|
|
20
20
|
|
|
21
21
|
it 'should be able to open a new Github Developer' do
|
|
22
|
-
@developer.username.
|
|
22
|
+
@developer.username.must_equal USERNAME
|
|
23
23
|
end
|
|
24
24
|
|
|
25
25
|
it 'should get the user id' do
|
|
@@ -39,7 +39,7 @@ describe 'Github specifications' do
|
|
|
39
39
|
end
|
|
40
40
|
|
|
41
41
|
it 'should get the repos' do
|
|
42
|
-
@developer.repos.
|
|
42
|
+
@developer.repos.size.must_equal @developer.public_repos
|
|
43
43
|
end
|
|
44
44
|
|
|
45
45
|
it 'should get the repo should have a full name' do
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: gitget
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.
|
|
4
|
+
version: 0.6.0
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Renaud Jollet
|
|
@@ -10,7 +10,7 @@ authors:
|
|
|
10
10
|
autorequire:
|
|
11
11
|
bindir: bin
|
|
12
12
|
cert_chain: []
|
|
13
|
-
date: 2017-01-
|
|
13
|
+
date: 2017-01-06 00:00:00.000000000 Z
|
|
14
14
|
dependencies:
|
|
15
15
|
- !ruby/object:Gem::Dependency
|
|
16
16
|
name: http
|