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 +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/theoj/github.rb +2 -2
- data/lib/theoj/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b3f3262966a5a71981568330e20f0814324e6335edb4a44e47a03f0aa7d89d4d
|
4
|
+
data.tar.gz: 150fec7f99a1a5c471b155ad77ba4b948e08952e98fee4295032c87ee7f575d2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dd83a2dfeafca795c2e6688c08bd0c3ae53c4ff77ad1c0abaf2f79a6660fc19d263303fb2ca86cd6d3846a420c5e8969ba1d027115bcda80ac61d746ec7df5b3
|
7
|
+
data.tar.gz: a851572ab77acdc7c3370fd009eab77fc161b485e2bfeac76cd9ce4d7b1561bd2e2ae4493112704ce313f16a30ba484525f6e48f0b14d20f1f5836687365131f
|
data/CHANGELOG.md
CHANGED
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(/^@/, "")
|
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
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.
|
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-
|
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.
|
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
|