prismic.io 1.4.3 → 1.4.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/docs/Prismic/API/BadPrismicResponseError.html +44 -43
- data/docs/Prismic/API/OAuth.html +99 -98
- data/docs/Prismic/API/PrismicWSAuthError.html +67 -66
- data/docs/Prismic/API/PrismicWSConnectionError.html +51 -50
- data/docs/Prismic/API.html +434 -280
- data/docs/Prismic/BasicNullCache.html +49 -48
- data/docs/Prismic/DefaultHTTPClient.html +85 -79
- data/docs/Prismic/Document.html +279 -83
- data/docs/Prismic/Error.html +52 -51
- data/docs/Prismic/Experiment.html +60 -59
- data/docs/Prismic/Experiments.html +61 -60
- data/docs/Prismic/Field.html +54 -53
- data/docs/Prismic/Form.html +70 -69
- data/docs/Prismic/Fragments/Color.html +60 -59
- data/docs/Prismic/Fragments/Date.html +52 -51
- data/docs/Prismic/Fragments/DocumentLink.html +78 -76
- data/docs/Prismic/Fragments/Embed.html +60 -59
- data/docs/Prismic/Fragments/FileLink.html +58 -57
- data/docs/Prismic/Fragments/Fragment.html +49 -48
- data/docs/Prismic/Fragments/GeoPoint.html +54 -53
- data/docs/Prismic/Fragments/Group.html +65 -63
- data/docs/Prismic/Fragments/GroupDocument.html +57 -55
- data/docs/Prismic/Fragments/Image/View.html +64 -63
- data/docs/Prismic/Fragments/Image/ViewDoesNotExistException.html +44 -43
- data/docs/Prismic/Fragments/Image.html +69 -68
- data/docs/Prismic/Fragments/ImageLink.html +50 -49
- data/docs/Prismic/Fragments/Link.html +53 -52
- data/docs/Prismic/Fragments/Multiple.html +58 -57
- data/docs/Prismic/Fragments/Number.html +54 -53
- data/docs/Prismic/Fragments/Select.html +52 -51
- data/docs/Prismic/Fragments/Separator.html +54 -53
- data/docs/Prismic/Fragments/Slice.html +58 -57
- data/docs/Prismic/Fragments/SliceZone.html +54 -53
- data/docs/Prismic/Fragments/StructuredText/Block/Embed.html +52 -51
- data/docs/Prismic/Fragments/StructuredText/Block/Heading.html +52 -51
- data/docs/Prismic/Fragments/StructuredText/Block/Image.html +66 -65
- data/docs/Prismic/Fragments/StructuredText/Block/ListItem.html +52 -51
- data/docs/Prismic/Fragments/StructuredText/Block/Paragraph.html +47 -46
- data/docs/Prismic/Fragments/StructuredText/Block/Preformatted.html +47 -46
- data/docs/Prismic/Fragments/StructuredText/Block/Text.html +68 -64
- data/docs/Prismic/Fragments/StructuredText/Block.html +47 -46
- data/docs/Prismic/Fragments/StructuredText/BlockGroup.html +54 -53
- data/docs/Prismic/Fragments/StructuredText/Span/Em.html +47 -46
- data/docs/Prismic/Fragments/StructuredText/Span/Hyperlink.html +53 -52
- data/docs/Prismic/Fragments/StructuredText/Span/Label.html +52 -51
- data/docs/Prismic/Fragments/StructuredText/Span/Strong.html +47 -46
- data/docs/Prismic/Fragments/StructuredText/Span.html +52 -51
- data/docs/Prismic/Fragments/StructuredText.html +59 -58
- data/docs/Prismic/Fragments/Text.html +54 -53
- data/docs/Prismic/Fragments/Timestamp.html +52 -51
- data/docs/Prismic/Fragments/WebLink.html +50 -49
- data/docs/Prismic/Fragments.html +39 -39
- data/docs/Prismic/HtmlSerializer.html +57 -56
- data/docs/Prismic/JsonParser.html +145 -143
- data/docs/Prismic/LinkResolver.html +73 -72
- data/docs/Prismic/LruCache.html +70 -69
- data/docs/Prismic/Predicates.html +261 -209
- data/docs/Prismic/Ref.html +86 -85
- data/docs/Prismic/Response.html +75 -73
- data/docs/Prismic/SearchForm/AuthenticationException.html +44 -43
- data/docs/Prismic/SearchForm/AuthorizationException.html +44 -43
- data/docs/Prismic/SearchForm/FormSearchException.html +44 -43
- data/docs/Prismic/SearchForm/NoRefSetException.html +44 -43
- data/docs/Prismic/SearchForm/RefNotFoundException.html +44 -43
- data/docs/Prismic/SearchForm/UnsupportedFormKind.html +44 -43
- data/docs/Prismic/SearchForm.html +97 -96
- data/docs/Prismic/Variation.html +57 -56
- data/docs/Prismic/WithFragments.html +115 -113
- data/docs/Prismic.html +91 -93
- data/docs/_index.html +32 -35
- data/docs/class_list.html +24 -27
- data/docs/css/full_list.css +32 -31
- data/docs/css/style.css +244 -91
- data/docs/file.README.html +39 -74
- data/docs/file_list.html +26 -26
- data/docs/frames.html +7 -16
- data/docs/index.html +39 -74
- data/docs/js/app.js +101 -77
- data/docs/js/full_list.js +170 -132
- data/docs/method_list.html +1995 -1189
- data/docs/top-level-namespace.html +34 -36
- data/lib/prismic/api.rb +10 -1
- data/lib/prismic/fragments/link.rb +3 -2
- data/lib/prismic/json_parsers.rb +14 -0
- data/lib/prismic/version.rb +1 -1
- data/lib/prismic.rb +47 -5
- data/spec/cache_spec.rb +2 -2
- data/spec/fragments_spec.rb +8 -1
- data/spec/json_parsers_spec.rb +13 -1
- data/spec/prismic_spec.rb +14 -7
- data/spec/responses_mocks/document.json +13 -0
- data/spec/simple_search_spec.rb +9 -0
- metadata +2 -2
data/docs/Prismic/Ref.html
CHANGED
@@ -1,12 +1,12 @@
|
|
1
|
-
<!DOCTYPE html
|
2
|
-
|
3
|
-
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
4
3
|
<head>
|
5
|
-
<meta
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
6
|
<title>
|
7
7
|
Class: Prismic::Ref
|
8
8
|
|
9
|
-
— Documentation by YARD 0.8
|
9
|
+
— Documentation by YARD 0.9.8
|
10
10
|
|
11
11
|
</title>
|
12
12
|
|
@@ -15,9 +15,8 @@
|
|
15
15
|
<link rel="stylesheet" href="../css/common.css" type="text/css" charset="utf-8" />
|
16
16
|
|
17
17
|
<script type="text/javascript" charset="utf-8">
|
18
|
-
|
18
|
+
pathId = "Prismic::Ref";
|
19
19
|
relpath = '../';
|
20
|
-
framesUrl = "../frames.html#!Prismic/Ref.html";
|
21
20
|
</script>
|
22
21
|
|
23
22
|
|
@@ -28,51 +27,48 @@
|
|
28
27
|
|
29
28
|
</head>
|
30
29
|
<body>
|
31
|
-
<div
|
32
|
-
<
|
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">
|
33
38
|
|
34
39
|
<a href="../_index.html">Index (R)</a> »
|
35
40
|
<span class='title'><span class='object_link'><a href="../Prismic.html" title="Prismic (module)">Prismic</a></span></span>
|
36
41
|
»
|
37
42
|
<span class="title">Ref</span>
|
38
43
|
|
39
|
-
|
40
|
-
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
41
44
|
</div>
|
42
45
|
|
43
|
-
|
46
|
+
<div id="search">
|
44
47
|
|
45
48
|
<a class="full_list_link" id="class_list_link"
|
46
49
|
href="../class_list.html">
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
</a>
|
54
|
-
|
55
|
-
<a class="full_list_link" id="file_list_link"
|
56
|
-
href="../file_list.html">
|
57
|
-
File List
|
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>
|
58
56
|
</a>
|
59
57
|
|
60
58
|
</div>
|
61
|
-
|
62
|
-
|
59
|
+
<div class="clear"></div>
|
60
|
+
</div>
|
63
61
|
|
64
|
-
|
65
|
-
|
66
|
-
<div id="content"><h1>Class: Prismic::Ref
|
62
|
+
<div id="content"><h1>Class: Prismic::Ref
|
67
63
|
|
68
64
|
|
69
65
|
|
70
66
|
</h1>
|
71
|
-
|
72
|
-
<dl class="box">
|
67
|
+
<div class="box_info">
|
73
68
|
|
74
|
-
|
75
|
-
<
|
69
|
+
<dl>
|
70
|
+
<dt>Inherits:</dt>
|
71
|
+
<dd>
|
76
72
|
<span class="inheritName">Object</span>
|
77
73
|
|
78
74
|
<ul class="fullTree">
|
@@ -83,21 +79,25 @@
|
|
83
79
|
</ul>
|
84
80
|
<a href="#" class="inheritanceTree">show all</a>
|
85
81
|
|
86
|
-
|
87
|
-
|
82
|
+
</dd>
|
83
|
+
</dl>
|
88
84
|
|
85
|
+
|
89
86
|
|
90
|
-
|
91
87
|
|
92
|
-
|
93
88
|
|
94
89
|
|
95
90
|
|
96
|
-
|
97
|
-
<dd class="r2 last">lib/prismic.rb</dd>
|
91
|
+
|
98
92
|
|
99
|
-
|
100
|
-
|
93
|
+
|
94
|
+
|
95
|
+
<dl>
|
96
|
+
<dt>Defined in:</dt>
|
97
|
+
<dd>lib/prismic.rb</dd>
|
98
|
+
</dl>
|
99
|
+
|
100
|
+
</div>
|
101
101
|
|
102
102
|
<h2>Overview</h2><div class="docstring">
|
103
103
|
<div class="discussion">
|
@@ -117,13 +117,13 @@ returns the same results.</p>
|
|
117
117
|
|
118
118
|
|
119
119
|
|
120
|
-
<h2>Instance Attribute Summary <small
|
120
|
+
<h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
|
121
121
|
<ul class="summary">
|
122
122
|
|
123
123
|
<li class="public ">
|
124
124
|
<span class="summary_signature">
|
125
125
|
|
126
|
-
<a href="#id-instance_method" title="#id (instance method)"
|
126
|
+
<a href="#id-instance_method" title="#id (instance method)">#<strong>id</strong> ⇒ String </a>
|
127
127
|
|
128
128
|
|
129
129
|
|
@@ -149,7 +149,7 @@ returns the same results.</p>
|
|
149
149
|
<li class="public ">
|
150
150
|
<span class="summary_signature">
|
151
151
|
|
152
|
-
<a href="#is_master-instance_method" title="#is_master (instance method)"
|
152
|
+
<a href="#is_master-instance_method" title="#is_master (instance method)">#<strong>is_master</strong> ⇒ Boolean </a>
|
153
153
|
|
154
154
|
|
155
155
|
|
@@ -177,7 +177,7 @@ returns the same results.</p>
|
|
177
177
|
<li class="public ">
|
178
178
|
<span class="summary_signature">
|
179
179
|
|
180
|
-
<a href="#label-instance_method" title="#label (instance method)"
|
180
|
+
<a href="#label-instance_method" title="#label (instance method)">#<strong>label</strong> ⇒ String </a>
|
181
181
|
|
182
182
|
|
183
183
|
|
@@ -203,7 +203,7 @@ returns the same results.</p>
|
|
203
203
|
<li class="public ">
|
204
204
|
<span class="summary_signature">
|
205
205
|
|
206
|
-
<a href="#ref-instance_method" title="#ref (instance method)"
|
206
|
+
<a href="#ref-instance_method" title="#ref (instance method)">#<strong>ref</strong> ⇒ String </a>
|
207
207
|
|
208
208
|
|
209
209
|
|
@@ -229,7 +229,7 @@ returns the same results.</p>
|
|
229
229
|
<li class="public ">
|
230
230
|
<span class="summary_signature">
|
231
231
|
|
232
|
-
<a href="#scheduled_at-instance_method" title="#scheduled_at (instance method)"
|
232
|
+
<a href="#scheduled_at-instance_method" title="#scheduled_at (instance method)">#<strong>scheduled_at</strong> ⇒ Time </a>
|
233
233
|
|
234
234
|
|
235
235
|
|
@@ -260,7 +260,7 @@ returns the same results.</p>
|
|
260
260
|
|
261
261
|
<h2>
|
262
262
|
Instance Method Summary
|
263
|
-
<small
|
263
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
264
264
|
</h2>
|
265
265
|
|
266
266
|
<ul class="summary">
|
@@ -268,7 +268,7 @@ returns the same results.</p>
|
|
268
268
|
<li class="public ">
|
269
269
|
<span class="summary_signature">
|
270
270
|
|
271
|
-
<a href="#initialize-instance_method" title="#initialize (instance method)"
|
271
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(id, ref, label, is_master = false, scheduled_at = nil) ⇒ Ref </a>
|
272
272
|
|
273
273
|
|
274
274
|
|
@@ -299,7 +299,7 @@ returns the same results.</p>
|
|
299
299
|
<div class="method_details first">
|
300
300
|
<h3 class="signature first" id="initialize-instance_method">
|
301
301
|
|
302
|
-
|
302
|
+
#<strong>initialize</strong>(id, ref, label, is_master = false, scheduled_at = nil) ⇒ <tt><span class='object_link'><a href="" title="Prismic::Ref (class)">Ref</a></span></tt>
|
303
303
|
|
304
304
|
|
305
305
|
|
@@ -321,16 +321,16 @@ returns the same results.</p>
|
|
321
321
|
<pre class="lines">
|
322
322
|
|
323
323
|
|
324
|
-
|
325
|
-
|
326
|
-
|
327
|
-
|
328
|
-
|
329
|
-
|
330
|
-
|
324
|
+
524
|
325
|
+
525
|
326
|
+
526
|
327
|
+
527
|
328
|
+
528
|
329
|
+
529
|
330
|
+
530</pre>
|
331
331
|
</td>
|
332
332
|
<td>
|
333
|
-
<pre class="code"><span class="info file"># File 'lib/prismic.rb', line
|
333
|
+
<pre class="code"><span class="info file"># File 'lib/prismic.rb', line 524</span>
|
334
334
|
|
335
335
|
<span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_id'>id</span><span class='comma'>,</span> <span class='id identifier rubyid_ref'>ref</span><span class='comma'>,</span> <span class='id identifier rubyid_label'>label</span><span class='comma'>,</span> <span class='id identifier rubyid_is_master'>is_master</span> <span class='op'>=</span> <span class='kw'>false</span><span class='comma'>,</span> <span class='id identifier rubyid_scheduled_at'>scheduled_at</span> <span class='op'>=</span> <span class='kw'>nil</span><span class='rparen'>)</span>
|
336
336
|
<span class='ivar'>@id</span> <span class='op'>=</span> <span class='id identifier rubyid_id'>id</span>
|
@@ -354,7 +354,7 @@ returns the same results.</p>
|
|
354
354
|
<div class="method_details first">
|
355
355
|
<h3 class="signature first" id="id-instance_method">
|
356
356
|
|
357
|
-
|
357
|
+
#<strong>id</strong> ⇒ <tt>String</tt>
|
358
358
|
|
359
359
|
|
360
360
|
|
@@ -389,12 +389,12 @@ returns the same results.</p>
|
|
389
389
|
<pre class="lines">
|
390
390
|
|
391
391
|
|
392
|
-
|
393
|
-
|
394
|
-
|
392
|
+
502
|
393
|
+
503
|
394
|
+
504</pre>
|
395
395
|
</td>
|
396
396
|
<td>
|
397
|
-
<pre class="code"><span class="info file"># File 'lib/prismic.rb', line
|
397
|
+
<pre class="code"><span class="info file"># File 'lib/prismic.rb', line 502</span>
|
398
398
|
|
399
399
|
<span class='kw'>def</span> <span class='id identifier rubyid_id'>id</span>
|
400
400
|
<span class='ivar'>@id</span>
|
@@ -409,7 +409,7 @@ returns the same results.</p>
|
|
409
409
|
<div class="method_details ">
|
410
410
|
<h3 class="signature " id="is_master-instance_method">
|
411
411
|
|
412
|
-
|
412
|
+
#<strong>is_master</strong> ⇒ <tt>Boolean</tt>
|
413
413
|
|
414
414
|
|
415
415
|
|
@@ -448,12 +448,12 @@ returns the same results.</p>
|
|
448
448
|
<pre class="lines">
|
449
449
|
|
450
450
|
|
451
|
-
|
452
|
-
|
453
|
-
|
451
|
+
517
|
452
|
+
518
|
453
|
+
519</pre>
|
454
454
|
</td>
|
455
455
|
<td>
|
456
|
-
<pre class="code"><span class="info file"># File 'lib/prismic.rb', line
|
456
|
+
<pre class="code"><span class="info file"># File 'lib/prismic.rb', line 517</span>
|
457
457
|
|
458
458
|
<span class='kw'>def</span> <span class='id identifier rubyid_is_master'>is_master</span>
|
459
459
|
<span class='ivar'>@is_master</span>
|
@@ -468,7 +468,7 @@ returns the same results.</p>
|
|
468
468
|
<div class="method_details ">
|
469
469
|
<h3 class="signature " id="label-instance_method">
|
470
470
|
|
471
|
-
|
471
|
+
#<strong>label</strong> ⇒ <tt>String</tt>
|
472
472
|
|
473
473
|
|
474
474
|
|
@@ -503,12 +503,12 @@ returns the same results.</p>
|
|
503
503
|
<pre class="lines">
|
504
504
|
|
505
505
|
|
506
|
-
|
507
|
-
|
508
|
-
|
506
|
+
512
|
507
|
+
513
|
508
|
+
514</pre>
|
509
509
|
</td>
|
510
510
|
<td>
|
511
|
-
<pre class="code"><span class="info file"># File 'lib/prismic.rb', line
|
511
|
+
<pre class="code"><span class="info file"># File 'lib/prismic.rb', line 512</span>
|
512
512
|
|
513
513
|
<span class='kw'>def</span> <span class='id identifier rubyid_label'>label</span>
|
514
514
|
<span class='ivar'>@label</span>
|
@@ -523,7 +523,7 @@ returns the same results.</p>
|
|
523
523
|
<div class="method_details ">
|
524
524
|
<h3 class="signature " id="ref-instance_method">
|
525
525
|
|
526
|
-
|
526
|
+
#<strong>ref</strong> ⇒ <tt>String</tt>
|
527
527
|
|
528
528
|
|
529
529
|
|
@@ -558,12 +558,12 @@ returns the same results.</p>
|
|
558
558
|
<pre class="lines">
|
559
559
|
|
560
560
|
|
561
|
-
|
562
|
-
|
563
|
-
|
561
|
+
507
|
562
|
+
508
|
563
|
+
509</pre>
|
564
564
|
</td>
|
565
565
|
<td>
|
566
|
-
<pre class="code"><span class="info file"># File 'lib/prismic.rb', line
|
566
|
+
<pre class="code"><span class="info file"># File 'lib/prismic.rb', line 507</span>
|
567
567
|
|
568
568
|
<span class='kw'>def</span> <span class='id identifier rubyid_ref'>ref</span>
|
569
569
|
<span class='ivar'>@ref</span>
|
@@ -578,7 +578,7 @@ returns the same results.</p>
|
|
578
578
|
<div class="method_details ">
|
579
579
|
<h3 class="signature " id="scheduled_at-instance_method">
|
580
580
|
|
581
|
-
|
581
|
+
#<strong>scheduled_at</strong> ⇒ <tt>Time</tt>
|
582
582
|
|
583
583
|
|
584
584
|
|
@@ -613,12 +613,12 @@ returns the same results.</p>
|
|
613
613
|
<pre class="lines">
|
614
614
|
|
615
615
|
|
616
|
-
|
617
|
-
|
618
|
-
|
616
|
+
522
|
617
|
+
523
|
618
|
+
524</pre>
|
619
619
|
</td>
|
620
620
|
<td>
|
621
|
-
<pre class="code"><span class="info file"># File 'lib/prismic.rb', line
|
621
|
+
<pre class="code"><span class="info file"># File 'lib/prismic.rb', line 522</span>
|
622
622
|
|
623
623
|
<span class='kw'>def</span> <span class='id identifier rubyid_scheduled_at'>scheduled_at</span>
|
624
624
|
<span class='ivar'>@scheduled_at</span>
|
@@ -633,11 +633,12 @@ returns the same results.</p>
|
|
633
633
|
|
634
634
|
</div>
|
635
635
|
|
636
|
-
|
637
|
-
Generated on
|
636
|
+
<div id="footer">
|
637
|
+
Generated on Mon Jan 16 16:05:09 2017 by
|
638
638
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
639
|
-
0.8
|
639
|
+
0.9.8 (ruby-2.3.1).
|
640
640
|
</div>
|
641
641
|
|
642
|
+
</div>
|
642
643
|
</body>
|
643
644
|
</html>
|