hebrew_date 1.1.1 → 1.1.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/Rakefile +5 -0
- data/lib/hebrew_date.rb +14 -14
- data/lib/support/holidays.rb +2 -1
- data/lib/support/parshiot.rb +1 -1
- metadata +9 -78
- data/.gitignore +0 -21
- data/Gemfile +0 -3
- data/Gemfile.lock +0 -36
- data/doc/HebrewDate.html +0 -4153
- data/doc/HebrewDateSupport/HolidayMethods/ClassMethods.html +0 -466
- data/doc/HebrewDateSupport/HolidayMethods.html +0 -1267
- data/doc/HebrewDateSupport/ParshaMethods.html +0 -637
- data/doc/HebrewDateSupport.html +0 -117
- data/doc/JqrHelpers/Rails.html +0 -117
- data/doc/_index.html +0 -152
- data/doc/class_list.html +0 -54
- data/doc/css/common.css +0 -1
- data/doc/css/full_list.css +0 -57
- data/doc/css/style.css +0 -338
- data/doc/file.README.html +0 -180
- data/doc/file_list.html +0 -56
- data/doc/frames.html +0 -26
- data/doc/index.html +0 -180
- data/doc/js/app.js +0 -219
- data/doc/js/full_list.js +0 -178
- data/doc/js/jquery.js +0 -4
- data/doc/method_list.html +0 -353
- data/doc/top-level-namespace.html +0 -114
- data/hebrew_date.gemspec +0 -23
- data/spec/hebrew_date_spec.rb +0 -76
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: c12d128994602de020db7f9dc39b806d00690850343b9d2b57e7bb90cfaeb7ad
|
|
4
|
+
data.tar.gz: 3d05de37c5006e2f9e080e1201bd504d1ebdaf1711674ed70690a18f91aa284c
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e08c0c45cbd64f261ac6efdf48db8338ac5aa960862c58ef69fc802515fd3cf54ae53729f83386bada90defc09abd8dddd24c354a1498c2784c8eafcd9a6f8e0
|
|
7
|
+
data.tar.gz: 89421cfd390055524e0826cf9c954b72b4808dffbd19f0df34b8e3f270328faa045b10c6cd4c3ec9e4fd72b2bbc61fbb804dd5ba2232b3b0379074f1e649eacd
|
data/Rakefile
CHANGED
data/lib/hebrew_date.rb
CHANGED
|
@@ -2,8 +2,8 @@
|
|
|
2
2
|
|
|
3
3
|
require 'date'
|
|
4
4
|
require 'delegate'
|
|
5
|
-
require_relative 'support/holidays
|
|
6
|
-
require_relative 'support/parshiot
|
|
5
|
+
require_relative 'support/holidays'
|
|
6
|
+
require_relative 'support/parshiot'
|
|
7
7
|
|
|
8
8
|
# This code is essentially a port of Avrom Finkelstein's RegularHebrewDate
|
|
9
9
|
# Java class (http://web.archive.org/web/20061207174551/http://www.bayt.org/calendar/hebdate.html)
|
|
@@ -564,15 +564,15 @@ class HebrewDate < Delegator
|
|
|
564
564
|
conjunction_parts = 1080 * (hours_elapsed.remainder(24)) +
|
|
565
565
|
parts_elapsed.remainder(1080)
|
|
566
566
|
alternative_day = conjunction_day
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
567
|
+
if (conjunction_parts >= 19440) || # If new moon is at or after midday,
|
|
568
|
+
(((conjunction_day.remainder(7)) == 2) && # ...or is on a Tuesday...
|
|
569
|
+
(conjunction_parts >= 9924) && # at 9 hours, 204 parts or later...
|
|
570
|
+
!self.class.hebrew_leap_year?(year)) || # ...of a common year,
|
|
571
|
+
(((conjunction_day.remainder(7)) == 1) && # ...or is on a Monday at...
|
|
572
|
+
(conjunction_parts >= 16789) && # 15 hours, 589 parts or later...
|
|
573
|
+
(self.class.hebrew_leap_year?(year - 1))) # at the end of a leap year
|
|
574
|
+
# Then postpone Rosh HaShanah one day
|
|
575
|
+
alternative_day += 1
|
|
576
576
|
end
|
|
577
577
|
|
|
578
578
|
# If Rosh Hashana would occur on Sunday, Wednesday, or Friday
|
|
@@ -639,8 +639,8 @@ class HebrewDate < Delegator
|
|
|
639
639
|
# @return [void]
|
|
640
640
|
def _hebrew_date_to_abs_date(year, month, date)
|
|
641
641
|
puts "hebrew_date_to_abs_date #{year} #{month} #{date}" if @debug
|
|
642
|
-
|
|
643
|
-
|
|
642
|
+
if month < 7 # Before Tishri, so add days in prior months
|
|
643
|
+
# this year before and after Nisan.
|
|
644
644
|
(7..last_month_of_hebrew_year).each do |m|
|
|
645
645
|
date += last_day_of_hebrew_month(m)
|
|
646
646
|
end
|
|
@@ -660,4 +660,4 @@ class HebrewDate < Delegator
|
|
|
660
660
|
foo
|
|
661
661
|
end
|
|
662
662
|
|
|
663
|
-
end
|
|
663
|
+
end
|
data/lib/support/holidays.rb
CHANGED
|
@@ -71,6 +71,7 @@ module HebrewDateSupport
|
|
|
71
71
|
elsif date.day == 7
|
|
72
72
|
date.set_hebrew_date(year, 2, 3)
|
|
73
73
|
end
|
|
74
|
+
date
|
|
74
75
|
when :LAG_BAOMER
|
|
75
76
|
self.new_from_hebrew(year, 2, 18)
|
|
76
77
|
when :YOM_YERUSHALAYIM
|
|
@@ -423,4 +424,4 @@ module HebrewDateSupport
|
|
|
423
424
|
end
|
|
424
425
|
|
|
425
426
|
end
|
|
426
|
-
end
|
|
427
|
+
end
|
data/lib/support/parshiot.rb
CHANGED
metadata
CHANGED
|
@@ -1,108 +1,40 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: hebrew_date
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.1.
|
|
4
|
+
version: 1.1.2
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Daniel Orner
|
|
8
8
|
bindir: bin
|
|
9
9
|
cert_chain: []
|
|
10
|
-
date:
|
|
11
|
-
dependencies:
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
- !ruby/object:Gem::Version
|
|
18
|
-
version: 0.9.37
|
|
19
|
-
type: :development
|
|
20
|
-
prerelease: false
|
|
21
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
22
|
-
requirements:
|
|
23
|
-
- - "~>"
|
|
24
|
-
- !ruby/object:Gem::Version
|
|
25
|
-
version: 0.9.37
|
|
26
|
-
- !ruby/object:Gem::Dependency
|
|
27
|
-
name: rspec
|
|
28
|
-
requirement: !ruby/object:Gem::Requirement
|
|
29
|
-
requirements:
|
|
30
|
-
- - "~>"
|
|
31
|
-
- !ruby/object:Gem::Version
|
|
32
|
-
version: '3.13'
|
|
33
|
-
type: :development
|
|
34
|
-
prerelease: false
|
|
35
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
36
|
-
requirements:
|
|
37
|
-
- - "~>"
|
|
38
|
-
- !ruby/object:Gem::Version
|
|
39
|
-
version: '3.13'
|
|
40
|
-
- !ruby/object:Gem::Dependency
|
|
41
|
-
name: rake
|
|
42
|
-
requirement: !ruby/object:Gem::Requirement
|
|
43
|
-
requirements:
|
|
44
|
-
- - ">="
|
|
45
|
-
- !ruby/object:Gem::Version
|
|
46
|
-
version: '0'
|
|
47
|
-
type: :development
|
|
48
|
-
prerelease: false
|
|
49
|
-
version_requirements: !ruby/object:Gem::Requirement
|
|
50
|
-
requirements:
|
|
51
|
-
- - ">="
|
|
52
|
-
- !ruby/object:Gem::Version
|
|
53
|
-
version: '0'
|
|
54
|
-
description: |2+
|
|
55
|
-
hebrew_date is a library designed to provide information about the Jewish
|
|
56
|
-
calendar. This includes dates, holidays, and parsha of the week.
|
|
57
|
-
|
|
58
|
-
email: dmorner@gmail.com
|
|
10
|
+
date: 2026-02-22 00:00:00.000000000 Z
|
|
11
|
+
dependencies: []
|
|
12
|
+
description: |
|
|
13
|
+
hebrew_date is a library designed to provide information about the Jewish
|
|
14
|
+
calendar. This includes dates, holidays, and parsha of the week.
|
|
15
|
+
email:
|
|
16
|
+
- dmorner@gmail.com
|
|
59
17
|
executables: []
|
|
60
18
|
extensions: []
|
|
61
19
|
extra_rdoc_files: []
|
|
62
20
|
files:
|
|
63
21
|
- ".github/workflows/ci.yml"
|
|
64
22
|
- ".github/workflows/release.yml"
|
|
65
|
-
- ".gitignore"
|
|
66
23
|
- ".rspec"
|
|
67
24
|
- ".ruby-version"
|
|
68
25
|
- ".tool-versions"
|
|
69
|
-
- Gemfile
|
|
70
|
-
- Gemfile.lock
|
|
71
26
|
- LICENSE
|
|
72
27
|
- README.md
|
|
73
28
|
- Rakefile
|
|
74
|
-
- doc/HebrewDate.html
|
|
75
|
-
- doc/HebrewDateSupport.html
|
|
76
|
-
- doc/HebrewDateSupport/HolidayMethods.html
|
|
77
|
-
- doc/HebrewDateSupport/HolidayMethods/ClassMethods.html
|
|
78
|
-
- doc/HebrewDateSupport/ParshaMethods.html
|
|
79
|
-
- doc/JqrHelpers/Rails.html
|
|
80
|
-
- doc/_index.html
|
|
81
|
-
- doc/class_list.html
|
|
82
|
-
- doc/css/common.css
|
|
83
|
-
- doc/css/full_list.css
|
|
84
|
-
- doc/css/style.css
|
|
85
|
-
- doc/file.README.html
|
|
86
|
-
- doc/file_list.html
|
|
87
|
-
- doc/frames.html
|
|
88
|
-
- doc/index.html
|
|
89
|
-
- doc/js/app.js
|
|
90
|
-
- doc/js/full_list.js
|
|
91
|
-
- doc/js/jquery.js
|
|
92
|
-
- doc/method_list.html
|
|
93
|
-
- doc/top-level-namespace.html
|
|
94
|
-
- hebrew_date.gemspec
|
|
95
29
|
- lib/hebrew_date.rb
|
|
96
30
|
- lib/support/holidays.rb
|
|
97
31
|
- lib/support/parshiot.rb
|
|
98
|
-
- spec/hebrew_date_spec.rb
|
|
99
32
|
homepage: https://github.com/dorner/hebrew_date
|
|
100
33
|
licenses:
|
|
101
34
|
- MIT
|
|
102
35
|
metadata: {}
|
|
103
36
|
rdoc_options: []
|
|
104
37
|
require_paths:
|
|
105
|
-
- "."
|
|
106
38
|
- lib
|
|
107
39
|
required_ruby_version: !ruby/object:Gem::Requirement
|
|
108
40
|
requirements:
|
|
@@ -115,8 +47,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
115
47
|
- !ruby/object:Gem::Version
|
|
116
48
|
version: '0'
|
|
117
49
|
requirements: []
|
|
118
|
-
rubygems_version:
|
|
50
|
+
rubygems_version: 4.0.3
|
|
119
51
|
specification_version: 4
|
|
120
52
|
summary: Hebrew/Jewish dates, times, and holidays.
|
|
121
53
|
test_files: []
|
|
122
|
-
...
|
data/.gitignore
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
*.rbc
|
|
2
|
-
*.sassc
|
|
3
|
-
.sass-cache
|
|
4
|
-
capybara-*.html
|
|
5
|
-
.rvmrc
|
|
6
|
-
/.bundle
|
|
7
|
-
/vendor/bundle
|
|
8
|
-
/log/*
|
|
9
|
-
/tmp/*
|
|
10
|
-
/db/*.sqlite3
|
|
11
|
-
/public/system/*
|
|
12
|
-
/coverage/
|
|
13
|
-
/spec/tmp/*
|
|
14
|
-
**.orig
|
|
15
|
-
rerun.txt
|
|
16
|
-
pickle-email-*.html
|
|
17
|
-
.project
|
|
18
|
-
config/initializers/secret_token.rb
|
|
19
|
-
|
|
20
|
-
# Gem build artifacts
|
|
21
|
-
*.gem
|
data/Gemfile
DELETED
data/Gemfile.lock
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
PATH
|
|
2
|
-
remote: .
|
|
3
|
-
specs:
|
|
4
|
-
hebrew_date (1.1.1)
|
|
5
|
-
|
|
6
|
-
GEM
|
|
7
|
-
remote: https://rubygems.org/
|
|
8
|
-
specs:
|
|
9
|
-
diff-lcs (1.2.5)
|
|
10
|
-
rake (13.3.1)
|
|
11
|
-
rspec (3.13.2)
|
|
12
|
-
rspec-core (~> 3.13.0)
|
|
13
|
-
rspec-expectations (~> 3.13.0)
|
|
14
|
-
rspec-mocks (~> 3.13.0)
|
|
15
|
-
rspec-core (3.13.6)
|
|
16
|
-
rspec-support (~> 3.13.0)
|
|
17
|
-
rspec-expectations (3.13.5)
|
|
18
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
|
19
|
-
rspec-support (~> 3.13.0)
|
|
20
|
-
rspec-mocks (3.13.7)
|
|
21
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
|
22
|
-
rspec-support (~> 3.13.0)
|
|
23
|
-
rspec-support (3.13.6)
|
|
24
|
-
yard (0.9.38)
|
|
25
|
-
|
|
26
|
-
PLATFORMS
|
|
27
|
-
ruby
|
|
28
|
-
|
|
29
|
-
DEPENDENCIES
|
|
30
|
-
hebrew_date!
|
|
31
|
-
rake
|
|
32
|
-
rspec (~> 3.13)
|
|
33
|
-
yard (~> 0.9.37)
|
|
34
|
-
|
|
35
|
-
BUNDLED WITH
|
|
36
|
-
2.6.9
|