hebrew_date 1.1.0 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,114 +0,0 @@
1
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
2
- "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
3
- <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
4
- <head>
5
- <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
6
- <title>
7
- Top Level Namespace
8
-
9
- &mdash; Documentation by YARD 0.8.7.3
10
-
11
- </title>
12
-
13
- <link rel="stylesheet" href="css/style.css" type="text/css" charset="utf-8" />
14
-
15
- <link rel="stylesheet" href="css/common.css" type="text/css" charset="utf-8" />
16
-
17
- <script type="text/javascript" charset="utf-8">
18
- hasFrames = window.top.frames.main ? true : false;
19
- relpath = '';
20
- framesUrl = "frames.html#!" + escape(window.location.href);
21
- </script>
22
-
23
-
24
- <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
25
-
26
- <script type="text/javascript" charset="utf-8" src="js/app.js"></script>
27
-
28
-
29
- </head>
30
- <body>
31
- <div id="header">
32
- <div id="menu">
33
-
34
- <a href="_index.html">Index</a> &raquo;
35
-
36
-
37
- <span class="title">Top Level Namespace</span>
38
-
39
-
40
- <div class="noframes"><span class="title">(</span><a href="." target="_top">no frames</a><span class="title">)</span></div>
41
- </div>
42
-
43
- <div id="search">
44
-
45
- <a class="full_list_link" id="class_list_link"
46
- href="class_list.html">
47
- Class List
48
- </a>
49
-
50
- <a class="full_list_link" id="method_list_link"
51
- href="method_list.html">
52
- Method List
53
- </a>
54
-
55
- <a class="full_list_link" id="file_list_link"
56
- href="file_list.html">
57
- File List
58
- </a>
59
-
60
- </div>
61
- <div class="clear"></div>
62
- </div>
63
-
64
- <iframe id="search_frame"></iframe>
65
-
66
- <div id="content"><h1>Top Level Namespace
67
-
68
-
69
-
70
- </h1>
71
-
72
- <dl class="box">
73
-
74
-
75
-
76
-
77
-
78
-
79
-
80
-
81
- </dl>
82
- <div class="clear"></div>
83
-
84
- <h2>Defined Under Namespace</h2>
85
- <p class="children">
86
-
87
-
88
- <strong class="modules">Modules:</strong> <span class='object_link'><a href="HebrewDateSupport.html" title="HebrewDateSupport (module)">HebrewDateSupport</a></span>
89
-
90
-
91
-
92
- <strong class="classes">Classes:</strong> <span class='object_link'><a href="HebrewDate.html" title="HebrewDate (class)">HebrewDate</a></span>
93
-
94
-
95
- </p>
96
-
97
-
98
-
99
-
100
-
101
-
102
-
103
-
104
-
105
- </div>
106
-
107
- <div id="footer">
108
- Generated on Fri Sep 19 12:15:09 2014 by
109
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
110
- 0.8.7.3 (ruby-2.0.0).
111
- </div>
112
-
113
- </body>
114
- </html>
data/hebrew_date.gemspec DELETED
@@ -1,23 +0,0 @@
1
- Gem::Specification.new do |s|
2
- s.name = 'hebrew_date'
3
- s.require_paths = %w(. lib)
4
- s.version = '1.1.0'
5
- s.date = '2025-12-10'
6
- s.summary = 'Hebrew/Jewish dates, times, and holidays.'
7
- s.description = <<-EOF
8
- hebrew_date is a library designed to provide information about the Jewish
9
- calendar. This includes dates, holidays, and parsha of the week.
10
-
11
- EOF
12
- s.authors = ['Daniel Orner']
13
- s.email = 'dmorner@gmail.com'
14
- s.files = `git ls-files`.split($/)
15
- s.homepage = 'https://github.com/dorner/hebrew_date'
16
- s.license = 'MIT'
17
- s.required_ruby_version = '>= 2.7.0'
18
-
19
- s.add_development_dependency 'yard', '~> 0.9.37'
20
- s.add_development_dependency 'rspec', '~> 3.13'
21
- s.add_development_dependency 'rake'
22
-
23
- end
@@ -1,76 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require_relative '../lib/hebrew_date'
4
-
5
- def check_date(hebrew_year, hebrew_month, hebrew_date, year, month, date)
6
- expect(HebrewDate.new_from_hebrew(hebrew_year, hebrew_month, hebrew_date).to_date).to eq(
7
- Date.new(year, month, date))
8
- end
9
-
10
- describe HebrewDate do
11
-
12
- specify 'Hebrew date calendar confirmation' do
13
- check_date(5773, 1, 1, 2013, 3, 12)
14
- check_date(5773, 2, 14, 2013, 4, 24)
15
- check_date(5773, 5, 1, 2013, 7, 8)
16
- check_date(5773, 6, 29, 2013, 9, 4)
17
- check_date(5774, 7, 1, 2013, 9, 5)
18
- check_date(5774, 12, 1, 2014, 2, 1)
19
- check_date(5774, 12, 30, 2014, 3, 2)
20
- check_date(5774, 13, 1, 2014, 3, 3)
21
- check_date(5774, 1, 1, 2014, 4, 1)
22
- end
23
-
24
- specify 'parshiot' do
25
- expect(HebrewDate.new(2014, 1, 1).parsha).to be_nil
26
- expect(HebrewDate.new(2014, 1, 4).parsha).to eq('Bo')
27
- expect(HebrewDate.new(2014, 3, 1).parsha).to eq('Pekudei/Shekalim')
28
- expect(HebrewDate.new(2014, 3, 15).parsha).to eq('Tzav/Zachor')
29
- expect(HebrewDate.new(2014, 3, 22).parsha).to eq('Shmini/Parah')
30
- expect(HebrewDate.new(2014, 3, 29).parsha).to eq('Tazria/Hachodesh')
31
- expect(HebrewDate.new(2014, 3, 19).parsha).to be_nil
32
- expect(HebrewDate.new(2001, 1, 6).parsha).to eq('Vayigash')
33
- expect(HebrewDate.new(2001, 4, 14).parsha).to be_nil
34
- end
35
-
36
- specify 'holidays' do
37
- expect(HebrewDate.new(2014, 2, 14).holiday).to eq('Purim Katan')
38
- expect(HebrewDate.new(2014, 3, 13).holiday).to eq("Ta'anit Esther")
39
- expect(HebrewDate.new(2014, 3, 16).holiday).to eq('Purim')
40
- expect(HebrewDate.new(2014, 4, 15).holiday).to eq('Pesach')
41
- expect(HebrewDate.new(2014, 4, 22).holiday).to eq('Pesach')
42
- expect(HebrewDate.new(2014, 5, 6).holiday).to eq("Yom Ha'atzmaut")
43
- expect(HebrewDate.new(2014, 6, 3).holiday).to eq('Erev Shavuot')
44
- expect(HebrewDate.new(2014, 7, 15).holiday).to eq('Tzom Tammuz')
45
- expect(HebrewDate.new(2014, 9, 25).holiday).to eq('Rosh Hashanah')
46
- expect(HebrewDate.new(2014, 9, 26).holiday).to eq('Rosh Hashanah')
47
- expect(HebrewDate.new(2014, 12, 15).holiday).to be_nil
48
- expect(HebrewDate.new(2014, 12, 16).holiday).to eq('Erev Chanukah')
49
- expect(HebrewDate.new(2014, 12, 17).holiday).to eq('Chanukah')
50
- expect(HebrewDate.new(2014, 12, 25).holiday).to be_nil
51
- end
52
-
53
- specify 'from holidays' do
54
- expect(HebrewDate.from_holiday(:ROSH_HASHANA, 5774).to_date).to eq(Date.new(2013, 9, 5))
55
- expect(HebrewDate.from_holiday(:TZOM_GEDALIA, 5774).to_date).to eq(Date.new(2013, 9, 8))
56
- expect(HebrewDate.from_holiday(:YOM_KIPPUR, 5774).to_date).to eq(Date.new(2013, 9, 14))
57
- expect(HebrewDate.from_holiday(:SUKKOT, 5774).to_date).to eq(Date.new(2013, 9, 19))
58
- expect(HebrewDate.from_holiday(:SHMINI_ATZERET, 5774).to_date).to eq(Date.new(2013, 9, 26))
59
- expect(HebrewDate.from_holiday(:CHANUKAH, 5774).to_date).to eq(Date.new(2013, 11, 28))
60
- expect(HebrewDate.from_holiday(:TZOM_TEVET, 5774).to_date).to eq(Date.new(2013, 12, 13))
61
- expect(HebrewDate.from_holiday(:TU_BISHVAT, 5774).to_date).to eq(Date.new(2014, 1, 16))
62
- expect(HebrewDate.from_holiday(:PURIM_KATAN, 5774).to_date).to eq(Date.new(2014, 2, 14))
63
- expect(HebrewDate.from_holiday(:TAANIT_ESTHER, 5774).to_date).to eq(Date.new(2014, 3, 13))
64
- expect(HebrewDate.from_holiday(:PURIM, 5774).to_date).to eq(Date.new(2014, 3, 16))
65
- expect(HebrewDate.from_holiday(:EREV_PESACH, 5774).to_date).to eq(Date.new(2014, 4, 14))
66
- expect(HebrewDate.from_holiday(:PESACH, 5774).to_date).to eq(Date.new(2014, 4, 15))
67
- expect(HebrewDate.from_holiday(:PESACH_2, 5774).to_date).to eq(Date.new(2014, 4, 21))
68
- expect(HebrewDate.from_holiday(:YOM_HAZIKARON, 5774).to_date).to eq(Date.new(2014, 5, 5))
69
- expect(HebrewDate.from_holiday(:YOM_HAATZMAUT, 5774).to_date).to eq(Date.new(2014, 5, 6))
70
- expect(HebrewDate.from_holiday(:LAG_BAOMER, 5774).to_date).to eq(Date.new(2014, 5, 18))
71
- expect(HebrewDate.from_holiday(:YOM_YERUSHALAYIM, 5774).to_date).to eq(Date.new(2014, 5, 28))
72
- expect(HebrewDate.from_holiday(:SHAVUOT, 5774).to_date).to eq(Date.new(2014, 6, 4))
73
- expect(HebrewDate.from_holiday(:TZOM_TAMMUZ, 5774).to_date).to eq(Date.new(2014, 7, 15))
74
- expect(HebrewDate.from_holiday(:TISHA_BAV, 5774).to_date).to eq(Date.new(2014, 8, 5))
75
- end
76
- end