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: 3d5393d2f7c4aa382b7b0466888eb89086ebb9f0
4
- data.tar.gz: f58594b87525c88cb87e1127e56d297bfbc58173
3
+ metadata.gz: 5b308e9c68b393a0c41bb322e5405dd393ba9ea1
4
+ data.tar.gz: f27f540f69df7af158b422597b4ab2c1dbf912c3
5
5
  SHA512:
6
- metadata.gz: 308a57a785ef7a4ac7d9b1c851387b1f519fc4bfed8b438bcba5e8afb1a4610cf52c40e953fd18d76a6dacd7f567e0b45e03f08426101adba381d2366dc48c1d
7
- data.tar.gz: 8336d05b58459dd13d1705f3bdba0ece313d9eab7efe3bef3be3c56ec1ea69d06fa26a49c2236b65e9ca5361636f415a2c7b3dd1e4616b05848bd5544fca3f1c
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
 
@@ -1,3 +1,3 @@
1
1
  module Shipit
2
- VERSION = '0.8.4'
2
+ VERSION = '0.8.5'
3
3
  end
@@ -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
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-10 00:00:00.000000000 Z
11
+ date: 2016-03-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails