christian_calendar 0.1.2 → 0.1.3

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: 28f3375c2c35c248352e57bdb5267574e759c52b
4
- data.tar.gz: c7168679e636910e7ec4da85bae9bfce4e845013
3
+ metadata.gz: 899f78f97ff2817680ba1cad76e3580e68f40d4d
4
+ data.tar.gz: b458b8f77be91f8a0bd85b8aa3c0b9c4dff24726
5
5
  SHA512:
6
- metadata.gz: 4b97ad500acc67b2a825b35f8fe5505d70d22de8c9655cebda06bcc3dee70b96595871c4cb299af318490f8a9fa17481933f011036673c0371aa6d794438581f
7
- data.tar.gz: 59be4372fb6abea000add2b3e53136953be7050eac5808c9a9176d70b7dd059432081a99b1eeddaf574e52f632cfd8ea07d383c87c625a16423bf0db4e4a21a9
6
+ metadata.gz: 0f4ca83595d56fab70995678fa5d8a81cc69df30a9eb96409bbed87bd2cd9b5c55ea2c8741bc50215c4de604679d05ed3653d1f9dff419fce722761918e4a63f
7
+ data.tar.gz: e47b99b6f5e14c4b842114ab6db9f76ffdd8b5e5005bd838dbcf65dec78b37825ec0ec7e29a8f80bb998a27418a4718565438642b54419297e2169baa5bf9a5a
Binary file
data.tar.gz.sig CHANGED
@@ -1 +1,2 @@
1
- J��|�� G��r�L 1nm}^�$䏮kF��:��h`1P[Ǟ�`:�H�nX�0c���+��C|a,QT*\��$�O�����V��-_W��Ll��;����B7E���ȯSE�ߩD�����Dq�D]g}�fO[���P�Q9黃���ž�F{k�^���\9(ؙs�DmT��^�I�7�D��贜|
1
+ �@�=2aAE:���������'��.���1���E<ҟ�Ee9zus!�),�R3Mvt�7���Se ��NZM�|�Cy_&�Wm�R ���a�"H�2��0$���`���T""J0����w��1��+=-�p�}~K�� k�� ?��!{e|�1����c�X#�[����)���cpJuAXiL
2
+ �8-�Űk���R�Gq��/�>�Ĝ0dO�G*Q}��7 M��F� ���X*�ˢ�Y����Q����uU6
@@ -22,7 +22,7 @@ class ChristianCalendar
22
22
  end
23
23
 
24
24
  def st_davids_day(year=@year)
25
- Time.local(year, 3, 1)
25
+ Date.new(year, 3, 1)
26
26
  end
27
27
 
28
28
  alias saint_davids_day st_davids_day
@@ -32,11 +32,11 @@ class ChristianCalendar
32
32
  end
33
33
 
34
34
  def mothering_sunday()
35
- Chronic.parse('sunday', now: ash_wednesday) + WEEK * 3
35
+ (Chronic.parse('sunday', now: ash_wednesday) + WEEK * 3).to_date
36
36
  end
37
37
 
38
38
  def st_patricks_day(year=@year)
39
- Time.local(year, 3, 17)
39
+ Date.new(year, 3, 17)
40
40
  end
41
41
 
42
42
  alias saint_patricks_day st_patricks_day
@@ -57,11 +57,11 @@ class ChristianCalendar
57
57
 
58
58
  def whit_sunday()
59
59
  Chronic.parse('sunday', \
60
- now: Chronic.parse('15 May', now: Time.local(@year,1,1)))
60
+ now: Chronic.parse('15 May', now: Time.local(@year,1,1))).to_date
61
61
  end
62
62
 
63
63
  def trinity_sunday()
64
- Chronic.parse('sunday', now: pentecost)
64
+ Chronic.parse('sunday', now: pentecost).to_date
65
65
  end
66
66
 
67
67
  def ascension_day()
@@ -75,17 +75,17 @@ class ChristianCalendar
75
75
  alias pentecost_sunday pentecost
76
76
 
77
77
  def st_andrews_day(year=@year)
78
- Time.local(year, 11, 30)
78
+ Date.new(year, 11, 30)
79
79
  end
80
80
 
81
81
  alias saint_andrews_day st_andrews_day
82
82
 
83
83
  def advent_sunday()
84
- Chronic.parse('sunday', now: christmas) - WEEK * 4
84
+ (Chronic.parse('sunday', now: christmas) - WEEK * 4).to_date
85
85
  end
86
86
 
87
87
  def christmas(year=@year)
88
- Time.local(year, 12, 25)
88
+ Date.new(year, 12, 25)
89
89
  end
90
90
 
91
91
  def to_h
@@ -108,4 +108,4 @@ if __FILE__ == $0 then
108
108
  cc.advent_sunday
109
109
 
110
110
  cc.to_h
111
- end
111
+ end
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.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -12,26 +12,26 @@ cert_chain:
12
12
  -----BEGIN CERTIFICATE-----
13
13
  MIIDljCCAn6gAwIBAgIBATANBgkqhkiG9w0BAQUFADBIMRIwEAYDVQQDDAlnZW1t
14
14
  YXN0ZXIxHjAcBgoJkiaJk/IsZAEZFg5qYW1lc3JvYmVydHNvbjESMBAGCgmSJomT
15
- 8ixkARkWAmV1MB4XDTE0MDEwNDE3NDAxMVoXDTE1MDEwNDE3NDAxMVowSDESMBAG
15
+ 8ixkARkWAmV1MB4XDTE0MDMxNjE1MTQxMVoXDTE1MDMxNjE1MTQxMVowSDESMBAG
16
16
  A1UEAwwJZ2VtbWFzdGVyMR4wHAYKCZImiZPyLGQBGRYOamFtZXNyb2JlcnRzb24x
17
17
  EjAQBgoJkiaJk/IsZAEZFgJldTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC
18
- ggEBAMTj2pwMHnQglKT0hs1obl7At3Cv4L3bT9fjeTtvRDh0dTiF/xGOa0YpkyHa
19
- jDiAUUd60EqCraADPGFg6zvAyOP9wSfqqyi8b5eA5pnsI36mjavBua5vnZJrQEbj
20
- PbQ+7MJQW8s7RVFaW6LrmQr19/Qxh8xaC+tCx+IyGnSbr1a4Vaiu0k8QIveqmIn4
21
- 5UfcIonMnsnuEkATDaTzGjusp8Z3SdKfZyxWmcu458rLUSImvpdBxaGEcHAPhqwx
22
- qGASEkhm4fUbT/Jq5wYg6mr+PhhJGs3ZKh6gRPKdRoY39x7Q+TiLuIx2ZaasSO/q
23
- vP3P/eF1TlxW+F6pVGodSzkooC8CAwEAAaOBijCBhzAJBgNVHRMEAjAAMAsGA1Ud
24
- DwQEAwIEsDAdBgNVHQ4EFgQUkfyPIFGuQVuol/V91Y0hrlgfKDMwJgYDVR0RBB8w
18
+ ggEBAOHrtFmgx4QH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ZKRq1rifB7VWnQ54EanojMMlUy2qpC4phadqI669OM
28
+ J37qVGz1VBptPN/BVruGqOxcVcsDH8V/KIKgiFBZuioopNP4fvLR4hVerGKiXcWs
29
+ a0OY/UkxE0xbPNpwNCzpU/XPRJpCzCpv5M8gEfdymOsBLL0CUup8R9dWuiPJl4Up
30
+ O1BjgJwams31N5MqyJohvxTxmNZYhnyd7RamtIfyy9NcTH6fJmZsWyc2wQaf/DmE
31
+ rm9fMSvcVB40vPgSwYqCa/LR8HFAybsuIwgrZrQEW93cg8gGKUoMdIo9ToNVi8ZK
32
+ rJf5xqgzgTLH0g==
33
33
  -----END CERTIFICATE-----
34
- date: 2014-01-04 00:00:00.000000000 Z
34
+ date: 2014-03-16 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: easter
@@ -91,7 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
91
91
  version: '0'
92
92
  requirements: []
93
93
  rubyforge_project:
94
- rubygems_version: 2.1.11
94
+ rubygems_version: 2.0.14
95
95
  signing_key:
96
96
  specification_version: 4
97
97
  summary: Returns the date for Easter, Ash Wednesday, Good Friday, Trinity Sunday,
metadata.gz.sig CHANGED
Binary file