retreaverjs-rails 0.2.16 → 0.2.17

Sign up to get free protection for your applications and to get access to all the features.
Files changed (35) hide show
  1. checksums.yaml +4 -4
  2. data/lib/retreaverjs/compile.rb +8 -2
  3. data/lib/retreaverjs/rails/version.rb +1 -1
  4. data/package.json +12 -8
  5. data/vendor/assets/javascripts/retreaver.min.js +1 -1
  6. data/vendor/documentation/javascript/v1/Retreaver.Campaign.html +290 -331
  7. data/vendor/documentation/javascript/v1/Retreaver.Number.html +731 -843
  8. data/vendor/documentation/javascript/v1/Retreaver.html +134 -157
  9. data/vendor/documentation/javascript/v1/{retreaver_campaign.js.html → campaign.js.html} +17 -18
  10. data/vendor/documentation/javascript/v1/global.html +97 -119
  11. data/vendor/documentation/javascript/v1/index.html +8 -10
  12. data/vendor/documentation/javascript/v1/{retreaver_number.js.html → number.js.html} +7 -8
  13. data/vendor/documentation/javascript/v1/retreaver.js.html +7 -8
  14. data/vendor/documentation/javascript/v1/scripts/linenumber.js +11 -19
  15. data/vendor/documentation/javascript/v1/styles/jsdoc-default.css +129 -193
  16. data/vendor/documentation/javascript/v1/styles/prettify-tomorrow.css +1 -1
  17. metadata +5 -23
  18. data/vendor/documentation/javascript/v1/fonts/OpenSans-Bold-webfont.eot +0 -0
  19. data/vendor/documentation/javascript/v1/fonts/OpenSans-Bold-webfont.svg +0 -1830
  20. data/vendor/documentation/javascript/v1/fonts/OpenSans-Bold-webfont.woff +0 -0
  21. data/vendor/documentation/javascript/v1/fonts/OpenSans-BoldItalic-webfont.eot +0 -0
  22. data/vendor/documentation/javascript/v1/fonts/OpenSans-BoldItalic-webfont.svg +0 -1830
  23. data/vendor/documentation/javascript/v1/fonts/OpenSans-BoldItalic-webfont.woff +0 -0
  24. data/vendor/documentation/javascript/v1/fonts/OpenSans-Italic-webfont.eot +0 -0
  25. data/vendor/documentation/javascript/v1/fonts/OpenSans-Italic-webfont.svg +0 -1830
  26. data/vendor/documentation/javascript/v1/fonts/OpenSans-Italic-webfont.woff +0 -0
  27. data/vendor/documentation/javascript/v1/fonts/OpenSans-Light-webfont.eot +0 -0
  28. data/vendor/documentation/javascript/v1/fonts/OpenSans-Light-webfont.svg +0 -1831
  29. data/vendor/documentation/javascript/v1/fonts/OpenSans-Light-webfont.woff +0 -0
  30. data/vendor/documentation/javascript/v1/fonts/OpenSans-LightItalic-webfont.eot +0 -0
  31. data/vendor/documentation/javascript/v1/fonts/OpenSans-LightItalic-webfont.svg +0 -1835
  32. data/vendor/documentation/javascript/v1/fonts/OpenSans-LightItalic-webfont.woff +0 -0
  33. data/vendor/documentation/javascript/v1/fonts/OpenSans-Regular-webfont.eot +0 -0
  34. data/vendor/documentation/javascript/v1/fonts/OpenSans-Regular-webfont.svg +0 -1831
  35. data/vendor/documentation/javascript/v1/fonts/OpenSans-Regular-webfont.woff +0 -0
@@ -3,7 +3,7 @@
3
3
  <head>
4
4
  <meta charset="utf-8">
5
5
  <title>JSDoc: Namespace: Retreaver</title>
6
-
6
+
7
7
  <script src="scripts/prettify/prettify.js"> </script>
8
8
  <script src="scripts/prettify/lang-css.js"> </script>
9
9
  <!--[if lt IE 9]>
@@ -16,83 +16,77 @@
16
16
  <body>
17
17
 
18
18
  <div id="main">
19
-
19
+
20
20
  <h1 class="page-title">Namespace: Retreaver</h1>
21
-
22
21
 
23
-
22
+
24
23
 
25
24
 
26
25
 
27
26
  <section>
28
-
29
- <header>
30
27
 
31
- <h2>Retreaver</h2>
32
-
28
+ <header>
29
+ <h2>
30
+ Retreaver
31
+ </h2>
33
32
 
34
- </header>
33
+ </header>
35
34
 
36
35
  <article>
37
36
  <div class="container-overview">
38
37
 
38
+
39
+
40
+
39
41
 
40
-
41
42
 
42
-
43
-
44
43
  <dl class="details">
45
-
46
44
 
47
-
45
+
48
46
 
49
-
50
47
 
51
-
52
48
 
53
49
 
54
50
 
55
-
56
51
 
57
-
58
52
 
59
-
60
53
 
61
-
62
54
 
63
-
64
55
 
65
-
66
56
 
67
-
68
57
 
69
-
58
+
59
+
60
+
61
+
70
62
 
71
63
  <dt class="tag-source">Source:</dt>
72
64
  <dd class="tag-source"><ul class="dummy"><li>
73
65
  <a href="retreaver.js.html">retreaver.js</a>, <a href="retreaver.js.html#line2">line 2</a>
74
66
  </li></ul></dd>
75
67
 
76
-
77
68
 
78
-
79
69
 
80
-
70
+
71
+
72
+
81
73
 
82
74
  </dl>
83
75
 
84
-
76
+
85
77
 
86
78
 
87
79
  </div>
88
-
89
80
 
90
-
91
81
 
92
-
82
+
83
+
84
+
85
+
86
+
93
87
 
94
88
  <h3 class="subsection-title">Classes</h3>
95
-
89
+
96
90
  <dl>
97
91
  <dt><a href="Retreaver.Campaign.html">Campaign</a></dt>
98
92
  <dd></dd>
@@ -101,67 +95,62 @@
101
95
  <dd></dd>
102
96
  </dl>
103
97
 
104
-
105
-
106
-
107
98
 
108
-
109
99
 
110
-
100
+
101
+
102
+
111
103
 
112
104
  <h3 class="subsection-title">Methods</h3>
113
-
114
105
 
106
+ <dl>
115
107
 
116
-
108
+ <dt>
109
+ <h4 class="name" id="configure"><span class="type-signature">&lt;static> </span>configure<span class="signature">(options)</span><span class="type-signature"></span></h4>
117
110
 
118
-
119
- <h4 class="name" id=".configure"><span class="type-signature">(static) </span>configure<span class="signature">(options)</span><span class="type-signature"></span></h4>
120
-
111
+
112
+ </dt>
113
+ <dd>
114
+
115
+
116
+ <div class="description">
117
+ Configure the retreaver client library.
118
+ </div>
121
119
 
122
120
 
123
-
124
-
125
- <div class="description">
126
- Configure the retreaver client library.
127
- </div>
128
-
129
-
130
-
131
-
132
-
133
-
134
-
135
-
136
-
137
- <h5>Parameters:</h5>
138
121
 
122
+
123
+
124
+
125
+
126
+ <h5>Parameters:</h5>
127
+
139
128
 
140
129
  <table class="params">
141
130
  <thead>
142
- <tr>
143
-
144
- <th>Name</th>
145
-
146
-
147
- <th>Type</th>
148
-
149
-
150
-
151
-
152
-
153
- <th class="last">Description</th>
154
- </tr>
155
- </thead>
156
-
157
- <tbody>
158
-
159
-
131
+ <tr>
132
+
133
+ <th>Name</th>
134
+
135
+
136
+ <th>Type</th>
137
+
138
+
139
+
140
+
141
+
142
+ <th class="last">Description</th>
143
+ </tr>
144
+ </thead>
145
+
146
+ <tbody>
147
+
148
+
160
149
  <tr>
161
150
 
162
151
  <td class="name"><code>options</code></td>
163
152
 
164
-
153
+
165
154
  <td class="type">
166
155
 
167
156
 
@@ -170,40 +159,40 @@
170
159
 
171
160
 
172
161
  </td>
173
-
174
162
 
175
-
176
163
 
177
-
164
+
165
+
166
+
178
167
  <td class="description last">
179
168
  <h6>Properties</h6>
180
169
 
181
170
 
182
171
  <table class="params">
183
172
  <thead>
184
- <tr>
185
-
186
- <th>Name</th>
187
-
188
-
189
- <th>Type</th>
190
-
191
-
192
-
193
-
194
-
195
- <th class="last">Description</th>
196
- </tr>
197
- </thead>
198
-
199
- <tbody>
200
-
201
-
173
+ <tr>
174
+
175
+ <th>Name</th>
176
+
177
+
178
+ <th>Type</th>
179
+
180
+
181
+
182
+
183
+
184
+ <th class="last">Description</th>
185
+ </tr>
186
+ </thead>
187
+
188
+ <tbody>
189
+
190
+
202
191
  <tr>
203
192
 
204
193
  <td class="name"><code>host</code></td>
205
194
 
206
-
195
+
207
196
  <td class="type">
208
197
 
209
198
 
@@ -212,21 +201,21 @@
212
201
 
213
202
 
214
203
  </td>
215
-
216
204
 
217
-
218
205
 
219
-
206
+
207
+
208
+
220
209
  <td class="description last">Retreaver API Host</td>
221
210
  </tr>
222
-
223
-
224
-
211
+
212
+
213
+
225
214
  <tr>
226
215
 
227
216
  <td class="name"><code>prefix</code></td>
228
217
 
229
-
218
+
230
219
  <td class="type">
231
220
 
232
221
 
@@ -235,99 +224,87 @@
235
224
 
236
225
 
237
226
  </td>
238
-
239
227
 
240
-
241
228
 
242
-
229
+
230
+
231
+
243
232
  <td class="description last">http or https</td>
244
233
  </tr>
245
-
246
-
247
- </tbody>
234
+
235
+
236
+ </tbody>
248
237
  </table>
249
-
250
238
  </td>
251
239
  </tr>
252
-
253
-
254
- </tbody>
240
+
241
+
242
+ </tbody>
255
243
  </table>
256
-
257
-
258
-
259
-
260
-
261
-
244
+
245
+
246
+
262
247
  <dl class="details">
263
-
264
248
 
265
-
249
+
266
250
 
267
-
268
251
 
269
-
270
252
 
271
253
 
272
254
 
273
-
274
255
 
275
-
276
256
 
277
-
278
257
 
279
-
280
258
 
281
-
282
259
 
283
-
284
260
 
285
-
286
261
 
287
-
262
+
263
+
264
+
265
+
288
266
 
289
267
  <dt class="tag-source">Source:</dt>
290
268
  <dd class="tag-source"><ul class="dummy"><li>
291
269
  <a href="retreaver.js.html">retreaver.js</a>, <a href="retreaver.js.html#line7">line 7</a>
292
270
  </li></ul></dd>
293
271
 
294
-
295
272
 
296
-
297
273
 
298
-
274
+
275
+
276
+
299
277
 
300
278
  </dl>
301
279
 
280
+
281
+
302
282
 
283
+
303
284
 
304
-
305
-
306
-
307
-
308
-
309
-
310
-
311
-
312
-
313
-
314
-
315
-
316
- <h5>Example</h5>
317
285
 
286
+
287
+
288
+
289
+
290
+
291
+
292
+ <h5>Example</h5>
293
+
318
294
  <pre class="prettyprint"><code>Retreaver.configure({host: 'api.rtvrapi.com', prefix: 'https'});</code></pre>
319
295
 
320
-
321
-
322
-
323
296
 
297
+ </dd>
324
298
 
299
+ </dl>
300
+
301
+
302
+
325
303
 
326
-
327
304
 
328
305
  </article>
329
306
 
330
- </section>
307
+ </section>
331
308
 
332
309
 
333
310
 
@@ -335,13 +312,13 @@
335
312
  </div>
336
313
 
337
314
  <nav>
338
- <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Retreaver.Campaign.html">Campaign</a></li><li><a href="Retreaver.Number.html">Number</a></li></ul><h3>Namespaces</h3><ul><li><a href="Retreaver.html">Retreaver</a></li></ul><h3><a href="global.html">Global</a></h3>
315
+ <h2><a href="index.html">Index</a></h2><h3>Classes</h3><ul><li><a href="Retreaver.Campaign.html">Campaign</a></li><li><a href="Retreaver.Number.html">Number</a></li></ul><h3>Namespaces</h3><ul><li><a href="Retreaver.html">Retreaver</a></li></ul><h3><a href="global.html">Global</a></h3>
339
316
  </nav>
340
317
 
341
- <br class="clear">
318
+ <br clear="both">
342
319
 
343
320
  <footer>
344
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.3</a> on Thu Feb 16 2017 17:35:24 GMT-0500 (EST)
321
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.2.2</a> on Thu Dec 01 2022 15:35:46 GMT+0200 (EET)
345
322
  </footer>
346
323
 
347
324
  <script> prettyPrint(); </script>
@@ -3,7 +3,7 @@
3
3
  <head>
4
4
  <meta charset="utf-8">
5
5
  <title>JSDoc: Source: retreaver/campaign.js</title>
6
-
6
+
7
7
  <script src="scripts/prettify/prettify.js"> </script>
8
8
  <script src="scripts/prettify/lang-css.js"> </script>
9
9
  <!--[if lt IE 9]>
@@ -16,17 +16,16 @@
16
16
  <body>
17
17
 
18
18
  <div id="main">
19
-
19
+
20
20
  <h1 class="page-title">Source: retreaver/campaign.js</h1>
21
-
22
21
 
23
-
22
+
24
23
 
25
24
 
26
25
 
27
26
  <section>
28
27
  <article>
29
- <pre class="prettyprint source linenums"><code>(function() {
28
+ <pre class="prettyprint source"><code>(function() {
30
29
  // Dependencies
31
30
  var RequestNumber = Retreaver.Base.RequestNumber;
32
31
  /**
@@ -45,8 +44,8 @@
45
44
  }
46
45
 
47
46
  function find_and_replace_number(replacement_numbers) {
48
- for (i = 0; i &lt; replacement_numbers.length; i++) {
49
- rn = replacement_numbers[i];
47
+ for (var i = 0; i &lt; replacement_numbers.length; i++) {
48
+ var rn = replacement_numbers[i];
50
49
 
51
50
  Retreaver.Vendor.findAndReplaceDOMText(document.getElementsByTagName('body')[0], {
52
51
  find: rn['find'],
@@ -54,14 +53,14 @@
54
53
  });
55
54
 
56
55
  var links = document.getElementsByTagName('a');
57
- for (j = 0; j &lt; links.length; j++) {
58
- link = links[j];
59
- href = link.getAttribute('href');
56
+ for (var j = 0; j &lt; links.length; j++) {
57
+ var link = links[j];
58
+ var href = link.getAttribute('href');
60
59
 
61
60
  if (href !== null) {
62
- match = href.match(/tel:(.*)/);
63
- if (match &amp;&amp; match[1] === rn['find']) {
64
- link.setAttribute('href', 'tel:' + rn['replace_with']);
61
+ var match = href.match(/^(tel:|clk[a-z]\/tel\/)(.*)/);
62
+ if (match && match[2] === rn['find']) {
63
+ link.setAttribute('href', match[1] + rn['replace_with']);
65
64
  }
66
65
  }
67
66
  }
@@ -114,7 +113,7 @@
114
113
  // request the number
115
114
  new RequestNumber(self.get('campaign_key', 'number_matching_tags')).perform(function(data) {
116
115
  // did retreaver return a valid number?
117
- if (typeof(data) !== 'undefined' &amp;&amp; typeof(data.number) !== 'undefined' &amp;&amp; data.number !== '') {
116
+ if (typeof(data) !== 'undefined' && typeof(data.number) !== 'undefined' && data.number !== '') {
118
117
  // initialize number
119
118
  var number = new Retreaver.Number(data.number);
120
119
 
@@ -189,7 +188,7 @@
189
188
  if (typeof(tags) === 'string') {
190
189
  tags = Retreaver.Number.extract_tags_from_string(tags);
191
190
  }
192
- if (tags &amp;&amp; (typeof tags === "object") &amp;&amp; !(tags instanceof Array)) {
191
+ if (tags && (typeof tags === "object") && !(tags instanceof Array)) {
193
192
  return tags
194
193
  } else {
195
194
  throw "ArgumentError: Expected number_matching_tags to be an object. eg: {tag: 'value'}";
@@ -211,13 +210,13 @@
211
210
  </div>
212
211
 
213
212
  <nav>
214
- <h2><a href="index.html">Home</a></h2><h3>Classes</h3><ul><li><a href="Retreaver.Campaign.html">Campaign</a></li><li><a href="Retreaver.Number.html">Number</a></li></ul><h3>Namespaces</h3><ul><li><a href="Retreaver.html">Retreaver</a></li></ul><h3><a href="global.html">Global</a></h3>
213
+ <h2><a href="index.html">Index</a></h2><h3>Classes</h3><ul><li><a href="Retreaver.Campaign.html">Campaign</a></li><li><a href="Retreaver.Number.html">Number</a></li></ul><h3>Namespaces</h3><ul><li><a href="Retreaver.html">Retreaver</a></li></ul><h3><a href="global.html">Global</a></h3>
215
214
  </nav>
216
215
 
217
- <br class="clear">
216
+ <br clear="both">
218
217
 
219
218
  <footer>
220
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.4.3</a> on Thu Feb 16 2017 17:35:24 GMT-0500 (EST)
219
+ Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.2.2</a> on Thu Dec 01 2022 15:35:46 GMT+0200 (EET)
221
220
  </footer>
222
221
 
223
222
  <script> prettyPrint(); </script>