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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f9d12c5895cb5c54112b7ad1ff40e4f1accbcc56dfa08b331c327786d770d1fa
4
- data.tar.gz: ad019d1b809baa70f2fda61c723fc739d5c2c0cb5ff130f442578b65938080f9
3
+ metadata.gz: 63df4d0ad03f2a22db3768a65c13245b26ca9191a0316acce90cbc5dcff80564
4
+ data.tar.gz: 880a73ade68f6d468c9fe5095826d8c1ae772a3e22638fe0b3057b349da8ee26
5
5
  SHA512:
6
- metadata.gz: 003be52323699950b29e457831eff6a51b1d3e9b23a5a73917e93358e43d33524cd22bc2e3d26dcb94c9fcb61ca9bf7af21d97150baf3826472a4569a46f8a25
7
- data.tar.gz: 15b5ffab486d049a15a40ae91f9b393c06d43ad8403be178eab42450cc260087fc78ff35de46fe63652212e56dff0cab02cc1fa6445e6b3a03e341b1ec78de69
6
+ metadata.gz: f76603d2500cc79bf91ca4c62e1803a8c4da59cd21035007c16a49cee3c7383c68f77ceae168786ff5be8fae69c68c52f1e3576140457604c2df48ea7a469d82
7
+ data.tar.gz: ed7c586fbb911273009a178c4d272285ffa54c442634f31e36661684f6020c8ad7f253af093689c10b4d009bad0e0b3a45c2d9050632ef1237710ae8683dff12
@@ -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.to_sym]
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}"
@@ -1,3 +1,3 @@
1
1
  module GitAll
2
- VERSION = '1.1.19'
2
+ VERSION = '1.1.20'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gitall
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.19
4
+ version: 1.1.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ken Spencer