hebrew_date 1.0.17 → 1.0.18
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/hebrew_date.rb +11 -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: 9fff4c21e6a3bb271b306bf83dec28e7cff29dff
|
4
|
+
data.tar.gz: df3c0cfc4ccf86cb70d33fe914cd543b8d4b3fbc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b0c80b2ffdab9b080c64d8ff95defcf4037850ef1486aad46c3a53f0a77066443e573a07903a79cd7f1ade5b813fd5af4d5aa2991bcec39464f7a5cd158edfe
|
7
|
+
data.tar.gz: ba819d57a4b0077e07a0fb4a9b4599e36cce991bedb8e5eae6c6b74ad58bf651fd9d29ecc527e33b48d5649626ccab3f4471031dbb6ae09620abc83e51de1183
|
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-
|
4
|
+
s.version = '1.0.18'
|
5
|
+
s.date = '2014-03-06'
|
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/hebrew_date.rb
CHANGED
@@ -441,6 +441,17 @@ class HebrewDate < Delegator
|
|
441
441
|
hebrew_leap_year?(year) ? 13 : 12
|
442
442
|
end
|
443
443
|
|
444
|
+
# Get the name of the given day (1-7).
|
445
|
+
# @param day [Integer]
|
446
|
+
# @return [String]
|
447
|
+
def day_name(day)
|
448
|
+
if self.replace_saturday && day == 7
|
449
|
+
self.ashkenaz ? 'Shabbos' : 'Shabbat'
|
450
|
+
else
|
451
|
+
Date::DAYNAMES[day - 1]
|
452
|
+
end
|
453
|
+
end
|
454
|
+
|
444
455
|
end
|
445
456
|
|
446
457
|
# The last month in this Hebrew year (12 or 13).
|
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.18
|
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-
|
11
|
+
date: 2014-03-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: yard
|