riaction 1.2.6 → 1.2.7

Sign up to get free protection for your applications and to get access to all the features.
Files changed (51) hide show
  1. data/.yardoc/checksums +11 -0
  2. data/.yardoc/objects/root.dat +0 -0
  3. data/.yardoc/proxy_types +0 -0
  4. data/CHANGELOG.md +5 -0
  5. data/Gemfile.lock +12 -8
  6. data/README.md +6 -1
  7. data/db/riaction.db +0 -0
  8. data/doc/Riaction/ConfigurationError.html +116 -0
  9. data/doc/Riaction/Constants.html +389 -0
  10. data/doc/Riaction/CrudEventCallback.html +402 -0
  11. data/doc/Riaction/EventPerformer.html +250 -0
  12. data/doc/Riaction/NoEventDefined.html +116 -0
  13. data/doc/Riaction/NoProfileDefined.html +116 -0
  14. data/doc/Riaction/ProfileCreationCallback.html +192 -0
  15. data/doc/Riaction/ProfileCreator.html +235 -0
  16. data/doc/Riaction/Railtie.html +116 -0
  17. data/doc/Riaction/Riaction/ClassMethods.html +837 -0
  18. data/doc/Riaction/Riaction/Event/InstanceMethods.html +301 -0
  19. data/doc/Riaction/Riaction/Event.html +108 -0
  20. data/doc/Riaction/Riaction/InstanceMethods.html +198 -0
  21. data/doc/Riaction/Riaction/Profile/InstanceMethods.html +746 -0
  22. data/doc/Riaction/Riaction/Profile.html +108 -0
  23. data/doc/Riaction/Riaction.html +125 -0
  24. data/doc/Riaction/RuntimeError.html +116 -0
  25. data/doc/Riaction.html +124 -0
  26. data/doc/RiactionGenerator.html +188 -0
  27. data/doc/_index.html +263 -0
  28. data/doc/class_list.html +47 -0
  29. data/doc/css/common.css +1 -0
  30. data/doc/css/full_list.css +55 -0
  31. data/doc/css/style.css +322 -0
  32. data/doc/file.README.html +304 -0
  33. data/doc/file_list.html +49 -0
  34. data/doc/frames.html +13 -0
  35. data/doc/index.html +304 -0
  36. data/doc/js/app.js +205 -0
  37. data/doc/js/full_list.js +173 -0
  38. data/doc/js/jquery.js +16 -0
  39. data/doc/method_list.html +294 -0
  40. data/doc/top-level-namespace.html +107 -0
  41. data/lib/riaction/constants.rb +6 -2
  42. data/lib/riaction/crud_event_callback.rb +3 -0
  43. data/lib/riaction/event_performer.rb +10 -5
  44. data/lib/riaction/profile_creation_callback.rb +2 -0
  45. data/lib/riaction/riaction.rb +11 -7
  46. data/lib/riaction/version.rb +1 -1
  47. data/lib/tasks/riaction.rake +25 -22
  48. data/riaction.gemspec +4 -2
  49. data/spec/event_performer_spec.rb +23 -0
  50. data/spec/riaction_spec.rb +33 -4
  51. metadata +79 -19
data/.yardoc/checksums ADDED
@@ -0,0 +1,11 @@
1
+ lib/riaction.rb dd83c27c1316ce70e4d5bb9aa2d126f6cfc9d861
2
+ lib/riaction/railtie.rb 13e4d474afcbaa065c9f287a3d162b14c9879827
3
+ lib/riaction/version.rb 264747da6cacfd2f8186c6c2ab4f1a668c9e0f63
4
+ lib/riaction/riaction.rb 959359e794a937f9272add18734171304000553b
5
+ lib/riaction/constants.rb 3770b204697e3bf3f649d797ce2100c7bd9ad252
6
+ lib/rspec/matchers/riaction.rb cfee977b937126ec92bebf643001671779428d19
7
+ lib/riaction/event_performer.rb e4f5cf51475317713a0dfa92f159ee5b69b979b8
8
+ lib/riaction/profile_creator.rb 29f4cf5ebadf3d22158fb2ad2d36a69bda5b68e3
9
+ lib/riaction/crud_event_callback.rb d03b7cfed24abc9c45cc0f3a06373ded9a9f767a
10
+ lib/riaction/profile_creation_callback.rb 3ca1be07c164b1d4597c285535706cf0a2681fee
11
+ lib/generators/riaction/riaction_generator.rb deb5895bd9ecdaa15c49dc81b6172e2333b89b0b
Binary file
Binary file
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # CHANGELOG #
2
2
 
3
+ ## 1.2.7 ##
4
+
5
+ * Fixed a bug where the event parameters on the instance of class defining multiple events raises an error when one of those events does not point to a valid profile. Now, that event will simply be missing from the returned event parameters. Attempting to log an event that does not point to a valid profile will raise the appropriate error.
6
+ * riaction:rails:process:event task relies on rake-style arguments instead of shell variables.
7
+
3
8
  ## 1.2.6 ##
4
9
 
5
10
  * resque jobs will re-enqeue on a timeout error
data/Gemfile.lock CHANGED
@@ -43,6 +43,7 @@ GEM
43
43
  rack-protection (1.2.0)
44
44
  rack
45
45
  rake (0.9.2.2)
46
+ redcarpet (2.1.0)
46
47
  redis (2.2.2)
47
48
  redis-namespace (1.0.3)
48
49
  redis (< 3.0.0)
@@ -51,14 +52,14 @@ GEM
51
52
  redis-namespace (~> 1.0.2)
52
53
  sinatra (>= 0.9.2)
53
54
  vegas (~> 0.1.2)
54
- rspec (2.7.0)
55
- rspec-core (~> 2.7.0)
56
- rspec-expectations (~> 2.7.0)
57
- rspec-mocks (~> 2.7.0)
58
- rspec-core (2.7.1)
59
- rspec-expectations (2.7.0)
55
+ rspec (2.8.0)
56
+ rspec-core (~> 2.8.0)
57
+ rspec-expectations (~> 2.8.0)
58
+ rspec-mocks (~> 2.8.0)
59
+ rspec-core (2.8.0)
60
+ rspec-expectations (2.8.0)
60
61
  diff-lcs (~> 1.1.2)
61
- rspec-mocks (2.7.0)
62
+ rspec-mocks (2.8.0)
62
63
  ruby-debug-base19 (0.11.25)
63
64
  columnize (>= 0.3.1)
64
65
  linecache19 (>= 0.5.11)
@@ -83,12 +84,15 @@ GEM
83
84
  tzinfo (0.3.31)
84
85
  vegas (0.1.11)
85
86
  rack (>= 1.0.0)
87
+ yard (0.7.5)
86
88
 
87
89
  PLATFORMS
88
90
  ruby
89
91
 
90
92
  DEPENDENCIES
93
+ redcarpet
91
94
  riaction!
92
- rspec (>= 2.6)
95
+ rspec (>= 2.8)
93
96
  ruby-debug19
94
97
  sqlite3
98
+ yard
data/README.md CHANGED
@@ -201,8 +201,13 @@ To run a specific event on all instances off a class that define that event:
201
201
 
202
202
  [Visit their website!](http://www.iactionable.com)
203
203
 
204
+ ## Tested Ruby Versions
205
+ riaction has been tested on major releases of ruby 1.9.2 and ruby 1.9.3-p125. If you find something please file a bug https://github.com/zortnac/riaction/issues
206
+
204
207
  ## Authors ##
205
208
 
206
209
  Christopher Eberz; chris@chriseberz.com; @zortnac
207
210
 
208
- Katie Miller; kmiller@elctech.com
211
+ Katie Miller; kmiller@elctech.com
212
+
213
+ Nicholas Audo; naudo@naudo.de; @naudo
data/db/riaction.db CHANGED
Binary file
@@ -0,0 +1,116 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
+ <title>
7
+ Exception: Riaction::ConfigurationError
8
+
9
+ &mdash; Documentation by YARD 0.7.5
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" />
14
+
15
+ <link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
16
+
17
+ <script type="text/javascript" charset="utf-8">
18
+ relpath = '..';
19
+ if (relpath != '') relpath += '/';
20
+ </script>
21
+
22
+ <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
23
+
24
+ <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
25
+
26
+
27
+ </head>
28
+ <body>
29
+ <script type="text/javascript" charset="utf-8">
30
+ if (window.top.frames.main) document.body.className = 'frames';
31
+ </script>
32
+
33
+ <div id="header">
34
+ <div id="menu">
35
+
36
+ <a href="../_index.html">Index (C)</a> &raquo;
37
+ <span class='title'><span class='object_link'><a href="../Riaction.html" title="Riaction (module)">Riaction</a></span></span>
38
+ &raquo;
39
+ <span class="title">ConfigurationError</span>
40
+
41
+
42
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
43
+ </div>
44
+
45
+ <div id="search">
46
+
47
+ <a id="class_list_link" href="#">Class List</a>
48
+
49
+ <a id="method_list_link" href="#">Method List</a>
50
+
51
+ <a id="file_list_link" href="#">File List</a>
52
+
53
+ </div>
54
+ <div class="clear"></div>
55
+ </div>
56
+
57
+ <iframe id="search_frame"></iframe>
58
+
59
+ <div id="content"><h1>Exception: Riaction::ConfigurationError
60
+
61
+
62
+
63
+ </h1>
64
+
65
+ <dl class="box">
66
+
67
+ <dt class="r1">Inherits:</dt>
68
+ <dd class="r1">
69
+ <span class="inheritName">StandardError</span>
70
+
71
+ <ul class="fullTree">
72
+ <li>Object</li>
73
+
74
+ <li class="next">StandardError</li>
75
+
76
+ <li class="next">Riaction::ConfigurationError</li>
77
+
78
+ </ul>
79
+ <a href="#" class="inheritanceTree">show all</a>
80
+
81
+ </dd>
82
+
83
+
84
+
85
+
86
+
87
+
88
+
89
+
90
+
91
+ <dt class="r2 last">Defined in:</dt>
92
+ <dd class="r2 last">lib/riaction/riaction.rb</dd>
93
+
94
+ </dl>
95
+ <div class="clear"></div>
96
+
97
+
98
+
99
+
100
+
101
+
102
+
103
+
104
+
105
+
106
+
107
+ </div>
108
+
109
+ <div id="footer">
110
+ Generated on Tue Mar 6 22:00:20 2012 by
111
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
112
+ 0.7.5 (ruby-1.9.3).
113
+ </div>
114
+
115
+ </body>
116
+ </html>
@@ -0,0 +1,389 @@
1
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
+ <head>
5
+ <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
+ <title>
7
+ Class: Riaction::Constants
8
+
9
+ &mdash; Documentation by YARD 0.7.5
10
+
11
+ </title>
12
+
13
+ <link rel="stylesheet" href="../css/style.css" type="text/css" media="screen" charset="utf-8" />
14
+
15
+ <link rel="stylesheet" href="../css/common.css" type="text/css" media="screen" charset="utf-8" />
16
+
17
+ <script type="text/javascript" charset="utf-8">
18
+ relpath = '..';
19
+ if (relpath != '') relpath += '/';
20
+ </script>
21
+
22
+ <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
23
+
24
+ <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
25
+
26
+
27
+ </head>
28
+ <body>
29
+ <script type="text/javascript" charset="utf-8">
30
+ if (window.top.frames.main) document.body.className = 'frames';
31
+ </script>
32
+
33
+ <div id="header">
34
+ <div id="menu">
35
+
36
+ <a href="../_index.html">Index (C)</a> &raquo;
37
+ <span class='title'><span class='object_link'><a href="../Riaction.html" title="Riaction (module)">Riaction</a></span></span>
38
+ &raquo;
39
+ <span class="title">Constants</span>
40
+
41
+
42
+ <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
43
+ </div>
44
+
45
+ <div id="search">
46
+
47
+ <a id="class_list_link" href="#">Class List</a>
48
+
49
+ <a id="method_list_link" href="#">Method List</a>
50
+
51
+ <a id="file_list_link" href="#">File List</a>
52
+
53
+ </div>
54
+ <div class="clear"></div>
55
+ </div>
56
+
57
+ <iframe id="search_frame"></iframe>
58
+
59
+ <div id="content"><h1>Class: Riaction::Constants
60
+
61
+
62
+
63
+ </h1>
64
+
65
+ <dl class="box">
66
+
67
+ <dt class="r1">Inherits:</dt>
68
+ <dd class="r1">
69
+ <span class="inheritName">Object</span>
70
+
71
+ <ul class="fullTree">
72
+ <li>Object</li>
73
+
74
+ <li class="next">Riaction::Constants</li>
75
+
76
+ </ul>
77
+ <a href="#" class="inheritanceTree">show all</a>
78
+
79
+ </dd>
80
+
81
+
82
+
83
+
84
+
85
+
86
+
87
+
88
+
89
+ <dt class="r2 last">Defined in:</dt>
90
+ <dd class="r2 last">lib/riaction/constants.rb</dd>
91
+
92
+ </dl>
93
+ <div class="clear"></div>
94
+
95
+
96
+
97
+
98
+
99
+
100
+
101
+
102
+
103
+ <h2>
104
+ Class Method Summary
105
+ <small>(<a href="#" class="summary_toggle">collapse</a>)</small>
106
+ </h2>
107
+
108
+ <ul class="summary">
109
+
110
+ <li class="public ">
111
+ <span class="summary_signature">
112
+
113
+ <a href="#crud_actions-class_method" title="crud_actions (class method)">+ (Object) <strong>crud_actions</strong> </a>
114
+
115
+
116
+
117
+ </span>
118
+
119
+
120
+
121
+
122
+
123
+
124
+
125
+
126
+ <span class="summary_desc"><div class='inline'>
127
+ <p>sets the default actions to be considered as part of riaction.</p>
128
+ </div></span>
129
+
130
+ </li>
131
+
132
+
133
+ <li class="public ">
134
+ <span class="summary_signature">
135
+
136
+ <a href="#retry_attempts_for_internal_error-class_method" title="retry_attempts_for_internal_error (class method)">+ (Object) <strong>retry_attempts_for_internal_error</strong> </a>
137
+
138
+
139
+
140
+ </span>
141
+
142
+
143
+
144
+
145
+
146
+
147
+
148
+
149
+ <span class="summary_desc"><div class='inline'>
150
+ <p>sets the default number of attempts to retry a action incase of an internal
151
+ error.</p>
152
+ </div></span>
153
+
154
+ </li>
155
+
156
+
157
+ <li class="public ">
158
+ <span class="summary_signature">
159
+
160
+ <a href="#riaction_options-class_method" title="riaction_options (class method)">+ (Object) <strong>riaction_options</strong> </a>
161
+
162
+
163
+
164
+ </span>
165
+
166
+
167
+
168
+
169
+
170
+
171
+
172
+
173
+ <span class="summary_desc"><div class='inline'></div></span>
174
+
175
+ </li>
176
+
177
+
178
+ <li class="public ">
179
+ <span class="summary_signature">
180
+
181
+ <a href="#supported_identifier_types-class_method" title="supported_identifier_types (class method)">+ (Object) <strong>supported_identifier_types</strong> </a>
182
+
183
+
184
+
185
+ </span>
186
+
187
+
188
+
189
+
190
+
191
+
192
+
193
+
194
+ <span class="summary_desc"><div class='inline'>
195
+ <p>sets the valid supported identifiers.</p>
196
+ </div></span>
197
+
198
+ </li>
199
+
200
+
201
+ </ul>
202
+
203
+
204
+
205
+
206
+ <div id="class_method_details" class="method_details_list">
207
+ <h2>Class Method Details</h2>
208
+
209
+
210
+ <div class="method_details first">
211
+ <p class="signature first" id="crud_actions-class_method">
212
+
213
+ + (<tt>Object</tt>) <strong>crud_actions</strong>
214
+
215
+
216
+
217
+ </p><div class="docstring">
218
+ <div class="discussion">
219
+
220
+ <p>sets the default actions to be considered as part of riaction</p>
221
+
222
+
223
+ </div>
224
+ </div>
225
+ <div class="tags">
226
+
227
+
228
+ </div><table class="source_code">
229
+ <tr>
230
+ <td>
231
+ <pre class="lines">
232
+
233
+
234
+ 4
235
+ 5
236
+ 6</pre>
237
+ </td>
238
+ <td>
239
+ <pre class="code"><span class="info file"># File 'lib/riaction/constants.rb', line 4</span>
240
+
241
+ <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_crud_actions'>crud_actions</span>
242
+ <span class='const'>Set</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span> <span class='lbracket'>[</span><span class='symbol'>:create</span><span class='comma'>,</span> <span class='symbol'>:update</span><span class='comma'>,</span> <span class='symbol'>:destroy</span><span class='rbracket'>]</span>
243
+ <span class='kw'>end</span></pre>
244
+ </td>
245
+ </tr>
246
+ </table>
247
+ </div>
248
+
249
+ <div class="method_details ">
250
+ <p class="signature " id="retry_attempts_for_internal_error-class_method">
251
+
252
+ + (<tt>Object</tt>) <strong>retry_attempts_for_internal_error</strong>
253
+
254
+
255
+
256
+ </p><div class="docstring">
257
+ <div class="discussion">
258
+
259
+ <p>sets the default number of attempts to retry a action incase of an internal
260
+ error</p>
261
+
262
+
263
+ </div>
264
+ </div>
265
+ <div class="tags">
266
+
267
+
268
+ </div><table class="source_code">
269
+ <tr>
270
+ <td>
271
+ <pre class="lines">
272
+
273
+
274
+ 9
275
+ 10
276
+ 11</pre>
277
+ </td>
278
+ <td>
279
+ <pre class="code"><span class="info file"># File 'lib/riaction/constants.rb', line 9</span>
280
+
281
+ <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_retry_attempts_for_internal_error'>retry_attempts_for_internal_error</span>
282
+ <span class='int'>3</span>
283
+ <span class='kw'>end</span></pre>
284
+ </td>
285
+ </tr>
286
+ </table>
287
+ </div>
288
+
289
+ <div class="method_details ">
290
+ <p class="signature " id="riaction_options-class_method">
291
+
292
+ + (<tt>Object</tt>) <strong>riaction_options</strong>
293
+
294
+
295
+
296
+ </p><table class="source_code">
297
+ <tr>
298
+ <td>
299
+ <pre class="lines">
300
+
301
+
302
+ 19
303
+ 20
304
+ 21
305
+ 22
306
+ 23</pre>
307
+ </td>
308
+ <td>
309
+ <pre class="code"><span class="info file"># File 'lib/riaction/constants.rb', line 19</span>
310
+
311
+ <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_riaction_options'>riaction_options</span>
312
+ <span class='lbrace'>{</span>
313
+ <span class='symbol'>:default_event_params</span> <span class='op'>=&gt;</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
314
+ <span class='rbrace'>}</span>
315
+ <span class='kw'>end</span></pre>
316
+ </td>
317
+ </tr>
318
+ </table>
319
+ </div>
320
+
321
+ <div class="method_details ">
322
+ <p class="signature " id="supported_identifier_types-class_method">
323
+
324
+ + (<tt>Object</tt>) <strong>supported_identifier_types</strong>
325
+
326
+
327
+
328
+ </p><div class="docstring">
329
+ <div class="discussion">
330
+
331
+ <p>sets the valid supported identifiers</p>
332
+
333
+
334
+ </div>
335
+ </div>
336
+ <div class="tags">
337
+
338
+ <h3>Returns:</h3>
339
+ <ul class="return">
340
+
341
+ <li>
342
+
343
+
344
+ <span class='type'></span>
345
+
346
+
347
+
348
+
349
+ <div class='inline'>
350
+ <p>returns an array of symbols</p>
351
+ </div>
352
+
353
+ </li>
354
+
355
+ </ul>
356
+
357
+ </div><table class="source_code">
358
+ <tr>
359
+ <td>
360
+ <pre class="lines">
361
+
362
+
363
+ 15
364
+ 16
365
+ 17</pre>
366
+ </td>
367
+ <td>
368
+ <pre class="code"><span class="info file"># File 'lib/riaction/constants.rb', line 15</span>
369
+
370
+ <span class='kw'>def</span> <span class='kw'>self</span><span class='period'>.</span><span class='id identifier rubyid_supported_identifier_types'>supported_identifier_types</span>
371
+ <span class='lbracket'>[</span><span class='symbol'>:email</span><span class='comma'>,</span><span class='symbol'>:username</span><span class='comma'>,</span><span class='symbol'>:custom</span><span class='comma'>,</span><span class='symbol'>:facebook</span><span class='comma'>,</span><span class='symbol'>:twitter</span><span class='comma'>,</span><span class='symbol'>:salesforce</span><span class='rbracket'>]</span>
372
+ <span class='kw'>end</span></pre>
373
+ </td>
374
+ </tr>
375
+ </table>
376
+ </div>
377
+
378
+ </div>
379
+
380
+ </div>
381
+
382
+ <div id="footer">
383
+ Generated on Tue Mar 6 22:00:20 2012 by
384
+ <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
385
+ 0.7.5 (ruby-1.9.3).
386
+ </div>
387
+
388
+ </body>
389
+ </html>