authrocket 3.5.1 → 3.7.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: 11f10407754023d6dabb0f77e9f2cbaa3b88b3b395a211ee636701e09b162e38
4
- data.tar.gz: b110dce919195fd8150dfbf2e55b7817e8631fcbd9ab5bb98397aa9242fa3169
3
+ metadata.gz: 3c6c9c00fc890a56c43bb7bc068016f27369351625e66063101646d02c2af8ed
4
+ data.tar.gz: 476de1e3111c160015f9360fe8a018252301a44a8e046f73a39c5a65c0968b1c
5
5
  SHA512:
6
- metadata.gz: 4ffe744ab81e3abb1183b217736c115209d1a5cdcbf1012e070f797b50aff27bc9252ee69f5fde09581562e608ce44dcdf48c9dc2f40829268089b1239ab1c04
7
- data.tar.gz: 29b69ca32f0e8a2a0ef304712c8201815861bb45ecc4ee18d42c6b3f4f46d75cf1ac9b70baee181c6244ab8e682e7129d1c86284371309aac11e9e843f498d2b
6
+ metadata.gz: 8424ff6291fab0bfe14b2c24865ce13b67f69a238f9962d8ef0251b3867faa9aaf28f540b59b051e65f0aa506b4732e224524b7dbb0d97c30c2d9e2c7f151598
7
+ data.tar.gz: 3f7933b0630f747ddaafe6cf7ab19d5088a4fa8a25931220f77e259d5f8a84300c9f5c87721e3db93282643c619057545d8b12b474e98217e29a845244567cdd
data/CHANGELOG.md CHANGED
@@ -1,3 +1,13 @@
1
+ #### 3.7.0
2
+
3
+ - Add MailingListSubscription (replaces HookState)
4
+ - Update MailingListProvider, SmtpProvider
5
+
6
+ #### 3.6.0
7
+
8
+ - Add MailingListProvider, SmtpProvider (replaces Connection)
9
+ - Update HookState
10
+
1
11
  #### 3.5.1
2
12
 
3
13
  - 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.7.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
@@ -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 :provider_name, :provider_type, :state
8
+ attr :api_endpoint, :provider_account, :valid_list_ids
9
+
10
+ end
11
+ end
@@ -1,11 +1,10 @@
1
1
  module AuthRocket
2
- class HookState < Resource
2
+ class MailingListSubscription < Resource
3
3
  crud :all, :find, :create, :update, :delete
4
4
 
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
 
@@ -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 :provider_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
@@ -5,7 +5,7 @@ module AuthRocket
5
5
  belongs_to :realm
6
6
  has_many :credentials
7
7
  has_many :events
8
- has_many :hook_states
8
+ has_many :mailing_list_subscriptions
9
9
  has_many :memberships
10
10
  has_many :sessions
11
11
 
data/lib/authrocket.rb CHANGED
@@ -9,14 +9,14 @@ end
9
9
  %w(
10
10
  auth_provider
11
11
  client_app
12
- connection
13
12
  credential
14
13
  domain
15
14
  event
16
15
  hook
17
- hook_state
18
16
  invitation
19
17
  jwt_key
18
+ mailing_list_provider
19
+ mailing_list_subscription
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.7.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-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable
@@ -105,14 +105,14 @@ 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
112
111
  - lib/authrocket/hook.rb
113
- - lib/authrocket/hook_state.rb
114
112
  - lib/authrocket/invitation.rb
115
113
  - lib/authrocket/jwt_key.rb
114
+ - lib/authrocket/mailing_list_provider.rb
115
+ - lib/authrocket/mailing_list_subscription.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