hebrew_date 1.0.19 → 1.0.20
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/hebrew_date.gemspec +2 -2
- data/lib/support/holidays.rb +3 -3
- 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: 52501f24bf488f04ca6ee97e552cae35785a9af9
|
4
|
+
data.tar.gz: cb88066eaa298101ad858c92fd52fb942e37cdb5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b1b245082913951d3226eca43217e5a14c80f08fd0b6be0d025612f3cb1b15a1b9e9f6ecb38ee03352e2daa45834eb0f98db486febfd4f554a1d8818f705a05
|
7
|
+
data.tar.gz: f7633d88bd980b1e2665600507cfc7d4698904616387fdd6f9433b2a3a33cb72154a50e46cdd747334e487f9b74bdcc25f4350624b1fba1fde09c628febff922
|
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-03
|
4
|
+
s.version = '1.0.20'
|
5
|
+
s.date = '2014-04-03'
|
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,7 +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
|
-
:
|
7
|
+
:TAANIT_BECHORIM,
|
8
8
|
:EREV_PESACH,
|
9
9
|
:PESACH,
|
10
10
|
:PESACH_2,
|
@@ -45,7 +45,7 @@ module HebrewDateSupport
|
|
45
45
|
def from_holiday(holiday, year=nil)
|
46
46
|
year ||= self.new.hebrew_year
|
47
47
|
case holiday
|
48
|
-
when :
|
48
|
+
when :TAANIT_BECHORIM
|
49
49
|
date = self.from_holiday(:EREV_PESACH, year)
|
50
50
|
date.shabbos? ? date - 2 : date
|
51
51
|
when :EREV_PESACH
|
@@ -149,7 +149,7 @@ module HebrewDateSupport
|
|
149
149
|
case @hebrew_month
|
150
150
|
when 1
|
151
151
|
if @hebrew_date == 12 && self.thursday?
|
152
|
-
return @ashkenaz ? "Ta'anis
|
152
|
+
return @ashkenaz ? "Ta'anis Bechorim" : "Ta'anit Bechorim"
|
153
153
|
end
|
154
154
|
return 'Erev Pesach' if @hebrew_date == 14
|
155
155
|
if @hebrew_date == 15 || @hebrew_date == 21 ||
|
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.20
|
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-03
|
11
|
+
date: 2014-04-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: yard
|