ae_easy-core 0.1.9 → 0.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/ae_easy-core.gemspec +1 -1
- data/doc/AeEasy.html +116 -116
- data/doc/AeEasy/Core.html +1217 -1217
- data/doc/AeEasy/Core/Config.html +284 -284
- data/doc/AeEasy/Core/Exception.html +116 -116
- data/doc/AeEasy/Core/Exception/OutdatedError.html +132 -132
- data/doc/AeEasy/Core/Helper.html +116 -116
- data/doc/AeEasy/Core/Helper/Cookie.html +797 -797
- data/doc/AeEasy/Core/Mock.html +231 -231
- data/doc/AeEasy/Core/Mock/FakeDb.html +3133 -2729
- data/doc/AeEasy/Core/Mock/FakeExecutor.html +2852 -2259
- data/doc/AeEasy/Core/Mock/FakeFinisher.html +160 -0
- data/doc/AeEasy/Core/Mock/FakeParser.html +157 -157
- data/doc/AeEasy/Core/Mock/FakeSeeder.html +157 -157
- data/doc/AeEasy/Core/Plugin.html +116 -116
- data/doc/AeEasy/Core/Plugin/CollectionVault.html +262 -262
- data/doc/AeEasy/Core/Plugin/ConfigBehavior.html +471 -471
- data/doc/AeEasy/Core/Plugin/ContextIntegrator.html +365 -365
- data/doc/AeEasy/Core/Plugin/Executor.html +243 -243
- data/doc/AeEasy/Core/Plugin/ExecutorBehavior.html +299 -299
- data/doc/AeEasy/Core/Plugin/Finisher.html +265 -0
- data/doc/AeEasy/Core/Plugin/FinisherBehavior.html +142 -0
- data/doc/AeEasy/Core/Plugin/InitializeHook.html +198 -198
- data/doc/AeEasy/Core/Plugin/Parser.html +254 -254
- data/doc/AeEasy/Core/Plugin/ParserBehavior.html +216 -216
- data/doc/AeEasy/Core/Plugin/Seeder.html +594 -594
- data/doc/AeEasy/Core/Plugin/SeederBehavior.html +141 -141
- data/doc/AeEasy/Core/SmartCollection.html +804 -804
- data/doc/_index.html +363 -342
- data/doc/class_list.html +51 -51
- data/doc/css/full_list.css +58 -58
- data/doc/css/style.css +496 -496
- data/doc/file.README.html +70 -70
- data/doc/file_list.html +56 -56
- data/doc/frames.html +17 -17
- data/doc/index.html +70 -70
- data/doc/js/app.js +303 -292
- data/doc/js/full_list.js +216 -216
- data/doc/js/jquery.js +3 -3
- data/doc/method_list.html +939 -851
- data/doc/top-level-namespace.html +109 -109
- data/lib/ae_easy/core/mock.rb +1 -0
- data/lib/ae_easy/core/mock/fake_db.rb +67 -1
- data/lib/ae_easy/core/mock/fake_executor.rb +61 -0
- data/lib/ae_easy/core/mock/fake_finisher.rb +28 -0
- data/lib/ae_easy/core/mock/fake_parser.rb +3 -1
- data/lib/ae_easy/core/plugin.rb +2 -0
- data/lib/ae_easy/core/plugin/finisher.rb +19 -0
- data/lib/ae_easy/core/plugin/finisher_behavior.rb +9 -0
- data/lib/ae_easy/core/version.rb +1 -1
- metadata +10 -4
data/doc/AeEasy/Core/Helper.html
CHANGED
@@ -1,117 +1,117 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<meta charset="utf-8">
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
|
-
<title>
|
7
|
-
Module: AeEasy::Core::Helper
|
8
|
-
|
9
|
-
— Documentation by YARD 0.9.
|
10
|
-
|
11
|
-
</title>
|
12
|
-
|
13
|
-
<link rel="stylesheet" href="../../css/style.css" type="text/css" charset="utf-8" />
|
14
|
-
|
15
|
-
<link rel="stylesheet" href="../../css/common.css" type="text/css" charset="utf-8" />
|
16
|
-
|
17
|
-
<script type="text/javascript" charset="utf-8">
|
18
|
-
pathId = "AeEasy::Core::Helper";
|
19
|
-
relpath = '../../';
|
20
|
-
</script>
|
21
|
-
|
22
|
-
|
23
|
-
<script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
|
24
|
-
|
25
|
-
<script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
|
26
|
-
|
27
|
-
|
28
|
-
</head>
|
29
|
-
<body>
|
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">
|
38
|
-
|
39
|
-
<a href="../../_index.html">Index (H)</a> »
|
40
|
-
<span class='title'><span class='object_link'><a href="../../AeEasy.html" title="AeEasy (module)">AeEasy</a></span></span> » <span class='title'><span class='object_link'><a href="../Core.html" title="AeEasy::Core (module)">Core</a></span></span>
|
41
|
-
»
|
42
|
-
<span class="title">Helper</span>
|
43
|
-
|
44
|
-
</div>
|
45
|
-
|
46
|
-
<div id="search">
|
47
|
-
|
48
|
-
<a class="full_list_link" id="class_list_link"
|
49
|
-
href="../../class_list.html">
|
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>
|
56
|
-
</a>
|
57
|
-
|
58
|
-
</div>
|
59
|
-
<div class="clear"></div>
|
60
|
-
</div>
|
61
|
-
|
62
|
-
<div id="content"><h1>Module: AeEasy::Core::Helper
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
</h1>
|
67
|
-
<div class="box_info">
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
<dl>
|
80
|
-
<dt>Defined in:</dt>
|
81
|
-
<dd>lib/ae_easy/core/helper.rb<span class="defines">,<br />
|
82
|
-
lib/ae_easy/core/helper/cookie.rb</span>
|
83
|
-
</dd>
|
84
|
-
</dl>
|
85
|
-
|
86
|
-
</div>
|
87
|
-
|
88
|
-
<h2>Defined Under Namespace</h2>
|
89
|
-
<p class="children">
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
<strong class="classes">Classes:</strong> <span class='object_link'><a href="Helper/Cookie.html" title="AeEasy::Core::Helper::Cookie (class)">Cookie</a></span>
|
95
|
-
|
96
|
-
|
97
|
-
</p>
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
</div>
|
108
|
-
|
109
|
-
<div id="footer">
|
110
|
-
Generated on
|
111
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
112
|
-
0.9.
|
113
|
-
</div>
|
114
|
-
|
115
|
-
</div>
|
116
|
-
</body>
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
|
+
<title>
|
7
|
+
Module: AeEasy::Core::Helper
|
8
|
+
|
9
|
+
— Documentation by YARD 0.9.20
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="../../css/style.css" type="text/css" charset="utf-8" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="../../css/common.css" type="text/css" charset="utf-8" />
|
16
|
+
|
17
|
+
<script type="text/javascript" charset="utf-8">
|
18
|
+
pathId = "AeEasy::Core::Helper";
|
19
|
+
relpath = '../../';
|
20
|
+
</script>
|
21
|
+
|
22
|
+
|
23
|
+
<script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
|
24
|
+
|
25
|
+
<script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
|
26
|
+
|
27
|
+
|
28
|
+
</head>
|
29
|
+
<body>
|
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">
|
38
|
+
|
39
|
+
<a href="../../_index.html">Index (H)</a> »
|
40
|
+
<span class='title'><span class='object_link'><a href="../../AeEasy.html" title="AeEasy (module)">AeEasy</a></span></span> » <span class='title'><span class='object_link'><a href="../Core.html" title="AeEasy::Core (module)">Core</a></span></span>
|
41
|
+
»
|
42
|
+
<span class="title">Helper</span>
|
43
|
+
|
44
|
+
</div>
|
45
|
+
|
46
|
+
<div id="search">
|
47
|
+
|
48
|
+
<a class="full_list_link" id="class_list_link"
|
49
|
+
href="../../class_list.html">
|
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>
|
56
|
+
</a>
|
57
|
+
|
58
|
+
</div>
|
59
|
+
<div class="clear"></div>
|
60
|
+
</div>
|
61
|
+
|
62
|
+
<div id="content"><h1>Module: AeEasy::Core::Helper
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
</h1>
|
67
|
+
<div class="box_info">
|
68
|
+
|
69
|
+
|
70
|
+
|
71
|
+
|
72
|
+
|
73
|
+
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
|
78
|
+
|
79
|
+
<dl>
|
80
|
+
<dt>Defined in:</dt>
|
81
|
+
<dd>lib/ae_easy/core/helper.rb<span class="defines">,<br />
|
82
|
+
lib/ae_easy/core/helper/cookie.rb</span>
|
83
|
+
</dd>
|
84
|
+
</dl>
|
85
|
+
|
86
|
+
</div>
|
87
|
+
|
88
|
+
<h2>Defined Under Namespace</h2>
|
89
|
+
<p class="children">
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
<strong class="classes">Classes:</strong> <span class='object_link'><a href="Helper/Cookie.html" title="AeEasy::Core::Helper::Cookie (class)">Cookie</a></span>
|
95
|
+
|
96
|
+
|
97
|
+
</p>
|
98
|
+
|
99
|
+
|
100
|
+
|
101
|
+
|
102
|
+
|
103
|
+
|
104
|
+
|
105
|
+
|
106
|
+
|
107
|
+
</div>
|
108
|
+
|
109
|
+
<div id="footer">
|
110
|
+
Generated on Fri Sep 27 02:01:30 2019 by
|
111
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
112
|
+
0.9.20 (ruby-2.5.3).
|
113
|
+
</div>
|
114
|
+
|
115
|
+
</div>
|
116
|
+
</body>
|
117
117
|
</html>
|
@@ -1,397 +1,397 @@
|
|
1
|
-
<!DOCTYPE html>
|
2
|
-
<html>
|
3
|
-
<head>
|
4
|
-
<meta charset="utf-8">
|
5
|
-
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
|
-
<title>
|
7
|
-
Class: AeEasy::Core::Helper::Cookie
|
8
|
-
|
9
|
-
— Documentation by YARD 0.9.
|
10
|
-
|
11
|
-
</title>
|
12
|
-
|
13
|
-
<link rel="stylesheet" href="../../../css/style.css" type="text/css" charset="utf-8" />
|
14
|
-
|
15
|
-
<link rel="stylesheet" href="../../../css/common.css" type="text/css" charset="utf-8" />
|
16
|
-
|
17
|
-
<script type="text/javascript" charset="utf-8">
|
18
|
-
pathId = "AeEasy::Core::Helper::Cookie";
|
19
|
-
relpath = '../../../';
|
20
|
-
</script>
|
21
|
-
|
22
|
-
|
23
|
-
<script type="text/javascript" charset="utf-8" src="../../../js/jquery.js"></script>
|
24
|
-
|
25
|
-
<script type="text/javascript" charset="utf-8" src="../../../js/app.js"></script>
|
26
|
-
|
27
|
-
|
28
|
-
</head>
|
29
|
-
<body>
|
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">
|
38
|
-
|
39
|
-
<a href="../../../_index.html">Index (C)</a> »
|
40
|
-
<span class='title'><span class='object_link'><a href="../../../AeEasy.html" title="AeEasy (module)">AeEasy</a></span></span> » <span class='title'><span class='object_link'><a href="../../Core.html" title="AeEasy::Core (module)">Core</a></span></span> » <span class='title'><span class='object_link'><a href="../Helper.html" title="AeEasy::Core::Helper (module)">Helper</a></span></span>
|
41
|
-
»
|
42
|
-
<span class="title">Cookie</span>
|
43
|
-
|
44
|
-
</div>
|
45
|
-
|
46
|
-
<div id="search">
|
47
|
-
|
48
|
-
<a class="full_list_link" id="class_list_link"
|
49
|
-
href="../../../class_list.html">
|
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>
|
56
|
-
</a>
|
57
|
-
|
58
|
-
</div>
|
59
|
-
<div class="clear"></div>
|
60
|
-
</div>
|
61
|
-
|
62
|
-
<div id="content"><h1>Class: AeEasy::Core::Helper::Cookie
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
</h1>
|
67
|
-
<div class="box_info">
|
68
|
-
|
69
|
-
<dl>
|
70
|
-
<dt>Inherits:</dt>
|
71
|
-
<dd>
|
72
|
-
<span class="inheritName">Object</span>
|
73
|
-
|
74
|
-
<ul class="fullTree">
|
75
|
-
<li>Object</li>
|
76
|
-
|
77
|
-
<li class="next">AeEasy::Core::Helper::Cookie</li>
|
78
|
-
|
79
|
-
</ul>
|
80
|
-
<a href="#" class="inheritanceTree">show all</a>
|
81
|
-
|
82
|
-
</dd>
|
83
|
-
</dl>
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
<dl>
|
96
|
-
<dt>Defined in:</dt>
|
97
|
-
<dd>lib/ae_easy/core/helper/cookie.rb</dd>
|
98
|
-
</dl>
|
99
|
-
|
100
|
-
</div>
|
101
|
-
|
102
|
-
<h2>Overview</h2><div class="docstring">
|
103
|
-
<div class="discussion">
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<meta charset="utf-8">
|
5
|
+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
6
|
+
<title>
|
7
|
+
Class: AeEasy::Core::Helper::Cookie
|
8
|
+
|
9
|
+
— Documentation by YARD 0.9.20
|
10
|
+
|
11
|
+
</title>
|
12
|
+
|
13
|
+
<link rel="stylesheet" href="../../../css/style.css" type="text/css" charset="utf-8" />
|
14
|
+
|
15
|
+
<link rel="stylesheet" href="../../../css/common.css" type="text/css" charset="utf-8" />
|
16
|
+
|
17
|
+
<script type="text/javascript" charset="utf-8">
|
18
|
+
pathId = "AeEasy::Core::Helper::Cookie";
|
19
|
+
relpath = '../../../';
|
20
|
+
</script>
|
21
|
+
|
22
|
+
|
23
|
+
<script type="text/javascript" charset="utf-8" src="../../../js/jquery.js"></script>
|
24
|
+
|
25
|
+
<script type="text/javascript" charset="utf-8" src="../../../js/app.js"></script>
|
26
|
+
|
27
|
+
|
28
|
+
</head>
|
29
|
+
<body>
|
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">
|
38
|
+
|
39
|
+
<a href="../../../_index.html">Index (C)</a> »
|
40
|
+
<span class='title'><span class='object_link'><a href="../../../AeEasy.html" title="AeEasy (module)">AeEasy</a></span></span> » <span class='title'><span class='object_link'><a href="../../Core.html" title="AeEasy::Core (module)">Core</a></span></span> » <span class='title'><span class='object_link'><a href="../Helper.html" title="AeEasy::Core::Helper (module)">Helper</a></span></span>
|
41
|
+
»
|
42
|
+
<span class="title">Cookie</span>
|
43
|
+
|
44
|
+
</div>
|
45
|
+
|
46
|
+
<div id="search">
|
47
|
+
|
48
|
+
<a class="full_list_link" id="class_list_link"
|
49
|
+
href="../../../class_list.html">
|
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>
|
56
|
+
</a>
|
57
|
+
|
58
|
+
</div>
|
59
|
+
<div class="clear"></div>
|
60
|
+
</div>
|
61
|
+
|
62
|
+
<div id="content"><h1>Class: AeEasy::Core::Helper::Cookie
|
63
|
+
|
64
|
+
|
65
|
+
|
66
|
+
</h1>
|
67
|
+
<div class="box_info">
|
68
|
+
|
69
|
+
<dl>
|
70
|
+
<dt>Inherits:</dt>
|
71
|
+
<dd>
|
72
|
+
<span class="inheritName">Object</span>
|
73
|
+
|
74
|
+
<ul class="fullTree">
|
75
|
+
<li>Object</li>
|
76
|
+
|
77
|
+
<li class="next">AeEasy::Core::Helper::Cookie</li>
|
78
|
+
|
79
|
+
</ul>
|
80
|
+
<a href="#" class="inheritanceTree">show all</a>
|
81
|
+
|
82
|
+
</dd>
|
83
|
+
</dl>
|
84
|
+
|
85
|
+
|
86
|
+
|
87
|
+
|
88
|
+
|
89
|
+
|
90
|
+
|
91
|
+
|
92
|
+
|
93
|
+
|
94
|
+
|
95
|
+
<dl>
|
96
|
+
<dt>Defined in:</dt>
|
97
|
+
<dd>lib/ae_easy/core/helper/cookie.rb</dd>
|
98
|
+
</dl>
|
99
|
+
|
100
|
+
</div>
|
101
|
+
|
102
|
+
<h2>Overview</h2><div class="docstring">
|
103
|
+
<div class="discussion">
|
104
104
|
|
105
105
|
<p>Helper used for lower level cookie management.</p>
|
106
|
-
|
107
|
-
|
108
|
-
</div>
|
109
|
-
</div>
|
110
|
-
<div class="tags">
|
111
|
-
|
112
|
-
|
113
|
-
</div>
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
<h2>
|
122
|
-
Class Method Summary
|
123
|
-
<small><a href="#" class="summary_toggle">collapse</a></small>
|
124
|
-
</h2>
|
125
|
-
|
126
|
-
<ul class="summary">
|
127
|
-
|
128
|
-
<li class="public ">
|
129
|
-
<span class="summary_signature">
|
130
|
-
|
131
|
-
<a href="#encode_to_header-class_method" title="encode_to_header (class method)">.<strong>encode_to_header</strong>(cookie_hash) ⇒ String </a>
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
</span>
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
106
|
+
|
107
|
+
|
108
|
+
</div>
|
109
|
+
</div>
|
110
|
+
<div class="tags">
|
111
|
+
|
112
|
+
|
113
|
+
</div>
|
114
|
+
|
115
|
+
|
116
|
+
|
117
|
+
|
118
|
+
|
119
|
+
|
120
|
+
|
121
|
+
<h2>
|
122
|
+
Class Method Summary
|
123
|
+
<small><a href="#" class="summary_toggle">collapse</a></small>
|
124
|
+
</h2>
|
125
|
+
|
126
|
+
<ul class="summary">
|
127
|
+
|
128
|
+
<li class="public ">
|
129
|
+
<span class="summary_signature">
|
130
|
+
|
131
|
+
<a href="#encode_to_header-class_method" title="encode_to_header (class method)">.<strong>encode_to_header</strong>(cookie_hash) ⇒ String </a>
|
132
|
+
|
133
|
+
|
134
|
+
|
135
|
+
</span>
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
|
140
|
+
|
141
|
+
|
142
|
+
|
143
|
+
|
144
|
+
|
145
145
|
<span class="summary_desc"><div class='inline'>
|
146
146
|
<p>Encode cookies as request cookie string.</p>
|
147
|
-
</div></span>
|
148
|
-
|
149
|
-
</li>
|
150
|
-
|
151
|
-
|
152
|
-
<li class="public ">
|
153
|
-
<span class="summary_signature">
|
154
|
-
|
155
|
-
<a href="#include%3F-class_method" title="include? (class method)">.<strong>include?</strong>(base_cookie_hash, cookie_hash) ⇒ Boolean </a>
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
</span>
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
147
|
+
</div></span>
|
148
|
+
|
149
|
+
</li>
|
150
|
+
|
151
|
+
|
152
|
+
<li class="public ">
|
153
|
+
<span class="summary_signature">
|
154
|
+
|
155
|
+
<a href="#include%3F-class_method" title="include? (class method)">.<strong>include?</strong>(base_cookie_hash, cookie_hash) ⇒ Boolean </a>
|
156
|
+
|
157
|
+
|
158
|
+
|
159
|
+
</span>
|
160
|
+
|
161
|
+
|
162
|
+
|
163
|
+
|
164
|
+
|
165
|
+
|
166
|
+
|
167
|
+
|
168
|
+
|
169
169
|
<span class="summary_desc"><div class='inline'>
|
170
170
|
<p>Compare if cookie is included into base cookie.</p>
|
171
|
-
</div></span>
|
172
|
-
|
173
|
-
</li>
|
174
|
-
|
175
|
-
|
176
|
-
<li class="public ">
|
177
|
-
<span class="summary_signature">
|
178
|
-
|
179
|
-
<a href="#parse_from_request-class_method" title="parse_from_request (class method)">.<strong>parse_from_request</strong>(cookies, cookie_hash = {}) ⇒ Hash </a>
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
</span>
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
171
|
+
</div></span>
|
172
|
+
|
173
|
+
</li>
|
174
|
+
|
175
|
+
|
176
|
+
<li class="public ">
|
177
|
+
<span class="summary_signature">
|
178
|
+
|
179
|
+
<a href="#parse_from_request-class_method" title="parse_from_request (class method)">.<strong>parse_from_request</strong>(cookies, cookie_hash = {}) ⇒ Hash </a>
|
180
|
+
|
181
|
+
|
182
|
+
|
183
|
+
</span>
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
|
188
|
+
|
189
|
+
|
190
|
+
|
191
|
+
|
192
|
+
|
193
193
|
<span class="summary_desc"><div class='inline'>
|
194
194
|
<p>Parse request cookies on different formats.</p>
|
195
|
-
</div></span>
|
196
|
-
|
197
|
-
</li>
|
198
|
-
|
199
|
-
|
200
|
-
<li class="public ">
|
201
|
-
<span class="summary_signature">
|
202
|
-
|
203
|
-
<a href="#parse_from_response-class_method" title="parse_from_response (class method)">.<strong>parse_from_response</strong>(cookies, cookie_hash = {}) ⇒ Hash </a>
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
</span>
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
|
215
|
-
|
216
|
-
|
195
|
+
</div></span>
|
196
|
+
|
197
|
+
</li>
|
198
|
+
|
199
|
+
|
200
|
+
<li class="public ">
|
201
|
+
<span class="summary_signature">
|
202
|
+
|
203
|
+
<a href="#parse_from_response-class_method" title="parse_from_response (class method)">.<strong>parse_from_response</strong>(cookies, cookie_hash = {}) ⇒ Hash </a>
|
204
|
+
|
205
|
+
|
206
|
+
|
207
|
+
</span>
|
208
|
+
|
209
|
+
|
210
|
+
|
211
|
+
|
212
|
+
|
213
|
+
|
214
|
+
|
215
|
+
|
216
|
+
|
217
217
|
<span class="summary_desc"><div class='inline'>
|
218
218
|
<p>Parse response cookies on different formats.</p>
|
219
|
-
</div></span>
|
220
|
-
|
221
|
-
</li>
|
222
|
-
|
223
|
-
|
224
|
-
<li class="public ">
|
225
|
-
<span class="summary_signature">
|
226
|
-
|
227
|
-
<a href="#update-class_method" title="update (class method)">.<strong>update</strong>(request_cookies, response_cookies) ⇒ String </a>
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
</span>
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
219
|
+
</div></span>
|
220
|
+
|
221
|
+
</li>
|
222
|
+
|
223
|
+
|
224
|
+
<li class="public ">
|
225
|
+
<span class="summary_signature">
|
226
|
+
|
227
|
+
<a href="#update-class_method" title="update (class method)">.<strong>update</strong>(request_cookies, response_cookies) ⇒ String </a>
|
228
|
+
|
229
|
+
|
230
|
+
|
231
|
+
</span>
|
232
|
+
|
233
|
+
|
234
|
+
|
235
|
+
|
236
|
+
|
237
|
+
|
238
|
+
|
239
|
+
|
240
|
+
|
241
241
|
<span class="summary_desc"><div class='inline'>
|
242
242
|
<p>Apply request and response cookies as a string with request format.</p>
|
243
|
-
</div></span>
|
244
|
-
|
245
|
-
</li>
|
246
|
-
|
247
|
-
|
248
|
-
<li class="public ">
|
249
|
-
<span class="summary_signature">
|
250
|
-
|
251
|
-
<a href="#update_as_hash-class_method" title="update_as_hash (class method)">.<strong>update_as_hash</strong>(request_cookies, response_cookies) ⇒ Hash </a>
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
</span>
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
243
|
+
</div></span>
|
244
|
+
|
245
|
+
</li>
|
246
|
+
|
247
|
+
|
248
|
+
<li class="public ">
|
249
|
+
<span class="summary_signature">
|
250
|
+
|
251
|
+
<a href="#update_as_hash-class_method" title="update_as_hash (class method)">.<strong>update_as_hash</strong>(request_cookies, response_cookies) ⇒ Hash </a>
|
252
|
+
|
253
|
+
|
254
|
+
|
255
|
+
</span>
|
256
|
+
|
257
|
+
|
258
|
+
|
259
|
+
|
260
|
+
|
261
|
+
|
262
|
+
|
263
|
+
|
264
|
+
|
265
265
|
<span class="summary_desc"><div class='inline'>
|
266
266
|
<p>Apply request and response cookies as a hash.</p>
|
267
|
-
</div></span>
|
268
|
-
|
269
|
-
</li>
|
270
|
-
|
271
|
-
|
272
|
-
</ul>
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
<div id="class_method_details" class="method_details_list">
|
278
|
-
<h2>Class Method Details</h2>
|
279
|
-
|
280
|
-
|
281
|
-
<div class="method_details first">
|
282
|
-
<h3 class="signature first" id="encode_to_header-class_method">
|
283
|
-
|
284
|
-
.<strong>encode_to_header</strong>(cookie_hash) ⇒ <tt>String</tt>
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
</h3><div class="docstring">
|
291
|
-
<div class="discussion">
|
267
|
+
</div></span>
|
268
|
+
|
269
|
+
</li>
|
270
|
+
|
271
|
+
|
272
|
+
</ul>
|
273
|
+
|
274
|
+
|
275
|
+
|
276
|
+
|
277
|
+
<div id="class_method_details" class="method_details_list">
|
278
|
+
<h2>Class Method Details</h2>
|
279
|
+
|
280
|
+
|
281
|
+
<div class="method_details first">
|
282
|
+
<h3 class="signature first" id="encode_to_header-class_method">
|
283
|
+
|
284
|
+
.<strong>encode_to_header</strong>(cookie_hash) ⇒ <tt>String</tt>
|
285
|
+
|
286
|
+
|
287
|
+
|
288
|
+
|
289
|
+
|
290
|
+
</h3><div class="docstring">
|
291
|
+
<div class="discussion">
|
292
292
|
|
293
293
|
<p>Encode cookies as request cookie string.</p>
|
294
|
-
|
295
|
-
|
296
|
-
</div>
|
297
|
-
</div>
|
298
|
-
<div class="tags">
|
299
|
-
|
300
|
-
<div class="examples">
|
301
|
-
<p class="tag_title">Examples:</p>
|
302
|
-
|
303
|
-
|
294
|
+
|
295
|
+
|
296
|
+
</div>
|
297
|
+
</div>
|
298
|
+
<div class="tags">
|
299
|
+
|
300
|
+
<div class="examples">
|
301
|
+
<p class="tag_title">Examples:</p>
|
302
|
+
|
303
|
+
|
304
304
|
<pre class="example code"><code><span class='id identifier rubyid_cookie_hash'>cookie_hash</span> <span class='op'>=</span> <span class='lbrace'>{</span>
|
305
305
|
<span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>aaa</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='int'>111</span><span class='comma'>,</span>
|
306
306
|
<span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>bbb</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='int'>222</span>
|
307
307
|
<span class='rbrace'>}</span>
|
308
308
|
<span class='id identifier rubyid_encode_to_header'>encode_to_header</span> <span class='id identifier rubyid_cookie_hash'>cookie_hash</span>
|
309
|
-
<span class='comment'># => 'aaa=111; bbb=222'</span></code></pre>
|
310
|
-
|
311
|
-
</div>
|
312
|
-
<p class="tag_title">Parameters:</p>
|
313
|
-
<ul class="param">
|
314
|
-
|
315
|
-
<li>
|
316
|
-
|
317
|
-
<span class='name'>cookie_hash</span>
|
318
|
-
|
319
|
-
|
320
|
-
<span class='type'>(<tt>Hash</tt>)</span>
|
321
|
-
|
322
|
-
|
323
|
-
|
324
|
-
—
|
309
|
+
<span class='comment'># => 'aaa=111; bbb=222'</span></code></pre>
|
310
|
+
|
311
|
+
</div>
|
312
|
+
<p class="tag_title">Parameters:</p>
|
313
|
+
<ul class="param">
|
314
|
+
|
315
|
+
<li>
|
316
|
+
|
317
|
+
<span class='name'>cookie_hash</span>
|
318
|
+
|
319
|
+
|
320
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
321
|
+
|
322
|
+
|
323
|
+
|
324
|
+
—
|
325
325
|
<div class='inline'>
|
326
326
|
<p>Hash with cookies.</p>
|
327
|
-
</div>
|
328
|
-
|
329
|
-
</li>
|
330
|
-
|
331
|
-
</ul>
|
332
|
-
|
333
|
-
<p class="tag_title">Returns:</p>
|
334
|
-
<ul class="return">
|
335
|
-
|
336
|
-
<li>
|
337
|
-
|
338
|
-
|
339
|
-
<span class='type'>(<tt>String</tt>)</span>
|
340
|
-
|
341
|
-
|
342
|
-
|
343
|
-
</li>
|
344
|
-
|
345
|
-
</ul>
|
346
|
-
|
347
|
-
</div><table class="source_code">
|
348
|
-
<tr>
|
349
|
-
<td>
|
327
|
+
</div>
|
328
|
+
|
329
|
+
</li>
|
330
|
+
|
331
|
+
</ul>
|
332
|
+
|
333
|
+
<p class="tag_title">Returns:</p>
|
334
|
+
<ul class="return">
|
335
|
+
|
336
|
+
<li>
|
337
|
+
|
338
|
+
|
339
|
+
<span class='type'>(<tt>String</tt>)</span>
|
340
|
+
|
341
|
+
|
342
|
+
|
343
|
+
</li>
|
344
|
+
|
345
|
+
</ul>
|
346
|
+
|
347
|
+
</div><table class="source_code">
|
348
|
+
<tr>
|
349
|
+
<td>
|
350
350
|
<pre class="lines">
|
351
351
|
|
352
352
|
|
353
353
|
140
|
354
354
|
141
|
355
|
-
142</pre>
|
356
|
-
</td>
|
357
|
-
<td>
|
355
|
+
142</pre>
|
356
|
+
</td>
|
357
|
+
<td>
|
358
358
|
<pre class="code"><span class="info file"># File 'lib/ae_easy/core/helper/cookie.rb', line 140</span>
|
359
359
|
|
360
360
|
<span class='kw'>def</span> <span class='id identifier rubyid_encode_to_header'>encode_to_header</span> <span class='id identifier rubyid_cookie_hash'>cookie_hash</span>
|
361
361
|
<span class='id identifier rubyid_cookie_hash'>cookie_hash</span><span class='period'>.</span><span class='id identifier rubyid_map'>map</span><span class='lbrace'>{</span><span class='op'>|</span><span class='id identifier rubyid_k'>k</span><span class='comma'>,</span><span class='id identifier rubyid_v'>v</span><span class='op'>|</span> <span class='tstring'><span class='tstring_beg'>"</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_k'>k</span><span class='embexpr_end'>}</span><span class='tstring_content'>=</span><span class='embexpr_beg'>#{</span><span class='id identifier rubyid_v'>v</span><span class='embexpr_end'>}</span><span class='tstring_end'>"</span></span><span class='rbrace'>}</span><span class='period'>.</span><span class='id identifier rubyid_join'>join</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>; </span><span class='tstring_end'>'</span></span>
|
362
|
-
<span class='kw'>end</span></pre>
|
363
|
-
</td>
|
364
|
-
</tr>
|
365
|
-
</table>
|
366
|
-
</div>
|
367
|
-
|
368
|
-
<div class="method_details ">
|
369
|
-
<h3 class="signature " id="include?-class_method">
|
370
|
-
|
371
|
-
.<strong>include?</strong>(base_cookie_hash, cookie_hash) ⇒ <tt>Boolean</tt>
|
372
|
-
|
373
|
-
|
374
|
-
|
375
|
-
|
376
|
-
|
377
|
-
</h3><div class="docstring">
|
378
|
-
<div class="discussion">
|
362
|
+
<span class='kw'>end</span></pre>
|
363
|
+
</td>
|
364
|
+
</tr>
|
365
|
+
</table>
|
366
|
+
</div>
|
367
|
+
|
368
|
+
<div class="method_details ">
|
369
|
+
<h3 class="signature " id="include?-class_method">
|
370
|
+
|
371
|
+
.<strong>include?</strong>(base_cookie_hash, cookie_hash) ⇒ <tt>Boolean</tt>
|
372
|
+
|
373
|
+
|
374
|
+
|
375
|
+
|
376
|
+
|
377
|
+
</h3><div class="docstring">
|
378
|
+
<div class="discussion">
|
379
379
|
|
380
380
|
<p>Compare if cookie is included into base cookie</p>
|
381
|
-
|
382
|
-
|
383
|
-
</div>
|
384
|
-
</div>
|
385
|
-
<div class="tags">
|
386
|
-
|
387
|
-
<div class="examples">
|
388
|
-
<p class="tag_title">Examples:</p>
|
389
|
-
|
390
|
-
|
381
|
+
|
382
|
+
|
383
|
+
</div>
|
384
|
+
</div>
|
385
|
+
<div class="tags">
|
386
|
+
|
387
|
+
<div class="examples">
|
388
|
+
<p class="tag_title">Examples:</p>
|
389
|
+
|
390
|
+
|
391
391
|
<p class="example_title"><div class='inline'>
|
392
392
|
<p>Check a success match.</p>
|
393
|
-
</div></p>
|
394
|
-
|
393
|
+
</div></p>
|
394
|
+
|
395
395
|
<pre class="example code"><code><span class='id identifier rubyid_base_cookie_hash'>base_cookie_hash</span> <span class='op'>=</span> <span class='lbrace'>{</span>
|
396
396
|
<span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>aaa</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='int'>111</span><span class='comma'>,</span>
|
397
397
|
<span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>bbb</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='int'>222</span><span class='comma'>,</span>
|
@@ -403,13 +403,13 @@
|
|
403
403
|
<span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>ddd</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='int'>444</span>
|
404
404
|
<span class='rbrace'>}</span>
|
405
405
|
<span class='id identifier rubyid_include?'>include?</span> <span class='id identifier rubyid_base_cookie_hash'>base_cookie_hash</span><span class='comma'>,</span> <span class='id identifier rubyid_cookie_hash'>cookie_hash</span>
|
406
|
-
<span class='comment'># => true</span></code></pre>
|
407
|
-
|
408
|
-
|
406
|
+
<span class='comment'># => true</span></code></pre>
|
407
|
+
|
408
|
+
|
409
409
|
<p class="example_title"><div class='inline'>
|
410
410
|
<p>Check with fail match.</p>
|
411
|
-
</div></p>
|
412
|
-
|
411
|
+
</div></p>
|
412
|
+
|
413
413
|
<pre class="example code"><code><span class='id identifier rubyid_base_cookie_hash'>base_cookie_hash</span> <span class='op'>=</span> <span class='lbrace'>{</span>
|
414
414
|
<span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>aaa</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='int'>111</span><span class='comma'>,</span>
|
415
415
|
<span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>bbb</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='int'>222</span><span class='comma'>,</span>
|
@@ -421,63 +421,63 @@
|
|
421
421
|
<span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>ddd</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='int'>444</span>
|
422
422
|
<span class='rbrace'>}</span>
|
423
423
|
<span class='id identifier rubyid_include?'>include?</span> <span class='id identifier rubyid_base_cookie_hash'>base_cookie_hash</span><span class='comma'>,</span> <span class='id identifier rubyid_cookie_hash'>cookie_hash</span>
|
424
|
-
<span class='comment'># => false</span></code></pre>
|
425
|
-
|
426
|
-
</div>
|
427
|
-
<p class="tag_title">Parameters:</p>
|
428
|
-
<ul class="param">
|
429
|
-
|
430
|
-
<li>
|
431
|
-
|
432
|
-
<span class='name'>base_cookie_hash</span>
|
433
|
-
|
434
|
-
|
435
|
-
<span class='type'>(<tt>Hash</tt>)</span>
|
436
|
-
|
437
|
-
|
438
|
-
|
439
|
-
—
|
424
|
+
<span class='comment'># => false</span></code></pre>
|
425
|
+
|
426
|
+
</div>
|
427
|
+
<p class="tag_title">Parameters:</p>
|
428
|
+
<ul class="param">
|
429
|
+
|
430
|
+
<li>
|
431
|
+
|
432
|
+
<span class='name'>base_cookie_hash</span>
|
433
|
+
|
434
|
+
|
435
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
436
|
+
|
437
|
+
|
438
|
+
|
439
|
+
—
|
440
440
|
<div class='inline'>
|
441
441
|
<p>Hash that represent universe.</p>
|
442
|
-
</div>
|
443
|
-
|
444
|
-
</li>
|
445
|
-
|
446
|
-
<li>
|
447
|
-
|
448
|
-
<span class='name'>cookie_hash</span>
|
449
|
-
|
450
|
-
|
451
|
-
<span class='type'>(<tt>Hash</tt>)</span>
|
452
|
-
|
453
|
-
|
454
|
-
|
455
|
-
—
|
442
|
+
</div>
|
443
|
+
|
444
|
+
</li>
|
445
|
+
|
446
|
+
<li>
|
447
|
+
|
448
|
+
<span class='name'>cookie_hash</span>
|
449
|
+
|
450
|
+
|
451
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
452
|
+
|
453
|
+
|
454
|
+
|
455
|
+
—
|
456
456
|
<div class='inline'>
|
457
457
|
<p>Hash that represents to compare.</p>
|
458
|
-
</div>
|
459
|
-
|
460
|
-
</li>
|
461
|
-
|
462
|
-
</ul>
|
463
|
-
|
464
|
-
<p class="tag_title">Returns:</p>
|
465
|
-
<ul class="return">
|
466
|
-
|
467
|
-
<li>
|
468
|
-
|
469
|
-
|
470
|
-
<span class='type'>(<tt>Boolean</tt>)</span>
|
471
|
-
|
472
|
-
|
473
|
-
|
474
|
-
</li>
|
475
|
-
|
476
|
-
</ul>
|
477
|
-
|
478
|
-
</div><table class="source_code">
|
479
|
-
<tr>
|
480
|
-
<td>
|
458
|
+
</div>
|
459
|
+
|
460
|
+
</li>
|
461
|
+
|
462
|
+
</ul>
|
463
|
+
|
464
|
+
<p class="tag_title">Returns:</p>
|
465
|
+
<ul class="return">
|
466
|
+
|
467
|
+
<li>
|
468
|
+
|
469
|
+
|
470
|
+
<span class='type'>(<tt>Boolean</tt>)</span>
|
471
|
+
|
472
|
+
|
473
|
+
|
474
|
+
</li>
|
475
|
+
|
476
|
+
</ul>
|
477
|
+
|
478
|
+
</div><table class="source_code">
|
479
|
+
<tr>
|
480
|
+
<td>
|
481
481
|
<pre class="lines">
|
482
482
|
|
483
483
|
|
@@ -486,9 +486,9 @@
|
|
486
486
|
201
|
487
487
|
202
|
488
488
|
203
|
489
|
-
204</pre>
|
490
|
-
</td>
|
491
|
-
<td>
|
489
|
+
204</pre>
|
490
|
+
</td>
|
491
|
+
<td>
|
492
492
|
<pre class="code"><span class="info file"># File 'lib/ae_easy/core/helper/cookie.rb', line 199</span>
|
493
493
|
|
494
494
|
<span class='kw'>def</span> <span class='id identifier rubyid_include?'>include?</span> <span class='id identifier rubyid_base_cookie_hash'>base_cookie_hash</span><span class='comma'>,</span> <span class='id identifier rubyid_cookie_hash'>cookie_hash</span>
|
@@ -496,121 +496,121 @@
|
|
496
496
|
<span class='kw'>return</span> <span class='kw'>false</span> <span class='kw'>unless</span> <span class='id identifier rubyid_base_cookie_hash'>base_cookie_hash</span><span class='period'>.</span><span class='id identifier rubyid_has_key?'>has_key?</span><span class='lparen'>(</span><span class='id identifier rubyid_key'>key</span><span class='rparen'>)</span> <span class='op'>&&</span> <span class='id identifier rubyid_base_cookie_hash'>base_cookie_hash</span><span class='lbracket'>[</span><span class='id identifier rubyid_key'>key</span><span class='rbracket'>]</span> <span class='op'>==</span> <span class='id identifier rubyid_value'>value</span>
|
497
497
|
<span class='kw'>end</span>
|
498
498
|
<span class='kw'>true</span>
|
499
|
-
<span class='kw'>end</span></pre>
|
500
|
-
</td>
|
501
|
-
</tr>
|
502
|
-
</table>
|
503
|
-
</div>
|
504
|
-
|
505
|
-
<div class="method_details ">
|
506
|
-
<h3 class="signature " id="parse_from_request-class_method">
|
507
|
-
|
508
|
-
.<strong>parse_from_request</strong>(cookies, cookie_hash = {}) ⇒ <tt>Hash</tt>
|
509
|
-
|
510
|
-
|
511
|
-
|
512
|
-
|
513
|
-
|
514
|
-
</h3><div class="docstring">
|
515
|
-
<div class="discussion">
|
499
|
+
<span class='kw'>end</span></pre>
|
500
|
+
</td>
|
501
|
+
</tr>
|
502
|
+
</table>
|
503
|
+
</div>
|
504
|
+
|
505
|
+
<div class="method_details ">
|
506
|
+
<h3 class="signature " id="parse_from_request-class_method">
|
507
|
+
|
508
|
+
.<strong>parse_from_request</strong>(cookies, cookie_hash = {}) ⇒ <tt>Hash</tt>
|
509
|
+
|
510
|
+
|
511
|
+
|
512
|
+
|
513
|
+
|
514
|
+
</h3><div class="docstring">
|
515
|
+
<div class="discussion">
|
516
516
|
|
517
517
|
<p>Parse request cookies on different formats.</p>
|
518
|
-
|
519
|
-
|
520
|
-
</div>
|
521
|
-
</div>
|
522
|
-
<div class="tags">
|
523
|
-
|
524
|
-
<div class="examples">
|
525
|
-
<p class="tag_title">Examples:</p>
|
526
|
-
|
527
|
-
|
518
|
+
|
519
|
+
|
520
|
+
</div>
|
521
|
+
</div>
|
522
|
+
<div class="tags">
|
523
|
+
|
524
|
+
<div class="examples">
|
525
|
+
<p class="tag_title">Examples:</p>
|
526
|
+
|
527
|
+
|
528
528
|
<p class="example_title"><div class='inline'>
|
529
529
|
<p>Parse from string.</p>
|
530
|
-
</div></p>
|
531
|
-
|
530
|
+
</div></p>
|
531
|
+
|
532
532
|
<pre class="example code"><code><span class='id identifier rubyid_parse_from_request'>parse_from_request</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>aaa=111; bbb=222</span><span class='tstring_end'>'</span></span>
|
533
|
-
<span class='comment'># => {'aaa' => 111, 'bbb' => 222}</span></code></pre>
|
534
|
-
|
535
|
-
|
533
|
+
<span class='comment'># => {'aaa' => 111, 'bbb' => 222}</span></code></pre>
|
534
|
+
|
535
|
+
|
536
536
|
<p class="example_title"><div class='inline'>
|
537
537
|
<p>Parse from array.</p>
|
538
|
-
</div></p>
|
539
|
-
|
538
|
+
</div></p>
|
539
|
+
|
540
540
|
<pre class="example code"><code><span class='id identifier rubyid_cookies'>cookies</span> <span class='op'>=</span> <span class='lbracket'>[</span>
|
541
541
|
<span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>aaa=111</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
542
542
|
<span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>bbb=222</span><span class='tstring_end'>'</span></span>
|
543
543
|
<span class='rbracket'>]</span>
|
544
544
|
<span class='id identifier rubyid_parse_from_response'>parse_from_response</span> <span class='id identifier rubyid_cookies'>cookies</span>
|
545
|
-
<span class='comment'># => {'aaa' => 111, 'bbb' => 222}</span></code></pre>
|
546
|
-
|
547
|
-
|
545
|
+
<span class='comment'># => {'aaa' => 111, 'bbb' => 222}</span></code></pre>
|
546
|
+
|
547
|
+
|
548
548
|
<p class="example_title"><div class='inline'>
|
549
549
|
<p>Parse with `cookie_hash`.</p>
|
550
|
-
</div></p>
|
551
|
-
|
550
|
+
</div></p>
|
551
|
+
|
552
552
|
<pre class="example code"><code><span class='id identifier rubyid_cookie_hash'>cookie_hash</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>ccc</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='int'>333</span><span class='rbrace'>}</span>
|
553
553
|
<span class='id identifier rubyid_parse_from_request'>parse_from_request</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>aaa=111; bbb=222</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='id identifier rubyid_cookie_hash'>cookie_hash</span>
|
554
554
|
<span class='id identifier rubyid_cookie_hash'>cookie_hash</span>
|
555
|
-
<span class='comment'># => {'aaa' => 1, 'bbb' => 2, 'ccc' => 333}</span></code></pre>
|
556
|
-
|
557
|
-
</div>
|
558
|
-
<p class="tag_title">Parameters:</p>
|
559
|
-
<ul class="param">
|
560
|
-
|
561
|
-
<li>
|
562
|
-
|
563
|
-
<span class='name'>cookies</span>
|
564
|
-
|
565
|
-
|
566
|
-
<span class='type'>(<tt>String</tt>, <tt>Hash</tt>, <tt>Array</tt>)</span>
|
567
|
-
|
568
|
-
|
569
|
-
|
570
|
-
—
|
555
|
+
<span class='comment'># => {'aaa' => 1, 'bbb' => 2, 'ccc' => 333}</span></code></pre>
|
556
|
+
|
557
|
+
</div>
|
558
|
+
<p class="tag_title">Parameters:</p>
|
559
|
+
<ul class="param">
|
560
|
+
|
561
|
+
<li>
|
562
|
+
|
563
|
+
<span class='name'>cookies</span>
|
564
|
+
|
565
|
+
|
566
|
+
<span class='type'>(<tt>String</tt>, <tt>Hash</tt>, <tt>Array</tt>)</span>
|
567
|
+
|
568
|
+
|
569
|
+
|
570
|
+
—
|
571
571
|
<div class='inline'>
|
572
572
|
<p>Cookies to parse.</p>
|
573
|
-
</div>
|
574
|
-
|
575
|
-
</li>
|
576
|
-
|
577
|
-
<li>
|
578
|
-
|
579
|
-
<span class='name'>cookie_hash</span>
|
580
|
-
|
581
|
-
|
582
|
-
<span class='type'>(<tt>Hash</tt>)</span>
|
583
|
-
|
584
|
-
|
585
|
-
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
586
|
-
|
587
|
-
|
588
|
-
—
|
573
|
+
</div>
|
574
|
+
|
575
|
+
</li>
|
576
|
+
|
577
|
+
<li>
|
578
|
+
|
579
|
+
<span class='name'>cookie_hash</span>
|
580
|
+
|
581
|
+
|
582
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
583
|
+
|
584
|
+
|
585
|
+
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
586
|
+
|
587
|
+
|
588
|
+
—
|
589
589
|
<div class='inline'>
|
590
590
|
<p>({}) External hash to store parsed cookies.</p>
|
591
|
-
</div>
|
592
|
-
|
593
|
-
</li>
|
594
|
-
|
595
|
-
</ul>
|
596
|
-
|
597
|
-
<p class="tag_title">Returns:</p>
|
598
|
-
<ul class="return">
|
599
|
-
|
600
|
-
<li>
|
601
|
-
|
602
|
-
|
603
|
-
<span class='type'>(<tt>Hash</tt>)</span>
|
604
|
-
|
605
|
-
|
606
|
-
|
607
|
-
</li>
|
608
|
-
|
609
|
-
</ul>
|
610
|
-
|
611
|
-
</div><table class="source_code">
|
612
|
-
<tr>
|
613
|
-
<td>
|
591
|
+
</div>
|
592
|
+
|
593
|
+
</li>
|
594
|
+
|
595
|
+
</ul>
|
596
|
+
|
597
|
+
<p class="tag_title">Returns:</p>
|
598
|
+
<ul class="return">
|
599
|
+
|
600
|
+
<li>
|
601
|
+
|
602
|
+
|
603
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
604
|
+
|
605
|
+
|
606
|
+
|
607
|
+
</li>
|
608
|
+
|
609
|
+
</ul>
|
610
|
+
|
611
|
+
</div><table class="source_code">
|
612
|
+
<tr>
|
613
|
+
<td>
|
614
614
|
<pre class="lines">
|
615
615
|
|
616
616
|
|
@@ -630,9 +630,9 @@
|
|
630
630
|
44
|
631
631
|
45
|
632
632
|
46
|
633
|
-
47</pre>
|
634
|
-
</td>
|
635
|
-
<td>
|
633
|
+
47</pre>
|
634
|
+
</td>
|
635
|
+
<td>
|
636
636
|
<pre class="code"><span class="info file"># File 'lib/ae_easy/core/helper/cookie.rb', line 31</span>
|
637
637
|
|
638
638
|
<span class='kw'>def</span> <span class='id identifier rubyid_parse_from_request'>parse_from_request</span> <span class='id identifier rubyid_cookies'>cookies</span><span class='comma'>,</span> <span class='id identifier rubyid_cookie_hash'>cookie_hash</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
|
@@ -651,122 +651,122 @@
|
|
651
651
|
<span class='id identifier rubyid_cookie_hash'>cookie_hash</span><span class='lbracket'>[</span><span class='id identifier rubyid_key'>key</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_value'>value</span>
|
652
652
|
<span class='kw'>end</span>
|
653
653
|
<span class='id identifier rubyid_cookie_hash'>cookie_hash</span>
|
654
|
-
<span class='kw'>end</span></pre>
|
655
|
-
</td>
|
656
|
-
</tr>
|
657
|
-
</table>
|
658
|
-
</div>
|
659
|
-
|
660
|
-
<div class="method_details ">
|
661
|
-
<h3 class="signature " id="parse_from_response-class_method">
|
662
|
-
|
663
|
-
.<strong>parse_from_response</strong>(cookies, cookie_hash = {}) ⇒ <tt>Hash</tt>
|
664
|
-
|
665
|
-
|
666
|
-
|
667
|
-
|
668
|
-
|
669
|
-
</h3><div class="docstring">
|
670
|
-
<div class="discussion">
|
654
|
+
<span class='kw'>end</span></pre>
|
655
|
+
</td>
|
656
|
+
</tr>
|
657
|
+
</table>
|
658
|
+
</div>
|
659
|
+
|
660
|
+
<div class="method_details ">
|
661
|
+
<h3 class="signature " id="parse_from_response-class_method">
|
662
|
+
|
663
|
+
.<strong>parse_from_response</strong>(cookies, cookie_hash = {}) ⇒ <tt>Hash</tt>
|
664
|
+
|
665
|
+
|
666
|
+
|
667
|
+
|
668
|
+
|
669
|
+
</h3><div class="docstring">
|
670
|
+
<div class="discussion">
|
671
671
|
|
672
672
|
<p>Parse response cookies on different formats.</p>
|
673
|
-
|
674
|
-
|
675
|
-
</div>
|
676
|
-
</div>
|
677
|
-
<div class="tags">
|
678
|
-
|
679
|
-
<div class="examples">
|
680
|
-
<p class="tag_title">Examples:</p>
|
681
|
-
|
682
|
-
|
673
|
+
|
674
|
+
|
675
|
+
</div>
|
676
|
+
</div>
|
677
|
+
<div class="tags">
|
678
|
+
|
679
|
+
<div class="examples">
|
680
|
+
<p class="tag_title">Examples:</p>
|
681
|
+
|
682
|
+
|
683
683
|
<p class="example_title"><div class='inline'>
|
684
684
|
<p>Parse from string</p>
|
685
|
-
</div></p>
|
686
|
-
|
685
|
+
</div></p>
|
686
|
+
|
687
687
|
<pre class="example code"><code><span class='id identifier rubyid_parse_from_response'>parse_from_response</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>aaa=111; bbb=222</span><span class='tstring_end'>'</span></span>
|
688
|
-
<span class='comment'># => {'aaa' => 111, 'bbb' => 222}</span></code></pre>
|
689
|
-
|
690
|
-
|
688
|
+
<span class='comment'># => {'aaa' => 111, 'bbb' => 222}</span></code></pre>
|
689
|
+
|
690
|
+
|
691
691
|
<p class="example_title"><div class='inline'>
|
692
692
|
<p>Parse from array.</p>
|
693
|
-
</div></p>
|
694
|
-
|
693
|
+
</div></p>
|
694
|
+
|
695
695
|
<pre class="example code"><code><span class='id identifier rubyid_cookies'>cookies</span> <span class='op'>=</span> <span class='lbracket'>[</span>
|
696
696
|
<span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>aaa=111; Expires=Thu, Jan 01 1970 00:00:00 UTC; path=/</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
697
697
|
<span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>bbb=222; path=/</span><span class='tstring_end'>'</span></span><span class='comma'>,</span>
|
698
698
|
<span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>ccc=333; path=/; expires=Wed, Jan 01 3000 00:00:00 UTC</span><span class='tstring_end'>'</span></span>
|
699
699
|
<span class='rbracket'>]</span>
|
700
700
|
<span class='id identifier rubyid_parse_from_response'>parse_from_response</span> <span class='id identifier rubyid_cookies'>cookies</span>
|
701
|
-
<span class='comment'># => {'bbb' => 222, 'ccc' => 333}</span></code></pre>
|
702
|
-
|
703
|
-
|
701
|
+
<span class='comment'># => {'bbb' => 222, 'ccc' => 333}</span></code></pre>
|
702
|
+
|
703
|
+
|
704
704
|
<p class="example_title"><div class='inline'>
|
705
705
|
<p>Parse with `cookie_hash`.</p>
|
706
|
-
</div></p>
|
707
|
-
|
706
|
+
</div></p>
|
707
|
+
|
708
708
|
<pre class="example code"><code><span class='id identifier rubyid_cookie_hash'>cookie_hash</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>ccc</span><span class='tstring_end'>'</span></span> <span class='op'>=></span> <span class='int'>333</span><span class='rbrace'>}</span>
|
709
709
|
<span class='id identifier rubyid_parse_from_response'>parse_from_response</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>aaa=111; bbb=222</span><span class='tstring_end'>'</span></span><span class='comma'>,</span> <span class='id identifier rubyid_cookie_hash'>cookie_hash</span>
|
710
710
|
<span class='id identifier rubyid_cookie_hash'>cookie_hash</span>
|
711
|
-
<span class='comment'># => {'aaa' => 111, 'bbb' => 222, 'ccc' => 333}</span></code></pre>
|
712
|
-
|
713
|
-
</div>
|
714
|
-
<p class="tag_title">Parameters:</p>
|
715
|
-
<ul class="param">
|
716
|
-
|
717
|
-
<li>
|
718
|
-
|
719
|
-
<span class='name'>cookies</span>
|
720
|
-
|
721
|
-
|
722
|
-
<span class='type'>(<tt>String</tt>, <tt>Hash</tt>, <tt>Array</tt>)</span>
|
723
|
-
|
724
|
-
|
725
|
-
|
726
|
-
—
|
711
|
+
<span class='comment'># => {'aaa' => 111, 'bbb' => 222, 'ccc' => 333}</span></code></pre>
|
712
|
+
|
713
|
+
</div>
|
714
|
+
<p class="tag_title">Parameters:</p>
|
715
|
+
<ul class="param">
|
716
|
+
|
717
|
+
<li>
|
718
|
+
|
719
|
+
<span class='name'>cookies</span>
|
720
|
+
|
721
|
+
|
722
|
+
<span class='type'>(<tt>String</tt>, <tt>Hash</tt>, <tt>Array</tt>)</span>
|
723
|
+
|
724
|
+
|
725
|
+
|
726
|
+
—
|
727
727
|
<div class='inline'>
|
728
728
|
<p>Cookies to parse.</p>
|
729
|
-
</div>
|
730
|
-
|
731
|
-
</li>
|
732
|
-
|
733
|
-
<li>
|
734
|
-
|
735
|
-
<span class='name'>cookie_hash</span>
|
736
|
-
|
737
|
-
|
738
|
-
<span class='type'>(<tt>Hash</tt>)</span>
|
739
|
-
|
740
|
-
|
741
|
-
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
742
|
-
|
743
|
-
|
744
|
-
—
|
729
|
+
</div>
|
730
|
+
|
731
|
+
</li>
|
732
|
+
|
733
|
+
<li>
|
734
|
+
|
735
|
+
<span class='name'>cookie_hash</span>
|
736
|
+
|
737
|
+
|
738
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
739
|
+
|
740
|
+
|
741
|
+
<em class="default">(defaults to: <tt>{}</tt>)</em>
|
742
|
+
|
743
|
+
|
744
|
+
—
|
745
745
|
<div class='inline'>
|
746
746
|
<p>({}) External hash to store parsed cookies.</p>
|
747
|
-
</div>
|
748
|
-
|
749
|
-
</li>
|
750
|
-
|
751
|
-
</ul>
|
752
|
-
|
753
|
-
<p class="tag_title">Returns:</p>
|
754
|
-
<ul class="return">
|
755
|
-
|
756
|
-
<li>
|
757
|
-
|
758
|
-
|
759
|
-
<span class='type'>(<tt>Hash</tt>)</span>
|
760
|
-
|
761
|
-
|
762
|
-
|
763
|
-
</li>
|
764
|
-
|
765
|
-
</ul>
|
766
|
-
|
767
|
-
</div><table class="source_code">
|
768
|
-
<tr>
|
769
|
-
<td>
|
747
|
+
</div>
|
748
|
+
|
749
|
+
</li>
|
750
|
+
|
751
|
+
</ul>
|
752
|
+
|
753
|
+
<p class="tag_title">Returns:</p>
|
754
|
+
<ul class="return">
|
755
|
+
|
756
|
+
<li>
|
757
|
+
|
758
|
+
|
759
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
760
|
+
|
761
|
+
|
762
|
+
|
763
|
+
</li>
|
764
|
+
|
765
|
+
</ul>
|
766
|
+
|
767
|
+
</div><table class="source_code">
|
768
|
+
<tr>
|
769
|
+
<td>
|
770
770
|
<pre class="lines">
|
771
771
|
|
772
772
|
|
@@ -798,9 +798,9 @@
|
|
798
798
|
99
|
799
799
|
100
|
800
800
|
101
|
801
|
-
102</pre>
|
802
|
-
</td>
|
803
|
-
<td>
|
801
|
+
102</pre>
|
802
|
+
</td>
|
803
|
+
<td>
|
804
804
|
<pre class="code"><span class="info file"># File 'lib/ae_easy/core/helper/cookie.rb', line 74</span>
|
805
805
|
|
806
806
|
<span class='kw'>def</span> <span class='id identifier rubyid_parse_from_response'>parse_from_response</span> <span class='id identifier rubyid_cookies'>cookies</span><span class='comma'>,</span> <span class='id identifier rubyid_cookie_hash'>cookie_hash</span> <span class='op'>=</span> <span class='lbrace'>{</span><span class='rbrace'>}</span>
|
@@ -831,35 +831,35 @@
|
|
831
831
|
</span> <span class='id identifier rubyid_cookie_hash'>cookie_hash</span><span class='lbracket'>[</span><span class='id identifier rubyid_cookie'>cookie</span><span class='lbracket'>[</span><span class='symbol'>:key</span><span class='rbracket'>]</span><span class='rbracket'>]</span> <span class='op'>=</span> <span class='id identifier rubyid_cookie'>cookie</span><span class='lbracket'>[</span><span class='symbol'>:value</span><span class='rbracket'>]</span>
|
832
832
|
<span class='kw'>end</span>
|
833
833
|
<span class='id identifier rubyid_cookie_hash'>cookie_hash</span>
|
834
|
-
<span class='kw'>end</span></pre>
|
835
|
-
</td>
|
836
|
-
</tr>
|
837
|
-
</table>
|
838
|
-
</div>
|
839
|
-
|
840
|
-
<div class="method_details ">
|
841
|
-
<h3 class="signature " id="update-class_method">
|
842
|
-
|
843
|
-
.<strong>update</strong>(request_cookies, response_cookies) ⇒ <tt>String</tt>
|
844
|
-
|
845
|
-
|
846
|
-
|
847
|
-
|
848
|
-
|
849
|
-
</h3><div class="docstring">
|
850
|
-
<div class="discussion">
|
834
|
+
<span class='kw'>end</span></pre>
|
835
|
+
</td>
|
836
|
+
</tr>
|
837
|
+
</table>
|
838
|
+
</div>
|
839
|
+
|
840
|
+
<div class="method_details ">
|
841
|
+
<h3 class="signature " id="update-class_method">
|
842
|
+
|
843
|
+
.<strong>update</strong>(request_cookies, response_cookies) ⇒ <tt>String</tt>
|
844
|
+
|
845
|
+
|
846
|
+
|
847
|
+
|
848
|
+
|
849
|
+
</h3><div class="docstring">
|
850
|
+
<div class="discussion">
|
851
851
|
|
852
852
|
<p>Apply request and response cookies as a string with request format.</p>
|
853
|
-
|
854
|
-
|
855
|
-
</div>
|
856
|
-
</div>
|
857
|
-
<div class="tags">
|
858
|
-
|
859
|
-
<div class="examples">
|
860
|
-
<p class="tag_title">Examples:</p>
|
861
|
-
|
862
|
-
|
853
|
+
|
854
|
+
|
855
|
+
</div>
|
856
|
+
</div>
|
857
|
+
<div class="tags">
|
858
|
+
|
859
|
+
<div class="examples">
|
860
|
+
<p class="tag_title">Examples:</p>
|
861
|
+
|
862
|
+
|
863
863
|
<pre class="example code"><code>request_cookies = 'aaa=111; ddd=444'
|
864
864
|
response_cookies = [
|
865
865
|
'aaa=111; Expires=Thu, Jan 01 1970 00:00:00 UTC; path=/',
|
@@ -867,106 +867,106 @@ response_cookies = [
|
|
867
867
|
'ccc=333; path=/; expires=Wed, Jan 01 3000 00:00:00 UTC'
|
868
868
|
]
|
869
869
|
update_as_hash , response_cookies
|
870
|
-
# => 'bbb=222; ccc=333; ddd=444'</code></pre>
|
871
|
-
|
872
|
-
</div>
|
873
|
-
<p class="tag_title">Parameters:</p>
|
874
|
-
<ul class="param">
|
875
|
-
|
876
|
-
<li>
|
877
|
-
|
878
|
-
<span class='name'>request_cookies</span>
|
879
|
-
|
880
|
-
|
881
|
-
<span class='type'>(<tt>String</tt>, <tt>Array</tt>, <tt>Hash</tt>)</span>
|
882
|
-
|
883
|
-
|
884
|
-
|
885
|
-
—
|
870
|
+
# => 'bbb=222; ccc=333; ddd=444'</code></pre>
|
871
|
+
|
872
|
+
</div>
|
873
|
+
<p class="tag_title">Parameters:</p>
|
874
|
+
<ul class="param">
|
875
|
+
|
876
|
+
<li>
|
877
|
+
|
878
|
+
<span class='name'>request_cookies</span>
|
879
|
+
|
880
|
+
|
881
|
+
<span class='type'>(<tt>String</tt>, <tt>Array</tt>, <tt>Hash</tt>)</span>
|
882
|
+
|
883
|
+
|
884
|
+
|
885
|
+
—
|
886
886
|
<div class='inline'>
|
887
887
|
<p>Cookies to parse.</p>
|
888
|
-
</div>
|
889
|
-
|
890
|
-
</li>
|
891
|
-
|
892
|
-
<li>
|
893
|
-
|
894
|
-
<span class='name'>response_cookies</span>
|
895
|
-
|
896
|
-
|
897
|
-
<span class='type'>(<tt>String</tt>, <tt>Array</tt>, <tt>Hash</tt>)</span>
|
898
|
-
|
899
|
-
|
900
|
-
|
901
|
-
—
|
888
|
+
</div>
|
889
|
+
|
890
|
+
</li>
|
891
|
+
|
892
|
+
<li>
|
893
|
+
|
894
|
+
<span class='name'>response_cookies</span>
|
895
|
+
|
896
|
+
|
897
|
+
<span class='type'>(<tt>String</tt>, <tt>Array</tt>, <tt>Hash</tt>)</span>
|
898
|
+
|
899
|
+
|
900
|
+
|
901
|
+
—
|
902
902
|
<div class='inline'>
|
903
903
|
<p>Cookies to parse.</p>
|
904
|
-
</div>
|
905
|
-
|
906
|
-
</li>
|
907
|
-
|
908
|
-
</ul>
|
909
|
-
|
910
|
-
<p class="tag_title">Returns:</p>
|
911
|
-
<ul class="return">
|
912
|
-
|
913
|
-
<li>
|
914
|
-
|
915
|
-
|
916
|
-
<span class='type'>(<tt>String</tt>)</span>
|
917
|
-
|
918
|
-
|
919
|
-
|
920
|
-
</li>
|
921
|
-
|
922
|
-
</ul>
|
923
|
-
|
924
|
-
</div><table class="source_code">
|
925
|
-
<tr>
|
926
|
-
<td>
|
904
|
+
</div>
|
905
|
+
|
906
|
+
</li>
|
907
|
+
|
908
|
+
</ul>
|
909
|
+
|
910
|
+
<p class="tag_title">Returns:</p>
|
911
|
+
<ul class="return">
|
912
|
+
|
913
|
+
<li>
|
914
|
+
|
915
|
+
|
916
|
+
<span class='type'>(<tt>String</tt>)</span>
|
917
|
+
|
918
|
+
|
919
|
+
|
920
|
+
</li>
|
921
|
+
|
922
|
+
</ul>
|
923
|
+
|
924
|
+
</div><table class="source_code">
|
925
|
+
<tr>
|
926
|
+
<td>
|
927
927
|
<pre class="lines">
|
928
928
|
|
929
929
|
|
930
930
|
160
|
931
931
|
161
|
932
932
|
162
|
933
|
-
163</pre>
|
934
|
-
</td>
|
935
|
-
<td>
|
933
|
+
163</pre>
|
934
|
+
</td>
|
935
|
+
<td>
|
936
936
|
<pre class="code"><span class="info file"># File 'lib/ae_easy/core/helper/cookie.rb', line 160</span>
|
937
937
|
|
938
938
|
<span class='kw'>def</span> <span class='id identifier rubyid_update'>update</span> <span class='id identifier rubyid_request_cookies'>request_cookies</span><span class='comma'>,</span> <span class='id identifier rubyid_response_cookies'>response_cookies</span>
|
939
939
|
<span class='id identifier rubyid_cookie_hash'>cookie_hash</span> <span class='op'>=</span> <span class='id identifier rubyid_update_as_hash'>update_as_hash</span> <span class='id identifier rubyid_request_cookies'>request_cookies</span><span class='comma'>,</span> <span class='id identifier rubyid_response_cookies'>response_cookies</span>
|
940
940
|
<span class='id identifier rubyid_encode_to_header'>encode_to_header</span> <span class='id identifier rubyid_cookie_hash'>cookie_hash</span>
|
941
|
-
<span class='kw'>end</span></pre>
|
942
|
-
</td>
|
943
|
-
</tr>
|
944
|
-
</table>
|
945
|
-
</div>
|
946
|
-
|
947
|
-
<div class="method_details ">
|
948
|
-
<h3 class="signature " id="update_as_hash-class_method">
|
949
|
-
|
950
|
-
.<strong>update_as_hash</strong>(request_cookies, response_cookies) ⇒ <tt>Hash</tt>
|
951
|
-
|
952
|
-
|
953
|
-
|
954
|
-
|
955
|
-
|
956
|
-
</h3><div class="docstring">
|
957
|
-
<div class="discussion">
|
941
|
+
<span class='kw'>end</span></pre>
|
942
|
+
</td>
|
943
|
+
</tr>
|
944
|
+
</table>
|
945
|
+
</div>
|
946
|
+
|
947
|
+
<div class="method_details ">
|
948
|
+
<h3 class="signature " id="update_as_hash-class_method">
|
949
|
+
|
950
|
+
.<strong>update_as_hash</strong>(request_cookies, response_cookies) ⇒ <tt>Hash</tt>
|
951
|
+
|
952
|
+
|
953
|
+
|
954
|
+
|
955
|
+
|
956
|
+
</h3><div class="docstring">
|
957
|
+
<div class="discussion">
|
958
958
|
|
959
959
|
<p>Apply request and response cookies as a hash.</p>
|
960
|
-
|
961
|
-
|
962
|
-
</div>
|
963
|
-
</div>
|
964
|
-
<div class="tags">
|
965
|
-
|
966
|
-
<div class="examples">
|
967
|
-
<p class="tag_title">Examples:</p>
|
968
|
-
|
969
|
-
|
960
|
+
|
961
|
+
|
962
|
+
</div>
|
963
|
+
</div>
|
964
|
+
<div class="tags">
|
965
|
+
|
966
|
+
<div class="examples">
|
967
|
+
<p class="tag_title">Examples:</p>
|
968
|
+
|
969
|
+
|
970
970
|
<pre class="example code"><code>request_cookies = 'aaa=111; ddd=444'
|
971
971
|
response_cookies = [
|
972
972
|
'aaa=111; Expires=Thu, Jan 01 1970 00:00:00 UTC; path=/',
|
@@ -974,63 +974,63 @@ response_cookies = [
|
|
974
974
|
'ccc=333; path=/; expires=Wed, Jan 01 3000 00:00:00 UTC'
|
975
975
|
]
|
976
976
|
update_as_hash , response_cookies
|
977
|
-
# => {'bbb' => 222, 'ccc' => 333, 'ddd' => 444}</code></pre>
|
978
|
-
|
979
|
-
</div>
|
980
|
-
<p class="tag_title">Parameters:</p>
|
981
|
-
<ul class="param">
|
982
|
-
|
983
|
-
<li>
|
984
|
-
|
985
|
-
<span class='name'>request_cookies</span>
|
986
|
-
|
987
|
-
|
988
|
-
<span class='type'>(<tt>String</tt>, <tt>Array</tt>, <tt>Hash</tt>)</span>
|
989
|
-
|
990
|
-
|
991
|
-
|
992
|
-
—
|
977
|
+
# => {'bbb' => 222, 'ccc' => 333, 'ddd' => 444}</code></pre>
|
978
|
+
|
979
|
+
</div>
|
980
|
+
<p class="tag_title">Parameters:</p>
|
981
|
+
<ul class="param">
|
982
|
+
|
983
|
+
<li>
|
984
|
+
|
985
|
+
<span class='name'>request_cookies</span>
|
986
|
+
|
987
|
+
|
988
|
+
<span class='type'>(<tt>String</tt>, <tt>Array</tt>, <tt>Hash</tt>)</span>
|
989
|
+
|
990
|
+
|
991
|
+
|
992
|
+
—
|
993
993
|
<div class='inline'>
|
994
994
|
<p>Cookies to parse.</p>
|
995
|
-
</div>
|
996
|
-
|
997
|
-
</li>
|
998
|
-
|
999
|
-
<li>
|
1000
|
-
|
1001
|
-
<span class='name'>response_cookies</span>
|
1002
|
-
|
1003
|
-
|
1004
|
-
<span class='type'>(<tt>String</tt>, <tt>Array</tt>, <tt>Hash</tt>)</span>
|
1005
|
-
|
1006
|
-
|
1007
|
-
|
1008
|
-
—
|
995
|
+
</div>
|
996
|
+
|
997
|
+
</li>
|
998
|
+
|
999
|
+
<li>
|
1000
|
+
|
1001
|
+
<span class='name'>response_cookies</span>
|
1002
|
+
|
1003
|
+
|
1004
|
+
<span class='type'>(<tt>String</tt>, <tt>Array</tt>, <tt>Hash</tt>)</span>
|
1005
|
+
|
1006
|
+
|
1007
|
+
|
1008
|
+
—
|
1009
1009
|
<div class='inline'>
|
1010
1010
|
<p>Cookies to parse.</p>
|
1011
|
-
</div>
|
1012
|
-
|
1013
|
-
</li>
|
1014
|
-
|
1015
|
-
</ul>
|
1016
|
-
|
1017
|
-
<p class="tag_title">Returns:</p>
|
1018
|
-
<ul class="return">
|
1019
|
-
|
1020
|
-
<li>
|
1021
|
-
|
1022
|
-
|
1023
|
-
<span class='type'>(<tt>Hash</tt>)</span>
|
1024
|
-
|
1025
|
-
|
1026
|
-
|
1027
|
-
</li>
|
1028
|
-
|
1029
|
-
</ul>
|
1030
|
-
|
1031
|
-
</div><table class="source_code">
|
1032
|
-
<tr>
|
1033
|
-
<td>
|
1011
|
+
</div>
|
1012
|
+
|
1013
|
+
</li>
|
1014
|
+
|
1015
|
+
</ul>
|
1016
|
+
|
1017
|
+
<p class="tag_title">Returns:</p>
|
1018
|
+
<ul class="return">
|
1019
|
+
|
1020
|
+
<li>
|
1021
|
+
|
1022
|
+
|
1023
|
+
<span class='type'>(<tt>Hash</tt>)</span>
|
1024
|
+
|
1025
|
+
|
1026
|
+
|
1027
|
+
</li>
|
1028
|
+
|
1029
|
+
</ul>
|
1030
|
+
|
1031
|
+
</div><table class="source_code">
|
1032
|
+
<tr>
|
1033
|
+
<td>
|
1034
1034
|
<pre class="lines">
|
1035
1035
|
|
1036
1036
|
|
@@ -1039,9 +1039,9 @@ update_as_hash , response_cookies
|
|
1039
1039
|
122
|
1040
1040
|
123
|
1041
1041
|
124
|
1042
|
-
125</pre>
|
1043
|
-
</td>
|
1044
|
-
<td>
|
1042
|
+
125</pre>
|
1043
|
+
</td>
|
1044
|
+
<td>
|
1045
1045
|
<pre class="code"><span class="info file"># File 'lib/ae_easy/core/helper/cookie.rb', line 120</span>
|
1046
1046
|
|
1047
1047
|
<span class='kw'>def</span> <span class='id identifier rubyid_update_as_hash'>update_as_hash</span> <span class='id identifier rubyid_request_cookies'>request_cookies</span><span class='comma'>,</span> <span class='id identifier rubyid_response_cookies'>response_cookies</span>
|
@@ -1049,22 +1049,22 @@ update_as_hash , response_cookies
|
|
1049
1049
|
<span class='id identifier rubyid_parse_from_request'>parse_from_request</span> <span class='id identifier rubyid_request_cookies'>request_cookies</span><span class='comma'>,</span> <span class='id identifier rubyid_cookie_hash'>cookie_hash</span>
|
1050
1050
|
<span class='id identifier rubyid_parse_from_response'>parse_from_response</span> <span class='id identifier rubyid_response_cookies'>response_cookies</span><span class='comma'>,</span> <span class='id identifier rubyid_cookie_hash'>cookie_hash</span>
|
1051
1051
|
<span class='id identifier rubyid_cookie_hash'>cookie_hash</span>
|
1052
|
-
<span class='kw'>end</span></pre>
|
1053
|
-
</td>
|
1054
|
-
</tr>
|
1055
|
-
</table>
|
1056
|
-
</div>
|
1057
|
-
|
1058
|
-
</div>
|
1059
|
-
|
1060
|
-
</div>
|
1061
|
-
|
1062
|
-
<div id="footer">
|
1063
|
-
Generated on
|
1064
|
-
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1065
|
-
0.9.
|
1066
|
-
</div>
|
1067
|
-
|
1068
|
-
</div>
|
1069
|
-
</body>
|
1052
|
+
<span class='kw'>end</span></pre>
|
1053
|
+
</td>
|
1054
|
+
</tr>
|
1055
|
+
</table>
|
1056
|
+
</div>
|
1057
|
+
|
1058
|
+
</div>
|
1059
|
+
|
1060
|
+
</div>
|
1061
|
+
|
1062
|
+
<div id="footer">
|
1063
|
+
Generated on Fri Sep 27 02:01:31 2019 by
|
1064
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
1065
|
+
0.9.20 (ruby-2.5.3).
|
1066
|
+
</div>
|
1067
|
+
|
1068
|
+
</div>
|
1069
|
+
</body>
|
1070
1070
|
</html>
|