authrocket 3.1.0 → 3.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/authrocket.rb +1 -0
- data/lib/authrocket/api/version.rb +1 -1
- data/lib/authrocket/connection.rb +3 -2
- data/lib/authrocket/hook.rb +2 -0
- data/lib/authrocket/hook_state.rb +26 -0
- data/lib/authrocket/user.rb +1 -0
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fc8e44875af5974cfed7ccdaa8608cd0a52fe817d2884b6a550ba369cb551617
|
4
|
+
data.tar.gz: 6c4fd3feb00f2ba7b36c7a0ba1d11437b4c2d782a0b9fb8fb61234d4dcdf0a6d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '0386d17d25eca2c417a1ce584d70e2de0fca7e0924b798e095a7275c86d8ca111dc4a2b786d1e44c651afb8468724120c326fcf8e7d1cb2da3c006f2a70a6a5d'
|
7
|
+
data.tar.gz: c97208e21541fbe15f6354893a0353e98b138f04ae236b2f8df2ef8df9b8629cf75b10da29eba80577dc0a5a0631c2881343f6f06c9cfb66304a98f2c6bb3065
|
data/CHANGELOG.md
CHANGED
data/lib/authrocket.rb
CHANGED
@@ -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
|
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
|
data/lib/authrocket/hook.rb
CHANGED
@@ -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
|
data/lib/authrocket/user.rb
CHANGED
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.
|
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-
|
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.
|
148
|
+
rubygems_version: 3.0.8
|
148
149
|
signing_key:
|
149
150
|
specification_version: 4
|
150
151
|
summary: AuthRocket client for Ruby
|