maestrano-connector-rails 2.1.2 → 2.1.3

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: d879c0830748c6b3e1b278b8fe6009fb4cc831d2
4
- data.tar.gz: cf2d4e2bf3147a0f14e6d841778eaf5164d06be8
3
+ metadata.gz: 7584b14f55bfa93f3c87fe25af6b3e39ef682d21
4
+ data.tar.gz: 0f6fe8db8fd9b034975e302a33c0347750e8010d
5
5
  SHA512:
6
- metadata.gz: bcdbcbdf6bd8df45b6279a42944fad721bde471590502c674ce9be6c6a9f95da77eddc47069ba51923c244595d010eee7ce0183a78a9b8e1f82d04b4161483a5
7
- data.tar.gz: 4812a5a394a9a4f31f5e2e57c37347c35afa71cdfe7634e031bcfaee094092e560dd74f2448ec522f848f12aa4465b4127bda39c258027a6685fb415f5dd2aa4
6
+ metadata.gz: f5cccf86f6b684398321102b4cc8adbf1fd3ff12afbf4cd036f870c8ee4338c0d44970a99ce01f0b533998b32f97b1d63271ee72a717f1746936df55f96ea714
7
+ data.tar.gz: 0e24c79572f5675f261ada81e53632a1605a13a22f01f887887d7ea21054e9c502068bb898c02b8ef8445d39b6b9bc7de3e522fa7b43bd24e28d8f2a3d7b40cc
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ ## 2.1.3
2
+
3
+ ### Features
4
+ * Add guarding when receiving a web-hook to delete the Group
5
+ * but the group is not found
6
+
1
7
  ## 2.1.2
2
8
 
3
9
  ### Features
@@ -8,6 +8,11 @@ class Maestrano::Account::GroupsController < Maestrano::Rails::WebHookController
8
8
  # Get entity
9
9
  organization = Maestrano::Connector::Rails::Organization.find_by(uid: org_uid, tenant: params[:tenant] || 'default')
10
10
 
11
+ unless organization
12
+ Maestrano::Connector::Rails::ConnectorLogger.log('info', nil, 'Organization not found')
13
+ return render json: {success: true}, status: 204
14
+ end
15
+
11
16
  Maestrano::Connector::Rails::ConnectorLogger.log('info', organization, 'delete organization')
12
17
 
13
18
  # Delete all relations
@@ -1,7 +1,7 @@
1
1
  module Maestrano
2
2
  module Connector
3
3
  module Rails
4
- VERSION = '2.1.2'.freeze
4
+ VERSION = '2.1.3'.freeze
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: maestrano-connector-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.2
4
+ version: 2.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Maestrano
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-09-25 00:00:00.000000000 Z
11
+ date: 2017-10-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails