theoj 1.3.2 → 1.3.3

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: 7193fb99087c97cc7fc07912ae2fee9aee41da47fb2a914a0a072d88682c63f2
4
- data.tar.gz: c041cd0adca72f34321de635981115625a0de28fa68136d01df638cf7af9141d
3
+ metadata.gz: b3f3262966a5a71981568330e20f0814324e6335edb4a44e47a03f0aa7d89d4d
4
+ data.tar.gz: 150fec7f99a1a5c471b155ad77ba4b948e08952e98fee4295032c87ee7f575d2
5
5
  SHA512:
6
- metadata.gz: 9b1bc3147a29ed640ee5ff0e772af845e1af269d39776432f753ca01512f85355198df501a1a95707d5dea50fcbe6e19438eb7a3b14789b35f61d2bb8f2a9f8b
7
- data.tar.gz: 3425fe8d3d51244583ecc9db5a5309ac285ebc22b45beda6a738e7fee6d1fc564b0ed5c34d003cde99c7e248eb9f053356bf913eb97d3692ec9a95f7cd793f62
6
+ metadata.gz: dd83a2dfeafca795c2e6688c08bd0c3ae53c4ff77ad1c0abaf2f79a6660fc19d263303fb2ca86cd6d3846a420c5e8969ba1d027115bcda80ac61d746ec7df5b3
7
+ data.tar.gz: a851572ab77acdc7c3370fd009eab77fc161b485e2bfeac76cd9ce4d7b1561bd2e2ae4493112704ce313f16a30ba484525f6e48f0b14d20f1f5836687365131f
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 1.3.3 (2022-03-31)
4
+
5
+ - Fix bug with upcased user logins
6
+
3
7
  ## 1.3.2 (2022-03-17)
4
8
 
5
9
  - Allow setting GitHub access using GITHUB_TOKEN env var
data/lib/theoj/github.rb CHANGED
@@ -46,13 +46,13 @@ module Theoj
46
46
 
47
47
  # Uses the GitHub API to determine if a user has a pending invitation
48
48
  def is_invited?(repo, username)
49
- username = user_login(username)
49
+ username = user_login(username).downcase
50
50
  github_client.repository_invitations(repo).any? { |i| i.invitee.login.downcase == username }
51
51
  end
52
52
 
53
53
  # Returns the user login (removes the @ from the username)
54
54
  def user_login(username)
55
- username.to_s.strip.sub(/^@/, "").downcase
55
+ username.to_s.strip.sub(/^@/, "")
56
56
  end
57
57
 
58
58
  # Returns true if the string is a valid GitHub isername (starts with @)
data/lib/theoj/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Theoj
2
- VERSION = "1.3.2"
2
+ VERSION = "1.3.3"
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.2
4
+ version: 1.3.3
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-17 00:00:00.000000000 Z
11
+ date: 2022-03-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: octokit
@@ -157,7 +157,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
157
157
  - !ruby/object:Gem::Version
158
158
  version: '0'
159
159
  requirements: []
160
- rubygems_version: 3.3.3
160
+ rubygems_version: 3.2.22
161
161
  signing_key:
162
162
  specification_version: 4
163
163
  summary: Editorial objects used by the Open Journals