infinum_id 2.1.0 → 2.2.0

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
  SHA256:
3
- metadata.gz: 329d0ad24f2ba1d83ec0c27266cadac9ed807b07cd584dbe18a8dfb4169296a5
4
- data.tar.gz: 4838ee5875f33586b23624caf73c29b6557e640bbb098efc751db12557d011b3
3
+ metadata.gz: 67137fa0c4e6919f124afc28ddebd3b01f91ee27f25620fe99fe22cc38addfc9
4
+ data.tar.gz: e5288ff536d9ff6cc3af37c9078e7ea069413751dff418d8348be826a6d4bcff
5
5
  SHA512:
6
- metadata.gz: 2e5b657db01abbfd58ec2e2a44041d19706c26582368583828c6df38fe19aab167f2c9ca1c2da9fef242ea79a7b2ac93ec178eae7814a5d3dd053ac084a5104e
7
- data.tar.gz: 90a9e7f28e77c64c387346caac811b09105575b39078e5978f75b462f91ea786e3c471d885b5c657128f4c1bc53b7df0c16096cbbc6bf5bcd53c2cd2bf1a2c6f
6
+ metadata.gz: 8a5d194290db76dfbe9f1d9caffe2b509d7c064b1a1de9bfb7f12a583aa2666f45f82b99e825ff304bae472015f7740e38bab10a30b5461fa4a6e4c9cea30c43
7
+ data.tar.gz: e5d62e234ff27943d88499cb68421b81b091aeacce9d487e4b9ce5084a8a43687894e35e0b553f4892d202cbe6bcc79a8e9c540e08e035f2b1851f8fd481637d
data/CHANGELOG.md ADDED
@@ -0,0 +1,26 @@
1
+ # Changelog
2
+
3
+ ## [v2.1.0](https://github.com/infinum/rails-infinum-id-engine/tree/v2.1.0) (2021-05-26)
4
+ [Full Changelog](https://github.com/infinum/rails-infinum-id-engine/compare/v2.0.1...v2.1.0)
5
+
6
+ ### Enhancements
7
+
8
+ - Added endpoint for updating existing users: `InfinumId::Api::WebhooksController#update_resource_callback` [\#15](https://github.com/infinum/rails-infinum-id-engine/pull/15)
9
+
10
+
11
+ ## [v2.0.1](https://github.com/infinum/rails-infinum-id-engine/tree/v2.0.1) (2020-10-01)
12
+ [Full Changelog](https://github.com/infinum/rails-infinum-id-engine/compare/v2.0.0...v2.0.1)
13
+
14
+ ### Bugfixes
15
+
16
+ - Fix missing provider
17
+
18
+
19
+ ## [v2.0.0](https://github.com/infinum/rails-infinum-id-engine/tree/v2.0.0) (2020-09-18)
20
+ [Full Changelog](https://github.com/infinum/rails-infinum-id-engine/compare/v1.6.0...v2.0.0)
21
+
22
+ ### Breaking changes / Deprecations
23
+ * [BREAKING] Removed `InfinumId::AfterResourceCreate` and `InfinumId::AfterResourceUpdate` classes.
24
+ * [BREAKING] Added `InfinumId::AfterResourceUpsert` and `InfinumId::AfterResourceIntent` classes. see [Webhooks](README.md#webhooks) for more info
25
+ * [BREAKING] Removed `/webhooks#update_resource_callback` and `/webhooks#create_resource_callback` routes.
26
+ * [BREAKING] Added `/webhook#upsert_resource_callback` route.
@@ -2,7 +2,7 @@ module InfinumId
2
2
  module Resources
3
3
  class Updater
4
4
  def initialize(params, resource)
5
- @params = params.deep_symbolize_keys
5
+ @params = params.to_h.deep_symbolize_keys
6
6
  @resource = resource
7
7
  end
8
8
 
@@ -1,3 +1,3 @@
1
1
  module InfinumId
2
- VERSION = '2.1.0'
2
+ VERSION = '2.2.0'
3
3
  end
data/lib/infinum_id.rb CHANGED
@@ -10,12 +10,12 @@ module InfinumId
10
10
  extend Dry::Configurable
11
11
 
12
12
  setting :service_name, reader: true
13
- setting :resource_name, 'User', reader: true
14
- setting :infinum_id_send_email, false, reader: true
15
- setting :send_invite_request, true, reader: true
13
+ setting :resource_name, default: 'User', reader: true
14
+ setting :infinum_id_send_email, default: false, reader: true
15
+ setting :send_invite_request, default: true, reader: true
16
16
 
17
17
  setting :resource_attributes,
18
- [:uid, :email, :first_name, :last_name, :deactivated_at, :employee],
18
+ default: [:uid, :email, :first_name, :last_name, :deactivated_at, :employee],
19
19
  reader: true
20
20
 
21
21
  def self.resource_class
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: infinum_id
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dajana Jeroncic
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2021-05-26 00:00:00.000000000 Z
11
+ date: 2022-02-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -301,7 +301,7 @@ files:
301
301
  - ".rspec"
302
302
  - ".rubocop.yml"
303
303
  - ".travis.yml"
304
- - CHANGES.md
304
+ - CHANGELOG.md
305
305
  - CODE_OF_CONDUCT.md
306
306
  - Gemfile
307
307
  - Gemfile.lock
@@ -359,7 +359,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
359
359
  - !ruby/object:Gem::Version
360
360
  version: '0'
361
361
  requirements: []
362
- rubygems_version: 3.1.4
362
+ rubygems_version: 3.2.15
363
363
  signing_key:
364
364
  specification_version: 4
365
365
  summary: Write a short summary, because RubyGems requires one.
data/CHANGES.md DELETED
@@ -1,11 +0,0 @@
1
- # Changelog
2
-
3
- ## Version 2.0.0
4
-
5
- Released of September 18, 2020
6
-
7
- Changes:
8
- * [BREAKING] Removed `InfinumId::AfterResourceCreate` and `InfinumId::AfterResourceUpdate` classes.
9
- * [BREAKING] Added `InfinumId::AfterResourceUpsert` and `InfinumId::AfterResourceIntent` classes. see [Webhooks](README.md#webhooks) for more info
10
- * [BREAKING] Removed `/webhooks#update_resource_callback` and `/webhooks#create_resource_callback` routes.
11
- * [BREAKING] Added `/webhook#upsert_resource_callback` route.