hebrew_date 1.0.15 → 1.0.16

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: cc5ea4f193fb1abfb9f8cde7e26e5e92183811ad
4
- data.tar.gz: b2e5b309c52d59bbe67e9aef4a9bf54575009375
3
+ metadata.gz: bd0784e786b2cb1f11d215b9109d4e8c78930899
4
+ data.tar.gz: 57ef785887c9898d8580c0eaa90dd309b97e5f3b
5
5
  SHA512:
6
- metadata.gz: d4680aa9fdbfaa0ebe37b7e5f8d51da1a5985fa138fc59c6baa2a89e42e1cbe9dbd4fb2398edf782c939e92a160d6b7918445dd4db39aef477eacc5dcd3ac303
7
- data.tar.gz: 9d0e7ff105fcbe310fc1f4bd7a695f476cfb271e6b38d09a8fa7d65059004355f15489b32aba921258a6c5b3cf13f8b12f553778c931403290b9036c7f7d28e9
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.15'
5
- s.date = '2014-02-21'
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
@@ -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.15
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-21 00:00:00.000000000 Z
11
+ date: 2014-02-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: yard