shipit-engine 0.8.4 → 0.8.5
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
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5b308e9c68b393a0c41bb322e5405dd393ba9ea1
|
4
|
+
data.tar.gz: f27f540f69df7af158b422597b4ab2c1dbf912c3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 35913cdb173076bfe759087e931f2e97744e1bf6237bc57ed450823f9db320af65ab862625abe533e4949767811db549ddbfd980faf034b0c2518e7f6ea0d15a
|
7
|
+
data.tar.gz: d56692deb88424474784d2b3097448823402766ebef6d20278b44f3e0866a7822474dc05d64ab5f74b73f376704767dd086ab7bde3c09e1aeee3e2524a084f5a
|
@@ -79,7 +79,7 @@ module Shipit
|
|
79
79
|
@webhook ||= if params[:stack_id]
|
80
80
|
stack.github_hooks.find_by!(event: event)
|
81
81
|
else
|
82
|
-
GithubHook::Organization.find_by!(organization: params.organization.login, event: event)
|
82
|
+
GithubHook::Organization.find_by!(organization: params.organization.login.downcase, event: event)
|
83
83
|
end
|
84
84
|
end
|
85
85
|
|
data/lib/shipit/version.rb
CHANGED
@@ -160,6 +160,13 @@ module Shipit
|
|
160
160
|
end
|
161
161
|
end
|
162
162
|
|
163
|
+
test ":membership can append a user membership for an organization with capitals" do
|
164
|
+
assert_difference -> { Membership.count }, 1 do
|
165
|
+
post :membership, membership_params.merge(organization: {login: 'Shopify'}, member: {login: 'bob'})
|
166
|
+
assert_response :ok
|
167
|
+
end
|
168
|
+
end
|
169
|
+
|
163
170
|
private
|
164
171
|
|
165
172
|
def membership_params
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shipit-engine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.8.
|
4
|
+
version: 0.8.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jean Boussier
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-03-
|
11
|
+
date: 2016-03-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|