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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 35508f471f98b8c7ef8bee61a474a8ef07b4f7b3
4
- data.tar.gz: 7325bcdbed021dbfdd5e9b2433f95d3206fc118b
3
+ metadata.gz: 24d30d98a5b4e655ed1d8394c69721ac66bceee7
4
+ data.tar.gz: a07b4a0f4d44c9f1c71656659cb8dcb85cfd28be
5
5
  SHA512:
6
- metadata.gz: d9a26c8a810b30e48831a05870bfb7bac0b709bb6cb31daeb45fa824b2302371aa72f82195ce2ca33138fa60318ae97af11d5f54e3e4958d769907acc3b1ba35
7
- data.tar.gz: 402fa96a1c29c90ef7c85f978a7111ae0e9ccc60c3b86964af4aa6a2d1f2660f3e398fc524784c1cebef797e3026ff61249dfcd020b71227ad1ab124e4eed68e
6
+ metadata.gz: e0e483760e3c7098bd702c5a8f3438805c958ca0c5ac828a1f03ea72bbdd060158d7dfe26deb74154100e73fc40f0ceb75c06fa610352ac8dff71a4a65158c79
7
+ data.tar.gz: 3ea8a572c90e14c61e8a8bbfdfb034a2dd91ba5d5daee2fedc39bb03c4e5056bf00246bf7cdf5e824d3aaf27d30ae5dc03fd55cc32af0c2fe40d93f0636c3450
data/hebrew_date.gemspec CHANGED
@@ -1,7 +1,7 @@
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.11'
4
+ s.version = '1.0.12'
5
5
  s.date = '2014-02-03'
6
6
  s.summary = 'Hebrew/Jewish dates, times, and holidays.'
7
7
  s.description = <<-EOF
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.class.new.hebrew_year
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 && @hebrew_date.day == 7
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)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hebrew_date
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.11
4
+ version: 1.0.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Orner