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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c2235704ba0fb5579772edb819051d8c8b927a6e
4
- data.tar.gz: d9019f7b144f2a4b68f4553023b974241de1643e
3
+ metadata.gz: 9fff4c21e6a3bb271b306bf83dec28e7cff29dff
4
+ data.tar.gz: df3c0cfc4ccf86cb70d33fe914cd543b8d4b3fbc
5
5
  SHA512:
6
- metadata.gz: 24ba395fa303ff692d9bdb01af7b32f27125b024abdecb46f3cbaa1265d03df36987c72e15d1c62466bf94b5a944b0fa242499466433420906bdc3bfc59858b2
7
- data.tar.gz: 3e6074d416d6384e22fde86e65290c0c829a4a4ec84217df06ccab925e4dd309616ef7bf9614233820157c5717186704d295e55d9b6bc2ca1d690cf7af76e1ed
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.17'
5
- s.date = '2014-02-23'
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.17
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-02-23 00:00:00.000000000 Z
11
+ date: 2014-03-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: yard