hebrew_date 1.0.11 → 1.0.12
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 +1 -1
- data/lib/hebrew_date.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 24d30d98a5b4e655ed1d8394c69721ac66bceee7
|
4
|
+
data.tar.gz: a07b4a0f4d44c9f1c71656659cb8dcb85cfd28be
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e0e483760e3c7098bd702c5a8f3438805c958ca0c5ac828a1f03ea72bbdd060158d7dfe26deb74154100e73fc40f0ceb75c06fa610352ac8dff71a4a65158c79
|
7
|
+
data.tar.gz: 3ea8a572c90e14c61e8a8bbfdfb034a2dd91ba5d5daee2fedc39bb03c4e5056bf00246bf7cdf5e824d3aaf27d30ae5dc03fd55cc32af0c2fe40d93f0636c3450
|
data/hebrew_date.gemspec
CHANGED
data/lib/hebrew_date.rb
CHANGED
@@ -326,7 +326,7 @@ class HebrewDate < Delegator
|
|
326
326
|
# @param year [Integer]
|
327
327
|
# @return [String]
|
328
328
|
def self.hebrew_month_to_s(month, year=nil)
|
329
|
-
year ||= self.
|
329
|
+
year ||= self.new.hebrew_year
|
330
330
|
if hebrew_leap_year?(year) && month == 12
|
331
331
|
'Adar I'
|
332
332
|
else
|
@@ -376,7 +376,7 @@ class HebrewDate < Delegator
|
|
376
376
|
.gsub('*d', @hebrew_date.to_s.rjust(2, '0'))
|
377
377
|
.gsub('*-d', @hebrew_date.to_s)
|
378
378
|
.gsub('*e', @hebrew_date.to_s.rjust(2, ' '))
|
379
|
-
if self.class.replace_saturday &&
|
379
|
+
if self.class.replace_saturday && self.day == 7
|
380
380
|
shab_name = self.class.ashkenaz ? 'Shabbos' : 'Shabbat'
|
381
381
|
format = format.gsub('%A', shab_name)
|
382
382
|
.gsub('%^A', shab_name.upcase)
|