gitrob 1.0.0 → 1.0.1

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: 7bee31c09fd95a535639f152d7e8263f6d8371b6
4
- data.tar.gz: ef6bd6835050fd1fbc95f257d178159ceaa4dc07
3
+ metadata.gz: 0171119bcd3912ad9ee1967af3c23ac9d5b901e5
4
+ data.tar.gz: 5626794c851de7b3ab38489bebf25338faa8d215
5
5
  SHA512:
6
- metadata.gz: 22d231f7dfb893caac0778a6d7b22672dc19d09b6cd89248b1331157d3bd8d214f32407a9c795eeb788ba3d4343b7e10036b23ce26acd0f48dc9ed85ceb2aab9
7
- data.tar.gz: f4354301d88494ecdfbde6d82172b2e595f0b6380119c27a5510cf3c085f901279883da5eccfdf47a2cb5b498aedebca770fa3dea5536c2ef035211fa06e8ad5
6
+ metadata.gz: 4bb217ad1504c7abc823684cb49cc001812e61b415e4a1a33a4c1bf74e922aa411fc568b6962e3f360f32102acfec33dcb688b79ae6e88a3f951b690915ae53a
7
+ data.tar.gz: 27d602e2e9df9bcfb7960faab9ac4ee1f0adac237d9d70302df5ba08a665d59c3ca82c52473b3a5ef682c6358eb948e14e0d99dcb0288cd7da23a09bb5dfeed2
@@ -3,6 +3,16 @@ All notable changes to this project will be documented in this file.
3
3
  This project adheres to [Semantic Versioning](http://semver.org/).
4
4
 
5
5
  ## [Unreleased]
6
+
7
+ ## [1.0.1]
8
+ ### Fixed
9
+ - The `--verify-ssl` command option did not properly set SSL configuration
10
+ on GitHub API clients.
11
+ - Setting GitHub access tokens with `--access-tokens` command option resulted
12
+ in an error.
13
+ - Analyze command did not collect private repositories from organizations.
14
+
15
+ ## [1.0.0]
6
16
  ### Added
7
17
  - Complete rewrite of Gitrob
8
18
  - Analyze arbitrary amount of organizations and users
@@ -25,10 +25,10 @@ module Gitrob
25
25
  :default => 9393,
26
26
  :desc => "Port to run web server on"
27
27
  class_option :access_tokens,
28
- :type => :array,
28
+ :type => :string,
29
29
  :banner => "TOKENS",
30
- :desc => "GitHub API tokens to use " \
31
- "instead of what has been configured"
30
+ :desc => "Comma-separated list of GitHub API tokens to " \
31
+ "use instead of what has been configured"
32
32
  class_option :color,
33
33
  :type => :boolean,
34
34
  :default => true,
@@ -36,7 +36,7 @@ module Gitrob
36
36
  :oauth_token => access_token,
37
37
  :endpoint => @config[:endpoint],
38
38
  :site => @config[:site],
39
- :ssl => @config[:verify_ssl],
39
+ :ssl => @config[:ssl],
40
40
  :user_agent => USER_AGENT,
41
41
  :auto_pagination => true
42
42
  )
@@ -82,9 +82,15 @@ module Gitrob
82
82
  end
83
83
 
84
84
  def get_repositories(owner)
85
- github_client do |client|
86
- client.repos.list(
87
- :user => owner["login"]).reject { |r| r["fork"] }
85
+ if owner["type"] == "Organization"
86
+ github_client do |client|
87
+ client.repos.list(:org => owner["login"], :type => "sources")
88
+ end
89
+ else
90
+ github_client do |client|
91
+ client.repos.list(
92
+ :user => owner["login"]).reject { |r| r["fork"] }
93
+ end
88
94
  end
89
95
  end
90
96
 
@@ -1,3 +1,3 @@
1
1
  module Gitrob
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitrob
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Henriksen
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-03-12 00:00:00.000000000 Z
11
+ date: 2016-03-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor