when_easter 0.2.4 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (52) hide show
  1. data/Gemfile +14 -0
  2. data/Gemfile.lock +40 -0
  3. data/LICENSE.txt +20 -0
  4. data/README.md +20 -2
  5. data/Rakefile +50 -16
  6. data/VERSION +1 -1
  7. data/bin/find_distance +5 -0
  8. data/bin/when_easter +2 -2
  9. data/bin/when_greek_easter +2 -2
  10. data/bin/when_roman_easter +2 -2
  11. data/features/step_definitions/when_easter_steps.rb +68 -0
  12. data/features/support/env.rb +13 -0
  13. data/features/when_easter.feature +54 -0
  14. data/lib/when_easter.rb +64 -66
  15. data/spec/spec_helper.rb +12 -0
  16. data/spec/when_easter_spec.rb +9 -0
  17. data/when_easter.gemspec +30 -38
  18. metadata +97 -45
  19. data/doc/Rakefile.html +0 -110
  20. data/doc/VERSION.html +0 -88
  21. data/doc/WhenEaster.html +0 -380
  22. data/doc/bin/when_easter.html +0 -56
  23. data/doc/bin/when_greek_easter.html +0 -56
  24. data/doc/bin/when_roman_easter.html +0 -56
  25. data/doc/created.rid +0 -7
  26. data/doc/images/brick.png +0 -0
  27. data/doc/images/brick_link.png +0 -0
  28. data/doc/images/bug.png +0 -0
  29. data/doc/images/bullet_black.png +0 -0
  30. data/doc/images/bullet_toggle_minus.png +0 -0
  31. data/doc/images/bullet_toggle_plus.png +0 -0
  32. data/doc/images/date.png +0 -0
  33. data/doc/images/find.png +0 -0
  34. data/doc/images/loadingAnimation.gif +0 -0
  35. data/doc/images/macFFBgHack.png +0 -0
  36. data/doc/images/package.png +0 -0
  37. data/doc/images/page_green.png +0 -0
  38. data/doc/images/page_white_text.png +0 -0
  39. data/doc/images/page_white_width.png +0 -0
  40. data/doc/images/plugin.png +0 -0
  41. data/doc/images/ruby.png +0 -0
  42. data/doc/images/tag_green.png +0 -0
  43. data/doc/images/wrench.png +0 -0
  44. data/doc/images/wrench_orange.png +0 -0
  45. data/doc/images/zoom.png +0 -0
  46. data/doc/index.html +0 -68
  47. data/doc/js/darkfish.js +0 -116
  48. data/doc/js/jquery.js +0 -32
  49. data/doc/js/quicksearch.js +0 -114
  50. data/doc/js/thickbox-compressed.js +0 -10
  51. data/doc/lib/when_easter_rb.html +0 -52
  52. data/doc/rdoc.css +0 -759
@@ -0,0 +1,12 @@
1
+ $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
2
+ $LOAD_PATH.unshift(File.dirname(__FILE__))
3
+ require 'rspec'
4
+ require 'when_easter'
5
+
6
+ # Requires supporting files with custom matchers and macros, etc,
7
+ # in ./support/ and its subdirectories.
8
+ Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each {|f| require f}
9
+
10
+ RSpec.configure do |config|
11
+
12
+ end
@@ -0,0 +1,9 @@
1
+ require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
+
3
+ describe "EasterCalendar" do
4
+ it "should say '24 Apr 2011' when it receives the find(2011) message" do
5
+ easter_calendar = EasterCalendar.new
6
+ date = easter_calendar.find(2011)
7
+ date.should == "24 Apr 2011"
8
+ end
9
+ end
data/when_easter.gemspec CHANGED
@@ -5,62 +5,39 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{when_easter}
8
- s.version = "0.2.4"
8
+ s.version = "0.3.0"
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-07-06}
12
+ s.date = %q{2011-07-14}
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
- s.executables = [%q{when_easter}, %q{when_roman_easter}, %q{when_greek_easter}]
15
+ s.executables = [%q{find_distance}, %q{when_roman_easter}, %q{when_greek_easter}, %q{when_easter}]
16
16
  s.extra_rdoc_files = [
17
+ "LICENSE.txt",
17
18
  "README.md"
18
19
  ]
19
20
  s.files = [
21
+ "Gemfile",
22
+ "Gemfile.lock",
23
+ "LICENSE.txt",
20
24
  "README.md",
21
25
  "Rakefile",
22
26
  "VERSION",
27
+ "bin/find_distance",
23
28
  "bin/when_easter",
24
29
  "bin/when_greek_easter",
25
30
  "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",
31
+ "features/step_definitions/when_easter_steps.rb",
32
+ "features/support/env.rb",
33
+ "features/when_easter.feature",
60
34
  "lib/when_easter.rb",
35
+ "spec/spec_helper.rb",
36
+ "spec/when_easter_spec.rb",
61
37
  "when_easter.gemspec"
62
38
  ]
63
- s.homepage = %q{https://github.com/Loyolny/when_easter}
39
+ s.homepage = %q{http://github.com/Loyolny/when_easter}
40
+ s.licenses = [%q{MIT}]
64
41
  s.require_paths = [%q{lib}]
65
42
  s.rubygems_version = %q{1.8.5}
66
43
  s.summary = %q{Get the date of Roman and Greek Easter}
@@ -69,9 +46,24 @@ Gem::Specification.new do |s|
69
46
  s.specification_version = 3
70
47
 
71
48
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
49
+ s.add_development_dependency(%q<rspec>, ["~> 2.6.0"])
50
+ s.add_development_dependency(%q<cucumber>, [">= 0"])
51
+ s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
52
+ s.add_development_dependency(%q<jeweler>, ["~> 1.6.3"])
53
+ s.add_development_dependency(%q<rcov>, [">= 0"])
72
54
  else
55
+ s.add_dependency(%q<rspec>, ["~> 2.6.0"])
56
+ s.add_dependency(%q<cucumber>, [">= 0"])
57
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
58
+ s.add_dependency(%q<jeweler>, ["~> 1.6.3"])
59
+ s.add_dependency(%q<rcov>, [">= 0"])
73
60
  end
74
61
  else
62
+ s.add_dependency(%q<rspec>, ["~> 2.6.0"])
63
+ s.add_dependency(%q<cucumber>, [">= 0"])
64
+ s.add_dependency(%q<bundler>, ["~> 1.0.0"])
65
+ s.add_dependency(%q<jeweler>, ["~> 1.6.3"])
66
+ s.add_dependency(%q<rcov>, [">= 0"])
75
67
  end
76
68
  end
77
69
 
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: 31
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 2
9
- - 4
10
- version: 0.2.4
8
+ - 3
9
+ - 0
10
+ version: 0.3.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - "Micha\xC5\x82 Nierebi\xC5\x84ski"
@@ -15,65 +15,117 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-07-06 00:00:00 Z
19
- dependencies: []
20
-
18
+ date: 2011-07-14 00:00:00 Z
19
+ dependencies:
20
+ - !ruby/object:Gem::Dependency
21
+ version_requirements: &id001 !ruby/object:Gem::Requirement
22
+ none: false
23
+ requirements:
24
+ - - ~>
25
+ - !ruby/object:Gem::Version
26
+ hash: 23
27
+ segments:
28
+ - 2
29
+ - 6
30
+ - 0
31
+ version: 2.6.0
32
+ type: :development
33
+ requirement: *id001
34
+ prerelease: false
35
+ name: rspec
36
+ - !ruby/object:Gem::Dependency
37
+ version_requirements: &id002 !ruby/object:Gem::Requirement
38
+ none: false
39
+ requirements:
40
+ - - ">="
41
+ - !ruby/object:Gem::Version
42
+ hash: 3
43
+ segments:
44
+ - 0
45
+ version: "0"
46
+ type: :development
47
+ requirement: *id002
48
+ prerelease: false
49
+ name: cucumber
50
+ - !ruby/object:Gem::Dependency
51
+ version_requirements: &id003 !ruby/object:Gem::Requirement
52
+ none: false
53
+ requirements:
54
+ - - ~>
55
+ - !ruby/object:Gem::Version
56
+ hash: 23
57
+ segments:
58
+ - 1
59
+ - 0
60
+ - 0
61
+ version: 1.0.0
62
+ type: :development
63
+ requirement: *id003
64
+ prerelease: false
65
+ name: bundler
66
+ - !ruby/object:Gem::Dependency
67
+ version_requirements: &id004 !ruby/object:Gem::Requirement
68
+ none: false
69
+ requirements:
70
+ - - ~>
71
+ - !ruby/object:Gem::Version
72
+ hash: 9
73
+ segments:
74
+ - 1
75
+ - 6
76
+ - 3
77
+ version: 1.6.3
78
+ type: :development
79
+ requirement: *id004
80
+ prerelease: false
81
+ name: jeweler
82
+ - !ruby/object:Gem::Dependency
83
+ version_requirements: &id005 !ruby/object:Gem::Requirement
84
+ none: false
85
+ requirements:
86
+ - - ">="
87
+ - !ruby/object:Gem::Version
88
+ hash: 3
89
+ segments:
90
+ - 0
91
+ version: "0"
92
+ type: :development
93
+ requirement: *id005
94
+ prerelease: false
95
+ name: rcov
21
96
  description: A tool that calculates the dates of Roman and Greek Easter.
22
97
  email: michal@nierebinski.pl
23
98
  executables:
24
- - when_easter
99
+ - find_distance
25
100
  - when_roman_easter
26
101
  - when_greek_easter
102
+ - when_easter
27
103
  extensions: []
28
104
 
29
105
  extra_rdoc_files:
106
+ - LICENSE.txt
30
107
  - README.md
31
108
  files:
109
+ - Gemfile
110
+ - Gemfile.lock
111
+ - LICENSE.txt
32
112
  - README.md
33
113
  - Rakefile
34
114
  - VERSION
115
+ - bin/find_distance
35
116
  - bin/when_easter
36
117
  - bin/when_greek_easter
37
118
  - 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
119
+ - features/step_definitions/when_easter_steps.rb
120
+ - features/support/env.rb
121
+ - features/when_easter.feature
72
122
  - lib/when_easter.rb
123
+ - spec/spec_helper.rb
124
+ - spec/when_easter_spec.rb
73
125
  - when_easter.gemspec
74
- homepage: https://github.com/Loyolny/when_easter
75
- licenses: []
76
-
126
+ homepage: http://github.com/Loyolny/when_easter
127
+ licenses:
128
+ - MIT
77
129
  post_install_message:
78
130
  rdoc_options: []
79
131
 
data/doc/Rakefile.html DELETED
@@ -1,110 +0,0 @@
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 DELETED
@@ -1,88 +0,0 @@
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
-