coptic_date 1.1.0 → 2.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/README.md +11 -12
- data/lib/coptic_date/version.rb +1 -1
- data/lib/coptic_variable_feasts.rb +8 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OGE3NzlkMmNlZmRhZTNmYmJmNDgzMGM5ZGNkNmQ2MTlkNmZiYmQ4Ng==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NTMzOTViODU0ZDFlMjQzNjVkZWM2OGFhM2E3YWUyZjZkOTkyZTI3OQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZTBjNGQzYTFkMTFhZDY5ODVkZTdiYzFhNzk1NGI3ZDIwZmVmZGM1OWU2OWRh
|
10
|
+
YzVlN2RiNjRhZjcyMzY2YjI5NzMzMjlhYTZiYjQzMzQ2Y2Q2MTBjOWQyM2Yy
|
11
|
+
OGQ0NWVkNjUzMTQ1OTJiZDhhZjU0MmE2YjAwNjQ1NmZmOWIyZjY=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NGVmNDg1MjEzODBhNDFlNDk2NjYxYmFkMjkyYjc1YjliNjc1NDhhMWNlZWM1
|
14
|
+
MTg2ZWI0MDNmMDkzNTEwNjYyY2QxYjU3NDQwMWU1ZDRjMTA1ZDhhNTdjNDdh
|
15
|
+
OTJiMWFlYzQ2ZGM1ZGU5NjdmMzNiMDNiODMyYWM5ODA0YzZjMzM=
|
data/README.md
CHANGED
@@ -1,9 +1,6 @@
|
|
1
1
|
# CopticDate
|
2
2
|
|
3
|
-
|
4
|
-
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
6
|
-
|
3
|
+
CopticDate is used to convert Gregorian date to Coptic Date. It is also used to calculate Easter date for Orthodox.
|
7
4
|
## Installation
|
8
5
|
|
9
6
|
Add this line to your application's Gemfile:
|
@@ -20,22 +17,24 @@ Or install it yourself as:
|
|
20
17
|
|
21
18
|
$ gem install coptic_date
|
22
19
|
|
23
|
-
##
|
20
|
+
## Date Converter
|
24
21
|
```
|
25
22
|
requested_date = Time.new(2015,9,8)
|
26
23
|
CopticDate::get_coptic_year(requested_date) #1731
|
27
24
|
CopticDate::get_coptic_month(requested_date) #13
|
28
25
|
CopticDate::get_coptic_day(requested_date) #3
|
29
26
|
```
|
30
|
-
## Development
|
31
|
-
|
32
|
-
After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
33
|
-
|
34
|
-
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
35
27
|
|
36
|
-
##
|
28
|
+
## Calculate Easter Date
|
29
|
+
```
|
30
|
+
CopticEaster::calculate_easter_date(2015) # 2015-04-12
|
31
|
+
```
|
37
32
|
|
38
|
-
|
33
|
+
## Calculate Variable Feast Dates
|
34
|
+
```
|
35
|
+
### Big Fast Date
|
36
|
+
CopticVariableFeasts::big_feast_start_date(2014) # 2014,2,24
|
37
|
+
```
|
39
38
|
|
40
39
|
|
41
40
|
## License
|
data/lib/coptic_date/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: coptic_date
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kamal Micheal
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-08-
|
11
|
+
date: 2015-08-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -71,6 +71,7 @@ files:
|
|
71
71
|
- lib/coptic_date.rb
|
72
72
|
- lib/coptic_date/version.rb
|
73
73
|
- lib/coptic_easter.rb
|
74
|
+
- lib/coptic_variable_feasts.rb
|
74
75
|
homepage: https://github.com/kimomicho/coptic_date_gem
|
75
76
|
licenses:
|
76
77
|
- MIT
|