hebrew_date 1.0.1 → 1.0.2

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: 568f8c9b7c249fa47ce37854369240904e63fdda
4
- data.tar.gz: 1e20d98419af2e817046659a019f55ee6d7fbe17
3
+ metadata.gz: 0cfbf74b6b71127662f659559b716f0e042e8002
4
+ data.tar.gz: 4475b8b7f053134cb63d532aaa61e079a29f773b
5
5
  SHA512:
6
- metadata.gz: 10a60b3bca70bc41d75f6f5dd46693e6244b63b1fd22d11180efcc4ccfb71af88cb07108d518f5f52aea274488055cbe74fe62aea8297fa596d4b94410870d20
7
- data.tar.gz: 043e44a227b7b3f3d59add7f8fa838cf0002c08189f65282cb1a6fd36d8e6ba09fa1e75abc172f6382a576a83a82ecea64013370ec721e8764ab752125ccfc07
6
+ metadata.gz: 31515f182a5876d84ef9ebca46df71dddc5129fb4a0991088ce03a6122dd8014ccade153334b24ed2250dd6d5974457c9512763d24551dea36019b6fd5e6060e
7
+ data.tar.gz: 0bd5f52e8ca3d31e589533626c6b9fa9ca40b674d6eec07c9bab354a254b5f56ba98767b3e665415036978ac01d03650e7fe816ab8c6d34a23206590957ac8ba
data/README.md CHANGED
@@ -1,7 +1,7 @@
1
1
  # HebrewDate
2
2
 
3
3
  `hebrew_date` is a library designed to provide information about the Jewish
4
- calendar. This includes dates, <!---times,---> holidays, and parsha of the week.
4
+ calendar. This includes dates, holidays, and parsha of the week.
5
5
 
6
6
  <!---
7
7
  `hebrew_date` depends on the [ruby-sun-times](https://github.com/joeyates/ruby-sun-times)
@@ -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.1'
5
- s.date = '2014-01-09'
4
+ s.version = '1.0.2'
5
+ s.date = '2014-01-21'
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
@@ -249,8 +249,13 @@ class HebrewDate < Delegator
249
249
  # Get the name of the current Hebrew month.
250
250
  # @return [String]
251
251
  def hebrew_month_to_s
252
- name = HEBREW_MONTH_NAMES[@hebrew_month - 1]
253
- if name == 'Teves' && !@ashkenaz
252
+ self.class.hebrew_month_to_s(@hebrew_month)
253
+ end
254
+
255
+ # Get the name of the given Hebrew month.
256
+ def self.hebrew_month_to_s(month)
257
+ name = HEBREW_MONTH_NAMES[month - 1]
258
+ if name == 'Teves' && !self.ashkenaz
254
259
  name = 'Tevet'
255
260
  end
256
261
  name
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.1
4
+ version: 1.0.2
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-01-09 00:00:00.000000000 Z
11
+ date: 2014-01-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: yard