hebrew_date 1.0.1 → 1.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/hebrew_date.gemspec +2 -2
- data/lib/hebrew_date.rb +7 -2
- 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: 0cfbf74b6b71127662f659559b716f0e042e8002
|
4
|
+
data.tar.gz: 4475b8b7f053134cb63d532aaa61e079a29f773b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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,
|
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)
|
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-01-
|
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
|
data/lib/hebrew_date.rb
CHANGED
@@ -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
|
-
|
253
|
-
|
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.
|
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-
|
11
|
+
date: 2014-01-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: yard
|