theoj 1.3.1 → 1.3.2

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
  SHA256:
3
- metadata.gz: e547b163db1515379b7d14d756ce1a33c87ac3edc664ec1b88d9398886e82ca9
4
- data.tar.gz: 98454621720c0c22f4d7a37134b344b55a9e0c29168b62ced477ae2eba4ad226
3
+ metadata.gz: 7193fb99087c97cc7fc07912ae2fee9aee41da47fb2a914a0a072d88682c63f2
4
+ data.tar.gz: c041cd0adca72f34321de635981115625a0de28fa68136d01df638cf7af9141d
5
5
  SHA512:
6
- metadata.gz: 593a9a2099f19f529e3b96693d757dd3c97c61e74cb2a549a90734fd3e02b0f0dd4e24e3df175a9f91fc2ea54503098f08ff708defadd4c8ebd0351387a60cca
7
- data.tar.gz: 89889649760946e68a6feafa397cead283c29242708c55a91cf07e33f7251e40935abe12125d6a6f8a1e354be4c63265136d41817123059dc5d376d280d709d3
6
+ metadata.gz: 9b1bc3147a29ed640ee5ff0e772af845e1af269d39776432f753ca01512f85355198df501a1a95707d5dea50fcbe6e19438eb7a3b14789b35f61d2bb8f2a9f8b
7
+ data.tar.gz: 3425fe8d3d51244583ecc9db5a5309ac285ebc22b45beda6a738e7fee6d1fc564b0ed5c34d003cde99c7e248eb9f053356bf913eb97d3692ec9a95f7cd793f62
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.3.2 (2022-03-17)
4
+
5
+ - Allow setting GitHub access using GITHUB_TOKEN env var
6
+
3
7
  ## 1.3.1 (2022-03-09)
4
8
 
5
9
  - Fix error when loading metadata for papers with wrong path
data/lib/theoj/github.rb CHANGED
@@ -12,7 +12,7 @@ module Theoj
12
12
 
13
13
  # GitHub access token
14
14
  def github_access_token
15
- @github_access_token ||= ENV["GH_ACCESS_TOKEN"]
15
+ @github_access_token ||= (ENV["GH_ACCESS_TOKEN"] || ENV["GITHUB_TOKEN"])
16
16
  end
17
17
 
18
18
  # GitHub API headers
data/lib/theoj/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Theoj
2
- VERSION = "1.3.1"
2
+ VERSION = "1.3.2"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: theoj
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.1
4
+ version: 1.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juanjo Bazán
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-03-09 00:00:00.000000000 Z
11
+ date: 2022-03-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: octokit