hebrew_date 1.0.13 → 1.0.14

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dd6b7e10cb6a8302d5684530f17d395aa62195c4
4
- data.tar.gz: 927c92e5d3f20df9ab055a52780a7f5d038c1c29
3
+ metadata.gz: 24c146c4c58232286cf5cfe8ac789e07e246d9b0
4
+ data.tar.gz: f81c77183286ccf9f8ac87d6dd8b80dd471f9575
5
5
  SHA512:
6
- metadata.gz: 67b477cbe1da00c1a13ae4369d5a6b8ebe3ccce307e7e91b6b1a157050f0226a448771d26d6600c9526e5736addb4b4539bd6f12c0f56fc0f28c7d3d1e46d936
7
- data.tar.gz: dd3a9e11529357ef0fea68e59b702c48cb57c8ce81ad6703be6628156f9acb99e07076d48e2ea28e1a92ee4db0f87889411ec6133240a37c949670a3417686ce
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.13'
5
- s.date = '2014-02-15'
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
@@ -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.13
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-15 00:00:00.000000000 Z
11
+ date: 2014-02-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: yard