authrocket 3.1.0 → 3.2.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: 82ed5a2ea3b1c412a72c84aeac220c4b54e26ca5a0f9cc7248ecbca9e3c211bb
4
- data.tar.gz: 5acc9665f07016d75af2f26d08527206749cc7e4bfe56df6df248e50a3d9fe5f
3
+ metadata.gz: fc8e44875af5974cfed7ccdaa8608cd0a52fe817d2884b6a550ba369cb551617
4
+ data.tar.gz: 6c4fd3feb00f2ba7b36c7a0ba1d11437b4c2d782a0b9fb8fb61234d4dcdf0a6d
5
5
  SHA512:
6
- metadata.gz: 375bcc4653c32f973da17893ff5250131c655d7122a4ba88a3d818fc454ebfdc7c9561db996c67bb6dec141823dceb1975124b8a0714eae448ac24965ae7d2e0
7
- data.tar.gz: b12e98876190ded64592edc86c2fd160dd8b72f75086617f72164b3f7aef90f0dc2bb6fc62195eb8e2a0b375bda7f93a1a517fdeff421fbf2b8c0d0912bd47b3
6
+ metadata.gz: '0386d17d25eca2c417a1ce584d70e2de0fca7e0924b798e095a7275c86d8ca111dc4a2b786d1e44c651afb8468724120c326fcf8e7d1cb2da3c006f2a70a6a5d'
7
+ data.tar.gz: c97208e21541fbe15f6354893a0353e98b138f04ae236b2f8df2ef8df9b8629cf75b10da29eba80577dc0a5a0631c2881343f6f06c9cfb66304a98f2c6bb3065
@@ -1,3 +1,8 @@
1
+ #### 3.2.0
2
+
3
+ - Add HookState
4
+ - Update Connection, Hook
5
+
1
6
  #### 3.1.0
2
7
 
3
8
  - Automatically handle login tokens in an Authorization header
@@ -14,6 +14,7 @@ end
14
14
  domain
15
15
  event
16
16
  hook
17
+ hook_state
17
18
  invitation
18
19
  jwt_key
19
20
  membership
@@ -1,3 +1,3 @@
1
1
  module AuthRocket
2
- VERSION = '3.1.0'
2
+ VERSION = '3.2.0'
3
3
  end
@@ -4,9 +4,10 @@ module AuthRocket
4
4
 
5
5
  belongs_to :realm
6
6
 
7
- attr :connection_type
8
- attr :email_from, :email_from_name, :state
7
+ attr :connection_name, :connection_type, :state
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
10
11
 
11
12
  end
12
13
  end
@@ -3,10 +3,12 @@ module AuthRocket
3
3
  crud :all, :find, :create, :update, :delete
4
4
 
5
5
  belongs_to :realm
6
+ belongs_to :connection
6
7
 
7
8
  attr :accumulate, :delay, :event_type, :hook_type, :state
8
9
  attr :destination
9
10
  attr :email_renderer, :email_subject, :email_template, :email_to
11
+ attr :description, :list_id, :name, :on_create, :visibility
10
12
 
11
13
 
12
14
  def self.event_types
@@ -0,0 +1,26 @@
1
+ module AuthRocket
2
+ class HookState < Resource
3
+ crud :all, :find, :create, :update, :delete
4
+
5
+ belongs_to :hook
6
+ belongs_to :user
7
+
8
+ attr :hook_state_type
9
+ attr :list_state
10
+
11
+
12
+ private
13
+
14
+ def create(attribs={})
15
+ if self[:user_id]
16
+ if attribs.key? json_root
17
+ attribs[json_root][:user_id] ||= self[:user_id]
18
+ else
19
+ attribs[:user_id] ||= self[:user_id]
20
+ end
21
+ end
22
+ super attribs
23
+ end
24
+
25
+ end
26
+ end
@@ -5,6 +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
9
  has_many :memberships
9
10
  has_many :sessions
10
11
 
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.1.0
4
+ version: 3.2.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: 2020-03-13 00:00:00.000000000 Z
11
+ date: 2020-04-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable
@@ -110,6 +110,7 @@ files:
110
110
  - lib/authrocket/domain.rb
111
111
  - lib/authrocket/event.rb
112
112
  - lib/authrocket/hook.rb
113
+ - lib/authrocket/hook_state.rb
113
114
  - lib/authrocket/invitation.rb
114
115
  - lib/authrocket/jwt_key.rb
115
116
  - lib/authrocket/membership.rb
@@ -144,7 +145,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
144
145
  - !ruby/object:Gem::Version
145
146
  version: '0'
146
147
  requirements: []
147
- rubygems_version: 3.0.6
148
+ rubygems_version: 3.0.8
148
149
  signing_key:
149
150
  specification_version: 4
150
151
  summary: AuthRocket client for Ruby