outboxer 0.1.2 → 0.1.5

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.
@@ -1,110 +0,0 @@
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
- Top Level Namespace
8
-
9
- &mdash; Documentation by YARD 0.9.34
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 = "";
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> &raquo;
40
-
41
-
42
- <span class="title">Top Level Namespace</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>Top Level Namespace
63
-
64
-
65
-
66
- </h1>
67
- <div class="box_info">
68
-
69
-
70
-
71
-
72
-
73
-
74
-
75
-
76
-
77
-
78
-
79
- </div>
80
-
81
- <h2>Defined Under Namespace</h2>
82
- <p class="children">
83
-
84
-
85
- <strong class="modules">Modules:</strong> <span class='object_link'><a href="Outboxer.html" title="Outboxer (module)">Outboxer</a></span>
86
-
87
-
88
-
89
-
90
- </p>
91
-
92
-
93
-
94
-
95
-
96
-
97
-
98
-
99
-
100
- </div>
101
-
102
- <div id="footer">
103
- Generated on Sat Aug 5 04:37:46 2023 by
104
- <a href="https://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
105
- 0.9.34 (ruby-2.7.8).
106
- </div>
107
-
108
- </div>
109
- </body>
110
- </html>
@@ -1,11 +0,0 @@
1
- require "active_record"
2
-
3
- module Outboxer
4
- module Models
5
- class Exception < ::ActiveRecord::Base
6
- self.table_name = :outboxer_exceptions
7
-
8
- belongs_to :message, class_name: "::Outboxer::Models::Message"
9
- end
10
- end
11
- end
@@ -1,21 +0,0 @@
1
- require "active_record"
2
-
3
- module Outboxer
4
- module Models
5
- class Message < ::ActiveRecord::Base
6
- self.table_name = :outboxer_messages
7
-
8
- STATUS = {
9
- unpublished: "unpublished",
10
- publishing: "publishing",
11
- failed: "failed"
12
- }.freeze
13
-
14
- belongs_to :message, polymorphic: true
15
-
16
- has_many :exceptions, -> { order(created_at: :asc) },
17
- class_name: "::Outboxer::Models::Exception",
18
- dependent: :destroy
19
- end
20
- end
21
- end
@@ -1,23 +0,0 @@
1
- module Outboxer
2
- module Models
3
- module Outboxable
4
- def self.included(base)
5
- base.extend ClassMethods
6
-
7
- base.class_eval do
8
- has_one :message, class_name: "Outboxer::Models::Message", as: :outbox_message,
9
- dependent: :destroy
10
-
11
- after_create :create_outbox_message!
12
- end
13
- end
14
-
15
- def create_outbox_message!
16
- Models::Message.create!(message: self, status: Models::Message::STATUS[:unpublished])
17
- end
18
-
19
- module ClassMethods
20
- end
21
- end
22
- end
23
- end