File tree Expand file tree Collapse file tree 9 files changed +53
-8
lines changed
ruby-directory-sync-example Expand file tree Collapse file tree 9 files changed +53
-8
lines changed Original file line number Diff line number Diff line change 1
- 2.7.1
1
+ 2.7.2
Original file line number Diff line number Diff line change @@ -5,3 +5,5 @@ source 'https://rubygems.org'
5
5
gem 'dotenv'
6
6
gem 'sinatra'
7
7
gem 'workos'
8
+ gem 'sinatra-websocket'
9
+ gem 'pry'
Original file line number Diff line number Diff line change 1
1
GEM
2
2
remote: https://rubygems.org/
3
3
specs:
4
+ addressable (2.8.0 )
5
+ public_suffix (>= 2.0.2 , < 5.0 )
6
+ coderay (1.1.3 )
7
+ daemons (1.4.1 )
4
8
dotenv (2.7.6 )
9
+ em-websocket (0.3.8 )
10
+ addressable (>= 2.1.1 )
11
+ eventmachine (>= 0.12.9 )
12
+ eventmachine (1.2.7 )
13
+ method_source (1.0.0 )
5
14
mustermann (1.1.1 )
6
15
ruby2_keywords (~> 0.0.1 )
16
+ pry (0.14.1 )
17
+ coderay (~> 1.1 )
18
+ method_source (~> 1.0 )
19
+ public_suffix (4.0.7 )
7
20
rack (2.2.3.1 )
8
21
rack-protection (2.2.0 )
9
22
rack
13
26
rack (~> 2.2 )
14
27
rack-protection (= 2.2.0 )
15
28
tilt (~> 2.0 )
16
- sorbet-runtime (0.5.9301 )
29
+ sinatra-websocket (0.3.1 )
30
+ em-websocket (~> 0.3.6 )
31
+ eventmachine
32
+ thin (>= 1.3.1 , < 2.0.0 )
33
+ sorbet-runtime (0.5.10076 )
34
+ thin (1.8.1 )
35
+ daemons (~> 1.0 , >= 1.0.9 )
36
+ eventmachine (~> 1.0 , >= 1.0.4 )
37
+ rack (>= 1 , < 3 )
17
38
tilt (2.0.10 )
18
- workos (1.6 .1 )
39
+ workos (2.2 .1 )
19
40
sorbet-runtime (~> 0.5 )
20
41
21
42
PLATFORMS
22
43
ruby
23
44
24
45
DEPENDENCIES
25
46
dotenv
47
+ pry
26
48
sinatra
49
+ sinatra-websocket
27
50
workos
28
51
29
52
BUNDLED WITH
Original file line number Diff line number Diff line change 6
6
require 'workos'
7
7
require 'json'
8
8
require 'sinatra-websocket'
9
+ require 'pry'
9
10
10
11
set :server , 'thin'
11
12
set :sockets , [ ]
82
83
render :json => { :status => 400 , :error => "Webhook failed" } and return
83
84
end
84
85
end
86
+
Original file line number Diff line number Diff line change @@ -193,4 +193,9 @@ div.text_box {
193
193
.button_outline {
194
194
background-color : white;
195
195
color : # 6363f1 ;
196
- }
196
+ }
197
+ ul .no-bullets {
198
+ list-style-type : none; /* Remove bullets */
199
+ padding : 0 ; /* Remove padding */
200
+ margin : 0 ; /* Remove margins */
201
+ }
Original file line number Diff line number Diff line change 31
31
< div class ="flex_column ">
32
32
< h2 > User Profile</ h2 >
33
33
< div class ="text_box ">
34
- < pre > <%= JSON . pretty_generate ( @group ) %> </ pre >
34
+ < ul class ="no-bullets ">
35
+ <% @user . each do |key , value |%>
36
+ < li > <%= key%> : <%= value%> </ li >
37
+ <% end %>
38
+ </ ul >
35
39
</ div >
36
40
< h2 > User's Groups</ h2 >
37
41
< div class ="text_box ">
Original file line number Diff line number Diff line change 1
1
< head >
2
- < link rel ="stylesheet " href = <%= url ( "/stylesheets /styles.css" ) %> >
2
+ < link rel ="stylesheet " href = <%= url ( "styles /styles.css" ) %> >
3
3
4
4
< link rel ="stylesheet " href ="https://fonts.googleapis.com/css?family=Inter ">
5
5
</ head >
Original file line number Diff line number Diff line change 31
31
< div class ="flex_column ">
32
32
< h2 > User Profile</ h2 >
33
33
< div class ="text_box ">
34
- < pre > <%= JSON . pretty_generate ( @user ) %> </ pre >
34
+ < ul class ="no-bullets ">
35
+ <% @user . each do |key , value |%>
36
+ < li > <%= key%> : <%= value%> </ li >
37
+ <% end %>
38
+ </ ul >
35
39
</ div >
36
40
< h2 > User's Groups</ h2 >
37
41
< div class ="text_box ">
Original file line number Diff line number Diff line change 1
- html>
1
+ < head >
2
+ < link rel ="stylesheet " href = <%= url ( "/styles/styles.css" ) %> >
3
+
4
+ < link rel ="stylesheet " href ="https://fonts.googleapis.com/css?family=Inter ">
5
+ </ head >
6
+ < html >
2
7
< div >
3
8
< h2 > Webhook Details</ h2 >
4
9
</ div >
You can’t perform that action at this time.
0 commit comments