hebrew_date 1.0.13 → 1.0.14
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.
- checksums.yaml +4 -4
- data/hebrew_date.gemspec +2 -2
- data/lib/support/holidays.rb +23 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 24c146c4c58232286cf5cfe8ac789e07e246d9b0
|
4
|
+
data.tar.gz: f81c77183286ccf9f8ac87d6dd8b80dd471f9575
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9aa41de1d3016df7283254e07eb9c274d3f4ebfc11912e112dbbed63643959a270f120529c07698e91b0cdf4a8e1429c6458232bf55f8a52886d9b6e598fffa1
|
7
|
+
data.tar.gz: 34d709e9f784ab26c2a3ba10a238df7096c894212e777a15ec18f67a884058c0ef5c5d378381b9e9f3c0d3c29155f0068242bb0fb56526aab7a60a8e0806025d
|
data/hebrew_date.gemspec
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'hebrew_date'
|
3
3
|
s.require_paths = %w(. lib)
|
4
|
-
s.version = '1.0.
|
5
|
-
s.date = '2014-02-
|
4
|
+
s.version = '1.0.14'
|
5
|
+
s.date = '2014-02-21'
|
6
6
|
s.summary = 'Hebrew/Jewish dates, times, and holidays.'
|
7
7
|
s.description = <<-EOF
|
8
8
|
hebrew_date is a library designed to provide information about the Jewish
|
data/lib/support/holidays.rb
CHANGED
@@ -25,6 +25,7 @@ module HebrewDateSupport
|
|
25
25
|
:EREV_SUKKOT,
|
26
26
|
:SUKKOT,
|
27
27
|
:SHMINI_ATZERET,
|
28
|
+
:SIMCHAT_TORAH,
|
28
29
|
:EREV_CHANUKAH,
|
29
30
|
:CHANUKAH,
|
30
31
|
:TZOM_TEVET,
|
@@ -100,6 +101,8 @@ module HebrewDateSupport
|
|
100
101
|
self.new_from_hebrew(year, 7, 15)
|
101
102
|
when :SHMINI_ATZERET
|
102
103
|
self.new_from_hebrew(year, 7, 22)
|
104
|
+
when :SIMCHAT_TORAH
|
105
|
+
self.new_from_hebrew(year, 7, 23)
|
103
106
|
when :EREV_CHANUKAH
|
104
107
|
self.new_from_hebrew(year, 9, 24)
|
105
108
|
when :CHANUKAH
|
@@ -312,6 +315,26 @@ module HebrewDateSupport
|
|
312
315
|
false
|
313
316
|
end
|
314
317
|
|
318
|
+
# Is this a second day of yom tov?
|
319
|
+
def second_day_yom_tov?
|
320
|
+
# only second day Yom Tov in Israel is Rosh Hashana
|
321
|
+
if @israeli
|
322
|
+
return @hebrew_month == 7 && @hebrew_date == 2
|
323
|
+
end
|
324
|
+
case @hebrew_month
|
325
|
+
when 7
|
326
|
+
# Rosh Hashana, Sukkos, and Shmini Atzeres
|
327
|
+
return true if [2, 16, 23].include?(@hebrew_date)
|
328
|
+
when 1
|
329
|
+
# 2nd and last days Pesach
|
330
|
+
return true if [16, 22].include?(@hebrew_date)
|
331
|
+
when 3
|
332
|
+
# Shavuos
|
333
|
+
return true if @hebrew_date == 6
|
334
|
+
end
|
335
|
+
false
|
336
|
+
end
|
337
|
+
|
315
338
|
# Whether there is candle lighting today, i.e.it is either Friday, Erev Yom
|
316
339
|
# Tov, or 1st day yom tov when there is a second day.
|
317
340
|
# @return [Boolean]
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hebrew_date
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.14
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Orner
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-02-
|
11
|
+
date: 2014-02-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: yard
|