infinum_azure 0.2.0 → 0.2.1

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: 91e15ff1b9c4d10efe59515afefabb3d7cf30ab4e5db48a7f6d6a9a0ba0becd9
4
- data.tar.gz: 2b9b9d955b4f66d029da9243ce62430988a040ae7995a12bd13d3059f07c1a07
3
+ metadata.gz: 9d398fe751b6c5e4b20f5a859f6447282ae9d265a5081056be7d8655c44ffa1c
4
+ data.tar.gz: ab1415b92e1204eab1d18bddde14843c64042048046ccf2bcfdee4cb9e1a401c
5
5
  SHA512:
6
- metadata.gz: c99b0116be82397a78d57d24f98de0cc8fbd2d26e1ee22b3a565205c1cfff1ea4598e507ed62071ed4d9f6446e9223e72c5f024f4d7ed968b54a56fff9e41583
7
- data.tar.gz: 5c74771724c5bc818b7df7c78cfa27c14ebfb29948e226e01b5fb92014a24371ec39295cda1a06d33b1f92221942f1d00a58c99b023753b40bfc5bb99c63b3d6
6
+ metadata.gz: 8337851fbce87882183719f0b3260aca0260bdab7b62dc81ea398a11fb926cf5ba93fcefcddde04db23f7bd2c07e947d5b86f297de802b833ab926b9f8f01476
7
+ data.tar.gz: bb79db00f82557befa5c3f2c7b0fc64750fec96516c19fad9b461ea6cbd1bc0303de87a488d7b80352b2d6817d62ff95b4fe292e28faf83e642a00cac31c953b
data/CHANGELOG.md CHANGED
@@ -1,5 +1,9 @@
1
1
  ## [Unreleased]
2
2
 
3
+ ## [0.2.1] - 2023-04-20
4
+
5
+ - Added after_upsert_resource & called it in upsert webhook API after the action
6
+
3
7
  ## [0.2.0] - 2023-04-20
4
8
 
5
9
  - Added upsert webhook API for creating/updating resources
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- infinum_azure (0.2.0)
4
+ infinum_azure (0.2.1)
5
5
  bundler
6
6
  devise
7
7
  dry-configurable
@@ -12,6 +12,8 @@ module InfinumAzure
12
12
  action = 'created'
13
13
  end
14
14
 
15
+ InfinumAzure::AfterUpsertResource.call(resource, params[:user])
16
+
15
17
  render json: { resource_name.underscore => action }
16
18
  end
17
19
 
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ module InfinumAzure
4
+ class AfterUpsertResource
5
+ def self.call(resource, params); end
6
+ end
7
+ end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module InfinumAzure
4
- VERSION = '0.2.0'
4
+ VERSION = '0.2.1'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: infinum_azure
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marko Ćilimković
@@ -304,6 +304,7 @@ files:
304
304
  - app/controllers/infinum_azure/resources/omniauth_callbacks_controller.rb
305
305
  - app/controllers/infinum_azure/resources_controller.rb
306
306
  - app/models/infinum_azure/application_record.rb
307
+ - app/services/infinum_azure/after_upsert_resource.rb
307
308
  - app/services/infinum_azure/resources/finder.rb
308
309
  - config/initializers/devise.rb
309
310
  - config/routes.rb