eco-helpers 3.0.2 → 3.0.3

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: c1a2d4588e054806a3ccbebd04efd0b8bdb25b750e18e26ed69a29e6f219a552
4
- data.tar.gz: 5828f9d271d41cd18f8f0b684d4711c18c7edfaa906910566145141d8dd3c869
3
+ metadata.gz: 4515e1cd31a6ef2104b4502ce26e8c6f881aba08e22ab36650b1de59a9a3fb56
4
+ data.tar.gz: c28a4d186bd8850576947aacee7d2b1908a94879ed44ec2b58302153aa8a4c6f
5
5
  SHA512:
6
- metadata.gz: 2c293216d07c3553ff786c9c46019de87b5ef142a19e4b9ae709527b257c279534d7e21f737c824586263cbbc79c6983630bea7a1986d105f7665aec933b8ce4
7
- data.tar.gz: a283d0285a0b370af02eeb3f75e1482e94a2774f58cbad3898f159a5152d999253dc8873abe1a41b6ced16238f8205f3e0d86a6d0655cd2de0a187d311acc5a5
6
+ metadata.gz: a2d252124e3076b348a9928994b12dccfc8ae3207ac889b45bbfd62fa97f07f208d82e76b567e998d9081037c9e8bfda0dc216200e7f53479b8a2ae53d35b751
7
+ data.tar.gz: 2f1d3b77a28ae09704dc6ddb7896c7aca91c07ca1b74f837d28d6b5495b74ed5a7752ac2a062f5cf3fd3944cba66d917ec2558c9bf52ad271e67b968a25ce4f7
data/CHANGELOG.md CHANGED
@@ -2,12 +2,22 @@
2
2
 
3
3
  All notable changes to this project will be documented in this file.
4
4
 
5
- ## [3.0.3] - 2024-08-xx
5
+ ## [3.0.4] - 2024-08-xx
6
6
 
7
7
  ### Added
8
8
 
9
9
  ### Changed
10
10
 
11
+ ### Fixed
12
+
13
+ ## [3.0.3] - 2024-08-13
14
+
15
+ ### Added
16
+
17
+ - `login_provider_ids` parser
18
+ - Natural options for `sso` and `magic_link`
19
+ - This links with people imports spreadsheet
20
+
11
21
  ## [3.0.2] - 2024-08-09
12
22
 
13
23
  ### Changed
@@ -96,15 +96,18 @@ module Eco
96
96
 
97
97
  hash[type] = lp unless hash.key?(type)
98
98
 
99
- # only map the first :sso
100
- unless hash.key?(:sso)
101
- hash[:sso] = lp if lp.type == 'saml'
99
+ if lp.type == 'saml'
100
+ # only map the first :sso
101
+ hash[:sso] = lp unless hash.key?(:sso)
102
+ hash['sso'] = lp unless hash.key?('sso')
102
103
  end
103
104
 
104
- if lp.type == 'onetimepassword'
105
- hash[:magic_link] = lp
106
- hash[:magiclink] = lp
107
- end
105
+ next unless lp.type == 'onetimepassword'
106
+
107
+ hash[:magic_link] = lp
108
+ hash[:magiclink] = lp
109
+ hash['magic_link'] = lp
110
+ hash['magiclink'] = lp
108
111
  end
109
112
 
110
113
  @caches_init = true
data/lib/eco/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Eco
2
- VERSION = '3.0.2'.freeze
2
+ VERSION = '3.0.3'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: eco-helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.2
4
+ version: 3.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Oscar Segura
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-08 00:00:00.000000000 Z
11
+ date: 2024-08-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake