retreaverjs-rails 0.2.10 → 0.2.11

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/rails/version.rb +1 -1
  3. data/package.json +1 -1
  4. data/src/retreaver/campaign.js +1 -1
  5. data/vendor/assets/javascripts/retreaver.js +1 -1
  6. data/vendor/documentation/javascript/v1/Retreaver.Campaign.html +383 -263
  7. data/vendor/documentation/javascript/v1/Retreaver.Number.html +910 -644
  8. data/vendor/documentation/javascript/v1/Retreaver.html +157 -134
  9. data/vendor/documentation/javascript/v1/fonts/OpenSans-Bold-webfont.eot +0 -0
  10. data/vendor/documentation/javascript/v1/fonts/OpenSans-Bold-webfont.svg +1830 -0
  11. data/vendor/documentation/javascript/v1/fonts/OpenSans-Bold-webfont.woff +0 -0
  12. data/vendor/documentation/javascript/v1/fonts/OpenSans-BoldItalic-webfont.eot +0 -0
  13. data/vendor/documentation/javascript/v1/fonts/OpenSans-BoldItalic-webfont.svg +1830 -0
  14. data/vendor/documentation/javascript/v1/fonts/OpenSans-BoldItalic-webfont.woff +0 -0
  15. data/vendor/documentation/javascript/v1/fonts/OpenSans-Italic-webfont.eot +0 -0
  16. data/vendor/documentation/javascript/v1/fonts/OpenSans-Italic-webfont.svg +1830 -0
  17. data/vendor/documentation/javascript/v1/fonts/OpenSans-Italic-webfont.woff +0 -0
  18. data/vendor/documentation/javascript/v1/fonts/OpenSans-Light-webfont.eot +0 -0
  19. data/vendor/documentation/javascript/v1/fonts/OpenSans-Light-webfont.svg +1831 -0
  20. data/vendor/documentation/javascript/v1/fonts/OpenSans-Light-webfont.woff +0 -0
  21. data/vendor/documentation/javascript/v1/fonts/OpenSans-LightItalic-webfont.eot +0 -0
  22. data/vendor/documentation/javascript/v1/fonts/OpenSans-LightItalic-webfont.svg +1835 -0
  23. data/vendor/documentation/javascript/v1/fonts/OpenSans-LightItalic-webfont.woff +0 -0
  24. data/vendor/documentation/javascript/v1/fonts/OpenSans-Regular-webfont.eot +0 -0
  25. data/vendor/documentation/javascript/v1/fonts/OpenSans-Regular-webfont.svg +1831 -0
  26. data/vendor/documentation/javascript/v1/fonts/OpenSans-Regular-webfont.woff +0 -0
  27. data/vendor/documentation/javascript/v1/global.html +119 -97
  28. data/vendor/documentation/javascript/v1/index.html +10 -8
  29. data/vendor/documentation/javascript/v1/retreaver.js.html +8 -7
  30. data/vendor/documentation/javascript/v1/{campaign.js.html → retreaver_campaign.js.html} +39 -26
  31. data/vendor/documentation/javascript/v1/{number.js.html → retreaver_number.js.html} +24 -7
  32. data/vendor/documentation/javascript/v1/scripts/linenumber.js +19 -11
  33. data/vendor/documentation/javascript/v1/styles/jsdoc-default.css +193 -129
  34. data/vendor/documentation/javascript/v1/styles/prettify-tomorrow.css +1 -1
  35. metadata +21 -3
@@ -3,7 +3,7 @@
3
3
  <head>
4
4
  <meta charset="utf-8">
5
5
  <title>JSDoc: Source: retreaver/number.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,16 +16,17 @@
16
16
  <body>
17
17
 
18
18
  <div id="main">
19
-
19
+
20
20
  <h1 class="page-title">Source: retreaver/number.js</h1>
21
+
21
22
 
22
-
23
+
23
24
 
24
25
 
25
26
 
26
27
  <section>
27
28
  <article>
28
- <pre class="prettyprint source"><code>(function () {
29
+ <pre class="prettyprint source linenums"><code>(function () {
29
30
  // Dependencies
30
31
  var Base = Retreaver.Base;
31
32
  /**
@@ -67,6 +68,22 @@
67
68
  self.post_data('numbers/tag', tags_payload(tags), callback);
68
69
  };
69
70
 
71
+ /**
72
+ * Replace tags on a number. Any tags that already exist on the number that match the given keys will be
73
+ * removed. This can be used instead of calling remove_tags and then add_tags.
74
+ * @memberOf Retreaver.Number
75
+ * @function replace_tags
76
+ * @instance
77
+ * @param {Object} tags - A collection of tags {key: 'value', tag2: 'value2'}
78
+ * @param {Function} callback - Callback that will be fired after request.
79
+ * @throws Will throw an error if attempting to modify tags on a number that doesn't belong to a number pool
80
+ * with per-visitor numbers enabled.
81
+ */
82
+ self.replace_tags = function (tags, callback) {
83
+ ensure_is_per_visitor();
84
+ self.post_data('numbers/replace_tags', tags_payload(tags), callback);
85
+ };
86
+
70
87
  /**
71
88
  * Remove tags from a number.
72
89
  * @memberOf Retreaver.Number
@@ -243,13 +260,13 @@
243
260
  </div>
244
261
 
245
262
  <nav>
246
- <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>
263
+ <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>
247
264
  </nav>
248
265
 
249
- <br clear="both">
266
+ <br class="clear">
250
267
 
251
268
  <footer>
252
- Documentation generated by <a href="https://github.com/jsdoc3/jsdoc">JSDoc 3.2.2</a> on Thu Oct 27 2016 22:04:38 GMT-0400 (EDT)
269
+ 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)
253
270
  </footer>
254
271
 
255
272
  <script> prettyPrint(); </script>
@@ -1,17 +1,25 @@
1
+ /*global document */
1
2
  (function() {
2
- var counter = 0;
3
- var numbered;
4
- var source = document.getElementsByClassName('prettyprint source');
3
+ var source = document.getElementsByClassName('prettyprint source linenums');
4
+ var i = 0;
5
+ var lineNumber = 0;
6
+ var lineId;
7
+ var lines;
8
+ var totalLines;
9
+ var anchorHash;
5
10
 
6
11
  if (source && source[0]) {
7
- source = source[0].getElementsByTagName('code')[0];
12
+ anchorHash = document.location.hash.substring(1);
13
+ lines = source[0].getElementsByTagName('li');
14
+ totalLines = lines.length;
8
15
 
9
- numbered = source.innerHTML.split('\n');
10
- numbered = numbered.map(function(item) {
11
- counter++;
12
- return '<span id="line' + counter + '" class="line"></span>' + item;
13
- });
14
-
15
- source.innerHTML = numbered.join('\n');
16
+ for (; i < totalLines; i++) {
17
+ lineNumber++;
18
+ lineId = 'line' + lineNumber;
19
+ lines[i].id = lineId;
20
+ if (lineId === anchorHash) {
21
+ lines[i].className += ' selected';
22
+ }
23
+ }
16
24
  }
17
25
  })();
@@ -1,94 +1,127 @@
1
+ @font-face {
2
+ font-family: 'Open Sans';
3
+ font-weight: normal;
4
+ font-style: normal;
5
+ src: url('../fonts/OpenSans-Regular-webfont.eot');
6
+ src:
7
+ local('Open Sans'),
8
+ local('OpenSans'),
9
+ url('../fonts/OpenSans-Regular-webfont.eot?#iefix') format('embedded-opentype'),
10
+ url('../fonts/OpenSans-Regular-webfont.woff') format('woff'),
11
+ url('../fonts/OpenSans-Regular-webfont.svg#open_sansregular') format('svg');
12
+ }
13
+
14
+ @font-face {
15
+ font-family: 'Open Sans Light';
16
+ font-weight: normal;
17
+ font-style: normal;
18
+ src: url('../fonts/OpenSans-Light-webfont.eot');
19
+ src:
20
+ local('Open Sans Light'),
21
+ local('OpenSans Light'),
22
+ url('../fonts/OpenSans-Light-webfont.eot?#iefix') format('embedded-opentype'),
23
+ url('../fonts/OpenSans-Light-webfont.woff') format('woff'),
24
+ url('../fonts/OpenSans-Light-webfont.svg#open_sanslight') format('svg');
25
+ }
26
+
1
27
  html
2
28
  {
3
29
  overflow: auto;
4
30
  background-color: #fff;
31
+ font-size: 14px;
5
32
  }
6
33
 
7
34
  body
8
35
  {
9
- font: 14px "DejaVu Sans Condensed", "Liberation Sans", "Nimbus Sans L", Tahoma, Geneva, "Helvetica Neue", Helvetica, Arial, sans serif;
10
- line-height: 130%;
11
- color: #000;
12
- background-color: #fff;
13
- }
14
-
15
- a {
16
- color: #444;
36
+ font-family: 'Open Sans', sans-serif;
37
+ line-height: 1.5;
38
+ color: #4d4e53;
39
+ background-color: white;
17
40
  }
18
41
 
19
- a:visited {
20
- color: #444;
42
+ a, a:visited, a:active {
43
+ color: #0095dd;
44
+ text-decoration: none;
21
45
  }
22
46
 
23
- a:active {
24
- color: #444;
47
+ a:hover {
48
+ text-decoration: underline;
25
49
  }
26
50
 
27
51
  header
28
52
  {
29
- display: block;
30
- padding: 6px 4px;
53
+ display: block;
54
+ padding: 0px 4px;
55
+ }
56
+
57
+ tt, code, kbd, samp {
58
+ font-family: Consolas, Monaco, 'Andale Mono', monospace;
31
59
  }
32
60
 
33
61
  .class-description {
34
- font-style: italic;
35
- font-family: Palatino, 'Palatino Linotype', serif;
36
- font-size: 130%;
37
- line-height: 140%;
38
- margin-bottom: 1em;
39
- margin-top: 1em;
62
+ font-size: 130%;
63
+ line-height: 140%;
64
+ margin-bottom: 1em;
65
+ margin-top: 1em;
66
+ }
67
+
68
+ .class-description:empty {
69
+ margin: 0;
40
70
  }
41
71
 
42
72
  #main {
43
73
  float: left;
44
- width: 100%;
74
+ width: 70%;
75
+ }
76
+
77
+ article dl {
78
+ margin-bottom: 40px;
45
79
  }
46
80
 
47
81
  section
48
82
  {
49
- display: block;
50
-
51
- background-color: #fff;
52
- padding: 12px 24px;
83
+ display: block;
84
+ background-color: #fff;
85
+ padding: 12px 24px;
53
86
  border-bottom: 1px solid #ccc;
54
- margin-right: 240px;
87
+ margin-right: 30px;
55
88
  }
56
89
 
57
90
  .variation {
58
91
  display: none;
59
92
  }
60
93
 
61
- .optional:after {
62
- content: "opt";
63
- font-size: 60%;
64
- color: #aaa;
65
- font-style: italic;
66
- font-weight: lighter;
94
+ .signature-attributes {
95
+ font-size: 60%;
96
+ color: #aaa;
97
+ font-style: italic;
98
+ font-weight: lighter;
67
99
  }
68
100
 
69
101
  nav
70
102
  {
71
- display: block;
72
- float: left;
73
- margin-left: -230px;
103
+ display: block;
104
+ float: right;
74
105
  margin-top: 28px;
75
- width: 220px;
106
+ width: 30%;
107
+ box-sizing: border-box;
76
108
  border-left: 1px solid #ccc;
77
- padding-left: 9px;
109
+ padding-left: 16px;
78
110
  }
79
111
 
80
112
  nav ul {
81
113
  font-family: 'Lucida Grande', 'Lucida Sans Unicode', arial, sans-serif;
82
114
  font-size: 100%;
83
115
  line-height: 17px;
84
- padding:0;
85
- margin:0;
86
- list-style-type:none;
116
+ padding: 0;
117
+ margin: 0;
118
+ list-style-type: none;
87
119
  }
88
120
 
89
- nav h2 a, nav h2 a:visited {
90
- color: #A35A00;
91
- text-decoration: none;
121
+ nav ul a, nav ul a:visited, nav ul a:active {
122
+ font-family: Consolas, Monaco, 'Andale Mono', monospace;
123
+ line-height: 18px;
124
+ color: #4D4E53;
92
125
  }
93
126
 
94
127
  nav h3 {
@@ -99,18 +132,6 @@ nav li {
99
132
  margin-top: 6px;
100
133
  }
101
134
 
102
- nav a {
103
- color: #5C5954;
104
- }
105
-
106
- nav a:visited {
107
- color: #5C5954;
108
- }
109
-
110
- nav a:active {
111
- color: #5C5954;
112
- }
113
-
114
135
  footer {
115
136
  display: block;
116
137
  padding: 6px;
@@ -119,57 +140,84 @@ footer {
119
140
  font-size: 90%;
120
141
  }
121
142
 
143
+ h1, h2, h3, h4 {
144
+ font-weight: 200;
145
+ margin: 0;
146
+ }
147
+
122
148
  h1
123
149
  {
124
- font-size: 200%;
125
- font-weight: bold;
126
- letter-spacing: -0.01em;
127
- margin: 6px 0 9px 0;
150
+ font-family: 'Open Sans Light', sans-serif;
151
+ font-size: 48px;
152
+ letter-spacing: -2px;
153
+ margin: 12px 24px 20px;
128
154
  }
129
155
 
130
- h2
156
+ h2, h3.subsection-title
131
157
  {
132
- font-size: 170%;
133
- font-weight: bold;
134
- letter-spacing: -0.01em;
135
- margin: 6px 0 3px 0;
158
+ font-size: 30px;
159
+ font-weight: 700;
160
+ letter-spacing: -1px;
161
+ margin-bottom: 12px;
136
162
  }
137
163
 
138
164
  h3
139
165
  {
140
- font-size: 150%;
141
- font-weight: bold;
142
- letter-spacing: -0.01em;
143
- margin-top: 16px;
144
- margin: 6px 0 3px 0;
166
+ font-size: 24px;
167
+ letter-spacing: -0.5px;
168
+ margin-bottom: 12px;
145
169
  }
146
170
 
147
171
  h4
148
172
  {
149
- font-size: 130%;
150
- font-weight: bold;
151
- letter-spacing: -0.01em;
152
- margin-top: 16px;
153
- margin: 18px 0 3px 0;
154
- color: #A35A00;
173
+ font-size: 18px;
174
+ letter-spacing: -0.33px;
175
+ margin-bottom: 12px;
176
+ color: #4d4e53;
155
177
  }
156
178
 
157
179
  h5, .container-overview .subsection-title
158
180
  {
159
- font-size: 120%;
160
- font-weight: bold;
161
- letter-spacing: -0.01em;
162
- margin: 8px 0 3px -16px;
181
+ font-size: 120%;
182
+ font-weight: bold;
183
+ letter-spacing: -0.01em;
184
+ margin: 8px 0 3px 0;
163
185
  }
164
186
 
165
187
  h6
166
188
  {
167
- font-size: 100%;
168
- letter-spacing: -0.01em;
169
- margin: 6px 0 3px 0;
170
- font-style: italic;
189
+ font-size: 100%;
190
+ letter-spacing: -0.01em;
191
+ margin: 6px 0 3px 0;
192
+ font-style: italic;
171
193
  }
172
194
 
195
+ table
196
+ {
197
+ border-spacing: 0;
198
+ border: 0;
199
+ border-collapse: collapse;
200
+ }
201
+
202
+ td, th
203
+ {
204
+ border: 1px solid #ddd;
205
+ margin: 0px;
206
+ text-align: left;
207
+ vertical-align: top;
208
+ padding: 4px 6px;
209
+ display: table-cell;
210
+ }
211
+
212
+ thead tr
213
+ {
214
+ background-color: #ddd;
215
+ font-weight: bold;
216
+ }
217
+
218
+ th { border-right: 1px solid #aaa; }
219
+ tr > th:last-child { border-right: 1px solid #ddd; }
220
+
173
221
  .ancestors { color: #999; }
174
222
  .ancestors a
175
223
  {
@@ -177,10 +225,15 @@ h6
177
225
  text-decoration: none;
178
226
  }
179
227
 
228
+ .clear
229
+ {
230
+ clear: both;
231
+ }
232
+
180
233
  .important
181
234
  {
182
- font-weight: bold;
183
- color: #950B02;
235
+ font-weight: bold;
236
+ color: #950B02;
184
237
  }
185
238
 
186
239
  .yes-def {
@@ -192,12 +245,12 @@ h6
192
245
  }
193
246
 
194
247
  .name, .signature {
195
- font-family: Consolas, "Lucida Console", Monaco, monospace;
248
+ font-family: Consolas, Monaco, 'Andale Mono', monospace;
196
249
  }
197
250
 
198
251
  .details { margin-top: 14px; border-left: 2px solid #DDD; }
199
- .details dt { width:100px; float:left; padding-left: 10px; padding-top: 6px; }
200
- .details dd { margin-left: 50px; }
252
+ .details dt { width: 120px; float: left; padding-left: 10px; padding-top: 6px; }
253
+ .details dd { margin-left: 70px; }
201
254
  .details ul { margin: 0; }
202
255
  .details ul { list-style-type: none; }
203
256
  .details li { margin-left: 30px; padding-top: 6px; }
@@ -205,23 +258,21 @@ h6
205
258
  .details .object-value { padding-top: 0; }
206
259
 
207
260
  .description {
208
- margin-bottom: 1em;
209
- margin-left: -16px;
210
- margin-top: 1em;
261
+ margin-bottom: 1em;
262
+ margin-top: 1em;
211
263
  }
212
264
 
213
265
  .code-caption
214
266
  {
215
- font-style: italic;
216
- font-family: Palatino, 'Palatino Linotype', serif;
217
- font-size: 107%;
218
- margin: 0;
267
+ font-style: italic;
268
+ font-size: 107%;
269
+ margin: 0;
219
270
  }
220
271
 
221
272
  .prettyprint
222
273
  {
223
- border: 1px solid #ddd;
224
- width: 80%;
274
+ border: 1px solid #ddd;
275
+ width: 80%;
225
276
  overflow: auto;
226
277
  }
227
278
 
@@ -231,15 +282,13 @@ h6
231
282
 
232
283
  .prettyprint code
233
284
  {
234
- font-family: Consolas, 'Lucida Console', Monaco, monospace;
235
- font-size: 100%;
236
- line-height: 18px;
237
- display: block;
238
- padding: 4px 12px;
239
- margin: 0;
240
- background-color: #fff;
241
- color: #000;
242
- border-left: 3px #ddd solid;
285
+ font-size: 100%;
286
+ line-height: 18px;
287
+ display: block;
288
+ padding: 4px 12px;
289
+ margin: 0;
290
+ background-color: #fff;
291
+ color: #4D4E53;
243
292
  }
244
293
 
245
294
  .prettyprint code span.line
@@ -247,43 +296,58 @@ h6
247
296
  display: inline-block;
248
297
  }
249
298
 
250
- .params, .props
299
+ .prettyprint.linenums
251
300
  {
252
- border-spacing: 0;
253
- border: 0;
254
- border-collapse: collapse;
301
+ padding-left: 70px;
302
+ -webkit-user-select: none;
303
+ -moz-user-select: none;
304
+ -ms-user-select: none;
305
+ user-select: none;
255
306
  }
256
307
 
257
- .params .name, .props .name, .name code {
258
- color: #A35A00;
259
- font-family: Consolas, 'Lucida Console', Monaco, monospace;
260
- font-size: 100%;
308
+ .prettyprint.linenums ol
309
+ {
310
+ padding-left: 0;
311
+ }
312
+
313
+ .prettyprint.linenums li
314
+ {
315
+ border-left: 3px #ddd solid;
261
316
  }
262
317
 
263
- .params td, .params th, .props td, .props th
318
+ .prettyprint.linenums li.selected,
319
+ .prettyprint.linenums li.selected *
264
320
  {
265
- border: 1px solid #ddd;
266
- margin: 0px;
267
- text-align: left;
268
- vertical-align: top;
269
- padding: 4px 6px;
270
- display: table-cell;
321
+ background-color: lightyellow;
271
322
  }
272
323
 
273
- .params thead tr, .props thead tr
324
+ .prettyprint.linenums li *
274
325
  {
275
- background-color: #ddd;
276
- font-weight: bold;
326
+ -webkit-user-select: text;
327
+ -moz-user-select: text;
328
+ -ms-user-select: text;
329
+ user-select: text;
277
330
  }
278
331
 
279
- .params .params thead tr, .props .props thead tr
332
+ .params .name, .props .name, .name code {
333
+ color: #4D4E53;
334
+ font-family: Consolas, Monaco, 'Andale Mono', monospace;
335
+ font-size: 100%;
336
+ }
337
+
338
+ .params td.description > p:first-child,
339
+ .props td.description > p:first-child
280
340
  {
281
- background-color: #fff;
282
- font-weight: bold;
341
+ margin-top: 0;
342
+ padding-top: 0;
283
343
  }
284
344
 
285
- .params th, .props th { border-right: 1px solid #aaa; }
286
- .params thead .last, .props thead .last { border-right: 1px solid #ddd; }
345
+ .params td.description > p:last-child,
346
+ .props td.description > p:last-child
347
+ {
348
+ margin-bottom: 0;
349
+ padding-bottom: 0;
350
+ }
287
351
 
288
352
  .disabled {
289
353
  color: #454545;