gitall 1.1.19 → 1.1.20
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 +4 -4
- data/lib/gitall.rb +5 -6
- data/lib/gitall/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 63df4d0ad03f2a22db3768a65c13245b26ca9191a0316acce90cbc5dcff80564
|
|
4
|
+
data.tar.gz: 880a73ade68f6d468c9fe5095826d8c1ae772a3e22638fe0b3057b349da8ee26
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: f76603d2500cc79bf91ca4c62e1803a8c4da59cd21035007c16a49cee3c7383c68f77ceae168786ff5be8fae69c68c52f1e3576140457604c2df48ea7a469d82
|
|
7
|
+
data.tar.gz: ed7c586fbb911273009a178c4d272285ffa54c442634f31e36661684f6020c8ad7f253af093689c10b4d009bad0e0b3a45c2d9050632ef1237710ae8683dff12
|
data/lib/gitall.rb
CHANGED
|
@@ -178,10 +178,9 @@ module GitAll
|
|
|
178
178
|
j = RecursiveOpenStruct.new(json)
|
|
179
179
|
repo = ''
|
|
180
180
|
if request.env.key? 'HTTP_X_GITLAB_TOKEN'
|
|
181
|
-
repo = j.project.path_with_namespace
|
|
182
|
-
puts repo
|
|
181
|
+
repo = j.project.path_with_namespace.to_s.downcase
|
|
183
182
|
resp = GitLabParser.parse json
|
|
184
|
-
phash = GitAll::PROJECTS[repo]
|
|
183
|
+
phash = GitAll::PROJECTS[repo.downcase]
|
|
185
184
|
if phash['token'] == request.env['HTTP_X_GITLAB_TOKEN']
|
|
186
185
|
channels = phash['channels']
|
|
187
186
|
channels.each do |channet|
|
|
@@ -194,13 +193,13 @@ module GitAll
|
|
|
194
193
|
end
|
|
195
194
|
elsif request.env.key? 'HTTP_X_HUB_SIGNATURE'
|
|
196
195
|
if !j.repository.full_name.nil?
|
|
197
|
-
repo = j.repository.full_name
|
|
196
|
+
repo = j.repository.full_name.downcase
|
|
198
197
|
elsif !j.organization.login.nil?
|
|
199
|
-
repo = j.organization.login
|
|
198
|
+
repo = j.organization.login.downcase
|
|
200
199
|
else
|
|
201
200
|
end
|
|
202
201
|
# phash includes orgs and repos
|
|
203
|
-
phash = GitAll::PROJECTS[repo.
|
|
202
|
+
phash = GitAll::PROJECTS[repo.downcase]
|
|
204
203
|
token = phash['token']
|
|
205
204
|
sent_token = request.env['HTTP_X_HUB_SIGNATURE']
|
|
206
205
|
signature = "sha1=#{OpenSSL::HMAC.hexdigest('sha1', token, payload.strip).chomp}"
|
data/lib/gitall/version.rb
CHANGED