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/lib/when_easter.rb CHANGED
@@ -1,14 +1,14 @@
1
1
  class WhenEaster
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.
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 Roman Easter is on #{greek_date.strftime("%d %B")}."
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
- ## WhenEaster.find_roman
11
- ##=> In the year 2011, the Roman Easter is on 24 April.
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
- ## WhenEaster.roman_easter
24
- ## => Sun Apr 24 00:00:00 +0200 2011
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
- ## WhenEaster.greek_easter
56
- ## => Sun Apr 24 00:00:00 +0200 2011
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.3"
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-28}
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: 17
4
+ hash: 31
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 3
10
- version: 0.2.3
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-28 00:00:00 Z
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