coligny 0.3.4 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/coligny.rb +12 -12
- data/lib/coligny/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: aee180073f622d5906d724bea91ebe5517e08dfb
|
4
|
+
data.tar.gz: cdf8c8c95cd3afe81290040b410619787e345bd0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e2df0d086ef21654247130ed827832b44c7edfaa4e4c8389a1a41fb8dc574231124b09fe507fc071952c24fafef05ab67b0f6161f85de4cb7e96d6b141474214
|
7
|
+
data.tar.gz: 35f4c0125cff5ecb067495a68d40ad29c41880bc294d7ab0d3e28e33f748e178c568f90f59f85563e38334a04ce2e66c06afd5bd16da1e27fa4fde250dc2a5c9
|
data/lib/coligny.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# Copyright 2016 @shanekrusen
|
2
2
|
# License MIT (https://opensource.org/licenses/MIT)
|
3
3
|
|
4
|
-
require "coligny/version"
|
4
|
+
# require "coligny/version"
|
5
5
|
|
6
6
|
module Coligny
|
7
7
|
require 'date'
|
@@ -28,7 +28,7 @@ module Coligny
|
|
28
28
|
@year = year
|
29
29
|
@months = [ColignyMonth.new("Samonios", 30),
|
30
30
|
ColignyMonth.new("Dumanios", 29),
|
31
|
-
ColignyMonth.new("
|
31
|
+
ColignyMonth.new("Riuros", 30),
|
32
32
|
ColignyMonth.new("Anagantios", 29),
|
33
33
|
ColignyMonth.new("Ogronios", 30),
|
34
34
|
ColignyMonth.new("Cutios", 30),
|
@@ -97,7 +97,7 @@ module Coligny
|
|
97
97
|
|
98
98
|
def populate_saturn_int1
|
99
99
|
if year_difference % 5 == 0
|
100
|
-
@months.unshift(ColignyMonth.new("
|
100
|
+
@months.unshift(ColignyMonth.new("Quimonios", 29))
|
101
101
|
end
|
102
102
|
end
|
103
103
|
|
@@ -111,7 +111,7 @@ module Coligny
|
|
111
111
|
|
112
112
|
def populate_saturn_int2
|
113
113
|
if (@is_early && populate_saturn_int2_check(5, 3, 30, 3)) || (!@is_early && populate_saturn_int2_check(5, 2, 30, 27))
|
114
|
-
@months.insert(6, ColignyMonth.new("
|
114
|
+
@months.insert(6, ColignyMonth.new("Rantaranos", 30))
|
115
115
|
end
|
116
116
|
end
|
117
117
|
|
@@ -147,13 +147,13 @@ module Coligny
|
|
147
147
|
|
148
148
|
def saturn_longcycle_int2_check
|
149
149
|
if saturn_cycle_check(635, 29, 30, 27)
|
150
|
-
@months.insert(6, ColignyMonth.new("
|
150
|
+
@months.insert(6, ColignyMonth.new("Rantaranos", 30))
|
151
151
|
end
|
152
152
|
end
|
153
153
|
|
154
154
|
def saturn_reverse_longcycle_int2_check
|
155
155
|
if saturn_cycle_check(635, 606, 30, 3)
|
156
|
-
@months.insert(6, ColignyMonth.new("
|
156
|
+
@months.insert(6, ColignyMonth.new("Rantaranos", 30))
|
157
157
|
end
|
158
158
|
end
|
159
159
|
|
@@ -225,13 +225,13 @@ module Coligny
|
|
225
225
|
|
226
226
|
def populate_metonic_int1
|
227
227
|
if (@is_early && test_earlier_than_start_date_intone_metonic) || (!@is_early && test_intone_metonic)
|
228
|
-
@months.unshift(ColignyMonth.new("
|
228
|
+
@months.unshift(ColignyMonth.new("Quimonios", 29))
|
229
229
|
end
|
230
230
|
end
|
231
231
|
|
232
232
|
def populate_metonic_int2
|
233
233
|
if (@is_early && test_earlier_than_start_date_inttwo_metonic) || (!@is_early && test_inttwo_metonic)
|
234
|
-
@months.insert(6, ColignyMonth.new("
|
234
|
+
@months.insert(6, ColignyMonth.new("Rantaranos", 30))
|
235
235
|
end
|
236
236
|
end
|
237
237
|
|
@@ -260,7 +260,7 @@ module Coligny
|
|
260
260
|
end
|
261
261
|
|
262
262
|
def metonic_longcycle_int2_check
|
263
|
-
if metonic_longcycle_year_check(6569, 4) && (@months[6].name == "
|
263
|
+
if metonic_longcycle_year_check(6569, 4) && (@months[6].name == "Rantaranos")
|
264
264
|
@months.delete_at(6)
|
265
265
|
end
|
266
266
|
end
|
@@ -272,7 +272,7 @@ module Coligny
|
|
272
272
|
end
|
273
273
|
|
274
274
|
def metonic_longcycle_reverse_int2_check
|
275
|
-
if metonic_longcycle_year_check(6569, 6565) && (@months[6].name == "
|
275
|
+
if metonic_longcycle_year_check(6569, 6565) && (@months[6].name == "Rantaranos")
|
276
276
|
@months.delete_at(6)
|
277
277
|
end
|
278
278
|
end
|
@@ -380,7 +380,7 @@ module Coligny
|
|
380
380
|
if @is_metonic
|
381
381
|
start = ColignyDate.new(3035, "Samonios", 1, true)
|
382
382
|
else
|
383
|
-
start = ColignyDate.new(3034, "
|
383
|
+
start = ColignyDate.new(3034, "Quimonios", 1)
|
384
384
|
end
|
385
385
|
|
386
386
|
if (@year < @start_year)
|
@@ -406,7 +406,7 @@ module Coligny
|
|
406
406
|
end_date = Date.new(self.year, self.month, self.mday)
|
407
407
|
difference = (end_date - start).to_i
|
408
408
|
|
409
|
-
start_coligny = ColignyDate.new(3034, "
|
409
|
+
start_coligny = ColignyDate.new(3034, "Quimonios", 1)
|
410
410
|
start_coligny.calc_days(difference)
|
411
411
|
return start_coligny
|
412
412
|
end
|
data/lib/coligny/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: coligny
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shane Krusen
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-08-
|
11
|
+
date: 2016-08-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|