hebrew_date 1.0.15 → 1.0.16
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 +4 -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: bd0784e786b2cb1f11d215b9109d4e8c78930899
|
4
|
+
data.tar.gz: 57ef785887c9898d8580c0eaa90dd309b97e5f3b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 11e3ce7b3a4f21782c12e751fe1a09acd8459871910f47ad9ffccd204abff1a988b5f9e3e9936a8a50dc0bbaea86403226b730b7f9c66144762f870e67c08f94
|
7
|
+
data.tar.gz: faf16a919a274176125cdbad8c27194562fde91c387331b18e2ff9fb73eb353cce0fa7e00b38b05eefdae69ccad9578c767db3a870f5481f715e5d33a00609f3
|
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.16'
|
5
|
+
s.date = '2014-02-23'
|
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
@@ -4,6 +4,7 @@ module HebrewDateSupport
|
|
4
4
|
|
5
5
|
# A list of holidays which can be passed into the from_holiday method.
|
6
6
|
HOLIDAYS = [
|
7
|
+
:TAANIT_BECHOROT,
|
7
8
|
:EREV_PESACH,
|
8
9
|
:PESACH,
|
9
10
|
:PESACH_2,
|
@@ -44,6 +45,9 @@ module HebrewDateSupport
|
|
44
45
|
def from_holiday(holiday, year=nil)
|
45
46
|
year ||= self.new.hebrew_year
|
46
47
|
case holiday
|
48
|
+
when :TAANIT_BECHOROT
|
49
|
+
date = self.from_holiday(:EREV_PESACH, year)
|
50
|
+
date.shabbos? ? date - 2 : date
|
47
51
|
when :EREV_PESACH
|
48
52
|
self.new_from_hebrew(year, 1, 14)
|
49
53
|
when :PESACH
|
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.16
|
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-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: yard
|