gce-host 0.1.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 +7 -0
- data/.gitignore +20 -0
- data/.yardopts +6 -0
- data/CHANGELOG.md +3 -0
- data/Gemfile +3 -0
- data/LICENSE +22 -0
- data/README.md +210 -0
- data/Rakefile +30 -0
- data/bin/gce-host +4 -0
- data/docs/GCE.html +132 -0
- data/docs/GCE/Host.html +901 -0
- data/docs/GCE/Host/CLI.html +610 -0
- data/docs/GCE/Host/Config.html +1195 -0
- data/docs/GCE/Host/GCEClient.html +215 -0
- data/docs/GCE/Host/GCEClient/Error.html +127 -0
- data/docs/GCE/Host/GCEClient/NotFound.html +131 -0
- data/docs/GCE/Host/HashUtil.html +178 -0
- data/docs/GCE/Host/HostData.html +1658 -0
- data/docs/GCE/Host/RoleData.html +932 -0
- data/docs/GCE/Host/StringUtil.html +359 -0
- data/docs/_index.html +231 -0
- data/docs/class_list.html +58 -0
- data/docs/css/common.css +1 -0
- data/docs/css/full_list.css +57 -0
- data/docs/css/style.css +339 -0
- data/docs/file.LICENSE.html +95 -0
- data/docs/file.README.html +312 -0
- data/docs/file_list.html +63 -0
- data/docs/frames.html +26 -0
- data/docs/index.html +312 -0
- data/docs/js/app.js +219 -0
- data/docs/js/full_list.js +181 -0
- data/docs/js/jquery.js +4 -0
- data/docs/method_list.html +477 -0
- data/docs/top-level-namespace.html +112 -0
- data/example/example.conf +8 -0
- data/example/example.rb +6 -0
- data/gce-host.gemspec +26 -0
- data/lib/gce-host.rb +7 -0
- data/lib/gce/host.rb +120 -0
- data/lib/gce/host/cli.rb +151 -0
- data/lib/gce/host/config.rb +109 -0
- data/lib/gce/host/gce_client.rb +69 -0
- data/lib/gce/host/hash_util.rb +11 -0
- data/lib/gce/host/host_data.rb +227 -0
- data/lib/gce/host/role_data.rb +64 -0
- data/lib/gce/host/string_util.rb +31 -0
- data/lib/gce/host/version.rb +5 -0
- data/spec/gce_client_spec.rb +29 -0
- data/spec/host_spec.rb +199 -0
- data/spec/spec_helper.rb +22 -0
- data/terraform.tf +52 -0
- metadata +226 -0
@@ -0,0 +1,95 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
+
<head>
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
6
|
+
<title>
|
7
|
+
File: LICENSE
|
8
|
+
|
9
|
+
— Documentation by YARD 0.8.7.6
|
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
|
+
hasFrames = window.top.frames.main ? true : false;
|
19
|
+
relpath = '';
|
20
|
+
framesUrl = "frames.html#!file.LICENSE.html";
|
21
|
+
</script>
|
22
|
+
|
23
|
+
|
24
|
+
<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
|
25
|
+
|
26
|
+
<script type="text/javascript" charset="utf-8" src="js/app.js"></script>
|
27
|
+
|
28
|
+
|
29
|
+
</head>
|
30
|
+
<body>
|
31
|
+
<div id="header">
|
32
|
+
<div id="menu">
|
33
|
+
|
34
|
+
<a href="_index.html">Index</a> »
|
35
|
+
<span class="title">File: LICENSE</span>
|
36
|
+
|
37
|
+
|
38
|
+
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
39
|
+
</div>
|
40
|
+
|
41
|
+
<div id="search">
|
42
|
+
|
43
|
+
<a class="full_list_link" id="class_list_link"
|
44
|
+
href="class_list.html">
|
45
|
+
Class List
|
46
|
+
</a>
|
47
|
+
|
48
|
+
<a class="full_list_link" id="method_list_link"
|
49
|
+
href="method_list.html">
|
50
|
+
Method List
|
51
|
+
</a>
|
52
|
+
|
53
|
+
<a class="full_list_link" id="file_list_link"
|
54
|
+
href="file_list.html">
|
55
|
+
File List
|
56
|
+
</a>
|
57
|
+
|
58
|
+
</div>
|
59
|
+
<div class="clear"></div>
|
60
|
+
</div>
|
61
|
+
|
62
|
+
<iframe id="search_frame"></iframe>
|
63
|
+
|
64
|
+
<div id="content"><div id='filecontents'>
|
65
|
+
<p>Copyright © 2016 Naotoshi Seo</p>
|
66
|
+
|
67
|
+
<p>MIT License</p>
|
68
|
+
|
69
|
+
<p>Permission is hereby granted, free of charge, to any person obtaining a
|
70
|
+
copy of this software and associated documentation files (the “Software”),
|
71
|
+
to deal in the Software without restriction, including without limitation
|
72
|
+
the rights to use, copy, modify, merge, publish, distribute, sublicense,
|
73
|
+
and/or sell copies of the Software, and to permit persons to whom the
|
74
|
+
Software is furnished to do so, subject to the following conditions:</p>
|
75
|
+
|
76
|
+
<p>The above copyright notice and this permission notice shall be included in
|
77
|
+
all copies or substantial portions of the Software.</p>
|
78
|
+
|
79
|
+
<p>THE SOFTWARE IS PROVIDED “AS IS”, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
80
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
81
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
82
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
83
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
|
84
|
+
FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER
|
85
|
+
DEALINGS IN THE SOFTWARE.</p>
|
86
|
+
</div></div>
|
87
|
+
|
88
|
+
<div id="footer">
|
89
|
+
Generated on Wed Nov 23 20:08:31 2016 by
|
90
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
91
|
+
0.8.7.6 (ruby-2.3.2).
|
92
|
+
</div>
|
93
|
+
|
94
|
+
</body>
|
95
|
+
</html>
|
@@ -0,0 +1,312 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
|
4
|
+
<head>
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
|
6
|
+
<title>
|
7
|
+
File: README
|
8
|
+
|
9
|
+
— Documentation by YARD 0.8.7.6
|
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
|
+
hasFrames = window.top.frames.main ? true : false;
|
19
|
+
relpath = '';
|
20
|
+
framesUrl = "frames.html#!file.README.html";
|
21
|
+
</script>
|
22
|
+
|
23
|
+
|
24
|
+
<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
|
25
|
+
|
26
|
+
<script type="text/javascript" charset="utf-8" src="js/app.js"></script>
|
27
|
+
|
28
|
+
|
29
|
+
</head>
|
30
|
+
<body>
|
31
|
+
<div id="header">
|
32
|
+
<div id="menu">
|
33
|
+
|
34
|
+
<a href="_index.html">Index</a> »
|
35
|
+
<span class="title">File: README</span>
|
36
|
+
|
37
|
+
|
38
|
+
<div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
|
39
|
+
</div>
|
40
|
+
|
41
|
+
<div id="search">
|
42
|
+
|
43
|
+
<a class="full_list_link" id="class_list_link"
|
44
|
+
href="class_list.html">
|
45
|
+
Class List
|
46
|
+
</a>
|
47
|
+
|
48
|
+
<a class="full_list_link" id="method_list_link"
|
49
|
+
href="method_list.html">
|
50
|
+
Method List
|
51
|
+
</a>
|
52
|
+
|
53
|
+
<a class="full_list_link" id="file_list_link"
|
54
|
+
href="file_list.html">
|
55
|
+
File List
|
56
|
+
</a>
|
57
|
+
|
58
|
+
</div>
|
59
|
+
<div class="clear"></div>
|
60
|
+
</div>
|
61
|
+
|
62
|
+
<iframe id="search_frame"></iframe>
|
63
|
+
|
64
|
+
<div id="content"><div id='filecontents'>
|
65
|
+
<h1 id="label-gce-host">gce-host</h1>
|
66
|
+
|
67
|
+
<p>Search hosts on GCP GCE</p>
|
68
|
+
|
69
|
+
<h2 id="label-Installation">Installation</h2>
|
70
|
+
|
71
|
+
<pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_gem'>gem</span> <span class='id identifier rubyid_install'>install</span> <span class='id identifier rubyid_gce'>gce</span><span class='op'>-</span><span class='id identifier rubyid_host'>host</span>
|
72
|
+
</code></pre>
|
73
|
+
|
74
|
+
<h2 id="label-How+it+works">How it works</h2>
|
75
|
+
|
76
|
+
<p>This gems uses <a
|
77
|
+
href="https://cloud.google.com/compute/docs/storing-retrieving-metadata">metadata
|
78
|
+
of GCE resources</a>. You can configure, but basically use
|
79
|
+
<code>roles</code> key for roles.</p>
|
80
|
+
|
81
|
+
<p>You can manage roles of a host, and search hosts having a specified role
|
82
|
+
using thease metadata with this gem.</p>
|
83
|
+
|
84
|
+
<h2 id="label-Configuration">Configuration</h2>
|
85
|
+
|
86
|
+
<p>You can write a configuration file located at
|
87
|
+
<code>/etc/sysconfig/gce-host</code> (You can configure this path by
|
88
|
+
<code>GCE_HOST_CONFIG_FILE</code> environment variable), or as environment
|
89
|
+
variables:</p>
|
90
|
+
|
91
|
+
<p>GOOGLE API parameters:</p>
|
92
|
+
<ul><li>
|
93
|
+
<p><strong>AUTH_METHOD</strong>: Authentication method. Currently,
|
94
|
+
<code>compute_engine</code>, <code>json_key</code> and
|
95
|
+
<code>application_default</code> is available. The default is
|
96
|
+
<code>applilcation_default</code>.</p>
|
97
|
+
</li><li>
|
98
|
+
<p><strong>GOOGLE_CREDENTIAL_FILE</strong>: Path of credential file. Specify
|
99
|
+
your service account json file for <code>json_key</code> authentication
|
100
|
+
method.</p>
|
101
|
+
</li></ul>
|
102
|
+
|
103
|
+
<p>gce-host parameters:</p>
|
104
|
+
<ul><li>
|
105
|
+
<p><strong>ROLES_KEY (optional)</strong>: GCE metadata keys used to express
|
106
|
+
roles. The default is <code>roles</code></p>
|
107
|
+
</li><li>
|
108
|
+
<p>You can assign multiple roles seperated by
|
109
|
+
<code>ARRAY_VALUE_DELIMITER</code> (default: <code>,</code>)</p>
|
110
|
+
</li><li>
|
111
|
+
<p>Also, you can express levels of roles delimited by
|
112
|
+
<code>ROLE_VALUE_DELIMITER</code> (default <code>:</code>)</p>
|
113
|
+
</li><li>
|
114
|
+
<p>Example: admin:ami, then <code>GCE::Host.new(role:
|
115
|
+
'admin:ami')</code> and also <code>GCE::Host.new(role1:
|
116
|
+
'admin')</code> returns this host</p>
|
117
|
+
</li><li>
|
118
|
+
<p><strong>ROLE_VALUE_DELIMITER (optional)</strong>: A delimiter to express
|
119
|
+
levels of roles. Default is <code>:</code></p>
|
120
|
+
</li><li>
|
121
|
+
<p><strong>OPTIONAL_STRING_KEYS (optional)</strong>: You may add optional
|
122
|
+
non-array metadata keys. You can specify multiple keys like
|
123
|
+
<code>service,status</code>.</p>
|
124
|
+
</li><li>
|
125
|
+
<p><strong>OPTIONAL_ARRAY_KEYS (optional)</strong>: You may add optional array
|
126
|
+
metadata keys. Array allows multiple values delimited by
|
127
|
+
<code>ARRAY_VALUE_DELIMITER</code> (default: <code>,</code>)</p>
|
128
|
+
</li><li>
|
129
|
+
<p><strong>ARRAY_VALUE_DELIMITER (optional)</strong>: A delimiter to express
|
130
|
+
array. Default is <code>,</code></p>
|
131
|
+
</li><li>
|
132
|
+
<p><strong>LOG_LEVEL (optional)</strong>: Log level such as <code>info</code>,
|
133
|
+
<code>debug</code>, <code>error</code>. The default is <code>info</code>.</p>
|
134
|
+
</li></ul>
|
135
|
+
|
136
|
+
<p>See <a href="./example/example.conf">example.conf</a></p>
|
137
|
+
|
138
|
+
<h2 id="label-Metadata+Example">Metadata Example</h2>
|
139
|
+
<ul><li>
|
140
|
+
<p><strong>roles</strong>: app:web,app:db</p>
|
141
|
+
</li><li>
|
142
|
+
<p><strong>service</strong>: awesome</p>
|
143
|
+
</li><li>
|
144
|
+
<p><strong>status</strong>: setup</p>
|
145
|
+
</li></ul>
|
146
|
+
|
147
|
+
<h2 id="label-CLI+Usage">CLI Usage</h2>
|
148
|
+
|
149
|
+
<h3 id="label-CLI+Example">CLI Example</h3>
|
150
|
+
|
151
|
+
<pre class="code ruby"><code class="ruby">$ gce-host -j
|
152
|
+
{"hostname":"gce-host-db","roles":["foo","db:test"],"zone":"asia-northeast1-a","service":"gce-host","status":"active","tags":["master"],"instance_id":"4263858691219514807","private_ip_address":"10.240.0.6","public_ip_address":"104.198.89.55","creation_timestamp":"2016-11-22T06:51:04.650-08:00","state":"RUNNING"}
|
153
|
+
{"hostname":"gce-host-web","roles":["foo","web:test"],"zone":"asia-northeast1-a","service":"gce-host","status":"reserve","tags":["standby"],"instance_id":"8807276062743061943","private_ip_address":"10.240.0.5","public_ip_address":"104.198.87.6","creation_timestamp":"2016-11-22T06:51:04.653-08:00","state":"RUNNING"}</code></pre>
|
154
|
+
|
155
|
+
<pre class="code ruby"><code class="ruby">$ gce-host
|
156
|
+
gce-host-db
|
157
|
+
gce-host-web</code></pre>
|
158
|
+
|
159
|
+
<pre class="code ruby"><code class="ruby">$ gce-host --role1 db
|
160
|
+
gce-host-db</code></pre>
|
161
|
+
|
162
|
+
<pre class="code ruby"><code class="ruby">$ gce-host --role web:test
|
163
|
+
gce-host-web</code></pre>
|
164
|
+
|
165
|
+
<pre class="code ruby"><code class="ruby">$ gce-host --pretty-json
|
166
|
+
[
|
167
|
+
{
|
168
|
+
"hostname": "gce-host-db",
|
169
|
+
"roles": [
|
170
|
+
"foo",
|
171
|
+
"db:test"
|
172
|
+
],
|
173
|
+
"zone": "asia-northeast1-a",
|
174
|
+
"service": "gce-host",
|
175
|
+
"status": "active",
|
176
|
+
"tags": [
|
177
|
+
"master"
|
178
|
+
],
|
179
|
+
"instance_id": "4263858691219514807",
|
180
|
+
"private_ip_address": "10.240.0.6",
|
181
|
+
"public_ip_address": "104.198.89.55",
|
182
|
+
"creation_timestamp": "2016-11-22T06:51:04.650-08:00",
|
183
|
+
"state": "RUNNING"
|
184
|
+
},
|
185
|
+
{
|
186
|
+
"hostname": "gce-host-web",
|
187
|
+
"roles": [
|
188
|
+
"foo",
|
189
|
+
"web:test"
|
190
|
+
],
|
191
|
+
"zone": "asia-northeast1-a",
|
192
|
+
"service": "gce-host",
|
193
|
+
"status": "reserve",
|
194
|
+
"tags": [
|
195
|
+
"standby"
|
196
|
+
],
|
197
|
+
"instance_id": "8807276062743061943",
|
198
|
+
"private_ip_address": "10.240.0.5",
|
199
|
+
"public_ip_address": "104.198.87.6",
|
200
|
+
"creation_timestamp": "2016-11-22T06:51:04.653-08:00",
|
201
|
+
"state": "RUNNING"
|
202
|
+
}
|
203
|
+
]</code></pre>
|
204
|
+
|
205
|
+
<h3 id="label-CLI+Help">CLI Help</h3>
|
206
|
+
|
207
|
+
<pre class="code ruby"><code class="ruby">$ bin/gce-host --help
|
208
|
+
Usage: gce-host [options]
|
209
|
+
--hostname one,two,three name or private_dns_name
|
210
|
+
-r, --role one,two,three role
|
211
|
+
--r1, --role1 one,two,three role1, the 1st part of role delimited by :
|
212
|
+
--r2, --role2 one,two,three role2, the 2st part of role delimited by :
|
213
|
+
--r3, --role3 one,two,three role3, the 3st part of role delimited by :
|
214
|
+
--state one,two,three filter with instance state (default: running)
|
215
|
+
-a, --all list all hosts (remove default filter)
|
216
|
+
--private-ip, --ip show private ip address instead of hostname
|
217
|
+
--public-ip show public ip address instead of hostname
|
218
|
+
-i, --info show host info
|
219
|
+
-j, --jsonl show host info in line delimited json
|
220
|
+
--json show host info in json
|
221
|
+
--pretty-json show host info in pretty json
|
222
|
+
--debug debug mode
|
223
|
+
-h, --help show help</code></pre>
|
224
|
+
|
225
|
+
<h2 id="label-Library+Usage">Library Usage</h2>
|
226
|
+
|
227
|
+
<h3 id="label-Library+Example">Library Example</h3>
|
228
|
+
|
229
|
+
<pre class="code ruby"><code class="ruby"><span class='id identifier rubyid_require'>require</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>gce-host</span><span class='tstring_end'>'</span></span>
|
230
|
+
|
231
|
+
<span class='id identifier rubyid_hosts'>hosts</span> <span class='op'>=</span> <span class='const'>GCE</span><span class='op'>::</span><span class='const'>Host</span><span class='period'>.</span><span class='id identifier rubyid_new'>new</span><span class='lparen'>(</span><span class='label'>role:</span> <span class='tstring'><span class='tstring_beg'>'</span><span class='tstring_content'>db:test</span><span class='tstring_end'>'</span></span><span class='rparen'>)</span>
|
232
|
+
<span class='id identifier rubyid_hosts'>hosts</span><span class='period'>.</span><span class='id identifier rubyid_each'>each</span> <span class='kw'>do</span> <span class='op'>|</span><span class='id identifier rubyid_host'>host</span><span class='op'>|</span>
|
233
|
+
<span class='id identifier rubyid_puts'>puts</span> <span class='id identifier rubyid_host'>host</span>
|
234
|
+
<span class='kw'>end</span>
|
235
|
+
</code></pre>
|
236
|
+
|
237
|
+
<h3 id="label-Library+Reference">Library Reference</h3>
|
238
|
+
|
239
|
+
<p>See <a
|
240
|
+
href="http://sonots.github.io/gce-host/frames.html">sonots.github.io/gce-host/frames.html</a>.</p>
|
241
|
+
|
242
|
+
<h2 id="label-ChangeLog">ChangeLog</h2>
|
243
|
+
|
244
|
+
<p>See <a href="CHANGELOG.md">CHANGELOG.md</a> for details.</p>
|
245
|
+
|
246
|
+
<h2 id="label-For+Developers">For Developers</h2>
|
247
|
+
|
248
|
+
<h3 id="label-ToDo">ToDo</h3>
|
249
|
+
<ul><li>
|
250
|
+
<p>Use mock/stub to run test (currently, directly accessing to GCE)</p>
|
251
|
+
</li><li>
|
252
|
+
<p>Should cache a result of list_instances in like 30 seconds?</p>
|
253
|
+
</li></ul>
|
254
|
+
|
255
|
+
<h3 id="label-How+to+Run+test">How to Run test</h3>
|
256
|
+
|
257
|
+
<p>NOTE: Currently, mock is not supported yet. So, you have to create your own
|
258
|
+
gcloud account, and instances.</p>
|
259
|
+
|
260
|
+
<p>Configure .env file as</p>
|
261
|
+
|
262
|
+
<pre class="code ruby"><code class="ruby"><span class='const'>AUTH_METHOD</span><span class='op'>=</span><span class='id identifier rubyid_json_key'>json_key</span>
|
263
|
+
<span class='const'>GOOGLE_CREDENTIAL_FILE</span><span class='op'>=</span><span class='id identifier rubyid_service_acount'>service_acount</span><span class='period'>.</span><span class='id identifier rubyid_json'>json</span>
|
264
|
+
<span class='const'>GOOGLE_PROJECT</span><span class='op'>=</span><span class='const'>XXXXXXXXXXXXX</span>
|
265
|
+
<span class='const'>OPTIONAL_STRING_KEYS</span><span class='op'>=</span><span class='id identifier rubyid_service'>service</span><span class='comma'>,</span><span class='id identifier rubyid_status'>status</span>
|
266
|
+
<span class='const'>OPTIONAL_ARRAY_KEYS</span><span class='op'>=</span><span class='id identifier rubyid_tags'>tags</span>
|
267
|
+
</code></pre>
|
268
|
+
|
269
|
+
<p>Install terraform and run to create instances for tests</p>
|
270
|
+
|
271
|
+
<pre class="code ruby"><code class="ruby">$ brew install terraform
|
272
|
+
$ env $(cat .env) terraform plan
|
273
|
+
$ env ($cat .env) terraform apply</code></pre>
|
274
|
+
|
275
|
+
<p>Run test</p>
|
276
|
+
|
277
|
+
<pre class="code ruby"><code class="ruby">$ bundle exec rspec</code></pre>
|
278
|
+
|
279
|
+
<p>After working, destory instances by commenting out
|
280
|
+
<code>terraform.tf</code> and apply.</p>
|
281
|
+
|
282
|
+
<h3 id="label-How+to+Release+Gem">How to Release Gem</h3>
|
283
|
+
<ol><li>
|
284
|
+
<p>Update gem.version in the gemspec</p>
|
285
|
+
</li><li>
|
286
|
+
<p>Update CHANGELOG.md</p>
|
287
|
+
</li><li>
|
288
|
+
<p>git commit && git push</p>
|
289
|
+
</li><li>
|
290
|
+
<p>Run <code>bundle exec rake release</code></p>
|
291
|
+
</li></ol>
|
292
|
+
|
293
|
+
<h3 id="label-How+to+Update+doc">How to Update doc</h3>
|
294
|
+
<ol><li>
|
295
|
+
<p>Run <code>bundle exec yard</code></p>
|
296
|
+
</li><li>
|
297
|
+
<p>git commit && git push</p>
|
298
|
+
</li></ol>
|
299
|
+
|
300
|
+
<h3 id="label-Licenses">Licenses</h3>
|
301
|
+
|
302
|
+
<p>See <a href="LICENSE">LICENSE</a></p>
|
303
|
+
</div></div>
|
304
|
+
|
305
|
+
<div id="footer">
|
306
|
+
Generated on Wed Nov 23 20:08:31 2016 by
|
307
|
+
<a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
|
308
|
+
0.8.7.6 (ruby-2.3.2).
|
309
|
+
</div>
|
310
|
+
|
311
|
+
</body>
|
312
|
+
</html>
|
data/docs/file_list.html
ADDED
@@ -0,0 +1,63 @@
|
|
1
|
+
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
|
2
|
+
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
|
6
|
+
|
7
|
+
<link rel="stylesheet" href="css/full_list.css" type="text/css" media="screen" charset="utf-8" />
|
8
|
+
|
9
|
+
<link rel="stylesheet" href="css/common.css" type="text/css" media="screen" charset="utf-8" />
|
10
|
+
|
11
|
+
|
12
|
+
|
13
|
+
<script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
|
14
|
+
|
15
|
+
<script type="text/javascript" charset="utf-8" src="js/full_list.js"></script>
|
16
|
+
|
17
|
+
|
18
|
+
<title>File List</title>
|
19
|
+
<base id="base_target" target="_parent" />
|
20
|
+
</head>
|
21
|
+
<body>
|
22
|
+
<script type="text/javascript" charset="utf-8">
|
23
|
+
var hasFrames = false;
|
24
|
+
try {
|
25
|
+
hasFrames = window.top.frames.main ? true : false;
|
26
|
+
} catch (e) { }
|
27
|
+
if (hasFrames) {
|
28
|
+
document.getElementById('base_target').target = 'main';
|
29
|
+
document.body.className = 'frames';
|
30
|
+
}
|
31
|
+
</script>
|
32
|
+
<div id="content">
|
33
|
+
<h1 id="full_list_header">File List</h1>
|
34
|
+
<div id="nav">
|
35
|
+
|
36
|
+
<span><a target="_self" href="class_list.html">
|
37
|
+
Classes
|
38
|
+
</a></span>
|
39
|
+
|
40
|
+
<span><a target="_self" href="method_list.html">
|
41
|
+
Methods
|
42
|
+
</a></span>
|
43
|
+
|
44
|
+
<span><a target="_self" href="file_list.html">
|
45
|
+
Files
|
46
|
+
</a></span>
|
47
|
+
|
48
|
+
</div>
|
49
|
+
<div id="search">Search: <input type="text" /></div>
|
50
|
+
|
51
|
+
<ul id="full_list" class="file">
|
52
|
+
|
53
|
+
|
54
|
+
<li class="r1"><span class="object_link"><a href="index.html" title="README">README</a></a></li>
|
55
|
+
|
56
|
+
|
57
|
+
<li class="r2"><span class="object_link"><a href="file.LICENSE.html" title="LICENSE">LICENSE</a></a></li>
|
58
|
+
|
59
|
+
|
60
|
+
</ul>
|
61
|
+
</div>
|
62
|
+
</body>
|
63
|
+
</html>
|