gigest 2.0.0 → 2.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2723954973050f79daf590c2e6bf89eb4e9ce5c5
4
- data.tar.gz: 7fb6a189a4da82657e8e3d3b15479ddc64019391
3
+ metadata.gz: b2e61051c9a9f6f111708f4fad1aef6505e33e87
4
+ data.tar.gz: 68718909b0ac7d1abb7561c140392d4fc402fa4d
5
5
  SHA512:
6
- metadata.gz: 03964f8df7868553af58152f452bdddd6ce83271be6de420c8795dfa4c67d8387bb783dae22aced5f8d9bf3977a8fc80a721033e9700cae9614067de13f2bc56
7
- data.tar.gz: 1c6c79564734ad3a2c159ad942f68b8156bf10ae404fb45879271a953f54faf257b7d33a939fc41c48ab11a4ed75bce00639f9c162705d86e3b268094a7e819e
6
+ metadata.gz: 6fbda5eb4da52996ae43d0e3a9b2379f53fe29fa5c876a7ac71aba08fa49e33443e16ba6c8b5339025dff4dd2a233d7e28e8d7ee7e8d3fc89aa44762c8d1c29e
7
+ data.tar.gz: f985af09c7cf0637beb389192c91e008c71152cceff9e87728f59de9b4955684ed1a30b27340c685f27785a7bb36290f9758d6c721c75bff1ba4d09650741e36
data/README.markdown CHANGED
@@ -28,6 +28,8 @@ which the OAuth access token was granted](http://developer.github.com/v3/oauth/#
28
28
 
29
29
  This can take a while if the GitHub account contains A LOT of repos. Sit back and relax.
30
30
 
31
+ The default is to process for a _User_ type GitHub account, otherwise invoke `process_for("neo", :org)`.
32
+
31
33
  3) Get summary.
32
34
 
33
35
  analytics.summary
@@ -43,12 +45,12 @@ Returns you a Hash in the format:
43
45
 
44
46
  analytics.statistics
45
47
 
46
- Returns you a Hash in the format:
48
+ Returns you an Array in the format:
47
49
 
48
- {
49
- gem1: 2, # number of times seen
50
- gem2: 4
51
- }
50
+ [
51
+ {gem_name: "gem1", repositories: ["repo1", "repo2"], count: 2, percentage: 100.0},
52
+ {gem_name: "gem2", repositories: ["repo1"], count: 1, percentage: 50.0}
53
+ ]
52
54
 
53
55
 
54
56
  ## Contributing
@@ -27,7 +27,7 @@ module Gigest
27
27
  private
28
28
 
29
29
  def repository_method(type)
30
- type == :user ? :repositories : :organization_repositories
30
+ type == :org ? :organization_repositories : :repositories
31
31
  end
32
32
 
33
33
  def decode(blob)
@@ -1,3 +1,3 @@
1
1
  module Gigest
2
- VERSION = "2.0.0"
2
+ VERSION = "2.0.1"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gigest
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Winston Teo
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-08-28 00:00:00.000000000 Z
11
+ date: 2013-08-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: octokit