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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9894d68439faab717f0a9fafb198e1cf5d788774
4
- data.tar.gz: 990c02e1a0d8195042e3cb08f2b4be1c33c3ab86
3
+ metadata.gz: be91e87cfac4c9b5f5827a68037219b3de8f4673
4
+ data.tar.gz: cc3255bdf15b65499fb9ccf0db53a965a745ff8f
5
5
  SHA512:
6
- metadata.gz: 8e51094ef10c949748cf69ea166dd5c472da218a5f2d564246268747d8bfa79aa1a07a1198b871f933bca56c9b7e0bf9b909f569866ae8b9f6062dc47c22edf0
7
- data.tar.gz: 478016040ce51b66f750ed6238afa8f6c861e5f2d6805718807c50a345a7ed8a4043089cdce8e4a467e93e9e0620629d6aa16070ad30020d175512bb16570eba
6
+ metadata.gz: 038bc1d488caa64fcf06fdcd3a44bd8c38f1048c4f23e2a1643ff2a7739e030721d4ff9d41aae8065b7ceb75c1ef2125fd3c777be5541760dc1dbd4cb77d7562
7
+ data.tar.gz: 94ab1e34a7ee9f035432337d14e3c577d509460e10b00b945a03a963929c5b6d08cce6b2f798be6d0ff451b290a6b01ed6c212fe114524ef409c01629478a599
data/.gitignore CHANGED
@@ -5,3 +5,4 @@ results.yml
5
5
  github_response.yml
6
6
  coverage/
7
7
  *.gem
8
+ .rake_tasks~
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- gitget (0.5.2)
4
+ gitget (0.6.0)
5
5
  concurrent-ruby (~> 1.0)
6
6
  http (~> 2.0)
7
7
 
@@ -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
- stats_array = [
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
  }
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Github
4
- VERSION = '0.5.2'
4
+ VERSION = '0.6.0'
5
5
  end
@@ -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.length.must_be :>, 0
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.length.must_be :>, 0
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.5.2
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-05 00:00:00.000000000 Z
13
+ date: 2017-01-06 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: http