activejob-traceable 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: f53b6279e6b8a5213846d99ddb0929f0d1571394
4
+ data.tar.gz: 288b6db4b8adf00d9203f8f7bb534fb517ef3a65
5
+ SHA512:
6
+ metadata.gz: 0a4c98f6fdd79e1f1fe5d8a02357966b03dc8ff5242e577d2714bbf2ab29c78b3228c975fb2d6f6450af098806a84ea06a617e61a6e1c76b6c08a00cf1aea3c8
7
+ data.tar.gz: 413071cf86256ca8acb7f9f9eba41d11873066e1070c2e930abf13a686b99e0a2a5b295e585f2dfdcc9df5ad79d1736c957d7f360e0da1a906df67af067bce7b
data/.gitignore ADDED
@@ -0,0 +1,11 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+
10
+ # rspec failure tracking
11
+ .rspec_status
@@ -0,0 +1,30 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <module type="RUBY_MODULE" version="4">
3
+ <component name="ModuleRunConfigurationManager">
4
+ <shared />
5
+ </component>
6
+ <component name="NewModuleRootManager">
7
+ <content url="file://$MODULE_DIR$" />
8
+ <orderEntry type="inheritedJdk" />
9
+ <orderEntry type="sourceFolder" forTests="false" />
10
+ <orderEntry type="library" scope="PROVIDED" name="activejob (v5.1.4, rbenv: 2.4.2) [gem]" level="application" />
11
+ <orderEntry type="library" scope="PROVIDED" name="activesupport (v5.1.4, rbenv: 2.4.2) [gem]" level="application" />
12
+ <orderEntry type="library" scope="PROVIDED" name="bundler (v1.16.1, rbenv: 2.4.2) [gem]" level="application" />
13
+ <orderEntry type="library" scope="PROVIDED" name="coderay (v1.1.2, rbenv: 2.4.2) [gem]" level="application" />
14
+ <orderEntry type="library" scope="PROVIDED" name="concurrent-ruby (v1.0.5, rbenv: 2.4.2) [gem]" level="application" />
15
+ <orderEntry type="library" scope="PROVIDED" name="diff-lcs (v1.3, rbenv: 2.4.2) [gem]" level="application" />
16
+ <orderEntry type="library" scope="PROVIDED" name="globalid (v0.4.1, rbenv: 2.4.2) [gem]" level="application" />
17
+ <orderEntry type="library" scope="PROVIDED" name="i18n (v0.9.1, rbenv: 2.4.2) [gem]" level="application" />
18
+ <orderEntry type="library" scope="PROVIDED" name="method_source (v0.9.0, rbenv: 2.4.2) [gem]" level="application" />
19
+ <orderEntry type="library" scope="PROVIDED" name="minitest (v5.10.3, rbenv: 2.4.2) [gem]" level="application" />
20
+ <orderEntry type="library" scope="PROVIDED" name="pry (v0.11.3, rbenv: 2.4.2) [gem]" level="application" />
21
+ <orderEntry type="library" scope="PROVIDED" name="rake (v10.5.0, rbenv: 2.4.2) [gem]" level="application" />
22
+ <orderEntry type="library" scope="PROVIDED" name="rspec (v3.7.0, rbenv: 2.4.2) [gem]" level="application" />
23
+ <orderEntry type="library" scope="PROVIDED" name="rspec-core (v3.7.0, rbenv: 2.4.2) [gem]" level="application" />
24
+ <orderEntry type="library" scope="PROVIDED" name="rspec-expectations (v3.7.0, rbenv: 2.4.2) [gem]" level="application" />
25
+ <orderEntry type="library" scope="PROVIDED" name="rspec-mocks (v3.7.0, rbenv: 2.4.2) [gem]" level="application" />
26
+ <orderEntry type="library" scope="PROVIDED" name="rspec-support (v3.7.0, rbenv: 2.4.2) [gem]" level="application" />
27
+ <orderEntry type="library" scope="PROVIDED" name="thread_safe (v0.3.6, rbenv: 2.4.2) [gem]" level="application" />
28
+ <orderEntry type="library" scope="PROVIDED" name="tzinfo (v1.2.4, rbenv: 2.4.2) [gem]" level="application" />
29
+ </component>
30
+ </module>
@@ -0,0 +1,3 @@
1
+ <component name="MarkdownNavigator.ProfileManager">
2
+ <settings default="" pdf-export="" />
3
+ </component>
data/.idea/misc.xml ADDED
@@ -0,0 +1,7 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="JavaScriptSettings">
4
+ <option name="languageLevel" value="ES6" />
5
+ </component>
6
+ <component name="ProjectRootManager" version="2" project-jdk-name="rbenv: 2.4.2" project-jdk-type="RUBY_SDK" />
7
+ </project>
data/.idea/modules.xml ADDED
@@ -0,0 +1,8 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ProjectModuleManager">
4
+ <modules>
5
+ <module fileurl="file://$PROJECT_DIR$/.idea/activejob-traceable.iml" filepath="$PROJECT_DIR$/.idea/activejob-traceable.iml" />
6
+ </modules>
7
+ </component>
8
+ </project>
@@ -0,0 +1,373 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <project version="4">
3
+ <component name="ChangeListManager">
4
+ <list default="true" id="c0c01fcc-0330-4197-8825-8021e468abf5" name="Default" comment="">
5
+ <change afterPath="$PROJECT_DIR$/.idea/activejob-traceable.iml" afterDir="false" />
6
+ <change afterPath="$PROJECT_DIR$/.idea/markdown-navigator/profiles_settings.xml" afterDir="false" />
7
+ <change afterPath="$PROJECT_DIR$/.idea/misc.xml" afterDir="false" />
8
+ <change afterPath="$PROJECT_DIR$/.idea/modules.xml" afterDir="false" />
9
+ <change afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
10
+ </list>
11
+ <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
12
+ <option name="TRACKING_ENABLED" value="true" />
13
+ <option name="SHOW_DIALOG" value="false" />
14
+ <option name="HIGHLIGHT_CONFLICTS" value="true" />
15
+ <option name="HIGHLIGHT_NON_ACTIVE_CHANGELIST" value="false" />
16
+ <option name="LAST_RESOLUTION" value="IGNORE" />
17
+ </component>
18
+ <component name="FileEditorManager">
19
+ <leaf>
20
+ <file leaf-file-name="version.rb" pinned="false" current-in-tab="false">
21
+ <entry file="file://$PROJECT_DIR$/lib/activejob/traceable/version.rb">
22
+ <provider selected="true" editor-type-id="text-editor">
23
+ <state>
24
+ <caret column="14" selection-start-column="14" selection-end-column="14" />
25
+ </state>
26
+ </provider>
27
+ </entry>
28
+ </file>
29
+ <file leaf-file-name="traceable.rb" pinned="false" current-in-tab="false">
30
+ <entry file="file://$PROJECT_DIR$/lib/activejob/traceable.rb">
31
+ <provider selected="true" editor-type-id="text-editor">
32
+ <state relative-caret-position="360">
33
+ <caret line="24" selection-start-line="24" selection-end-line="24" />
34
+ </state>
35
+ </provider>
36
+ </entry>
37
+ </file>
38
+ <file leaf-file-name="traceable.rb" pinned="false" current-in-tab="false">
39
+ <entry file="file://$PROJECT_DIR$/lib/activejob/traceable/traceable.rb">
40
+ <provider selected="true" editor-type-id="text-editor">
41
+ <state relative-caret-position="60">
42
+ <caret line="4" column="15" selection-start-line="2" selection-start-column="4" selection-end-line="4" selection-end-column="15" />
43
+ </state>
44
+ </provider>
45
+ </entry>
46
+ </file>
47
+ <file leaf-file-name="logging_patch.rb" pinned="false" current-in-tab="false">
48
+ <entry file="file://$PROJECT_DIR$/lib/activejob/traceable/logging_patch.rb">
49
+ <provider selected="true" editor-type-id="text-editor">
50
+ <state relative-caret-position="345">
51
+ <caret line="23" lean-forward="true" selection-start-line="23" selection-end-line="23" />
52
+ </state>
53
+ </provider>
54
+ </entry>
55
+ </file>
56
+ <file leaf-file-name="activejob-traceable.gemspec" pinned="false" current-in-tab="false">
57
+ <entry file="file://$PROJECT_DIR$/activejob-traceable.gemspec">
58
+ <provider selected="true" editor-type-id="text-editor" />
59
+ </entry>
60
+ </file>
61
+ <file leaf-file-name=".rspec" pinned="false" current-in-tab="false">
62
+ <entry file="file://$PROJECT_DIR$/.rspec">
63
+ <provider selected="true" editor-type-id="text-editor">
64
+ <state relative-caret-position="15">
65
+ <caret line="1" lean-forward="true" selection-start-line="1" selection-end-line="1" />
66
+ </state>
67
+ </provider>
68
+ </entry>
69
+ </file>
70
+ <file leaf-file-name="README.md" pinned="false" current-in-tab="true">
71
+ <entry file="file://$PROJECT_DIR$/README.md">
72
+ <provider selected="true" editor-type-id="split-provider[text-editor;MarkdownPreviewEditor]">
73
+ <state split_layout="SPLIT">
74
+ <first_editor relative-caret-position="395">
75
+ <caret line="41" column="15" lean-forward="true" selection-start-line="41" selection-start-column="15" selection-end-line="42" />
76
+ </first_editor>
77
+ <second_editor>
78
+ <markdownNavigatorState />
79
+ </second_editor>
80
+ </state>
81
+ </provider>
82
+ </entry>
83
+ </file>
84
+ <file leaf-file-name="spec_helper.rb" pinned="false" current-in-tab="false">
85
+ <entry file="file://$PROJECT_DIR$/spec/spec_helper.rb">
86
+ <provider selected="true" editor-type-id="text-editor">
87
+ <state relative-caret-position="60">
88
+ <caret line="4" selection-start-line="4" selection-end-line="4" />
89
+ </state>
90
+ </provider>
91
+ </entry>
92
+ </file>
93
+ <file leaf-file-name="traceable_spec.rb" pinned="false" current-in-tab="false">
94
+ <entry file="file://$PROJECT_DIR$/spec/activejob/traceable_spec.rb">
95
+ <provider selected="true" editor-type-id="text-editor">
96
+ <state relative-caret-position="345">
97
+ <caret line="23" column="26" lean-forward="true" selection-start-line="23" selection-start-column="26" selection-end-line="23" selection-end-column="26" />
98
+ </state>
99
+ </provider>
100
+ </entry>
101
+ </file>
102
+ <file leaf-file-name=".travis.yml" pinned="false" current-in-tab="false">
103
+ <entry file="file://$PROJECT_DIR$/.travis.yml">
104
+ <provider selected="true" editor-type-id="text-editor">
105
+ <state>
106
+ <caret lean-forward="true" />
107
+ </state>
108
+ </provider>
109
+ </entry>
110
+ </file>
111
+ </leaf>
112
+ </component>
113
+ <component name="FindInProjectRecents">
114
+ <findStrings>
115
+ <find>Activejob</find>
116
+ </findStrings>
117
+ <dirStrings>
118
+ <dir>$PROJECT_DIR$</dir>
119
+ </dirStrings>
120
+ </component>
121
+ <component name="Git.Settings">
122
+ <option name="RECENT_GIT_ROOT_PATH" value="$PROJECT_DIR$" />
123
+ </component>
124
+ <component name="IdeDocumentHistory">
125
+ <option name="CHANGED_PATHS">
126
+ <list>
127
+ <option value="$PROJECT_DIR$/lib/activejob/traceable/traceable.rb" />
128
+ <option value="$PROJECT_DIR$/lib/activejob/traceable/version.rb" />
129
+ <option value="$PROJECT_DIR$/lib/activejob/traceable/logging_patch.rb" />
130
+ <option value="$PROJECT_DIR$/lib/activejob/traceable.rb" />
131
+ <option value="$PROJECT_DIR$/spec/spec_helper.rb" />
132
+ <option value="$PROJECT_DIR$/spec/activejob/traceable_spec.rb" />
133
+ <option value="$PROJECT_DIR$/.travis.yml" />
134
+ <option value="$PROJECT_DIR$/activejob-traceable.gemspec" />
135
+ <option value="$PROJECT_DIR$/.rspec" />
136
+ <option value="$PROJECT_DIR$/README.md" />
137
+ </list>
138
+ </option>
139
+ </component>
140
+ <component name="JsBuildToolGruntFileManager" detection-done="true" sorting="DEFINITION_ORDER" />
141
+ <component name="JsBuildToolPackageJson" detection-done="true" sorting="DEFINITION_ORDER" />
142
+ <component name="JsGulpfileManager">
143
+ <detection-done>true</detection-done>
144
+ <sorting>DEFINITION_ORDER</sorting>
145
+ </component>
146
+ <component name="ProjectFrameBounds" extendedState="6">
147
+ <option name="y" value="-1057" />
148
+ <option name="width" value="1920" />
149
+ <option name="height" value="1057" />
150
+ </component>
151
+ <component name="ProjectLevelVcsManager" settingsEditedManually="true" />
152
+ <component name="ProjectView">
153
+ <navigator proportions="" version="1">
154
+ <foldersAlwaysOnTop value="true" />
155
+ </navigator>
156
+ <panes>
157
+ <pane id="ProjectPane">
158
+ <subPane>
159
+ <expand>
160
+ <path>
161
+ <item name="activejob-traceable" type="b2602c69:ProjectViewProjectNode" />
162
+ <item name="activejob-traceable" type="462c0819:PsiDirectoryNode" />
163
+ </path>
164
+ <path>
165
+ <item name="activejob-traceable" type="b2602c69:ProjectViewProjectNode" />
166
+ <item name="activejob-traceable" type="462c0819:PsiDirectoryNode" />
167
+ <item name="lib" type="462c0819:PsiDirectoryNode" />
168
+ </path>
169
+ <path>
170
+ <item name="activejob-traceable" type="b2602c69:ProjectViewProjectNode" />
171
+ <item name="activejob-traceable" type="462c0819:PsiDirectoryNode" />
172
+ <item name="lib" type="462c0819:PsiDirectoryNode" />
173
+ <item name="activejob" type="462c0819:PsiDirectoryNode" />
174
+ </path>
175
+ <path>
176
+ <item name="activejob-traceable" type="b2602c69:ProjectViewProjectNode" />
177
+ <item name="activejob-traceable" type="462c0819:PsiDirectoryNode" />
178
+ <item name="lib" type="462c0819:PsiDirectoryNode" />
179
+ <item name="activejob" type="462c0819:PsiDirectoryNode" />
180
+ <item name="traceable" type="462c0819:PsiDirectoryNode" />
181
+ </path>
182
+ <path>
183
+ <item name="activejob-traceable" type="b2602c69:ProjectViewProjectNode" />
184
+ <item name="activejob-traceable" type="462c0819:PsiDirectoryNode" />
185
+ <item name="spec" type="462c0819:PsiDirectoryNode" />
186
+ </path>
187
+ <path>
188
+ <item name="activejob-traceable" type="b2602c69:ProjectViewProjectNode" />
189
+ <item name="activejob-traceable" type="462c0819:PsiDirectoryNode" />
190
+ <item name="spec" type="462c0819:PsiDirectoryNode" />
191
+ <item name="activejob" type="462c0819:PsiDirectoryNode" />
192
+ </path>
193
+ </expand>
194
+ <select />
195
+ </subPane>
196
+ </pane>
197
+ <pane id="Scope" />
198
+ </panes>
199
+ </component>
200
+ <component name="PropertiesComponent">
201
+ <property name="WebServerToolWindowFactoryState" value="false" />
202
+ <property name="nodejs_interpreter_path.stuck_in_default_project" value="undefined stuck path" />
203
+ <property name="nodejs_npm_path_reset_for_default_project" value="true" />
204
+ </component>
205
+ <component name="RecentsManager">
206
+ <key name="MoveFile.RECENT_KEYS">
207
+ <recent name="$PROJECT_DIR$/lib/activejob-traceable" />
208
+ </key>
209
+ </component>
210
+ <component name="RunDashboard">
211
+ <option name="ruleStates">
212
+ <list>
213
+ <RuleState>
214
+ <option name="name" value="ConfigurationTypeDashboardGroupingRule" />
215
+ </RuleState>
216
+ <RuleState>
217
+ <option name="name" value="StatusDashboardGroupingRule" />
218
+ </RuleState>
219
+ </list>
220
+ </option>
221
+ </component>
222
+ <component name="SpringUtil" SPRING_PRE_LOADER_OPTION="true" />
223
+ <component name="TaskManager">
224
+ <task active="true" id="Default" summary="Default task">
225
+ <changelist id="c0c01fcc-0330-4197-8825-8021e468abf5" name="Default" comment="" />
226
+ <created>1533206891659</created>
227
+ <option name="number" value="Default" />
228
+ <option name="presentableId" value="Default" />
229
+ <updated>1533206891659</updated>
230
+ <workItem from="1533206893365" duration="7822000" />
231
+ </task>
232
+ <task id="LOCAL-00001" summary="Initial commit">
233
+ <created>1533223167114</created>
234
+ <option name="number" value="00001" />
235
+ <option name="presentableId" value="LOCAL-00001" />
236
+ <option name="project" value="LOCAL" />
237
+ <updated>1533223167115</updated>
238
+ </task>
239
+ <task id="LOCAL-00002" summary="Initial commit">
240
+ <created>1533223497687</created>
241
+ <option name="number" value="00002" />
242
+ <option name="presentableId" value="LOCAL-00002" />
243
+ <option name="project" value="LOCAL" />
244
+ <updated>1533223497687</updated>
245
+ </task>
246
+ <option name="localTasksCounter" value="3" />
247
+ <servers />
248
+ </component>
249
+ <component name="TimeTrackingManager">
250
+ <option name="totallyTimeSpent" value="7822000" />
251
+ </component>
252
+ <component name="ToolWindowManager">
253
+ <frame x="0" y="-1057" width="1920" height="1053" extended-state="6" />
254
+ <editor active="true" />
255
+ <layout>
256
+ <window_info anchor="bottom" id="TODO" order="6" />
257
+ <window_info anchor="bottom" id="Event Log" side_tool="true" />
258
+ <window_info anchor="bottom" id="Database Changes" show_stripe_button="false" />
259
+ <window_info anchor="bottom" id="Run" order="2" weight="0.3294979" />
260
+ <window_info anchor="bottom" id="Version Control" />
261
+ <window_info active="true" anchor="bottom" id="Terminal" visible="true" weight="0.3294979" />
262
+ <window_info content_ui="combo" id="Project" order="0" visible="true" weight="0.24973376" />
263
+ <window_info anchor="bottom" id="Docker" />
264
+ <window_info anchor="right" id="Database" />
265
+ <window_info anchor="bottom" id="Find" order="1" />
266
+ <window_info id="Structure" order="1" side_tool="true" weight="0.25" />
267
+ <window_info anchor="bottom" id="Debug" order="3" weight="0.4" />
268
+ <window_info id="Favorites" side_tool="true" />
269
+ <window_info anchor="right" id="Commander" order="0" weight="0.4" />
270
+ <window_info anchor="right" content_ui="combo" id="Hierarchy" order="2" weight="0.25" />
271
+ <window_info anchor="bottom" id="Inspection" order="5" weight="0.4" />
272
+ <window_info anchor="right" id="Ant Build" order="1" weight="0.25" />
273
+ <window_info anchor="bottom" id="Message" order="0" />
274
+ <window_info anchor="bottom" id="Cvs" order="4" weight="0.25" />
275
+ </layout>
276
+ </component>
277
+ <component name="TypeScriptGeneratedFilesManager">
278
+ <option name="version" value="1" />
279
+ </component>
280
+ <component name="VcsContentAnnotationSettings">
281
+ <option name="myLimit" value="2678400000" />
282
+ </component>
283
+ <component name="VcsManagerConfiguration">
284
+ <MESSAGE value="Initial commit" />
285
+ <option name="LAST_COMMIT_MESSAGE" value="Initial commit" />
286
+ </component>
287
+ <component name="editorHistoryManager">
288
+ <entry file="file://$PROJECT_DIR$/bin/console">
289
+ <provider selected="true" editor-type-id="text-editor" />
290
+ </entry>
291
+ <entry file="file://$PROJECT_DIR$/bin/setup">
292
+ <provider selected="true" editor-type-id="text-editor">
293
+ <state relative-caret-position="120">
294
+ <caret line="8" selection-start-line="8" selection-end-line="8" />
295
+ </state>
296
+ </provider>
297
+ </entry>
298
+ <entry file="file://$PROJECT_DIR$/Rakefile">
299
+ <provider selected="true" editor-type-id="text-editor" />
300
+ </entry>
301
+ <entry file="file://$PROJECT_DIR$/lib/activejob/traceable.rb">
302
+ <provider selected="true" editor-type-id="text-editor">
303
+ <state relative-caret-position="360">
304
+ <caret line="24" selection-start-line="24" selection-end-line="24" />
305
+ </state>
306
+ </provider>
307
+ </entry>
308
+ <entry file="file://$PROJECT_DIR$/spec/spec_helper.rb">
309
+ <provider selected="true" editor-type-id="text-editor">
310
+ <state relative-caret-position="60">
311
+ <caret line="4" selection-start-line="4" selection-end-line="4" />
312
+ </state>
313
+ </provider>
314
+ </entry>
315
+ <entry file="file://$PROJECT_DIR$/spec/activejob/traceable_spec.rb">
316
+ <provider selected="true" editor-type-id="text-editor">
317
+ <state relative-caret-position="345">
318
+ <caret line="23" column="26" lean-forward="true" selection-start-line="23" selection-start-column="26" selection-end-line="23" selection-end-column="26" />
319
+ </state>
320
+ </provider>
321
+ </entry>
322
+ <entry file="file://$PROJECT_DIR$/.travis.yml">
323
+ <provider selected="true" editor-type-id="text-editor">
324
+ <state>
325
+ <caret lean-forward="true" />
326
+ </state>
327
+ </provider>
328
+ </entry>
329
+ <entry file="file://$PROJECT_DIR$/activejob-traceable.gemspec">
330
+ <provider selected="true" editor-type-id="text-editor" />
331
+ </entry>
332
+ <entry file="file://$PROJECT_DIR$/.rspec">
333
+ <provider selected="true" editor-type-id="text-editor">
334
+ <state relative-caret-position="15">
335
+ <caret line="1" lean-forward="true" selection-start-line="1" selection-end-line="1" />
336
+ </state>
337
+ </provider>
338
+ </entry>
339
+ <entry file="file://$PROJECT_DIR$/lib/activejob/traceable/traceable.rb">
340
+ <provider selected="true" editor-type-id="text-editor">
341
+ <state relative-caret-position="60">
342
+ <caret line="4" column="15" selection-start-line="2" selection-start-column="4" selection-end-line="4" selection-end-column="15" />
343
+ </state>
344
+ </provider>
345
+ </entry>
346
+ <entry file="file://$PROJECT_DIR$/lib/activejob/traceable/logging_patch.rb">
347
+ <provider selected="true" editor-type-id="text-editor">
348
+ <state relative-caret-position="345">
349
+ <caret line="23" lean-forward="true" selection-start-line="23" selection-end-line="23" />
350
+ </state>
351
+ </provider>
352
+ </entry>
353
+ <entry file="file://$PROJECT_DIR$/lib/activejob/traceable/version.rb">
354
+ <provider selected="true" editor-type-id="text-editor">
355
+ <state>
356
+ <caret column="14" selection-start-column="14" selection-end-column="14" />
357
+ </state>
358
+ </provider>
359
+ </entry>
360
+ <entry file="file://$PROJECT_DIR$/README.md">
361
+ <provider selected="true" editor-type-id="split-provider[text-editor;MarkdownPreviewEditor]">
362
+ <state split_layout="SPLIT">
363
+ <first_editor relative-caret-position="395">
364
+ <caret line="41" column="15" lean-forward="true" selection-start-line="41" selection-start-column="15" selection-end-line="42" />
365
+ </first_editor>
366
+ <second_editor>
367
+ <markdownNavigatorState />
368
+ </second_editor>
369
+ </state>
370
+ </provider>
371
+ </entry>
372
+ </component>
373
+ </project>
data/.rspec ADDED
@@ -0,0 +1 @@
1
+ --color
data/.travis.yml ADDED
@@ -0,0 +1,13 @@
1
+ sudo: false
2
+ language: ruby
3
+ rvm:
4
+ - 2.4.2
5
+ deploy:
6
+ skip_cleanup: true
7
+ provider: rubygems
8
+ api_key:
9
+ secure: aD0lrk/+PZnWSJVdDRHFB6kzea1dmJl1nlWXMsyr0s5FlXPGuF1O01LEJIxQSNhl2AiA/yQBbT/ldcEsYyzYvRJWlkXbzzfTNa3pl0MYM3U7lDfAA9oJn2Xis/jiW7pI+vEehIA+6V5rr/V1KBNrxxveWQhcpfiQi7p6efF/XBugCqNhVW8G/NLN2S2Zi5ITFekAHoubYh1h0stFqnt9pxKLlm3eTBjs77DsMtLZtoy5KIMptRCOxTSOGteqFy/saeDWEPTWJWaKZ6zJ4bCQG15WJIJ+J+zcCO3kTD+hZUGkOgsy/lYuwOPu845f16kstPVBkqbcxbCdrQaI5sgwwdGNLF14yzwFS8c309ZC9Wnx6QsfPdQjV6Ol4ZTufVqi3EMEmvJQ78gX2T3J8E/6Cer4Ay2vrny5SyzekFSbGcMPr++iGk4JVn/jgEulAxMvDJoqdrJhETCKAcPlk1EesPUPP5JuXuW6HfDXNEYvv7Bzo2xVuaUsNvSMLsbZai7E2PchkBYApIKg9A6hFkt7ymiAIszMiSDuIj90aBtKpOIoMw6TyRp/x0qXJkPw2UOO22YJHeJanEjKtc2jk3r65FPCRKna3GcHXBXGAcJTKP2fJdBcRKtB7Y/SjRq84uDZJxwNKRBfyCittpMuu20uln+ylQzE9hnM28O7dOUfNBs=
10
+ gem: activejob-traceable
11
+ on:
12
+ tags: true
13
+ repo: qonto/activejob-traceable
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ source "https://rubygems.org"
2
+
3
+ git_source(:github) {|repo_name| "https://github.com/#{repo_name}" }
4
+
5
+ # Specify your gem's dependencies in activejob-traceable.gemspec
6
+ gemspec
data/LICENSE.txt ADDED
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2018 Dmytro Zakharov
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
data/README.md ADDED
@@ -0,0 +1,48 @@
1
+ # ActiveJob::Traceable
2
+
3
+ Patches ActiveJob to add an attribute `trace_id`, which is added as log's tag.
4
+ The purpose of this patch is to be able to trace which workers are called as a result of user's HTTP request.
5
+
6
+ ## Installation
7
+
8
+ Add this line to your application's Gemfile:
9
+
10
+ ```ruby
11
+ gem 'activejob-traceable'
12
+ ```
13
+
14
+ And then execute:
15
+
16
+ $ bundle
17
+
18
+ Or install it yourself as:
19
+
20
+ $ gem install activejob-traceable
21
+
22
+ ## Configuration
23
+
24
+ Create an initiazlier to tell ActiveJob how to get current `trace_id` and how to set it once deserialized:
25
+
26
+ ```ruby
27
+ # config/initializers/activejob_traceable.rb
28
+ ActiveJob::Traceable.trace_id_getter = -> { CurrentScope.trace_id }
29
+ ActiveJob::Traceable.trace_id_setter = -> (trace_id) { CurrentScope.trace_id = trace_id }
30
+ ```
31
+
32
+ ## Usage
33
+
34
+ Once configured, works out of the box.
35
+
36
+ ## Development
37
+
38
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests.
39
+
40
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
41
+
42
+ ## Contributing
43
+
44
+ Bug reports and pull requests are welcome on GitHub at https://github.com/qonto/activejob-traceable. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
45
+
46
+ ## License
47
+
48
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
data/Rakefile ADDED
@@ -0,0 +1,6 @@
1
+ require "bundler/gem_tasks"
2
+ require "rspec/core/rake_task"
3
+
4
+ RSpec::Core::RakeTask.new(:spec)
5
+
6
+ task :default => :spec
@@ -0,0 +1,29 @@
1
+ lib = File.expand_path('../lib', __FILE__)
2
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
+ require 'activejob/traceable/version'
4
+
5
+ Gem::Specification.new do |spec|
6
+ spec.name = 'activejob-traceable'
7
+ spec.version = ActiveJob::Traceable::VERSION
8
+ spec.authors = ['Dmytro Zakharov']
9
+ spec.email = ['dmytro@qonto.eu']
10
+
11
+ spec.summary = %q{Patches ActiveJob to add trace_id attribute.}
12
+ spec.homepage = 'https://github.com/qonto/activejob-traceable'
13
+ spec.license = 'MIT'
14
+
15
+ spec.files = `git ls-files -z`.split("\x0").reject do |f|
16
+ f.match(%r{^(test|spec|features)/})
17
+ end
18
+ spec.bindir = 'exe'
19
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
20
+ spec.require_paths = ['lib']
21
+
22
+ spec.add_dependency 'activejob'
23
+ spec.add_dependency 'activesupport'
24
+
25
+ spec.add_development_dependency 'bundler', '~> 1.16'
26
+ spec.add_development_dependency 'rake', '~> 10.0'
27
+ spec.add_development_dependency 'pry'
28
+ spec.add_development_dependency 'rspec', '~> 3.0'
29
+ end
@@ -0,0 +1,24 @@
1
+ require 'active_support/lazy_load_hooks'
2
+
3
+ ActiveSupport.on_load :active_job do
4
+ require 'activejob/traceable/traceable'
5
+ require 'activejob/traceable/logging_patch'
6
+ ActiveJob::Base.send(:include, ActiveJob::Traceable)
7
+ ActiveJob::Base.send(:include, ActiveJob::Traceable::LoggingPatch)
8
+ end
9
+
10
+ module ActiveJob
11
+ module Traceable
12
+ extend self
13
+
14
+ def trace_id_setter=(lambda)
15
+ raise 'Trace ID setter should be callable' unless lambda.respond_to?(:call)
16
+ @trace_id_setter = lambda
17
+ end
18
+
19
+ def trace_id_getter=(lambda)
20
+ raise 'Trace ID getter should be callable' unless lambda.respond_to?(:call)
21
+ @trace_id_getter = lambda
22
+ end
23
+ end
24
+ end
@@ -0,0 +1,23 @@
1
+ module ActiveJob
2
+ module Traceable
3
+ module LoggingPatch
4
+ extend ActiveSupport::Concern
5
+
6
+ included do
7
+ private
8
+
9
+ def tag_logger(*tags)
10
+ if ActiveJob::Traceable.trace_id_getter.respond_to?(:call)
11
+ tags << ActiveJob::Traceable.trace_id_getter.call # add custom tag
12
+ end
13
+ if logger.respond_to?(:tagged)
14
+ tags.unshift "ActiveJob" unless logger_tagged_by_active_job?
15
+ logger.tagged(*tags) { yield }
16
+ else
17
+ yield
18
+ end
19
+ end
20
+ end
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,33 @@
1
+ module ActiveJob
2
+ module Traceable
3
+ extend ActiveSupport::Concern
4
+
5
+ included do
6
+ attr_accessor :trace_id
7
+
8
+ def initialize(*arguments)
9
+ super(*arguments)
10
+ if Traceable.trace_id_getter.respond_to?(:call)
11
+ @trace_id = Traceable.trace_id_getter.call
12
+ end
13
+ end
14
+
15
+ def serialize
16
+ super.merge!(trace_id: trace_id)
17
+ end
18
+
19
+ def deserialize(job_data)
20
+ super(job_data)
21
+ self.trace_id = job_data['trace_id']
22
+ if Traceable.trace_id_setter.respond_to?(:call)
23
+ Traceable.trace_id_setter.call(self.trace_id)
24
+ end
25
+ end
26
+ end
27
+
28
+ class << self
29
+ attr_accessor :trace_id_getter
30
+ attr_accessor :trace_id_setter
31
+ end
32
+ end
33
+ end
@@ -0,0 +1,5 @@
1
+ module ActiveJob
2
+ module Traceable
3
+ VERSION = '0.1.0'.freeze
4
+ end
5
+ end
metadata ADDED
@@ -0,0 +1,145 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: activejob-traceable
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Dmytro Zakharov
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2018-08-03 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: activejob
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '0'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - ">="
25
+ - !ruby/object:Gem::Version
26
+ version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: activesupport
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: '0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: '0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: bundler
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '1.16'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '1.16'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rake
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: '10.0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: '10.0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: pry
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rspec
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: '3.0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: '3.0'
97
+ description:
98
+ email:
99
+ - dmytro@qonto.eu
100
+ executables: []
101
+ extensions: []
102
+ extra_rdoc_files: []
103
+ files:
104
+ - ".gitignore"
105
+ - ".idea/activejob-traceable.iml"
106
+ - ".idea/markdown-navigator/profiles_settings.xml"
107
+ - ".idea/misc.xml"
108
+ - ".idea/modules.xml"
109
+ - ".idea/workspace.xml"
110
+ - ".rspec"
111
+ - ".travis.yml"
112
+ - Gemfile
113
+ - LICENSE.txt
114
+ - README.md
115
+ - Rakefile
116
+ - activejob-traceable.gemspec
117
+ - lib/activejob/traceable.rb
118
+ - lib/activejob/traceable/logging_patch.rb
119
+ - lib/activejob/traceable/traceable.rb
120
+ - lib/activejob/traceable/version.rb
121
+ homepage: https://github.com/qonto/activejob-traceable
122
+ licenses:
123
+ - MIT
124
+ metadata: {}
125
+ post_install_message:
126
+ rdoc_options: []
127
+ require_paths:
128
+ - lib
129
+ required_ruby_version: !ruby/object:Gem::Requirement
130
+ requirements:
131
+ - - ">="
132
+ - !ruby/object:Gem::Version
133
+ version: '0'
134
+ required_rubygems_version: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ requirements: []
140
+ rubyforge_project:
141
+ rubygems_version: 2.6.13
142
+ signing_key:
143
+ specification_version: 4
144
+ summary: Patches ActiveJob to add trace_id attribute.
145
+ test_files: []