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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- ZGVhNWI3YTIxM2VkN2E3NDU0ODhlNDAyMDY3YTYxMTIxY2IxOTIxOQ==
4
+ OGE3NzlkMmNlZmRhZTNmYmJmNDgzMGM5ZGNkNmQ2MTlkNmZiYmQ4Ng==
5
5
  data.tar.gz: !binary |-
6
- YTk2YzJhMmFhMjRmNmU2YWUzNjY1YWI0NGRmZjA0OWVkOGJiNjNjMw==
6
+ NTMzOTViODU0ZDFlMjQzNjVkZWM2OGFhM2E3YWUyZjZkOTkyZTI3OQ==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- YjdlOTY4ZDM0YTFhZTQ0ZTYzZmY2ZGU1MTlkNDg2OWU0MjljMGJjYmE2OGZl
10
- MTUwNGQ0Yjc4MWM3ZGJjNTY3Y2E3YzYzYzNiMzhjOTRjYmJhOGI4NmVhMDc3
11
- N2Y0ZTViNjYwOWIyNjE4ZjA0ZWVjNGQ5ZDBmOTVkYThiZTRiZWY=
9
+ ZTBjNGQzYTFkMTFhZDY5ODVkZTdiYzFhNzk1NGI3ZDIwZmVmZGM1OWU2OWRh
10
+ YzVlN2RiNjRhZjcyMzY2YjI5NzMzMjlhYTZiYjQzMzQ2Y2Q2MTBjOWQyM2Yy
11
+ OGQ0NWVkNjUzMTQ1OTJiZDhhZjU0MmE2YjAwNjQ1NmZmOWIyZjY=
12
12
  data.tar.gz: !binary |-
13
- MGFmNmQyNTI2YzJhMmMyZGMwNGI4MmU1ZWNiYWUzNDE2NTY1NGIwNDg1NTI3
14
- MzJlMjc1NTEyOWFkM2EyNTU4N2U3ZjMzNjZjYWQ5OThiNjUxM2U2NmM5ZTNk
15
- NjU0ODA5NDhlNWM5NjU2ODk4NzI4MzMzMjExZGNiNjQ3ODc5YmU=
13
+ NGVmNDg1MjEzODBhNDFlNDk2NjYxYmFkMjkyYjc1YjliNjc1NDhhMWNlZWM1
14
+ MTg2ZWI0MDNmMDkzNTEwNjYyY2QxYjU3NDQwMWU1ZDRjMTA1ZDhhNTdjNDdh
15
+ OTJiMWFlYzQ2ZGM1ZGU5NjdmMzNiMDNiODMyYWM5ODA0YzZjMzM=
data/README.md CHANGED
@@ -1,9 +1,6 @@
1
1
  # CopticDate
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/coptic_date`. To experiment with that code, run `bin/console` for an interactive prompt.
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
- ## Usage
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
- ## Contributing
28
+ ## Calculate Easter Date
29
+ ```
30
+ CopticEaster::calculate_easter_date(2015) # 2015-04-12
31
+ ```
37
32
 
38
- Bug reports and pull requests are welcome on GitHub at https://github.com/kimomicho/coptic_date.
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
@@ -1,3 +1,3 @@
1
1
  module CopticDate
2
- VERSION = "1.1.0"
2
+ VERSION = "2.1.0"
3
3
  end
@@ -0,0 +1,8 @@
1
+ require "coptic_date/version"
2
+ require "date"
3
+
4
+ module CopticVariableFeasts
5
+ def self.big_feast_start_date(greg_year)
6
+ CopticEaster::calculate_easter_date(greg_year) - 55
7
+ end
8
+ end
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: 1.1.0
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-15 00:00:00.000000000 Z
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