github_contribs 1.0.0 → 1.1.0

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
  SHA256:
3
- metadata.gz: '08e0e43a97f55f9a06e5dadb7cd30fb5744cee79acff1b8a0c8f1000e663ddd7'
4
- data.tar.gz: ef5db7d36c652b2e7b995eab7cceabb98110424357a37c7abff510a178e34526
3
+ metadata.gz: f41a12f72aa1ff4448d1a8f11fd4f6ef48dcd995b388ce64a5495fce0ae08d33
4
+ data.tar.gz: 208e49020c9aff47bd8e4c914aca0e17547e934176633ebaa219f8ea05c8a6fa
5
5
  SHA512:
6
- metadata.gz: 57aebaadfaeb71598070f6fbd7289b6540f7713345b9bb7f6b06ca4a591cc9bc50040f70ddb3145c8ec4d9f3dfe9ba666e1c7eaf81b1437e86de2924be45fcfc
7
- data.tar.gz: e274e2f64bba8b4af46f1ccbe3dd1c7a0bfa1a69826536f6414a0c279de0f5b7d7da418fca901433137024784fc97f0b41104e57e118fffdb9faff352d9e43f7
6
+ metadata.gz: d97e88c845240284bc97cc2a0ed748dade907810a90c2572f38ce9af0ff0242ddbb86fa3842bfbe42a4e9647cc44917300f861797997d45cb75ac0bed7b0ccc8
7
+ data.tar.gz: 4a9dd171a59a58f4a0eb14d0a3acbd8998a33e74ba09edd709a687dae99b34bdeae6f166b0c60928dfde0691b75122e7c81468d7ec3d00cef81726a2b525bc70
checksums.yaml.gz.sig CHANGED
@@ -1,2 +1 @@
1
- V~M�
2
- iY8n
1
+ YVïz姽�D�}�/=�3Ne�ͽ�����az�-!$���"� ��&���$=B��Ț�RI���ـ���
data/History.rdoc CHANGED
@@ -1,3 +1,9 @@
1
+ === 1.1.0 / 2022-10-05
2
+
3
+ * 1 minor enhancement:
4
+
5
+ * Added support for $GITHUB_TOKEN env var for auth. (Fryguy)
6
+
1
7
  === 1.0.0 / 2022-09-17
2
8
 
3
9
  * 1 major enhancement
data/README.rdoc CHANGED
@@ -12,7 +12,7 @@ from github and assembles them into a unified view.
12
12
 
13
13
  * Helps visualize patterns across the years.
14
14
  * See the effects of major life events (eg marriage, baby, depression).
15
- * Uses ~/.config/gh/hosts.yml for authentication (generate via `gh auth login`).
15
+ * Uses GITHUB_TOKEN env var or ~/.config/gh/hosts.yml for authentication (generate via `gh auth login`).
16
16
  * Caches all previous years (current year is always generated).
17
17
  * Defaults to 10 years, but takes an optional year.
18
18
 
@@ -5,10 +5,10 @@ require "open-uri"
5
5
  require "yaml"
6
6
 
7
7
  class GithubContribs
8
- VERSION = "1.0.0"
8
+ VERSION = "1.1.0"
9
9
 
10
10
  def oauth_token
11
- @token ||= begin
11
+ @token ||= ENV["GITHUB_TOKEN"] || begin
12
12
  data = YAML.load_file File.expand_path "~/.config/gh/hosts.yml"
13
13
  data && data.dig("github.com", "oauth_token")
14
14
  end
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: github_contribs
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Davis
@@ -29,7 +29,7 @@ cert_chain:
29
29
  JFmxn4h9YO/pVdB962BdBNNDia0kgIjI3ENnkLq0dKpYU3+F3KhEuTksLO0L6X/V
30
30
  YsuyUzsMz6GQA4khyaMgKNSD
31
31
  -----END CERTIFICATE-----
32
- date: 2022-09-17 00:00:00.000000000 Z
32
+ date: 2022-10-05 00:00:00.000000000 Z
33
33
  dependencies:
34
34
  - !ruby/object:Gem::Dependency
35
35
  name: nokogiri
metadata.gz.sig CHANGED
Binary file