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 +1 -1
- data/doc/Rakefile.html +110 -0
- data/doc/VERSION.html +88 -0
- data/doc/WhenEaster.html +380 -0
- data/doc/bin/when_easter.html +56 -0
- data/doc/bin/when_greek_easter.html +56 -0
- data/doc/bin/when_roman_easter.html +56 -0
- data/doc/created.rid +7 -0
- data/doc/images/brick.png +0 -0
- data/doc/images/brick_link.png +0 -0
- data/doc/images/bug.png +0 -0
- data/doc/images/bullet_black.png +0 -0
- data/doc/images/bullet_toggle_minus.png +0 -0
- data/doc/images/bullet_toggle_plus.png +0 -0
- data/doc/images/date.png +0 -0
- data/doc/images/find.png +0 -0
- data/doc/images/loadingAnimation.gif +0 -0
- data/doc/images/macFFBgHack.png +0 -0
- data/doc/images/package.png +0 -0
- data/doc/images/page_green.png +0 -0
- data/doc/images/page_white_text.png +0 -0
- data/doc/images/page_white_width.png +0 -0
- data/doc/images/plugin.png +0 -0
- data/doc/images/ruby.png +0 -0
- data/doc/images/tag_green.png +0 -0
- data/doc/images/wrench.png +0 -0
- data/doc/images/wrench_orange.png +0 -0
- data/doc/images/zoom.png +0 -0
- data/doc/index.html +68 -0
- data/doc/js/darkfish.js +116 -0
- data/doc/js/jquery.js +32 -0
- data/doc/js/quicksearch.js +114 -0
- data/doc/js/thickbox-compressed.js +10 -0
- data/doc/lib/when_easter_rb.html +52 -0
- data/doc/rdoc.css +759 -0
- data/lib/when_easter.rb +9 -9
- data/when_easter.gemspec +36 -2
- metadata +38 -4
data/lib/when_easter.rb
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
class WhenEaster
|
2
|
-
|
3
|
-
|
2
|
+
# WhenEaster.find
|
3
|
+
#=> In the year 2011, the Roman Easter is on 24 April. \n In the year 2011, the Greek Easter is on 24 April.
|
4
4
|
def self.find(year = nil)
|
5
5
|
roman_date = self.roman_easter(year)
|
6
6
|
greek_date = self.greek_easter(year)
|
7
|
-
return "In the year #{roman_date.year}, the Roman Easter is on #{roman_date.strftime("%d %B")}. \nIn the year #{greek_date.year}, the
|
7
|
+
return "In the year #{roman_date.year}, the Roman Easter is on #{roman_date.strftime("%d %B")}. \nIn the year #{greek_date.year}, the Greek Easter is on #{greek_date.strftime("%d %B")}."
|
8
8
|
end
|
9
9
|
|
10
|
-
|
11
|
-
|
10
|
+
# WhenEaster.find_roman
|
11
|
+
#=> In the year 2011, the Roman Easter is on 24 April.
|
12
12
|
def self.find_roman(year = nil)
|
13
13
|
date = self.roman_easter(year)
|
14
14
|
return "In the year #{date.year}, the Roman Easter is on #{date.strftime("%d %B")}."
|
@@ -20,8 +20,8 @@ class WhenEaster
|
|
20
20
|
date = self.greek_easter(year)
|
21
21
|
return "In the year #{date.year}, the Greek Easter is on #{date.strftime("%d %B")}."
|
22
22
|
end
|
23
|
-
|
24
|
-
|
23
|
+
# WhenEaster.roman_easter
|
24
|
+
# => Sun Apr 24 00:00:00 +0200 2011
|
25
25
|
def self.roman_easter(year = nil)
|
26
26
|
year = Time.now.year if year.nil?
|
27
27
|
year = year.to_i if year.is_a?(String)
|
@@ -52,8 +52,8 @@ class WhenEaster
|
|
52
52
|
end
|
53
53
|
end
|
54
54
|
|
55
|
-
|
56
|
-
|
55
|
+
# WhenEaster.greek_easter
|
56
|
+
# => Sun Apr 24 00:00:00 +0200 2011
|
57
57
|
def self.greek_easter(year = nil)
|
58
58
|
year = Time.now.year if year.nil?
|
59
59
|
year = year.to_i if year.is_a?(String)
|
data/when_easter.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{when_easter}
|
8
|
-
s.version = "0.2.
|
8
|
+
s.version = "0.2.4"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = [%q{Michał Nierebiński}]
|
12
|
-
s.date = %q{2011-06
|
12
|
+
s.date = %q{2011-07-06}
|
13
13
|
s.description = %q{A tool that calculates the dates of Roman and Greek Easter.}
|
14
14
|
s.email = %q{michal@nierebinski.pl}
|
15
15
|
s.executables = [%q{when_easter}, %q{when_roman_easter}, %q{when_greek_easter}]
|
@@ -23,6 +23,40 @@ Gem::Specification.new do |s|
|
|
23
23
|
"bin/when_easter",
|
24
24
|
"bin/when_greek_easter",
|
25
25
|
"bin/when_roman_easter",
|
26
|
+
"doc/Rakefile.html",
|
27
|
+
"doc/VERSION.html",
|
28
|
+
"doc/WhenEaster.html",
|
29
|
+
"doc/bin/when_easter.html",
|
30
|
+
"doc/bin/when_greek_easter.html",
|
31
|
+
"doc/bin/when_roman_easter.html",
|
32
|
+
"doc/created.rid",
|
33
|
+
"doc/images/brick.png",
|
34
|
+
"doc/images/brick_link.png",
|
35
|
+
"doc/images/bug.png",
|
36
|
+
"doc/images/bullet_black.png",
|
37
|
+
"doc/images/bullet_toggle_minus.png",
|
38
|
+
"doc/images/bullet_toggle_plus.png",
|
39
|
+
"doc/images/date.png",
|
40
|
+
"doc/images/find.png",
|
41
|
+
"doc/images/loadingAnimation.gif",
|
42
|
+
"doc/images/macFFBgHack.png",
|
43
|
+
"doc/images/package.png",
|
44
|
+
"doc/images/page_green.png",
|
45
|
+
"doc/images/page_white_text.png",
|
46
|
+
"doc/images/page_white_width.png",
|
47
|
+
"doc/images/plugin.png",
|
48
|
+
"doc/images/ruby.png",
|
49
|
+
"doc/images/tag_green.png",
|
50
|
+
"doc/images/wrench.png",
|
51
|
+
"doc/images/wrench_orange.png",
|
52
|
+
"doc/images/zoom.png",
|
53
|
+
"doc/index.html",
|
54
|
+
"doc/js/darkfish.js",
|
55
|
+
"doc/js/jquery.js",
|
56
|
+
"doc/js/quicksearch.js",
|
57
|
+
"doc/js/thickbox-compressed.js",
|
58
|
+
"doc/lib/when_easter_rb.html",
|
59
|
+
"doc/rdoc.css",
|
26
60
|
"lib/when_easter.rb",
|
27
61
|
"when_easter.gemspec"
|
28
62
|
]
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: when_easter
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 31
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 2
|
9
|
-
-
|
10
|
-
version: 0.2.
|
9
|
+
- 4
|
10
|
+
version: 0.2.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- "Micha\xC5\x82 Nierebi\xC5\x84ski"
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-06
|
18
|
+
date: 2011-07-06 00:00:00 Z
|
19
19
|
dependencies: []
|
20
20
|
|
21
21
|
description: A tool that calculates the dates of Roman and Greek Easter.
|
@@ -35,6 +35,40 @@ files:
|
|
35
35
|
- bin/when_easter
|
36
36
|
- bin/when_greek_easter
|
37
37
|
- bin/when_roman_easter
|
38
|
+
- doc/Rakefile.html
|
39
|
+
- doc/VERSION.html
|
40
|
+
- doc/WhenEaster.html
|
41
|
+
- doc/bin/when_easter.html
|
42
|
+
- doc/bin/when_greek_easter.html
|
43
|
+
- doc/bin/when_roman_easter.html
|
44
|
+
- doc/created.rid
|
45
|
+
- doc/images/brick.png
|
46
|
+
- doc/images/brick_link.png
|
47
|
+
- doc/images/bug.png
|
48
|
+
- doc/images/bullet_black.png
|
49
|
+
- doc/images/bullet_toggle_minus.png
|
50
|
+
- doc/images/bullet_toggle_plus.png
|
51
|
+
- doc/images/date.png
|
52
|
+
- doc/images/find.png
|
53
|
+
- doc/images/loadingAnimation.gif
|
54
|
+
- doc/images/macFFBgHack.png
|
55
|
+
- doc/images/package.png
|
56
|
+
- doc/images/page_green.png
|
57
|
+
- doc/images/page_white_text.png
|
58
|
+
- doc/images/page_white_width.png
|
59
|
+
- doc/images/plugin.png
|
60
|
+
- doc/images/ruby.png
|
61
|
+
- doc/images/tag_green.png
|
62
|
+
- doc/images/wrench.png
|
63
|
+
- doc/images/wrench_orange.png
|
64
|
+
- doc/images/zoom.png
|
65
|
+
- doc/index.html
|
66
|
+
- doc/js/darkfish.js
|
67
|
+
- doc/js/jquery.js
|
68
|
+
- doc/js/quicksearch.js
|
69
|
+
- doc/js/thickbox-compressed.js
|
70
|
+
- doc/lib/when_easter_rb.html
|
71
|
+
- doc/rdoc.css
|
38
72
|
- lib/when_easter.rb
|
39
73
|
- when_easter.gemspec
|
40
74
|
homepage: https://github.com/Loyolny/when_easter
|