coptic_date 2.2.0 → 2.3.0
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 +8 -8
- data/README.md +6 -0
- data/lib/coptic_date/version.rb +1 -1
- data/lib/coptic_variable_feasts.rb +18 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OTkyNzg0MDliNzExYjk4NDg1N2FmNzk3NzJmZjc0OTc0MTYyY2FiZQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZWM4YmUyZWRjYWMwZmNhMzJhMGQ2ZjNiMGFlMWZjYTQ0OThkMzY2NQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
NjI2ZDNkODYxNDQ5MTYzYTE2OTQ2YjE1ZWFlYTJhOGQ0MGVmMDE2YTc0NDZk
|
10
|
+
YTFmMmZmOGE0MzU1MjAwYzRlMjliYjAwOTE4N2RhMWQ4YThhYjYzODk3OTI3
|
11
|
+
MjE2MjE0MDFkZjJjODc5MGQ5MWZjNjhmNjUyYTUxMDQ3MGRjNGY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
M2JjMmY0OGMyNTI1MjJiMmUxMjBhNjhmOTMzMzY0NzA0ZGEzOTkxMGE2NWFj
|
14
|
+
ZDkxYjVkYzQxNzNmNzMxMDFjZjkyYTQyZTgzYTcxMjQ3MWE3MGU3YTI5ZDU3
|
15
|
+
MWYyMmZkZDgxMDI1MmE0NjhkNmRmZjYyNDk0Y2RmMmVmNjUwMmM=
|
data/README.md
CHANGED
@@ -37,6 +37,12 @@ Or install it yourself as:
|
|
37
37
|
|
38
38
|
### Jonah Fast Date
|
39
39
|
CopticVariableFeasts::jonah_fast_start_date(2014) # 2014.2.10
|
40
|
+
|
41
|
+
### Messengers Fast Date
|
42
|
+
CopticVariableFeasts::messengers_fast_start_date(2014) # 2014.6.9
|
43
|
+
|
44
|
+
### Messengers Feast Date
|
45
|
+
CopticVariableFeasts::messengers_feast_date(2014) # 2014.7.12
|
40
46
|
```
|
41
47
|
|
42
48
|
|
data/lib/coptic_date/version.rb
CHANGED
@@ -9,4 +9,22 @@ module CopticVariableFeasts
|
|
9
9
|
def self.jonah_fast_start_date(greg_year)
|
10
10
|
big_fast_start_date(greg_year) - 14
|
11
11
|
end
|
12
|
+
|
13
|
+
def self.messengers_fast_start_date(greg_year)
|
14
|
+
CopticEaster::calculate_easter_date(greg_year) + 50
|
15
|
+
end
|
16
|
+
|
17
|
+
def self.messengers_fast_duration(greg_year)
|
18
|
+
# I know it should always end on July 12, but I am doing the calculations to make sure I understand things right
|
19
|
+
easter_date = CopticEaster::calculate_easter_date(greg_year)
|
20
|
+
coptic_month = CopticDate::get_coptic_month(easter_date)
|
21
|
+
coptic_day = CopticDate::get_coptic_day(easter_date)
|
22
|
+
dates_to_add = coptic_month==7? 45:15
|
23
|
+
|
24
|
+
(30 - coptic_day) + dates_to_add
|
25
|
+
end
|
26
|
+
|
27
|
+
def self.messengers_feast_date(greg_year)
|
28
|
+
messengers_fast_start_date(greg_year) + messengers_fast_duration(greg_year)
|
29
|
+
end
|
12
30
|
end
|