christian_calendar 0.1.3 → 0.1.4

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: 899f78f97ff2817680ba1cad76e3580e68f40d4d
4
- data.tar.gz: b458b8f77be91f8a0bd85b8aa3c0b9c4dff24726
3
+ metadata.gz: bcc04592d62e2cde1f6995990655757af934c049
4
+ data.tar.gz: eda61d2ebe26f0054afb39f0596c17be70f625ed
5
5
  SHA512:
6
- metadata.gz: 0f4ca83595d56fab70995678fa5d8a81cc69df30a9eb96409bbed87bd2cd9b5c55ea2c8741bc50215c4de604679d05ed3653d1f9dff419fce722761918e4a63f
7
- data.tar.gz: e47b99b6f5e14c4b842114ab6db9f76ffdd8b5e5005bd838dbcf65dec78b37825ec0ec7e29a8f80bb998a27418a4718565438642b54419297e2169baa5bf9a5a
6
+ metadata.gz: 8d8c7cfca2d6fb064ca341f59d18deb2aec4d322368d385153592c106fec6fe3bc796cb38bccf4b99d0dfab964699356b7a1359619c7c8259b3b27aeaf4d380f
7
+ data.tar.gz: ebe6001c05b8a6a5d1da5f85156b7f529e351d3488ff591fe2bf1e526ecdeada54ce69077f0b900d1ee604afd3436caf57a8a7d98377b919e58669a3fb38f30c
Binary file
data.tar.gz.sig CHANGED
@@ -1,2 +1,2 @@
1
- �@�=2aAE:���������'��.���1���E<ҟ�Ee9zu�s!�),�R3Mvt�7���Se ��NZM�|�Cy_&�WmR ���a"H2��0$���`���T""J�0����w��1��+=-�p�}~K�� �k�� ?��!{e|�1����c�X#�[����)���cpJu�AX�iL
2
- �8-�Űk���RGq��/�>�Ĝ0dO�G*Q}��7 M��F� ���X*�ˢ�Y����Q����uU6
1
+ =�H Qr5;� ��}n���CV"t (<lp�'���m��3b��ZLeJ�%�i8Ս5�^��]��}fU��`7�&4{s�$�R'N�@ڃ��`c������N��^!̊��
2
+ Y�t����Ay�k������ش��DO�����Ѳ���^�H4�O*�N�m������d��CqD���eYc�%���{:[�:�`-�Uw��M�~��`G :I�%H7�&� =��䶬AM
@@ -1,15 +1,12 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- #file: christian_calendar.rb
3
+ # file: christian_calendar.rb
4
4
 
5
5
  require 'easter'
6
6
  require 'chronic'
7
7
 
8
- MINUTE = 60
9
- HOUR = MINUTE * 60
10
- DAY = HOUR * 24
11
- WEEK = DAY * 7
12
- MONTH = DAY * 30
8
+
9
+ WEEK = 7
13
10
 
14
11
  class ChristianCalendar
15
12
 
@@ -18,7 +15,7 @@ class ChristianCalendar
18
15
  end
19
16
 
20
17
  def epiphany()
21
- christmas(@year - 1) + DAY * 12
18
+ christmas(@year - 1) + 12
22
19
  end
23
20
 
24
21
  def st_davids_day(year=@year)
@@ -32,7 +29,7 @@ class ChristianCalendar
32
29
  end
33
30
 
34
31
  def mothering_sunday()
35
- (Chronic.parse('sunday', now: ash_wednesday) + WEEK * 3).to_date
32
+ Chronic.parse('sunday', now: ash_wednesday).to_date + WEEK * 3
36
33
  end
37
34
 
38
35
  def st_patricks_day(year=@year)
@@ -81,7 +78,7 @@ class ChristianCalendar
81
78
  alias saint_andrews_day st_andrews_day
82
79
 
83
80
  def advent_sunday()
84
- (Chronic.parse('sunday', now: christmas) - WEEK * 4).to_date
81
+ Chronic.parse('sunday', now: christmas).to_date - WEEK * 4
85
82
  end
86
83
 
87
84
  def christmas(year=@year)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: christian_calendar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
metadata.gz.sig CHANGED
Binary file