deploy_log 0.2.0 → 0.2.1a
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/LICENSE.txt +1 -1
- data/README.md +22 -0
- data/_config.yml +1 -0
- data/bin/deploy_log +7 -1
- data/deploy_log.gemspec +1 -1
- data/docs/CODE_OF_CONDUCT_md.html +162 -0
- data/docs/DeployLog/Calendar.html +154 -0
- data/docs/DeployLog/Error.html +103 -0
- data/docs/DeployLog/Github/Deploys.html +388 -0
- data/docs/DeployLog/Github/Helper.html +314 -0
- data/docs/DeployLog/Github.html +96 -0
- data/docs/DeployLog.html +112 -0
- data/docs/DeployLogTest.html +117 -0
- data/docs/Gemfile.html +98 -0
- data/docs/LICENSE_txt.html +104 -0
- data/docs/README_md.html +219 -0
- data/docs/Rakefile.html +107 -0
- data/docs/_config.yml +1 -0
- data/docs/bin/setup.html +100 -0
- data/docs/created.rid +30 -0
- data/docs/css/fonts.css +167 -0
- data/docs/css/rdoc.css +590 -0
- data/docs/deploy_log_gemspec.html +125 -0
- data/docs/fonts/Lato-Light.ttf +0 -0
- data/docs/fonts/Lato-LightItalic.ttf +0 -0
- data/docs/fonts/Lato-Regular.ttf +0 -0
- data/docs/fonts/Lato-RegularItalic.ttf +0 -0
- data/docs/fonts/SourceCodePro-Bold.ttf +0 -0
- data/docs/fonts/SourceCodePro-Regular.ttf +0 -0
- data/docs/images/add.png +0 -0
- data/docs/images/arrow_up.png +0 -0
- data/docs/images/brick.png +0 -0
- data/docs/images/brick_link.png +0 -0
- data/docs/images/bug.png +0 -0
- data/docs/images/bullet_black.png +0 -0
- data/docs/images/bullet_toggle_minus.png +0 -0
- data/docs/images/bullet_toggle_plus.png +0 -0
- data/docs/images/date.png +0 -0
- data/docs/images/delete.png +0 -0
- data/docs/images/find.png +0 -0
- data/docs/images/loadingAnimation.gif +0 -0
- data/docs/images/macFFBgHack.png +0 -0
- data/docs/images/package.png +0 -0
- data/docs/images/page_green.png +0 -0
- data/docs/images/page_white_text.png +0 -0
- data/docs/images/page_white_width.png +0 -0
- data/docs/images/plugin.png +0 -0
- data/docs/images/ruby.png +0 -0
- data/docs/images/tag_blue.png +0 -0
- data/docs/images/tag_green.png +0 -0
- data/docs/images/transparent.png +0 -0
- data/docs/images/wrench.png +0 -0
- data/docs/images/wrench_orange.png +0 -0
- data/docs/images/zoom.png +0 -0
- data/docs/index.html +117 -0
- data/docs/js/darkfish.js +161 -0
- data/docs/js/jquery.js +4 -0
- data/docs/js/navigation.js +141 -0
- data/docs/js/navigation.js.gz +0 -0
- data/docs/js/search.js +109 -0
- data/docs/js/search_index.js +1 -0
- data/docs/js/search_index.js.gz +0 -0
- data/docs/js/searcher.js +229 -0
- data/docs/js/searcher.js.gz +0 -0
- data/docs/table_of_contents.html +213 -0
- data/lib/deploy_log/github/deploys.rb +3 -1
- data/lib/deploy_log/github/helper.rb +30 -3
- data/lib/deploy_log/version.rb +1 -1
- metadata +65 -4
@@ -0,0 +1,388 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
|
3
|
+
<html>
|
4
|
+
<head>
|
5
|
+
<meta charset="UTF-8">
|
6
|
+
|
7
|
+
<title>class DeployLog::Github::Deploys - RDoc Documentation</title>
|
8
|
+
|
9
|
+
<script type="text/javascript">
|
10
|
+
var rdoc_rel_prefix = "../../";
|
11
|
+
var index_rel_prefix = "../../";
|
12
|
+
</script>
|
13
|
+
|
14
|
+
<script src="../../js/jquery.js"></script>
|
15
|
+
<script src="../../js/darkfish.js"></script>
|
16
|
+
|
17
|
+
<link href="../../css/fonts.css" rel="stylesheet">
|
18
|
+
<link href="../../css/rdoc.css" rel="stylesheet">
|
19
|
+
|
20
|
+
|
21
|
+
|
22
|
+
|
23
|
+
<body id="top" role="document" class="class">
|
24
|
+
<nav role="navigation">
|
25
|
+
<div id="project-navigation">
|
26
|
+
<div id="home-section" role="region" title="Quick navigation" class="nav-section">
|
27
|
+
<h2>
|
28
|
+
<a href="../../index.html" rel="home">Home</a>
|
29
|
+
</h2>
|
30
|
+
|
31
|
+
<div id="table-of-contents-navigation">
|
32
|
+
<a href="../../table_of_contents.html#pages">Pages</a>
|
33
|
+
<a href="../../table_of_contents.html#classes">Classes</a>
|
34
|
+
<a href="../../table_of_contents.html#methods">Methods</a>
|
35
|
+
</div>
|
36
|
+
</div>
|
37
|
+
|
38
|
+
<div id="search-section" role="search" class="project-section initially-hidden">
|
39
|
+
<form action="#" method="get" accept-charset="utf-8">
|
40
|
+
<div id="search-field-wrapper">
|
41
|
+
<input id="search-field" role="combobox" aria-label="Search"
|
42
|
+
aria-autocomplete="list" aria-controls="search-results"
|
43
|
+
type="text" name="search" placeholder="Search" spellcheck="false"
|
44
|
+
title="Type to search, Up and Down to navigate, Enter to load">
|
45
|
+
</div>
|
46
|
+
|
47
|
+
<ul id="search-results" aria-label="Search Results"
|
48
|
+
aria-busy="false" aria-expanded="false"
|
49
|
+
aria-atomic="false" class="initially-hidden"></ul>
|
50
|
+
</form>
|
51
|
+
</div>
|
52
|
+
|
53
|
+
</div>
|
54
|
+
|
55
|
+
|
56
|
+
|
57
|
+
<div id="class-metadata">
|
58
|
+
|
59
|
+
<div id="parent-class-section" class="nav-section">
|
60
|
+
<h3>Parent</h3>
|
61
|
+
|
62
|
+
|
63
|
+
<p class="link">Object
|
64
|
+
|
65
|
+
</div>
|
66
|
+
|
67
|
+
|
68
|
+
|
69
|
+
<!-- Method Quickref -->
|
70
|
+
<div id="method-list-section" class="nav-section">
|
71
|
+
<h3>Methods</h3>
|
72
|
+
|
73
|
+
<ul class="link-list" role="directory">
|
74
|
+
|
75
|
+
<li ><a href="#method-c-new">::new</a>
|
76
|
+
|
77
|
+
<li ><a href="#method-i-merged_between">#merged_between</a>
|
78
|
+
|
79
|
+
<li ><a href="#method-i-merged_during_week">#merged_during_week</a>
|
80
|
+
|
81
|
+
<li ><a href="#method-i-merged_on">#merged_on</a>
|
82
|
+
|
83
|
+
<li ><a href="#method-i-merged_today">#merged_today</a>
|
84
|
+
|
85
|
+
<li ><a href="#method-i-pr_for_branch">#pr_for_branch</a>
|
86
|
+
|
87
|
+
<li ><a href="#method-i-pr_title">#pr_title</a>
|
88
|
+
|
89
|
+
</ul>
|
90
|
+
</div>
|
91
|
+
|
92
|
+
</div>
|
93
|
+
</nav>
|
94
|
+
|
95
|
+
<main role="main" aria-labelledby="class-DeployLog::Github::Deploys">
|
96
|
+
<h1 id="class-DeployLog::Github::Deploys" class="class">
|
97
|
+
class DeployLog::Github::Deploys
|
98
|
+
</h1>
|
99
|
+
|
100
|
+
<section class="description">
|
101
|
+
|
102
|
+
</section>
|
103
|
+
|
104
|
+
|
105
|
+
<section id="5Buntitled-5D" class="documentation-section">
|
106
|
+
|
107
|
+
|
108
|
+
|
109
|
+
|
110
|
+
|
111
|
+
|
112
|
+
|
113
|
+
|
114
|
+
|
115
|
+
<section id="public-class-5Buntitled-5D-method-details" class="method-section">
|
116
|
+
<header>
|
117
|
+
<h3>Public Class Methods</h3>
|
118
|
+
</header>
|
119
|
+
|
120
|
+
|
121
|
+
<div id="method-c-new" class="method-detail ">
|
122
|
+
|
123
|
+
<div class="method-heading">
|
124
|
+
<span class="method-name">new</span><span
|
125
|
+
class="method-args">()</span>
|
126
|
+
|
127
|
+
<span class="method-click-advice">click to toggle source</span>
|
128
|
+
|
129
|
+
</div>
|
130
|
+
|
131
|
+
|
132
|
+
<div class="method-description">
|
133
|
+
|
134
|
+
|
135
|
+
|
136
|
+
|
137
|
+
|
138
|
+
|
139
|
+
<div class="method-source-code" id="new-source">
|
140
|
+
<pre><span class="ruby-comment"># File lib/deploy_log/github/deploys.rb, line 6</span>
|
141
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">initialize</span>
|
142
|
+
<span class="ruby-ivar">@github</span> = <span class="ruby-constant">Helper</span>.<span class="ruby-identifier">new</span>(<span class="ruby-constant">ARGV</span>.<span class="ruby-identifier">first</span>)
|
143
|
+
<span class="ruby-ivar">@calendar</span> = <span class="ruby-constant">DeployLog</span><span class="ruby-operator">::</span><span class="ruby-constant">Calendar</span>.<span class="ruby-identifier">new</span>
|
144
|
+
<span class="ruby-keyword">end</span></pre>
|
145
|
+
</div>
|
146
|
+
|
147
|
+
</div>
|
148
|
+
|
149
|
+
|
150
|
+
|
151
|
+
|
152
|
+
</div>
|
153
|
+
|
154
|
+
|
155
|
+
</section>
|
156
|
+
|
157
|
+
<section id="public-instance-5Buntitled-5D-method-details" class="method-section">
|
158
|
+
<header>
|
159
|
+
<h3>Public Instance Methods</h3>
|
160
|
+
</header>
|
161
|
+
|
162
|
+
|
163
|
+
<div id="method-i-merged_between" class="method-detail ">
|
164
|
+
|
165
|
+
<div class="method-heading">
|
166
|
+
<span class="method-name">merged_between</span><span
|
167
|
+
class="method-args">(start, finish = nil)</span>
|
168
|
+
|
169
|
+
<span class="method-click-advice">click to toggle source</span>
|
170
|
+
|
171
|
+
</div>
|
172
|
+
|
173
|
+
|
174
|
+
<div class="method-description">
|
175
|
+
|
176
|
+
|
177
|
+
|
178
|
+
|
179
|
+
|
180
|
+
|
181
|
+
<div class="method-source-code" id="merged_between-source">
|
182
|
+
<pre><span class="ruby-comment"># File lib/deploy_log/github/deploys.rb, line 11</span>
|
183
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">merged_between</span>(<span class="ruby-identifier">start</span>, <span class="ruby-identifier">finish</span> = <span class="ruby-keyword">nil</span>)
|
184
|
+
<span class="ruby-keyword">return</span> <span class="ruby-constant">Notify</span>.<span class="ruby-identifier">error</span> <span class="ruby-string">'Start (--start=) is a required argument'</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">start</span>.<span class="ruby-identifier">nil?</span>
|
185
|
+
|
186
|
+
<span class="ruby-identifier">finish</span> = <span class="ruby-constant">Date</span>.<span class="ruby-identifier">today</span>.<span class="ruby-identifier">to_time</span> <span class="ruby-operator">+</span> (<span class="ruby-value">24</span> <span class="ruby-operator">*</span> <span class="ruby-value">60</span> <span class="ruby-operator">*</span> <span class="ruby-value">60</span>) <span class="ruby-operator">-</span> <span class="ruby-value">1</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">finish</span>.<span class="ruby-identifier">nil?</span>
|
187
|
+
|
188
|
+
<span class="ruby-ivar">@github</span>.<span class="ruby-identifier">pulls_in_timeframe</span>(<span class="ruby-identifier">start</span>, <span class="ruby-identifier">finish</span>)
|
189
|
+
<span class="ruby-keyword">end</span></pre>
|
190
|
+
</div>
|
191
|
+
|
192
|
+
</div>
|
193
|
+
|
194
|
+
|
195
|
+
|
196
|
+
|
197
|
+
</div>
|
198
|
+
|
199
|
+
|
200
|
+
<div id="method-i-merged_during_week" class="method-detail ">
|
201
|
+
|
202
|
+
<div class="method-heading">
|
203
|
+
<span class="method-name">merged_during_week</span><span
|
204
|
+
class="method-args">(week_num)</span>
|
205
|
+
|
206
|
+
<span class="method-click-advice">click to toggle source</span>
|
207
|
+
|
208
|
+
</div>
|
209
|
+
|
210
|
+
|
211
|
+
<div class="method-description">
|
212
|
+
|
213
|
+
|
214
|
+
|
215
|
+
|
216
|
+
|
217
|
+
|
218
|
+
<div class="method-source-code" id="merged_during_week-source">
|
219
|
+
<pre><span class="ruby-comment"># File lib/deploy_log/github/deploys.rb, line 34</span>
|
220
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">merged_during_week</span>(<span class="ruby-identifier">week_num</span>)
|
221
|
+
<span class="ruby-keyword">return</span> <span class="ruby-constant">Notify</span>.<span class="ruby-identifier">error</span> <span class="ruby-string">'Week number (--week|-w) is a required argument'</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">week_num</span>.<span class="ruby-identifier">nil?</span>
|
222
|
+
|
223
|
+
<span class="ruby-identifier">week</span> = <span class="ruby-ivar">@calendar</span>.<span class="ruby-identifier">week</span>(<span class="ruby-identifier">week_num</span>.<span class="ruby-identifier">to_i</span>)
|
224
|
+
|
225
|
+
<span class="ruby-ivar">@github</span>.<span class="ruby-identifier">pulls_in_timeframe</span>(<span class="ruby-identifier">week</span>[<span class="ruby-value">:first</span>], <span class="ruby-identifier">week</span>[<span class="ruby-value">:last</span>])
|
226
|
+
<span class="ruby-keyword">end</span></pre>
|
227
|
+
</div>
|
228
|
+
|
229
|
+
</div>
|
230
|
+
|
231
|
+
|
232
|
+
|
233
|
+
|
234
|
+
</div>
|
235
|
+
|
236
|
+
|
237
|
+
<div id="method-i-merged_on" class="method-detail ">
|
238
|
+
|
239
|
+
<div class="method-heading">
|
240
|
+
<span class="method-name">merged_on</span><span
|
241
|
+
class="method-args">(start)</span>
|
242
|
+
|
243
|
+
<span class="method-click-advice">click to toggle source</span>
|
244
|
+
|
245
|
+
</div>
|
246
|
+
|
247
|
+
|
248
|
+
<div class="method-description">
|
249
|
+
|
250
|
+
|
251
|
+
|
252
|
+
|
253
|
+
|
254
|
+
|
255
|
+
<div class="method-source-code" id="merged_on-source">
|
256
|
+
<pre><span class="ruby-comment"># File lib/deploy_log/github/deploys.rb, line 26</span>
|
257
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">merged_on</span>(<span class="ruby-identifier">start</span>)
|
258
|
+
<span class="ruby-keyword">return</span> <span class="ruby-constant">Notify</span>.<span class="ruby-identifier">error</span> <span class="ruby-string">'Start (--start=) is a required argument'</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">start</span>.<span class="ruby-identifier">nil?</span>
|
259
|
+
|
260
|
+
<span class="ruby-identifier">finish</span> = <span class="ruby-identifier">start</span> <span class="ruby-operator">+</span> <span class="ruby-value">24</span> <span class="ruby-operator">*</span> <span class="ruby-value">60</span> <span class="ruby-operator">*</span> <span class="ruby-value">60</span> <span class="ruby-operator">-</span> <span class="ruby-value">1</span>
|
261
|
+
|
262
|
+
<span class="ruby-ivar">@github</span>.<span class="ruby-identifier">pulls_in_timeframe</span>(<span class="ruby-identifier">start</span>, <span class="ruby-identifier">finish</span>)
|
263
|
+
<span class="ruby-keyword">end</span></pre>
|
264
|
+
</div>
|
265
|
+
|
266
|
+
</div>
|
267
|
+
|
268
|
+
|
269
|
+
|
270
|
+
|
271
|
+
</div>
|
272
|
+
|
273
|
+
|
274
|
+
<div id="method-i-merged_today" class="method-detail ">
|
275
|
+
|
276
|
+
<div class="method-heading">
|
277
|
+
<span class="method-name">merged_today</span><span
|
278
|
+
class="method-args">()</span>
|
279
|
+
|
280
|
+
<span class="method-click-advice">click to toggle source</span>
|
281
|
+
|
282
|
+
</div>
|
283
|
+
|
284
|
+
|
285
|
+
<div class="method-description">
|
286
|
+
|
287
|
+
|
288
|
+
|
289
|
+
|
290
|
+
|
291
|
+
|
292
|
+
<div class="method-source-code" id="merged_today-source">
|
293
|
+
<pre><span class="ruby-comment"># File lib/deploy_log/github/deploys.rb, line 19</span>
|
294
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">merged_today</span>
|
295
|
+
<span class="ruby-identifier">start</span> = <span class="ruby-constant">Date</span>.<span class="ruby-identifier">today</span>.<span class="ruby-identifier">to_time</span> <span class="ruby-comment"># 12:00AM this morning</span>
|
296
|
+
<span class="ruby-identifier">finish</span> = <span class="ruby-constant">Date</span>.<span class="ruby-identifier">today</span>.<span class="ruby-identifier">to_time</span> <span class="ruby-operator">+</span> (<span class="ruby-value">24</span> <span class="ruby-operator">*</span> <span class="ruby-value">60</span> <span class="ruby-operator">*</span> <span class="ruby-value">60</span>) <span class="ruby-operator">-</span> <span class="ruby-value">1</span> <span class="ruby-comment"># 11:59PM tonight</span>
|
297
|
+
|
298
|
+
<span class="ruby-ivar">@github</span>.<span class="ruby-identifier">pulls_in_timeframe</span>(<span class="ruby-identifier">start</span>, <span class="ruby-identifier">finish</span>)
|
299
|
+
<span class="ruby-keyword">end</span></pre>
|
300
|
+
</div>
|
301
|
+
|
302
|
+
</div>
|
303
|
+
|
304
|
+
|
305
|
+
|
306
|
+
|
307
|
+
</div>
|
308
|
+
|
309
|
+
|
310
|
+
<div id="method-i-pr_for_branch" class="method-detail ">
|
311
|
+
|
312
|
+
<div class="method-heading">
|
313
|
+
<span class="method-name">pr_for_branch</span><span
|
314
|
+
class="method-args">(branch)</span>
|
315
|
+
|
316
|
+
<span class="method-click-advice">click to toggle source</span>
|
317
|
+
|
318
|
+
</div>
|
319
|
+
|
320
|
+
|
321
|
+
<div class="method-description">
|
322
|
+
|
323
|
+
|
324
|
+
|
325
|
+
|
326
|
+
|
327
|
+
|
328
|
+
<div class="method-source-code" id="pr_for_branch-source">
|
329
|
+
<pre><span class="ruby-comment"># File lib/deploy_log/github/deploys.rb, line 46</span>
|
330
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">pr_for_branch</span>(<span class="ruby-identifier">branch</span>)
|
331
|
+
<span class="ruby-ivar">@github</span>.<span class="ruby-identifier">search_pulls_by</span>(<span class="ruby-identifier">branch</span>, <span class="ruby-value">:ref</span>)
|
332
|
+
<span class="ruby-keyword">end</span></pre>
|
333
|
+
</div>
|
334
|
+
|
335
|
+
</div>
|
336
|
+
|
337
|
+
|
338
|
+
|
339
|
+
|
340
|
+
</div>
|
341
|
+
|
342
|
+
|
343
|
+
<div id="method-i-pr_title" class="method-detail ">
|
344
|
+
|
345
|
+
<div class="method-heading">
|
346
|
+
<span class="method-name">pr_title</span><span
|
347
|
+
class="method-args">(title)</span>
|
348
|
+
|
349
|
+
<span class="method-click-advice">click to toggle source</span>
|
350
|
+
|
351
|
+
</div>
|
352
|
+
|
353
|
+
|
354
|
+
<div class="method-description">
|
355
|
+
|
356
|
+
|
357
|
+
|
358
|
+
|
359
|
+
|
360
|
+
|
361
|
+
<div class="method-source-code" id="pr_title-source">
|
362
|
+
<pre><span class="ruby-comment"># File lib/deploy_log/github/deploys.rb, line 42</span>
|
363
|
+
<span class="ruby-keyword">def</span> <span class="ruby-identifier ruby-title">pr_title</span>(<span class="ruby-identifier">title</span>)
|
364
|
+
<span class="ruby-ivar">@github</span>.<span class="ruby-identifier">search_pulls_by</span>(<span class="ruby-identifier">title</span>, <span class="ruby-value">:title</span>)
|
365
|
+
<span class="ruby-keyword">end</span></pre>
|
366
|
+
</div>
|
367
|
+
|
368
|
+
</div>
|
369
|
+
|
370
|
+
|
371
|
+
|
372
|
+
|
373
|
+
</div>
|
374
|
+
|
375
|
+
|
376
|
+
</section>
|
377
|
+
|
378
|
+
</section>
|
379
|
+
|
380
|
+
</main>
|
381
|
+
|
382
|
+
|
383
|
+
<footer id="validator-badges" role="contentinfo">
|
384
|
+
<p><a href="https://validator.w3.org/check/referer">Validate</a>
|
385
|
+
<p>Generated by <a href="https://ruby.github.io/rdoc/">RDoc</a> 6.1.0.
|
386
|
+
<p>Based on <a href="http://deveiate.org/projects/Darkfish-RDoc/">Darkfish</a> by <a href="http://deveiate.org">Michael Granger</a>.
|
387
|
+
</footer>
|
388
|
+
|