Skip to content

Commit 679e0e2

Browse files
authored
[Chore] rename audit log to audit trail (#22)
* rename audit log to audit trail * bump version * rename fixture directory * regen docs with ruby 2.6.5
1 parent fdc73e6 commit 679e0e2

30 files changed

+286
-51
lines changed

Gemfile.lock

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
PATH
22
remote: .
33
specs:
4-
workos (0.1.1)
4+
workos (0.2.0)
55
sorbet-runtime (~> 0.5)
66

77
GEM

README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -42,13 +42,13 @@ Alternatively, you may set the key yourself, such as in an initializer in your a
4242
WorkOS.key = '[your api key]'
4343
```
4444

45-
## The Audit Log Module
45+
## The Audit Trail Module
4646

47-
The Audit Log Module provides methods for creating Audit Log events on
47+
The Audit Trail Module provides methods for creating Audit Trail events on
4848
WorkOS.
4949

50-
See our [Audit Log
51-
Quickstart](https://docs.workos.com/audit-log/quickstart) for
50+
See our [Audit Trail
51+
Overview](https://docs.workos.com/audit-trail/overview) for
5252
more information.
5353

5454
```ruby
@@ -67,7 +67,7 @@ payload = {
6767
}
6868
}
6969

70-
WorkOS::AuditLog.create_event(event: payload)
70+
WorkOS::AuditTrail.create_event(event: payload)
7171
```
7272

7373
### Idempotency
@@ -76,7 +76,7 @@ To perform an idempotent request, provide an additional idempotency_key
7676
parameter to the `create_event` options.
7777

7878
```ruby
79-
WorkOS::AuditLog.create_event(event: payload, idempotency_key: 'key123456')
79+
WorkOS::AuditTrail.create_event(event: payload, idempotency_key: 'key123456')
8080
```
8181

8282
See our [API

docs/WorkOS.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@
7979
<dl>
8080
<dt>Defined in:</dt>
8181
<dd>lib/workos.rb<span class="defines">,<br />
82-
lib/workos/sso.rb,<br /> lib/workos/base.rb,<br /> lib/workos/types.rb,<br /> lib/workos/client.rb,<br /> lib/workos/errors.rb,<br /> lib/workos/profile.rb,<br /> lib/workos/version.rb,<br /> lib/workos/audit_log.rb,<br /> lib/workos/types/provider_enum.rb,<br /> lib/workos/types/profile_struct.rb</span>
82+
lib/workos/sso.rb,<br /> lib/workos/base.rb,<br /> lib/workos/types.rb,<br /> lib/workos/client.rb,<br /> lib/workos/errors.rb,<br /> lib/workos/profile.rb,<br /> lib/workos/version.rb,<br /> lib/workos/audit_trail.rb,<br /> lib/workos/types/provider_enum.rb,<br /> lib/workos/types/profile_struct.rb</span>
8383
</dd>
8484
</dl>
8585

@@ -100,7 +100,7 @@ <h2>Overview</h2><div class="docstring">
100100
<p class="children">
101101

102102

103-
<strong class="modules">Modules:</strong> <span class='object_link'><a href="WorkOS/AuditLog.html" title="WorkOS::AuditLog (module)">AuditLog</a></span>, <span class='object_link'><a href="WorkOS/Base.html" title="WorkOS::Base (module)">Base</a></span>, <span class='object_link'><a href="WorkOS/Client.html" title="WorkOS::Client (module)">Client</a></span>, <span class='object_link'><a href="WorkOS/SSO.html" title="WorkOS::SSO (module)">SSO</a></span>, <span class='object_link'><a href="WorkOS/Types.html" title="WorkOS::Types (module)">Types</a></span>
103+
<strong class="modules">Modules:</strong> <span class='object_link'><a href="WorkOS/AuditTrail.html" title="WorkOS::AuditTrail (module)">AuditTrail</a></span>, <span class='object_link'><a href="WorkOS/Base.html" title="WorkOS::Base (module)">Base</a></span>, <span class='object_link'><a href="WorkOS/Client.html" title="WorkOS::Client (module)">Client</a></span>, <span class='object_link'><a href="WorkOS/SSO.html" title="WorkOS::SSO (module)">SSO</a></span>, <span class='object_link'><a href="WorkOS/Types.html" title="WorkOS::Types (module)">Types</a></span>
104104

105105

106106

@@ -125,7 +125,7 @@ <h2>
125125
<dt id="VERSION-constant" class="">VERSION =
126126

127127
</dt>
128-
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>0.1.1</span><span class='tstring_end'>&#39;</span></span></pre></dd>
128+
<dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>0.2.0</span><span class='tstring_end'>&#39;</span></span></pre></dd>
129129

130130
</dl>
131131

@@ -314,7 +314,7 @@ <h3 class="signature " id="key=-class_method">
314314
</div>
315315

316316
<div id="footer">
317-
Generated on Fri Mar 13 12:16:45 2020 by
317+
Generated on Sun Mar 15 22:11:09 2020 by
318318
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
319319
0.9.22 (ruby-2.6.5).
320320
</div>

docs/WorkOS/APIError.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ <h2>Constructor Details</h2>
150150
</div>
151151

152152
<div id="footer">
153-
Generated on Fri Mar 13 12:16:46 2020 by
153+
Generated on Sun Mar 15 22:11:09 2020 by
154154
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
155155
0.9.22 (ruby-2.6.5).
156156
</div>

docs/WorkOS/AuditTrail.html

Lines changed: 235 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,235 @@
1+
<!DOCTYPE html>
2+
<html>
3+
<head>
4+
<meta charset="utf-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>
7+
Module: WorkOS::AuditTrail
8+
9+
&mdash; Documentation by YARD 0.9.22
10+
11+
</title>
12+
13+
<link rel="stylesheet" href="../css/style.css" type="text/css" />
14+
15+
<link rel="stylesheet" href="../css/common.css" type="text/css" />
16+
17+
<script type="text/javascript">
18+
pathId = "WorkOS::AuditTrail";
19+
relpath = '../';
20+
</script>
21+
22+
23+
<script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
24+
25+
<script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
26+
27+
28+
</head>
29+
<body>
30+
<div class="nav_wrap">
31+
<iframe id="nav" src="../class_list.html?1"></iframe>
32+
<div id="resizer"></div>
33+
</div>
34+
35+
<div id="main" tabindex="-1">
36+
<div id="header">
37+
<div id="menu">
38+
39+
<a href="../_index.html">Index (A)</a> &raquo;
40+
<span class='title'><span class='object_link'><a href="../WorkOS.html" title="WorkOS (module)">WorkOS</a></span></span>
41+
&raquo;
42+
<span class="title">AuditTrail</span>
43+
44+
</div>
45+
46+
<div id="search">
47+
48+
<a class="full_list_link" id="class_list_link"
49+
href="../class_list.html">
50+
51+
<svg width="24" height="24">
52+
<rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
53+
<rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
54+
<rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
55+
</svg>
56+
</a>
57+
58+
</div>
59+
<div class="clear"></div>
60+
</div>
61+
62+
<div id="content"><h1>Module: WorkOS::AuditTrail
63+
64+
65+
66+
</h1>
67+
<div class="box_info">
68+
69+
70+
71+
72+
<dl>
73+
<dt>Extended by:</dt>
74+
<dd>T::Sig, <span class='object_link'><a href="Base.html" title="WorkOS::Base (module)">Base</a></span>, <span class='object_link'><a href="Client.html" title="WorkOS::Client (module)">Client</a></span></dd>
75+
</dl>
76+
77+
78+
79+
80+
81+
82+
83+
84+
<dl>
85+
<dt>Defined in:</dt>
86+
<dd>lib/workos/audit_trail.rb</dd>
87+
</dl>
88+
89+
</div>
90+
91+
<h2>Overview</h2><div class="docstring">
92+
<div class="discussion">
93+
94+
<p>The Audit Trail module provides convenience methods for working with the WorkOS Audit Trail platform. You&#39;ll need a valid API key.</p>
95+
96+
97+
</div>
98+
</div>
99+
<div class="tags">
100+
101+
102+
<p class="tag_title">See Also:</p>
103+
<ul class="see">
104+
105+
<li><a href="https://docs.workos.com/audit-trail/overview" target="_parent" title="https://docs.workos.com/audit-trail/overview">https://docs.workos.com/audit-trail/overview</a></li>
106+
107+
</ul>
108+
109+
</div>
110+
111+
112+
113+
114+
115+
<h2>Instance Attribute Summary</h2>
116+
117+
<h3 class="inherited">Attributes included from <span class='object_link'><a href="Base.html" title="WorkOS::Base (module)">Base</a></span></h3>
118+
<p class="inherited"><span class='object_link'><a href="Base.html#key-instance_method" title="WorkOS::Base#key (method)">#key</a></span></p>
119+
120+
121+
122+
<h2>
123+
Class Method Summary
124+
<small><a href="#" class="summary_toggle">collapse</a></small>
125+
</h2>
126+
127+
<ul class="summary">
128+
129+
<li class="public ">
130+
<span class="summary_signature">
131+
132+
<a href="#create_event-class_method" title="create_event (class method)">.<strong>create_event</strong>(event:, idempotency_key: nil) &#x21d2; Object </a>
133+
134+
135+
136+
</span>
137+
138+
139+
140+
141+
142+
143+
144+
145+
146+
<span class="summary_desc"><div class='inline'></div></span>
147+
148+
</li>
149+
150+
151+
</ul>
152+
153+
154+
155+
156+
157+
158+
159+
160+
161+
162+
163+
<h3 class="inherited">Methods included from <span class='object_link'><a href="Client.html" title="WorkOS::Client (module)">Client</a></span></h3>
164+
<p class="inherited"><span class='object_link'><a href="Client.html#client-instance_method" title="WorkOS::Client#client (method)">client</a></span>, <span class='object_link'><a href="Client.html#execute_request-instance_method" title="WorkOS::Client#execute_request (method)">execute_request</a></span>, <span class='object_link'><a href="Client.html#handle_error_response-instance_method" title="WorkOS::Client#handle_error_response (method)">handle_error_response</a></span>, <span class='object_link'><a href="Client.html#post_request-instance_method" title="WorkOS::Client#post_request (method)">post_request</a></span>, <span class='object_link'><a href="Client.html#user_agent-instance_method" title="WorkOS::Client#user_agent (method)">user_agent</a></span></p>
165+
166+
167+
168+
169+
170+
171+
172+
173+
174+
175+
176+
177+
<div id="class_method_details" class="method_details_list">
178+
<h2>Class Method Details</h2>
179+
180+
181+
<div class="method_details first">
182+
<h3 class="signature first" id="create_event-class_method">
183+
184+
.<strong>create_event</strong>(event:, idempotency_key: nil) &#x21d2; <tt>Object</tt>
185+
186+
187+
188+
189+
190+
</h3><table class="source_code">
191+
<tr>
192+
<td>
193+
<pre class="lines">
194+
195+
196+
51
197+
52
198+
53
199+
54
200+
55
201+
56
202+
57
203+
58
204+
59</pre>
205+
</td>
206+
<td>
207+
<pre class="code"><span class="info file"># File 'lib/workos/audit_trail.rb', line 51</span>
208+
209+
<span class='kw'>def</span> <span class='id identifier rubyid_create_event'>create_event</span><span class='lparen'>(</span><span class='label'>event:</span><span class='comma'>,</span> <span class='label'>idempotency_key:</span> <span class='kw'>nil</span><span class='rparen'>)</span>
210+
<span class='id identifier rubyid_request'>request</span> <span class='op'>=</span> <span class='id identifier rubyid_post_request'>post_request</span><span class='lparen'>(</span>
211+
<span class='label'>path:</span> <span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>/events</span><span class='tstring_end'>&#39;</span></span><span class='comma'>,</span>
212+
<span class='label'>idempotency_key:</span> <span class='id identifier rubyid_idempotency_key'>idempotency_key</span><span class='comma'>,</span>
213+
<span class='label'>body:</span> <span class='id identifier rubyid_event'>event</span><span class='comma'>,</span>
214+
<span class='rparen'>)</span>
215+
216+
<span class='id identifier rubyid_execute_request'>execute_request</span><span class='lparen'>(</span><span class='label'>request:</span> <span class='id identifier rubyid_request'>request</span><span class='rparen'>)</span>
217+
<span class='kw'>end</span></pre>
218+
</td>
219+
</tr>
220+
</table>
221+
</div>
222+
223+
</div>
224+
225+
</div>
226+
227+
<div id="footer">
228+
Generated on Sun Mar 15 22:11:09 2020 by
229+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
230+
0.9.22 (ruby-2.6.5).
231+
</div>
232+
233+
</div>
234+
</body>
235+
</html>

docs/WorkOS/AuthenticationError.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ <h2>Constructor Details</h2>
150150
</div>
151151

152152
<div id="footer">
153-
Generated on Fri Mar 13 12:16:46 2020 by
153+
Generated on Sun Mar 15 22:11:09 2020 by
154154
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
155155
0.9.22 (ruby-2.6.5).
156156
</div>

docs/WorkOS/Base.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@
8181

8282
<dl>
8383
<dt>Included in:</dt>
84-
<dd><span class='object_link'><a href="AuditLog.html" title="WorkOS::AuditLog (module)">AuditLog</a></span>, <span class='object_link'><a href="SSO.html" title="WorkOS::SSO (module)">SSO</a></span></dd>
84+
<dd><span class='object_link'><a href="AuditTrail.html" title="WorkOS::AuditTrail (module)">AuditTrail</a></span>, <span class='object_link'><a href="SSO.html" title="WorkOS::SSO (module)">SSO</a></span></dd>
8585
</dl>
8686

8787

@@ -277,7 +277,7 @@ <h3 class="signature first" id="key-instance_method">
277277
</div>
278278

279279
<div id="footer">
280-
Generated on Fri Mar 13 12:16:45 2020 by
280+
Generated on Sun Mar 15 22:11:09 2020 by
281281
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
282282
0.9.22 (ruby-2.6.5).
283283
</div>

docs/WorkOS/Client.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@
8686

8787
<dl>
8888
<dt>Included in:</dt>
89-
<dd><span class='object_link'><a href="AuditLog.html" title="WorkOS::AuditLog (module)">AuditLog</a></span>, <span class='object_link'><a href="SSO.html" title="WorkOS::SSO (module)">SSO</a></span></dd>
89+
<dd><span class='object_link'><a href="AuditTrail.html" title="WorkOS::AuditTrail (module)">AuditTrail</a></span>, <span class='object_link'><a href="SSO.html" title="WorkOS::SSO (module)">SSO</a></span></dd>
9090
</dl>
9191

9292

@@ -494,7 +494,7 @@ <h3 class="signature " id="user_agent-instance_method">
494494
</div>
495495

496496
<div id="footer">
497-
Generated on Fri Mar 13 12:16:46 2020 by
497+
Generated on Sun Mar 15 22:11:09 2020 by
498498
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
499499
0.9.22 (ruby-2.6.5).
500500
</div>

docs/WorkOS/InvalidRequestError.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,7 +150,7 @@ <h2>Constructor Details</h2>
150150
</div>
151151

152152
<div id="footer">
153-
Generated on Fri Mar 13 12:16:46 2020 by
153+
Generated on Sun Mar 15 22:11:09 2020 by
154154
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
155155
0.9.22 (ruby-2.6.5).
156156
</div>

docs/WorkOS/Profile.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -778,7 +778,7 @@ <h3 class="signature " id="to_json-instance_method">
778778
</div>
779779

780780
<div id="footer">
781-
Generated on Fri Mar 13 12:16:46 2020 by
781+
Generated on Sun Mar 15 22:11:09 2020 by
782782
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
783783
0.9.22 (ruby-2.6.5).
784784
</div>

0 commit comments

Comments
 (0)