when_easter 0.2.3 → 0.2.4

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.3
1
+ 0.2.4
data/doc/Rakefile.html ADDED
@@ -0,0 +1,110 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
+
5
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
6
+ <head>
7
+ <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
8
+
9
+ <title>File: Rakefile [RDoc Documentation]</title>
10
+
11
+ <link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet" />
12
+
13
+ <script src="./js/jquery.js" type="text/javascript"
14
+ charset="utf-8"></script>
15
+ <script src="./js/thickbox-compressed.js" type="text/javascript"
16
+ charset="utf-8"></script>
17
+ <script src="./js/quicksearch.js" type="text/javascript"
18
+ charset="utf-8"></script>
19
+ <script src="./js/darkfish.js" type="text/javascript"
20
+ charset="utf-8"></script>
21
+ </head>
22
+
23
+ <body class="file">
24
+ <div id="metadata">
25
+ <div id="home-metadata">
26
+ <div id="home-section" class="section">
27
+ <h3 class="section-header">
28
+ <a href="./index.html">Home</a>
29
+ <a href="./index.html#classes">Classes</a>
30
+ <a href="./index.html#methods">Methods</a>
31
+ </h3>
32
+ </div>
33
+ </div>
34
+
35
+ <div id="project-metadata">
36
+
37
+
38
+ <div id="fileindex-section" class="section project-section">
39
+ <h3 class="section-header">Files</h3>
40
+ <ul>
41
+
42
+ <li class="file"><a href="./Rakefile.html">Rakefile</a></li>
43
+
44
+ <li class="file"><a href="./VERSION.html">VERSION</a></li>
45
+
46
+ </ul>
47
+ </div>
48
+
49
+
50
+ <div id="classindex-section" class="section project-section">
51
+ <h3 class="section-header">Class Index
52
+ <span class="search-toggle"><img src="./images/find.png"
53
+ height="16" width="16" alt="[+]"
54
+ title="show/hide quicksearch" /></span></h3>
55
+ <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
56
+ <fieldset>
57
+ <legend>Quicksearch</legend>
58
+ <input type="text" name="quicksearch" value=""
59
+ class="quicksearch-field" />
60
+ </fieldset>
61
+ </form>
62
+
63
+ <ul class="link-list">
64
+
65
+ <li><a href="./WhenEaster.html">WhenEaster</a></li>
66
+
67
+ </ul>
68
+ <div id="no-class-search-results" style="display: none;">No matching classes.</div>
69
+ </div>
70
+
71
+
72
+ </div>
73
+ </div>
74
+
75
+ <div id="documentation">
76
+
77
+ <p>require ‘rubygems’ require ‘rake’ begin</p>
78
+
79
+ <pre>require 'jeweler'
80
+ Jeweler::Tasks.new do |gemspec|
81
+ gemspec.name= &quot;when_easter&quot;
82
+ gemspec.summary = &quot;Get the date of Roman and Greek Easter&quot;
83
+ gemspec.description = &quot;A tool that calculates the dates of Roman and Greek Easter.&quot;
84
+ gemspec.email = &quot;michal@nierebinski.pl&quot;
85
+ gemspec.homepage = &quot;https://github.com/Loyolny/when_easter&quot;
86
+ gemspec.executables = [&quot;when_easter&quot;,&quot;when_roman_easter&quot;,&quot;when_greek_easter&quot;]
87
+ gemspec.authors = [&quot;Michał Nierebiński&quot;]
88
+ gemspec.date = File.utime(0,0,'VERSION')
89
+
90
+ end
91
+ Jeweler::GemcutterTasks.new</pre>
92
+
93
+ <p>rescue LoadError</p>
94
+
95
+ <pre>puts &quot;Ya don't have Jeweler gem installed. Install it with: sudo gem install jeweler&quot;</pre>
96
+
97
+ <p>end #<a
98
+ href="http://"#{File.dirname(__FILE__)}/tasks/*.rake"">Dir</a>.sort.each {
99
+ |ext| load ext }</p>
100
+
101
+ </div>
102
+
103
+ <div id="validator-badges">
104
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
105
+ <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
106
+ Rdoc Generator</a> 2</small>.</p>
107
+ </div>
108
+ </body>
109
+ </html>
110
+
data/doc/VERSION.html ADDED
@@ -0,0 +1,88 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
+
5
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
6
+ <head>
7
+ <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
8
+
9
+ <title>File: VERSION [RDoc Documentation]</title>
10
+
11
+ <link type="text/css" media="screen" href="./rdoc.css" rel="stylesheet" />
12
+
13
+ <script src="./js/jquery.js" type="text/javascript"
14
+ charset="utf-8"></script>
15
+ <script src="./js/thickbox-compressed.js" type="text/javascript"
16
+ charset="utf-8"></script>
17
+ <script src="./js/quicksearch.js" type="text/javascript"
18
+ charset="utf-8"></script>
19
+ <script src="./js/darkfish.js" type="text/javascript"
20
+ charset="utf-8"></script>
21
+ </head>
22
+
23
+ <body class="file">
24
+ <div id="metadata">
25
+ <div id="home-metadata">
26
+ <div id="home-section" class="section">
27
+ <h3 class="section-header">
28
+ <a href="./index.html">Home</a>
29
+ <a href="./index.html#classes">Classes</a>
30
+ <a href="./index.html#methods">Methods</a>
31
+ </h3>
32
+ </div>
33
+ </div>
34
+
35
+ <div id="project-metadata">
36
+
37
+
38
+ <div id="fileindex-section" class="section project-section">
39
+ <h3 class="section-header">Files</h3>
40
+ <ul>
41
+
42
+ <li class="file"><a href="./Rakefile.html">Rakefile</a></li>
43
+
44
+ <li class="file"><a href="./VERSION.html">VERSION</a></li>
45
+
46
+ </ul>
47
+ </div>
48
+
49
+
50
+ <div id="classindex-section" class="section project-section">
51
+ <h3 class="section-header">Class Index
52
+ <span class="search-toggle"><img src="./images/find.png"
53
+ height="16" width="16" alt="[+]"
54
+ title="show/hide quicksearch" /></span></h3>
55
+ <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
56
+ <fieldset>
57
+ <legend>Quicksearch</legend>
58
+ <input type="text" name="quicksearch" value=""
59
+ class="quicksearch-field" />
60
+ </fieldset>
61
+ </form>
62
+
63
+ <ul class="link-list">
64
+
65
+ <li><a href="./WhenEaster.html">WhenEaster</a></li>
66
+
67
+ </ul>
68
+ <div id="no-class-search-results" style="display: none;">No matching classes.</div>
69
+ </div>
70
+
71
+
72
+ </div>
73
+ </div>
74
+
75
+ <div id="documentation">
76
+
77
+ <p>0.2.3</p>
78
+
79
+ </div>
80
+
81
+ <div id="validator-badges">
82
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
83
+ <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
84
+ Rdoc Generator</a> 2</small>.</p>
85
+ </div>
86
+ </body>
87
+ </html>
88
+
@@ -0,0 +1,380 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
5
+ <head>
6
+ <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
7
+
8
+ <title>Class: WhenEaster</title>
9
+
10
+ <link rel="stylesheet" href="./rdoc.css" type="text/css" media="screen" />
11
+
12
+ <script src="./js/jquery.js" type="text/javascript" charset="utf-8"></script>
13
+ <script src="./js/thickbox-compressed.js" type="text/javascript" charset="utf-8"></script>
14
+ <script src="./js/quicksearch.js" type="text/javascript" charset="utf-8"></script>
15
+ <script src="./js/darkfish.js" type="text/javascript" charset="utf-8"></script>
16
+
17
+ </head>
18
+ <body id="top" class="class">
19
+
20
+ <div id="metadata">
21
+ <div id="home-metadata">
22
+ <div id="home-section" class="section">
23
+ <h3 class="section-header">
24
+ <a href="./index.html">Home</a>
25
+ <a href="./index.html#classes">Classes</a>
26
+ <a href="./index.html#methods">Methods</a>
27
+ </h3>
28
+ </div>
29
+ </div>
30
+
31
+ <div id="file-metadata">
32
+ <div id="file-list-section" class="section">
33
+ <h3 class="section-header">In Files</h3>
34
+ <div class="section-body">
35
+ <ul>
36
+
37
+ <li><a href="./lib/when_easter_rb.html?TB_iframe=true&amp;height=550&amp;width=785"
38
+ class="thickbox" title="lib/when_easter.rb">lib/when_easter.rb</a></li>
39
+
40
+ </ul>
41
+ </div>
42
+ </div>
43
+
44
+
45
+ </div>
46
+
47
+ <div id="class-metadata">
48
+
49
+ <!-- Parent Class -->
50
+ <div id="parent-class-section" class="section">
51
+ <h3 class="section-header">Parent</h3>
52
+
53
+ <p class="link">Object</p>
54
+
55
+ </div>
56
+
57
+
58
+
59
+
60
+
61
+
62
+
63
+ <!-- Method Quickref -->
64
+ <div id="method-list-section" class="section">
65
+ <h3 class="section-header">Methods</h3>
66
+ <ul class="link-list">
67
+
68
+ <li><a href="#method-c-find">::find</a></li>
69
+
70
+ <li><a href="#method-c-find_greek">::find_greek</a></li>
71
+
72
+ <li><a href="#method-c-find_roman">::find_roman</a></li>
73
+
74
+ <li><a href="#method-c-greek_easter">::greek_easter</a></li>
75
+
76
+ <li><a href="#method-c-roman_easter">::roman_easter</a></li>
77
+
78
+ </ul>
79
+ </div>
80
+
81
+
82
+
83
+ </div>
84
+
85
+ <div id="project-metadata">
86
+
87
+
88
+ <div id="fileindex-section" class="section project-section">
89
+ <h3 class="section-header">Files</h3>
90
+ <ul>
91
+
92
+ <li class="file"><a href="./Rakefile.html">Rakefile</a></li>
93
+
94
+ <li class="file"><a href="./VERSION.html">VERSION</a></li>
95
+
96
+ </ul>
97
+ </div>
98
+
99
+
100
+ <div id="classindex-section" class="section project-section">
101
+ <h3 class="section-header">Class/Module Index
102
+ <span class="search-toggle"><img src="./images/find.png"
103
+ height="16" width="16" alt="[+]"
104
+ title="show/hide quicksearch" /></span></h3>
105
+ <form action="#" method="get" accept-charset="utf-8" class="initially-hidden">
106
+ <fieldset>
107
+ <legend>Quicksearch</legend>
108
+ <input type="text" name="quicksearch" value=""
109
+ class="quicksearch-field" />
110
+ </fieldset>
111
+ </form>
112
+
113
+ <ul class="link-list">
114
+
115
+ <li><a href="./WhenEaster.html">WhenEaster</a></li>
116
+
117
+ </ul>
118
+ <div id="no-class-search-results" style="display: none;">No matching classes.</div>
119
+ </div>
120
+
121
+
122
+ </div>
123
+ </div>
124
+
125
+ <div id="documentation">
126
+ <h1 class="class">WhenEaster</h1>
127
+
128
+ <div id="description" class="description">
129
+
130
+ </div><!-- description -->
131
+
132
+
133
+ <div id="5Buntitled-5D" class="documentation-section">
134
+
135
+
136
+
137
+
138
+
139
+
140
+
141
+
142
+ <!-- Methods -->
143
+
144
+ <div id="public-class-method-details" class="method-section section">
145
+ <h3 class="section-header">Public Class Methods</h3>
146
+
147
+
148
+ <div id="find-method" class="method-detail ">
149
+ <a name="method-c-find"></a>
150
+
151
+
152
+ <div class="method-heading">
153
+ <span class="method-name">find</span><span
154
+ class="method-args">(year = nil)</span>
155
+ <span class="method-click-advice">click to toggle source</span>
156
+ </div>
157
+
158
+
159
+ <div class="method-description">
160
+
161
+ <pre>WhenEaster.find</pre>
162
+
163
+ <h1>&gt; In the year 2011, the Roman Easter is on 24 April. n In the year 2011, the Greek Easter is on 24 April.</h1>
164
+
165
+
166
+
167
+ <div class="method-source-code" id="find-source">
168
+ <pre>
169
+ <span class="ruby-comment"># File lib/when_easter.rb, line 4</span>
170
+ <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">find</span>(<span class="ruby-identifier">year</span> = <span class="ruby-keyword">nil</span>)
171
+ <span class="ruby-identifier">roman_date</span> = <span class="ruby-keyword">self</span>.<span class="ruby-identifier">roman_easter</span>(<span class="ruby-identifier">year</span>)
172
+ <span class="ruby-identifier">greek_date</span> = <span class="ruby-keyword">self</span>.<span class="ruby-identifier">greek_easter</span>(<span class="ruby-identifier">year</span>)
173
+ <span class="ruby-keyword">return</span> <span class="ruby-node">&quot;In the year #{roman_date.year}, the Roman Easter is on #{roman_date.strftime(&quot;%d %B&quot;)}. \nIn the year #{greek_date.year}, the Roman Easter is on #{greek_date.strftime(&quot;%d %B&quot;)}.&quot;</span>
174
+ <span class="ruby-keyword">end</span></pre>
175
+ </div><!-- find-source -->
176
+
177
+ </div>
178
+
179
+
180
+
181
+
182
+ </div><!-- find-method -->
183
+
184
+
185
+ <div id="find_greek-method" class="method-detail ">
186
+ <a name="method-c-find_greek"></a>
187
+
188
+
189
+ <div class="method-heading">
190
+ <span class="method-name">find_greek</span><span
191
+ class="method-args">(year)</span>
192
+ <span class="method-click-advice">click to toggle source</span>
193
+ </div>
194
+
195
+
196
+ <div class="method-description">
197
+
198
+ <pre>WhenEaster.find_greek</pre>
199
+
200
+ <h1>&gt; In the year 2011, the Greek Easter is on 24 April.</h1>
201
+
202
+
203
+
204
+ <div class="method-source-code" id="find_greek-source">
205
+ <pre>
206
+ <span class="ruby-comment"># File lib/when_easter.rb, line 19</span>
207
+ <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">find_greek</span>(<span class="ruby-identifier">year</span>)
208
+ <span class="ruby-identifier">date</span> = <span class="ruby-keyword">self</span>.<span class="ruby-identifier">greek_easter</span>(<span class="ruby-identifier">year</span>)
209
+ <span class="ruby-keyword">return</span> <span class="ruby-node">&quot;In the year #{date.year}, the Greek Easter is on #{date.strftime(&quot;%d %B&quot;)}.&quot;</span>
210
+ <span class="ruby-keyword">end</span></pre>
211
+ </div><!-- find_greek-source -->
212
+
213
+ </div>
214
+
215
+
216
+
217
+
218
+ </div><!-- find_greek-method -->
219
+
220
+
221
+ <div id="find_roman-method" class="method-detail ">
222
+ <a name="method-c-find_roman"></a>
223
+
224
+
225
+ <div class="method-heading">
226
+ <span class="method-name">find_roman</span><span
227
+ class="method-args">(year = nil)</span>
228
+ <span class="method-click-advice">click to toggle source</span>
229
+ </div>
230
+
231
+
232
+ <div class="method-description">
233
+
234
+ <pre>WhenEaster.find_roman</pre>
235
+
236
+ <h1>&gt; In the year 2011, the Roman Easter is on 24 April.</h1>
237
+
238
+
239
+
240
+ <div class="method-source-code" id="find_roman-source">
241
+ <pre>
242
+ <span class="ruby-comment"># File lib/when_easter.rb, line 12</span>
243
+ <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">find_roman</span>(<span class="ruby-identifier">year</span> = <span class="ruby-keyword">nil</span>)
244
+ <span class="ruby-identifier">date</span> = <span class="ruby-keyword">self</span>.<span class="ruby-identifier">roman_easter</span>(<span class="ruby-identifier">year</span>)
245
+ <span class="ruby-keyword">return</span> <span class="ruby-node">&quot;In the year #{date.year}, the Roman Easter is on #{date.strftime(&quot;%d %B&quot;)}.&quot;</span>
246
+ <span class="ruby-keyword">end</span></pre>
247
+ </div><!-- find_roman-source -->
248
+
249
+ </div>
250
+
251
+
252
+
253
+
254
+ </div><!-- find_roman-method -->
255
+
256
+
257
+ <div id="greek_easter-method" class="method-detail ">
258
+ <a name="method-c-greek_easter"></a>
259
+
260
+
261
+ <div class="method-heading">
262
+ <span class="method-name">greek_easter</span><span
263
+ class="method-args">(year = nil)</span>
264
+ <span class="method-click-advice">click to toggle source</span>
265
+ </div>
266
+
267
+
268
+ <div class="method-description">
269
+
270
+ <p><a href="WhenEaster.html#method-c-greek_easter">WhenEaster.greek_easter</a></p>
271
+
272
+ <h1>&gt; Sun Apr 24 00:00:00 +0200 2011</h1>
273
+
274
+
275
+
276
+ <div class="method-source-code" id="greek_easter-source">
277
+ <pre>
278
+ <span class="ruby-comment"># File lib/when_easter.rb, line 57</span>
279
+ <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">greek_easter</span>(<span class="ruby-identifier">year</span> = <span class="ruby-keyword">nil</span>)
280
+ <span class="ruby-identifier">year</span> = <span class="ruby-constant">Time</span>.<span class="ruby-identifier">now</span>.<span class="ruby-identifier">year</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">year</span>.<span class="ruby-identifier">nil?</span>
281
+ <span class="ruby-identifier">year</span> = <span class="ruby-identifier">year</span>.<span class="ruby-identifier">to_i</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">year</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">String</span>)
282
+ <span class="ruby-identifier">a</span> = <span class="ruby-identifier">year</span> <span class="ruby-operator">%</span> <span class="ruby-value">19</span>
283
+ <span class="ruby-identifier">b</span> = <span class="ruby-identifier">year</span> <span class="ruby-operator">%</span> <span class="ruby-value">4</span>
284
+ <span class="ruby-identifier">c</span> = <span class="ruby-identifier">year</span> <span class="ruby-operator">%</span> <span class="ruby-value">7</span>
285
+ <span class="ruby-identifier">d</span> = (<span class="ruby-value">19</span> * <span class="ruby-identifier">a</span> <span class="ruby-operator">+</span> <span class="ruby-value">16</span>) <span class="ruby-operator">%</span> <span class="ruby-value">30</span>
286
+ <span class="ruby-identifier">e</span> = (<span class="ruby-value">2</span> * <span class="ruby-identifier">b</span> <span class="ruby-operator">+</span> <span class="ruby-value">4</span> * <span class="ruby-identifier">c</span> <span class="ruby-operator">+</span> <span class="ruby-value">6</span> * <span class="ruby-identifier">d</span>) <span class="ruby-operator">%</span> <span class="ruby-value">7</span>;
287
+ <span class="ruby-identifier">easter</span> = <span class="ruby-value">3</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">d</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">e</span>;
288
+ <span class="ruby-keyword">if</span> <span class="ruby-identifier">easter</span> <span class="ruby-operator">&lt;=</span> <span class="ruby-value">30</span>
289
+ <span class="ruby-constant">Time</span>.<span class="ruby-identifier">local</span>(<span class="ruby-identifier">year</span>, <span class="ruby-value">4</span>, <span class="ruby-identifier">easter</span>)
290
+ <span class="ruby-keyword">else</span>
291
+ <span class="ruby-constant">Time</span>.<span class="ruby-identifier">local</span>(<span class="ruby-identifier">year</span>, <span class="ruby-value">5</span>, (<span class="ruby-identifier">easter</span> <span class="ruby-operator">-</span> <span class="ruby-value">30</span>))
292
+ <span class="ruby-keyword">end</span>
293
+ <span class="ruby-keyword">end</span></pre>
294
+ </div><!-- greek_easter-source -->
295
+
296
+ </div>
297
+
298
+
299
+
300
+
301
+ </div><!-- greek_easter-method -->
302
+
303
+
304
+ <div id="roman_easter-method" class="method-detail ">
305
+ <a name="method-c-roman_easter"></a>
306
+
307
+
308
+ <div class="method-heading">
309
+ <span class="method-name">roman_easter</span><span
310
+ class="method-args">(year = nil)</span>
311
+ <span class="method-click-advice">click to toggle source</span>
312
+ </div>
313
+
314
+
315
+ <div class="method-description">
316
+
317
+ <p><a href="WhenEaster.html#method-c-roman_easter">WhenEaster.roman_easter</a></p>
318
+
319
+ <h1>&gt; Sun Apr 24 00:00:00 +0200 2011</h1>
320
+
321
+
322
+
323
+ <div class="method-source-code" id="roman_easter-source">
324
+ <pre>
325
+ <span class="ruby-comment"># File lib/when_easter.rb, line 25</span>
326
+ <span class="ruby-keyword">def</span> <span class="ruby-keyword">self</span>.<span class="ruby-identifier">roman_easter</span>(<span class="ruby-identifier">year</span> = <span class="ruby-keyword">nil</span>)
327
+ <span class="ruby-identifier">year</span> = <span class="ruby-constant">Time</span>.<span class="ruby-identifier">now</span>.<span class="ruby-identifier">year</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">year</span>.<span class="ruby-identifier">nil?</span>
328
+ <span class="ruby-identifier">year</span> = <span class="ruby-identifier">year</span>.<span class="ruby-identifier">to_i</span> <span class="ruby-keyword">if</span> <span class="ruby-identifier">year</span>.<span class="ruby-identifier">is_a?</span>(<span class="ruby-constant">String</span>)
329
+ <span class="ruby-identifier">g</span> = <span class="ruby-identifier">year</span> <span class="ruby-operator">%</span> <span class="ruby-value">19</span> <span class="ruby-operator">+</span><span class="ruby-value">1</span>
330
+ <span class="ruby-identifier">s</span> = (<span class="ruby-identifier">year</span> <span class="ruby-value">-1600</span>) <span class="ruby-operator">/</span> <span class="ruby-value">100</span> <span class="ruby-operator">-</span> (<span class="ruby-identifier">year</span><span class="ruby-operator">-</span><span class="ruby-value">1600</span>) <span class="ruby-operator">/</span> <span class="ruby-value">400</span>
331
+ <span class="ruby-identifier">l</span> = (((<span class="ruby-identifier">year</span> <span class="ruby-operator">-</span> <span class="ruby-value">1400</span>) <span class="ruby-operator">/</span> <span class="ruby-value">100</span>) * <span class="ruby-value">8</span>) <span class="ruby-operator">/</span> <span class="ruby-value">25</span>
332
+
333
+ <span class="ruby-identifier">p_2</span> = (<span class="ruby-value">3</span><span class="ruby-operator">-</span><span class="ruby-value">11</span>*<span class="ruby-identifier">g</span> <span class="ruby-operator">+</span><span class="ruby-identifier">s</span> <span class="ruby-operator">-</span><span class="ruby-identifier">l</span>) <span class="ruby-operator">%</span> <span class="ruby-value">30</span>
334
+ <span class="ruby-keyword">if</span> <span class="ruby-identifier">p_2</span> <span class="ruby-operator">==</span> <span class="ruby-value">29</span> <span class="ruby-operator">||</span> (<span class="ruby-identifier">p_2</span> <span class="ruby-operator">==</span> <span class="ruby-value">28</span> <span class="ruby-operator">&amp;&amp;</span> <span class="ruby-identifier">g</span> <span class="ruby-operator">&gt;</span> <span class="ruby-value">11</span>)
335
+ <span class="ruby-identifier">p</span> = <span class="ruby-identifier">p_2</span> <span class="ruby-value">-1</span>
336
+ <span class="ruby-keyword">else</span>
337
+ <span class="ruby-identifier">p</span>= <span class="ruby-identifier">p_2</span>
338
+ <span class="ruby-keyword">end</span>
339
+
340
+ <span class="ruby-identifier">d</span>= (<span class="ruby-identifier">year</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">year</span> <span class="ruby-operator">/</span> <span class="ruby-value">4</span> <span class="ruby-operator">-</span> <span class="ruby-identifier">year</span> <span class="ruby-operator">/</span> <span class="ruby-value">100</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">year</span> <span class="ruby-operator">/</span> <span class="ruby-value">400</span>) <span class="ruby-operator">%</span> <span class="ruby-value">7</span>
341
+ <span class="ruby-identifier">d_2</span> = (<span class="ruby-value">8</span><span class="ruby-operator">-</span><span class="ruby-identifier">d</span>) <span class="ruby-operator">%</span> <span class="ruby-value">7</span>
342
+
343
+ <span class="ruby-identifier">p_3</span> = (<span class="ruby-value">80</span> <span class="ruby-operator">+</span> <span class="ruby-identifier">p</span>) <span class="ruby-operator">%</span> <span class="ruby-value">7</span>
344
+ <span class="ruby-identifier">x_2</span> = <span class="ruby-identifier">d_2</span> <span class="ruby-operator">-</span> <span class="ruby-identifier">p_3</span>
345
+
346
+ <span class="ruby-identifier">x</span> = (<span class="ruby-identifier">x_2</span> <span class="ruby-value">-1</span>) <span class="ruby-operator">%</span> <span class="ruby-value">7</span> <span class="ruby-operator">+</span><span class="ruby-value">1</span>
347
+ <span class="ruby-identifier">e</span> = <span class="ruby-identifier">p</span><span class="ruby-operator">+</span><span class="ruby-identifier">x</span>
348
+
349
+ <span class="ruby-keyword">if</span> <span class="ruby-identifier">e</span> <span class="ruby-operator">&lt;</span> <span class="ruby-value">11</span>
350
+ <span class="ruby-constant">Time</span>.<span class="ruby-identifier">local</span>(<span class="ruby-identifier">year</span>,<span class="ruby-value">3</span>,<span class="ruby-identifier">e</span><span class="ruby-operator">+</span><span class="ruby-value">21</span>)
351
+ <span class="ruby-keyword">else</span>
352
+ <span class="ruby-constant">Time</span>.<span class="ruby-identifier">local</span>(<span class="ruby-identifier">year</span>,<span class="ruby-value">4</span>,<span class="ruby-identifier">e</span><span class="ruby-operator">-</span><span class="ruby-value">10</span>)
353
+ <span class="ruby-keyword">end</span>
354
+ <span class="ruby-keyword">end</span></pre>
355
+ </div><!-- roman_easter-source -->
356
+
357
+ </div>
358
+
359
+
360
+
361
+
362
+ </div><!-- roman_easter-method -->
363
+
364
+
365
+ </div><!-- public-class-method-details -->
366
+
367
+ </div><!-- 5Buntitled-5D -->
368
+
369
+
370
+ </div><!-- documentation -->
371
+
372
+ <div id="validator-badges">
373
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
374
+ <p><small>Generated with the <a href="http://deveiate.org/projects/Darkfish-Rdoc/">Darkfish
375
+ Rdoc Generator</a> 2</small>.</p>
376
+ </div>
377
+
378
+ </body>
379
+ </html>
380
+
@@ -0,0 +1,56 @@
1
+ <?xml version="1.0" encoding="utf-8"?>
2
+ <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
3
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
4
+
5
+ <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
6
+ <head>
7
+ <meta content="text/html; charset=UTF-8" http-equiv="Content-Type" />
8
+
9
+ <title>File: when_easter [RDoc Documentation]</title>
10
+
11
+ <link type="text/css" media="screen" href="../rdoc.css" rel="stylesheet" />
12
+
13
+ <script src="../js/jquery.js" type="text/javascript"
14
+ charset="utf-8"></script>
15
+ <script src="../js/thickbox-compressed.js" type="text/javascript"
16
+ charset="utf-8"></script>
17
+ <script src="../js/quicksearch.js" type="text/javascript"
18
+ charset="utf-8"></script>
19
+ <script src="../js/darkfish.js" type="text/javascript"
20
+ charset="utf-8"></script>
21
+ </head>
22
+
23
+ <body class="file file-popup">
24
+ <div id="metadata">
25
+ <dl>
26
+ <dt class="modified-date">Last Modified</dt>
27
+ <dd class="modified-date">Tue Jun 28 09:11:47 +0200 2011</dd>
28
+
29
+
30
+ <dt class="requires">Requires</dt>
31
+ <dd class="requires">
32
+ <ul>
33
+
34
+ <li>rubygems</li>
35
+
36
+ <li>when_easter</li>
37
+
38
+ </ul>
39
+ </dd>
40
+
41
+
42
+
43
+ </dl>
44
+ </div>
45
+
46
+ <div id="documentation">
47
+
48
+ <div class="description">
49
+ <h2>Description</h2>
50
+
51
+ </div>
52
+
53
+ </div>
54
+ </body>
55
+ </html>
56
+