hebrew_date 1.0.23 → 1.0.24

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: 7ed22a17c79bb88fcb7b0b485f98ee780089cec2
4
- data.tar.gz: ec94e4e47ff68c9a4effa527bbe59ceb5295bbc6
3
+ metadata.gz: e3c783d3d8a24c7952044732731bdccf929bc2c0
4
+ data.tar.gz: 45f1c8e0eb4413644426728414249d5d2111202d
5
5
  SHA512:
6
- metadata.gz: bf9ee5176577f8fe85ec72e9058460c7b03a73fce08ca4826e0d63d7793d783fc2677fc9aa56f022a31f96dd1d8ee78a029f43d7c530fe76e984654e9ee9afaa
7
- data.tar.gz: 8c30a84761b118eab19f7307625d5c6b1268a12d188bd6091dbbfcb23e43dd81ae990f7edbdcbda7f2aeffec9bea6052dfc6aed7c710748f0017b1536bcce6f0
6
+ metadata.gz: de69a7bc1ed45f50504d7d0b64262b0405baafad20acaf7aa0d6a231c610f3f5a8416b20c371d9b054aa57c603ce288931aa6f5ec3d32d909809a0b37bc33773
7
+ data.tar.gz: f213f90828066445caf564d787af2a2c655188c61bbda0d0b13671a646c98660bb55946f6515750134adc8517a6ceaff933b8d449816780494e402b51117837c
@@ -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.23'
4
+ s.version = '1.0.24'
5
5
  s.date = '2014-11-21'
6
6
  s.summary = 'Hebrew/Jewish dates, times, and holidays.'
7
7
  s.description = <<-EOF
@@ -289,6 +289,24 @@ class HebrewDate < Delegator
289
289
  self + 1
290
290
  end
291
291
 
292
+ # This does not modify the current date, but creates a new one.
293
+ # @return [HebrewDate]
294
+ def next_hebrew_month
295
+ current_month = self.hebrew_month
296
+ date = self.clone
297
+ date.forward while date.hebrew_month == current_month
298
+ date
299
+ end
300
+
301
+ # This does not modify the current date, but creates a new one.
302
+ # @return [HebrewDate]
303
+ def prev_hebrew_month
304
+ current_month = self.hebrew_month
305
+ date = self.clone
306
+ date.back while date.hebrew_month == current_month
307
+ date
308
+ end
309
+
292
310
  alias_method :succ, :next
293
311
 
294
312
  # Move back one day.
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.23
4
+ version: 1.0.24
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Orner