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/LruCache.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::LruCache
|
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::LruCache";
|
19
19
|
relpath = '../';
|
20
|
-
framesUrl = "../frames.html#!Prismic/LruCache.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 (L)</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">LruCache</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::LruCache
|
62
|
+
<div id="content"><h1>Class: Prismic::LruCache
|
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>
|
84
|
+
|
85
|
+
|
88
86
|
|
89
87
|
|
90
|
-
|
91
88
|
|
92
|
-
|
93
89
|
|
94
90
|
|
91
|
+
|
92
|
+
|
93
|
+
|
95
94
|
|
96
|
-
|
97
|
-
<
|
95
|
+
<dl>
|
96
|
+
<dt>Defined in:</dt>
|
97
|
+
<dd>lib/prismic/cache/lru.rb</dd>
|
98
|
+
</dl>
|
98
99
|
|
99
|
-
</
|
100
|
-
<div class="clear"></div>
|
100
|
+
</div>
|
101
101
|
|
102
102
|
<h2>Overview</h2><div class="docstring">
|
103
103
|
<div class="discussion">
|
@@ -122,13 +122,13 @@ Prismic::DefaultCache)</code></p>
|
|
122
122
|
|
123
123
|
|
124
124
|
|
125
|
-
<h2>Instance Attribute Summary <small
|
125
|
+
<h2>Instance Attribute Summary <small><a href="#" class="summary_toggle">collapse</a></small></h2>
|
126
126
|
<ul class="summary">
|
127
127
|
|
128
128
|
<li class="public ">
|
129
129
|
<span class="summary_signature">
|
130
130
|
|
131
|
-
<a href="#intern-instance_method" title="#intern (instance method)"
|
131
|
+
<a href="#intern-instance_method" title="#intern (instance method)">#<strong>intern</strong> ⇒ LRUHash<String,Object> </a>
|
132
132
|
|
133
133
|
|
134
134
|
|
@@ -160,7 +160,7 @@ Prismic::DefaultCache)</code></p>
|
|
160
160
|
|
161
161
|
<h2>
|
162
162
|
Instance Method Summary
|
163
|
-
<small
|
163
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
164
164
|
</h2>
|
165
165
|
|
166
166
|
<ul class="summary">
|
@@ -168,7 +168,7 @@ Prismic::DefaultCache)</code></p>
|
|
168
168
|
<li class="public ">
|
169
169
|
<span class="summary_signature">
|
170
170
|
|
171
|
-
<a href="
|
171
|
+
<a href="#[]=-instance_method" title="#[]= (instance method)">#<strong>[]=</strong>(key, value) ⇒ Object </a>
|
172
172
|
|
173
173
|
|
174
174
|
|
@@ -190,7 +190,7 @@ Prismic::DefaultCache)</code></p>
|
|
190
190
|
<li class="public ">
|
191
191
|
<span class="summary_signature">
|
192
192
|
|
193
|
-
<a href="#delete-instance_method" title="#delete (instance method)"
|
193
|
+
<a href="#delete-instance_method" title="#delete (instance method)">#<strong>delete</strong>(key) ⇒ Object </a>
|
194
194
|
|
195
195
|
|
196
196
|
|
@@ -212,7 +212,7 @@ Prismic::DefaultCache)</code></p>
|
|
212
212
|
<li class="public ">
|
213
213
|
<span class="summary_signature">
|
214
214
|
|
215
|
-
<a href="#expired%3F-instance_method" title="#expired? (instance method)"
|
215
|
+
<a href="#expired%3F-instance_method" title="#expired? (instance method)">#<strong>expired?</strong>(key) ⇒ Boolean </a>
|
216
216
|
|
217
217
|
|
218
218
|
|
@@ -234,7 +234,7 @@ Prismic::DefaultCache)</code></p>
|
|
234
234
|
<li class="public ">
|
235
235
|
<span class="summary_signature">
|
236
236
|
|
237
|
-
<a href="#get-instance_method" title="#get (instance method)"
|
237
|
+
<a href="#get-instance_method" title="#get (instance method)">#<strong>get</strong>(key) ⇒ Object </a>
|
238
238
|
|
239
239
|
|
240
240
|
|
@@ -259,7 +259,7 @@ Prismic::DefaultCache)</code></p>
|
|
259
259
|
<li class="public ">
|
260
260
|
<span class="summary_signature">
|
261
261
|
|
262
|
-
<a href="#get_or_set-instance_method" title="#get_or_set (instance method)"
|
262
|
+
<a href="#get_or_set-instance_method" title="#get_or_set (instance method)">#<strong>get_or_set</strong>(key, value = nil, expired_in = nil) ⇒ Object </a>
|
263
263
|
|
264
264
|
|
265
265
|
|
@@ -281,7 +281,7 @@ Prismic::DefaultCache)</code></p>
|
|
281
281
|
<li class="public ">
|
282
282
|
<span class="summary_signature">
|
283
283
|
|
284
|
-
<a href="#has_key%3F-instance_method" title="#has_key? (instance method)"
|
284
|
+
<a href="#has_key%3F-instance_method" title="#has_key? (instance method)">#<strong>has_key?</strong>(key) ⇒ Boolean </a>
|
285
285
|
|
286
286
|
|
287
287
|
|
@@ -306,7 +306,7 @@ Prismic::DefaultCache)</code></p>
|
|
306
306
|
<li class="public ">
|
307
307
|
<span class="summary_signature">
|
308
308
|
|
309
|
-
<a href="#initialize-instance_method" title="#initialize (instance method)"
|
309
|
+
<a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(max_size = 100) ⇒ LruCache </a>
|
310
310
|
|
311
311
|
|
312
312
|
|
@@ -331,7 +331,7 @@ Prismic::DefaultCache)</code></p>
|
|
331
331
|
<li class="public ">
|
332
332
|
<span class="summary_signature">
|
333
333
|
|
334
|
-
<a href="#invalidate_all
|
334
|
+
<a href="#invalidate_all!-instance_method" title="#invalidate_all! (instance method)">#<strong>invalidate_all!</strong> ⇒ Object </a>
|
335
335
|
|
336
336
|
|
337
337
|
|
@@ -356,7 +356,7 @@ Prismic::DefaultCache)</code></p>
|
|
356
356
|
<li class="public ">
|
357
357
|
<span class="summary_signature">
|
358
358
|
|
359
|
-
<a href="#keys-instance_method" title="#keys (instance method)"
|
359
|
+
<a href="#keys-instance_method" title="#keys (instance method)">#<strong>keys</strong> ⇒ Array<String> </a>
|
360
360
|
|
361
361
|
|
362
362
|
|
@@ -379,7 +379,7 @@ Prismic::DefaultCache)</code></p>
|
|
379
379
|
<li class="public ">
|
380
380
|
<span class="summary_signature">
|
381
381
|
|
382
|
-
<a href="#set-instance_method" title="#set (instance method)"
|
382
|
+
<a href="#set-instance_method" title="#set (instance method)">#<strong>set</strong>(key, value, expired_in = nil) ⇒ Object </a>
|
383
383
|
|
384
384
|
|
385
385
|
|
@@ -402,7 +402,7 @@ Prismic::DefaultCache)</code></p>
|
|
402
402
|
<li class="public ">
|
403
403
|
<span class="summary_signature">
|
404
404
|
|
405
|
-
<a href="#size-instance_method" title="#size (instance method)"
|
405
|
+
<a href="#size-instance_method" title="#size (instance method)">#<strong>size</strong> ⇒ Fixum </a>
|
406
406
|
|
407
407
|
|
408
408
|
|
@@ -433,7 +433,7 @@ Prismic::DefaultCache)</code></p>
|
|
433
433
|
<div class="method_details first">
|
434
434
|
<h3 class="signature first" id="initialize-instance_method">
|
435
435
|
|
436
|
-
|
436
|
+
#<strong>initialize</strong>(max_size = 100) ⇒ <tt><span class='object_link'><a href="" title="Prismic::LruCache (class)">LruCache</a></span></tt>
|
437
437
|
|
438
438
|
|
439
439
|
|
@@ -501,7 +501,7 @@ Prismic::DefaultCache)</code></p>
|
|
501
501
|
<div class="method_details first">
|
502
502
|
<h3 class="signature first" id="intern-instance_method">
|
503
503
|
|
504
|
-
|
504
|
+
#<strong>intern</strong> ⇒ <tt>LRUHash<String,Object></tt> <span class="extras">(readonly)</span>
|
505
505
|
|
506
506
|
|
507
507
|
|
@@ -560,7 +560,7 @@ Prismic::DefaultCache)</code></p>
|
|
560
560
|
<div class="method_details first">
|
561
561
|
<h3 class="signature first" id="[]=-instance_method">
|
562
562
|
|
563
|
-
|
563
|
+
#<strong>[]=</strong>(key, value) ⇒ <tt>Object</tt>
|
564
564
|
|
565
565
|
|
566
566
|
|
@@ -590,7 +590,7 @@ Prismic::DefaultCache)</code></p>
|
|
590
590
|
<div class="method_details ">
|
591
591
|
<h3 class="signature " id="delete-instance_method">
|
592
592
|
|
593
|
-
|
593
|
+
#<strong>delete</strong>(key) ⇒ <tt>Object</tt>
|
594
594
|
|
595
595
|
|
596
596
|
|
@@ -622,7 +622,7 @@ Prismic::DefaultCache)</code></p>
|
|
622
622
|
<div class="method_details ">
|
623
623
|
<h3 class="signature " id="expired?-instance_method">
|
624
624
|
|
625
|
-
|
625
|
+
#<strong>expired?</strong>(key) ⇒ <tt>Boolean</tt>
|
626
626
|
|
627
627
|
|
628
628
|
|
@@ -684,7 +684,7 @@ Prismic::DefaultCache)</code></p>
|
|
684
684
|
<div class="method_details ">
|
685
685
|
<h3 class="signature " id="get-instance_method">
|
686
686
|
|
687
|
-
|
687
|
+
#<strong>get</strong>(key) ⇒ <tt>Object</tt>
|
688
688
|
|
689
689
|
|
690
690
|
|
@@ -766,7 +766,7 @@ Prismic::DefaultCache)</code></p>
|
|
766
766
|
<div class="method_details ">
|
767
767
|
<h3 class="signature " id="get_or_set-instance_method">
|
768
768
|
|
769
|
-
|
769
|
+
#<strong>get_or_set</strong>(key, value = nil, expired_in = nil) ⇒ <tt>Object</tt>
|
770
770
|
|
771
771
|
|
772
772
|
|
@@ -804,7 +804,7 @@ Prismic::DefaultCache)</code></p>
|
|
804
804
|
<div class="method_details ">
|
805
805
|
<h3 class="signature " id="has_key?-instance_method">
|
806
806
|
|
807
|
-
|
807
|
+
#<strong>has_key?</strong>(key) ⇒ <tt>Boolean</tt>
|
808
808
|
|
809
809
|
|
810
810
|
|
@@ -880,7 +880,7 @@ Prismic::DefaultCache)</code></p>
|
|
880
880
|
<div class="method_details ">
|
881
881
|
<h3 class="signature " id="invalidate_all!-instance_method">
|
882
882
|
|
883
|
-
|
883
|
+
#<strong>invalidate_all!</strong> ⇒ <tt>Object</tt>
|
884
884
|
|
885
885
|
|
886
886
|
|
@@ -924,7 +924,7 @@ Prismic::DefaultCache)</code></p>
|
|
924
924
|
<div class="method_details ">
|
925
925
|
<h3 class="signature " id="keys-instance_method">
|
926
926
|
|
927
|
-
|
927
|
+
#<strong>keys</strong> ⇒ <tt>Array<String></tt>
|
928
928
|
|
929
929
|
|
930
930
|
|
@@ -979,7 +979,7 @@ Prismic::DefaultCache)</code></p>
|
|
979
979
|
<div class="method_details ">
|
980
980
|
<h3 class="signature " id="set-instance_method">
|
981
981
|
|
982
|
-
|
982
|
+
#<strong>set</strong>(key, value, expired_in = nil) ⇒ <tt>Object</tt>
|
983
983
|
|
984
984
|
|
985
985
|
|
@@ -1072,7 +1072,7 @@ Prismic::DefaultCache)</code></p>
|
|
1072
1072
|
<div class="method_details ">
|
1073
1073
|
<h3 class="signature " id="size-instance_method">
|
1074
1074
|
|
1075
|
-
|
1075
|
+
#<strong>size</strong> ⇒ <tt>Fixum</tt>
|
1076
1076
|
|
1077
1077
|
|
1078
1078
|
|
@@ -1130,11 +1130,12 @@ Prismic::DefaultCache)</code></p>
|
|
1130
1130
|
|
1131
1131
|
</div>
|
1132
1132
|
|
1133
|
-
|
1134
|
-
Generated on
|
1133
|
+
<div id="footer">
|
1134
|
+
Generated on Mon Jan 16 16:05:09 2017 by
|
1135
1135
|
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1136
|
-
0.8
|
1136
|
+
0.9.8 (ruby-2.3.1).
|
1137
1137
|
</div>
|
1138
1138
|
|
1139
|
+
</div>
|
1139
1140
|
</body>
|
1140
1141
|
</html>
|