authrocket 3.5.1 → 3.6.0

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: 11f10407754023d6dabb0f77e9f2cbaa3b88b3b395a211ee636701e09b162e38
4
- data.tar.gz: b110dce919195fd8150dfbf2e55b7817e8631fcbd9ab5bb98397aa9242fa3169
3
+ metadata.gz: de431b2bef15edef554345ec43afe09505d0c0f90be3134140c10027b2294241
4
+ data.tar.gz: 5261205c00de414b7605db4c8fa0c53447b3396b2629a873259ad40bc541f27f
5
5
  SHA512:
6
- metadata.gz: 4ffe744ab81e3abb1183b217736c115209d1a5cdcbf1012e070f797b50aff27bc9252ee69f5fde09581562e608ce44dcdf48c9dc2f40829268089b1239ab1c04
7
- data.tar.gz: 29b69ca32f0e8a2a0ef304712c8201815861bb45ecc4ee18d42c6b3f4f46d75cf1ac9b70baee181c6244ab8e682e7129d1c86284371309aac11e9e843f498d2b
6
+ metadata.gz: 01301c9d68626cb20f01d7afd457cbd38b84a85f172e478574519db8c59c3ae62a43730848f02bc6e60d0a318ea15e51eebff7975b114307c98294be20a23640
7
+ data.tar.gz: 880b23a14673b011e9989b2dd9030a0d0af2421f908af33a6052a7eaf918ab7bd2c68213732f08e5a7881963b07a02a4a998fcb85c54bae2fd24b4cc4f73d232
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ #### 3.6.0
2
+
3
+ - Add MailingListProvider, SmtpProvider (replaces Connection)
4
+ - Update HookState
5
+
1
6
  #### 3.5.1
2
7
 
3
8
  - Change API request header names to lowercase
data/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2014-2023 Notioneer, Inc.
1
+ Copyright (c) 2014-2024 Notioneer, Inc.
2
2
 
3
3
  MIT License
4
4
 
@@ -1,3 +1,3 @@
1
1
  module AuthRocket
2
- VERSION = '3.5.1'
2
+ VERSION = '3.6.0'
3
3
  end
@@ -3,7 +3,7 @@ module AuthRocket
3
3
  crud :all, :find, :create, :update, :delete
4
4
 
5
5
  belongs_to :realm
6
- belongs_to :connection
6
+ belongs_to :mailing_list_provider
7
7
 
8
8
  attr :accumulate, :delay, :event_type, :hook_type, :state
9
9
  attr :destination
@@ -5,7 +5,6 @@ module AuthRocket
5
5
  belongs_to :hook
6
6
  belongs_to :user
7
7
 
8
- attr :hook_state_type
9
8
  attr :list_state
10
9
 
11
10
 
@@ -0,0 +1,11 @@
1
+ module AuthRocket
2
+ class MailingListProvider < Resource
3
+ crud :all, :find, :create, :update, :delete
4
+
5
+ belongs_to :realm
6
+
7
+ attr :connection_name, :provider_type, :state
8
+ attr :api_endpoint, :provider_account, :valid_list_ids
9
+
10
+ end
11
+ end
@@ -13,7 +13,7 @@ module AuthRocket
13
13
  class << self
14
14
 
15
15
  # params - {client_app_id:, client_app_secret:, code:}
16
- # returns: Token - must check .valid? or .errors? for response
16
+ # returns: Token - must check .valid? or .errors? on response
17
17
  def code_to_token(params={})
18
18
  params = parse_request_params(params, json_root: json_root)
19
19
  parsed, creds = request(:post, "#{resource_path}/code", params)
@@ -4,15 +4,16 @@ module AuthRocket
4
4
 
5
5
  has_many :auth_providers
6
6
  has_many :client_apps
7
- has_many :connections
8
7
  has_many :domains
9
8
  has_many :events
10
9
  has_many :hooks
11
10
  has_many :invitations
12
11
  has_many :jwt_keys
12
+ has_many :mailing_list_providers
13
13
  has_many :named_permissions
14
14
  has_many :orgs
15
15
  has_many :resource_links
16
+ has_many :smtp_providers
16
17
  has_many :users
17
18
 
18
19
  attr :custom, :environment, :name, :public_name, :state
@@ -1,13 +1,12 @@
1
1
  module AuthRocket
2
- class Connection < Resource
2
+ class SmtpProvider < Resource
3
3
  crud :all, :find, :create, :update, :delete
4
4
 
5
5
  belongs_to :realm
6
6
 
7
- attr :connection_name, :connection_type, :state
7
+ attr :connection_name, :provider_type, :state
8
8
  attr :email_from, :email_from_name
9
9
  attr :smtp_host, :smtp_password, :smtp_port, :smtp_user
10
- attr :api_endpoint, :provider_account, :valid_list_ids
11
10
 
12
11
  end
13
12
  end
data/lib/authrocket.rb CHANGED
@@ -9,7 +9,6 @@ end
9
9
  %w(
10
10
  auth_provider
11
11
  client_app
12
- connection
13
12
  credential
14
13
  domain
15
14
  event
@@ -17,6 +16,7 @@ end
17
16
  hook_state
18
17
  invitation
19
18
  jwt_key
19
+ mailing_list_provider
20
20
  membership
21
21
  named_permission
22
22
  notification
@@ -25,6 +25,7 @@ end
25
25
  realm
26
26
  resource_link
27
27
  session
28
+ smtp_provider
28
29
  token
29
30
  user
30
31
  ).each do |f|
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: authrocket
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.5.1
4
+ version: 3.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - AuthRocket Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-11-26 00:00:00.000000000 Z
11
+ date: 2024-03-22 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable
@@ -105,7 +105,6 @@ files:
105
105
  - lib/authrocket/api/version.rb
106
106
  - lib/authrocket/auth_provider.rb
107
107
  - lib/authrocket/client_app.rb
108
- - lib/authrocket/connection.rb
109
108
  - lib/authrocket/credential.rb
110
109
  - lib/authrocket/domain.rb
111
110
  - lib/authrocket/event.rb
@@ -113,6 +112,7 @@ files:
113
112
  - lib/authrocket/hook_state.rb
114
113
  - lib/authrocket/invitation.rb
115
114
  - lib/authrocket/jwt_key.rb
115
+ - lib/authrocket/mailing_list_provider.rb
116
116
  - lib/authrocket/membership.rb
117
117
  - lib/authrocket/named_permission.rb
118
118
  - lib/authrocket/notification.rb
@@ -124,6 +124,7 @@ files:
124
124
  - lib/authrocket/realm.rb
125
125
  - lib/authrocket/resource_link.rb
126
126
  - lib/authrocket/session.rb
127
+ - lib/authrocket/smtp_provider.rb
127
128
  - lib/authrocket/token.rb
128
129
  - lib/authrocket/user.rb
129
130
  homepage: https://authrocket.com/
@@ -145,7 +146,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
145
146
  - !ruby/object:Gem::Version
146
147
  version: '0'
147
148
  requirements: []
148
- rubygems_version: 3.4.10
149
+ rubygems_version: 3.5.3
149
150
  signing_key:
150
151
  specification_version: 4
151
152
  summary: AuthRocket client for Ruby