nzholidays 0.1.0 → 0.2.0

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: 7268ff9ac738cdad3c5175d76c1ca9c38c478a49
4
- data.tar.gz: e8c868191e4ae94f5ce37881ff843547d5c781ea
3
+ metadata.gz: 7b5e9665051ecfbe972cf0f8666e5d41719949b6
4
+ data.tar.gz: ebe7825858c787a25131927f08fdf6fc301cfcb7
5
5
  SHA512:
6
- metadata.gz: '0408f3674c1395018486611ae3c5234977fb46f16cb91b9502ff67d3dbc88320d82280fa7c794a886970dfc65843f9e1926c45d6b70c63a87148a1b2e8839e66'
7
- data.tar.gz: 42a977ea259c79b482ea74fd8d6bbe5b8d9bf548447317bc21d88dbcf64cd0bc82c18ed69c7afe1adf95b48c9b6545b787e23b0eb032ba738992a0f4f6577c5a
6
+ metadata.gz: 6869887eccf4ffa8271972330b260cee9c22c9e0e9d980d23070ea8cae1e8bdbd491c4443437b1f796d1f04e9ff25fe970900603d804cd1552ca569069a63cba
7
+ data.tar.gz: 5d155fa4f03802c779e1c59ea30f9e903e5a65ce8bef6b4463d2a8f3d1b92b7d8c96d7aeaa512af604c4160ff3e5ccadfbdca6dd2d61c4b98529961cd534fcab
@@ -1,4 +1,4 @@
1
- # Auto-generated at 2017-12-18 12:12:04 +1300
1
+ # Auto-generated at 2017-12-18 12:23:30 +1300
2
2
  # Do not edit - see template lib/nzholidays/template.erb
3
3
  # To regenerate, `bundle exec rake generate`
4
4
 
@@ -78,74 +78,6 @@ module Nzholidays
78
78
  nz_time( 2014, 1, 2 ), # Day after New Year's Day
79
79
  nz_time( 2014, 1, 1 ), # New Year's Day
80
80
  nz_time( 2014, 4, 21 ), # Easter Monday
81
- nz_time( 2008, 12, 1 ), # Westland Anniversary Day
82
- nz_time( 2008, 12, 1 ), # Chatham Islands Anniversary Day
83
- nz_time( 2009, 1, 26 ), # Auckland Anniversary Day
84
- nz_time( 2009, 1, 19 ), # Wellington Anniversary Day
85
- nz_time( 2009, 2, 2 ), # Nelson Anniversary Day
86
- nz_time( 2009, 1, 19 ), # Southland Anniversary Day
87
- nz_time( 2009, 3, 9 ), # Taranaki Anniversary Day
88
- nz_time( 2009, 9, 28 ), # South Canterbury Anniversary Day
89
- nz_time( 2009, 11, 13 ), # Canterbury Anniversary Day
90
- nz_time( 2009, 11, 30 ), # Chatham Islands Anniversary Day
91
- nz_time( 2010, 1, 25 ), # Wellington Anniversary Day
92
- nz_time( 2009, 11, 30 ), # Westland Anniversary Day
93
- nz_time( 2010, 2, 1 ), # Auckland Anniversary Day
94
- nz_time( 2010, 3, 8 ), # Taranaki Anniversary Day
95
- nz_time( 2010, 1, 18 ), # Southland Anniversary Day
96
- nz_time( 2010, 2, 1 ), # Nelson Anniversary Day
97
- nz_time( 2010, 9, 27 ), # South Canterbury Anniversary Day
98
- nz_time( 2010, 3, 22 ), # Otago Anniversary Day
99
- nz_time( 2010, 11, 1 ), # Marlborough Anniversary Day
100
- nz_time( 2010, 10, 22 ), # Hawkes' Bay Anniversary Day
101
- nz_time( 2009, 3, 23 ), # Otago Anniversary Day
102
- nz_time( 2009, 11, 2 ), # Marlborough Anniversary Day
103
- nz_time( 2009, 10, 23 ), # Hawkes' Bay Anniversary Day
104
- nz_time( 2010, 11, 29 ), # Chatham Islands Anniversary Day
105
- nz_time( 2011, 1, 31 ), # Nelson Anniversary Day
106
- nz_time( 2011, 1, 17 ), # Southland Anniversary Day
107
- nz_time( 2011, 1, 24 ), # Wellington Anniversary Day
108
- nz_time( 2011, 3, 14 ), # Taranaki Anniversary Day
109
- nz_time( 2011, 9, 26 ), # South Canterbury Anniversary Day
110
- nz_time( 2011, 3, 21 ), # Otago Anniversary Day
111
- nz_time( 2011, 10, 21 ), # Hawkes' Bay Anniversary Day
112
- nz_time( 2011, 11, 11 ), # Canterbury Anniversary Day
113
- nz_time( 2011, 10, 31 ), # Marlborough Anniversary Day
114
- nz_time( 2011, 12, 5 ), # Westland Anniversary Day
115
- nz_time( 2011, 11, 28 ), # Chatham Islands Anniversary Day
116
- nz_time( 2012, 1, 30 ), # Auckland Anniversary Day
117
- nz_time( 2010, 11, 29 ), # Westland Anniversary Day
118
- nz_time( 2011, 1, 31 ), # Auckland Anniversary Day
119
- nz_time( 2010, 11, 12 ), # Canterbury Anniversary Day
120
- nz_time( 2012, 3, 12 ), # Taranaki Anniversary Day
121
- nz_time( 2012, 3, 26 ), # Otago Anniversary Day
122
- nz_time( 2012, 9, 24 ), # South Canterbury Anniversary Day
123
- nz_time( 2012, 10, 19 ), # Hawkes' Bay Anniversary Day
124
- nz_time( 2012, 11, 16 ), # Canterbury Anniversary Day
125
- nz_time( 2012, 10, 29 ), # Marlborough Anniversary Day
126
- nz_time( 2013, 1, 28 ), # Auckland Anniversary Day
127
- nz_time( 2012, 12, 3 ), # Westland Anniversary Day
128
- nz_time( 2012, 12, 3 ), # Chatham Islands Anniversary Day
129
- nz_time( 2013, 1, 21 ), # Wellington Anniversary Day
130
- nz_time( 2013, 1, 21 ), # Southland Anniversary Day
131
- nz_time( 2013, 2, 4 ), # Nelson Anniversary Day
132
- nz_time( 2013, 3, 25 ), # Otago Anniversary Day
133
- nz_time( 2012, 1, 23 ), # Wellington Anniversary Day
134
- nz_time( 2012, 1, 16 ), # Southland Anniversary Day
135
- nz_time( 2012, 1, 30 ), # Nelson Anniversary Day
136
- nz_time( 2013, 11, 4 ), # Marlborough Anniversary Day
137
- nz_time( 2013, 11, 15 ), # Canterbury Anniversary Day
138
- nz_time( 2014, 1, 27 ), # Auckland Anniversary Day
139
- nz_time( 2013, 12, 2 ), # Westland Anniversary Day
140
- nz_time( 2013, 12, 2 ), # Chatham Islands Anniversary Day
141
- nz_time( 2014, 1, 20 ), # Wellington Anniversary Day
142
- nz_time( 2014, 4, 22 ), # Southland Anniversary Day
143
- nz_time( 2014, 2, 3 ), # Nelson Anniversary Day
144
- nz_time( 2014, 3, 10 ), # Taranaki Anniversary Day
145
- nz_time( 2014, 3, 24 ), # Otago Anniversary Day
146
- nz_time( 2013, 3, 11 ), # Taranaki Anniversary Day
147
- nz_time( 2013, 9, 23 ), # South Canterbury Anniversary Day
148
- nz_time( 2013, 10, 25 ), # Hawkes' Bay Anniversary Day
149
81
  nz_time( 2010, 1, 4 ), # Day after New Year's Day Public Holiday for employees who would not normally work on Saturday
150
82
  nz_time( 2010, 4, 25 ), # ANZAC Day
151
83
  nz_time( 2010, 2, 6 ), # Waitangi Day
@@ -181,36 +113,6 @@ module Nzholidays
181
113
  nz_time( 2016, 10, 24 ), # Labour Day
182
114
  nz_time( 2016, 12, 26 ), # Boxing Day
183
115
  nz_time( 2016, 12, 27 ), # Christmas Day (Public Holiday for employees who would not normally work on Sunday)
184
- nz_time( 2014, 10, 24 ), # Hawkes' Bay Anniversary Day
185
- nz_time( 2014, 11, 14 ), # Canterbury Anniversary Day
186
- nz_time( 2014, 9, 22 ), # South Canterbury Anniversary Day
187
- nz_time( 2014, 11, 3 ), # Marlborough Anniversary Day
188
- nz_time( 2014, 12, 1 ), # Westland Anniversary Day
189
- nz_time( 2014, 12, 1 ), # Chatham Islands Anniversary Day
190
- nz_time( 2015, 1, 19 ), # Wellington Anniversary Day
191
- nz_time( 2015, 4, 7 ), # Southland Anniversary Day
192
- nz_time( 2015, 1, 26 ), # Auckland Anniversary Day
193
- nz_time( 2015, 3, 23 ), # Otago Anniversary Day
194
- nz_time( 2015, 2, 2 ), # Nelson Anniversary Day
195
- nz_time( 2015, 3, 9 ), # Taranaki Anniversary Day
196
- nz_time( 2015, 10, 23 ), # Hawkes' Bay Anniversary Day
197
- nz_time( 2015, 9, 28 ), # South Canterbury Anniversary Day
198
- nz_time( 2015, 11, 2 ), # Marlborough Anniversary Day
199
- nz_time( 2015, 11, 30 ), # Westland Anniversary Day
200
- nz_time( 2015, 11, 13 ), # Canterbury Anniversary Day
201
- nz_time( 2016, 1, 25 ), # Wellington Anniversary Day
202
- nz_time( 2016, 3, 29 ), # Southland Anniversary Day
203
- nz_time( 2015, 11, 30 ), # Chatham Islands Anniversary Day
204
- nz_time( 2016, 2, 1 ), # Nelson Anniversary Day
205
- nz_time( 2016, 2, 1 ), # Auckland Anniversary Day
206
- nz_time( 2016, 3, 21 ), # Otago Anniversary Day
207
- nz_time( 2016, 3, 14 ), # Taranaki Anniversary Day
208
- nz_time( 2016, 9, 26 ), # South Canterbury Anniversary Day
209
- nz_time( 2016, 10, 21 ), # Hawkes' Bay Anniversary Day
210
- nz_time( 2016, 10, 31 ), # Marlborough Anniversary Day
211
- nz_time( 2016, 11, 11 ), # Canterbury Anniversary Day
212
- nz_time( 2016, 11, 28 ), # Westland Anniversary Day
213
- nz_time( 2016, 11, 28 ), # Chatham Islands Anniversary Day
214
116
  nz_time( 2015, 2, 6 ), # Waitangi Day
215
117
  nz_time( 2015, 4, 25 ), # ANZAC Day
216
118
  nz_time( 2016, 2, 6 ), # Waitangi Day
@@ -222,119 +124,59 @@ module Nzholidays
222
124
  nz_time( 2017, 1, 1 ), # New Year's Day (Public Holiday for employees who would normally work on Sunday)
223
125
  nz_time( 2017, 1, 2 ), # Day after New Year's Day
224
126
  nz_time( 2017, 1, 3 ), # New Year's Day (Public Holiday for employees who would not normally work on Sunday)
225
- nz_time( 2017, 1, 23 ), # Wellington Anniversary
226
- nz_time( 2017, 1, 30 ), # Auckland Anniversary
227
- nz_time( 2017, 1, 30 ), # Nelson Anniversary
228
- nz_time( 2017, 3, 13 ), # Taranaki Anniversary
229
127
  nz_time( 2017, 2, 6 ), # Waitangi Day
230
- nz_time( 2017, 3, 20 ), # Otago Anniversary
231
128
  nz_time( 2017, 4, 14 ), # Good Friday
232
129
  nz_time( 2017, 4, 17 ), # Easter Monday
233
- nz_time( 2017, 4, 18 ), # Southland Anniversary
234
130
  nz_time( 2017, 6, 5 ), # Queen's Birthday
235
- nz_time( 2017, 9, 25 ), # Canterbury (South) Anniversary
236
131
  nz_time( 2017, 4, 25 ), # ANZAC Day
237
- nz_time( 2017, 10, 20 ), # Hawke's Bay Anniversary
238
132
  nz_time( 2017, 10, 23 ), # Labour Day
239
- nz_time( 2017, 10, 30 ), # Marlborough Anniversary
240
- nz_time( 2017, 11, 27 ), # Chatham Islands Anniversary
241
- nz_time( 2017, 11, 17 ), # Canterbury Anniversary
242
- nz_time( 2017, 12, 4 ), # Westland Anniversary
243
133
  nz_time( 2017, 12, 25 ), # Christmas Day
244
134
  nz_time( 2017, 12, 26 ), # Boxing Day
245
135
  nz_time( 2021, 12, 28 ), # Boxing Day (Public Holiday for employees who would not normally work on Sunday)
246
136
  nz_time( 2021, 12, 26 ), # Boxing Day (Public Holiday for employees who would normally work on Sunday)
247
137
  nz_time( 2021, 12, 27 ), # Christmas Day (Public Holiday for employees who would not normally work on Saturday)
248
138
  nz_time( 2021, 12, 25 ), # Christmas Day (Public Holiday for employees who would normally work on Saturday)
249
- nz_time( 2021, 11, 29 ), # Chatham Islands Anniversary
250
- nz_time( 2021, 11, 29 ), # Westland Anniversary
251
- nz_time( 2021, 11, 12 ), # Canterbury Anniversary
252
- nz_time( 2021, 11, 1 ), # Marlborough Anniversary
253
139
  nz_time( 2021, 10, 25 ), # Labour Day
254
- nz_time( 2021, 10, 22 ), # Hawke's Bay Anniversary
255
- nz_time( 2021, 9, 27 ), # Canterbury (South) Anniversary
256
140
  nz_time( 2021, 6, 7 ), # Queen's Birthday
257
141
  nz_time( 2021, 4, 26 ), # ANZAC Day (Mondayised)
258
142
  nz_time( 2021, 4, 25 ), # ANZAC Day
259
- nz_time( 2021, 4, 6 ), # Southland Anniversary
260
143
  nz_time( 2021, 4, 5 ), # Easter Monday
261
144
  nz_time( 2021, 4, 2 ), # Good Friday
262
- nz_time( 2021, 3, 22 ), # Otago Anniversary
263
- nz_time( 2021, 3, 8 ), # Taranaki Anniversary
264
145
  nz_time( 2021, 2, 8 ), # Waitangi Day (Mondayised)
265
146
  nz_time( 2021, 2, 6 ), # Waitangi Day
266
- nz_time( 2021, 2, 1 ), # Nelson Anniversary
267
- nz_time( 2021, 2, 1 ), # Auckland Anniversary
268
- nz_time( 2021, 1, 25 ), # Wellington Anniversary
269
147
  nz_time( 2021, 1, 4 ), # Day after New Year's Day (Public Holiday for employees who would not normally work on Saturday)
270
148
  nz_time( 2021, 1, 2 ), # Day after New Year's Day (Public Holiday for employees who would normally work on Saturday)
271
149
  nz_time( 2021, 1, 1 ), # New Year's Day
272
150
  nz_time( 2020, 12, 28 ), # Boxing Day (Public Holiday for employees who would not normally work on Saturday)
273
151
  nz_time( 2020, 12, 26 ), # Boxing Day (Public Holiday for employees who would normally work on Saturday)
274
152
  nz_time( 2020, 12, 25 ), # Christmas Day
275
- nz_time( 2020, 11, 30 ), # Chatham Islands Anniversary
276
- nz_time( 2020, 11, 30 ), # Westland Anniversary
277
- nz_time( 2020, 11, 13 ), # Canterbury Anniversary
278
- nz_time( 2020, 11, 2 ), # Marlborough Anniversary
279
153
  nz_time( 2020, 10, 26 ), # Labour Day
280
- nz_time( 2020, 10, 23 ), # Hawke's Bay Anniversary
281
- nz_time( 2020, 9, 28 ), # Canterbury (South) Anniversary
282
154
  nz_time( 2020, 6, 1 ), # Queen's Birthday
283
155
  nz_time( 2020, 4, 27 ), # ANZAC Day (Mondayised)
284
156
  nz_time( 2020, 4, 25 ), # ANZAC Day
285
- nz_time( 2020, 4, 14 ), # Southland Anniversary
286
157
  nz_time( 2020, 4, 13 ), # Easter Monday
287
158
  nz_time( 2020, 4, 10 ), # Good Friday
288
- nz_time( 2020, 3, 23 ), # Otago Anniversary
289
- nz_time( 2020, 3, 9 ), # Taranaki Anniversary
290
159
  nz_time( 2020, 2, 6 ), # Waitangi Day
291
- nz_time( 2020, 2, 3 ), # Nelson Anniversary
292
- nz_time( 2020, 1, 27 ), # Auckland Anniversary
293
- nz_time( 2020, 1, 20 ), # Wellington Anniversary
294
160
  nz_time( 2020, 1, 2 ), # Day after New Year's Day
295
161
  nz_time( 2020, 1, 1 ), # New Year's Day
296
162
  nz_time( 2019, 12, 26 ), # Boxing Day
297
163
  nz_time( 2019, 12, 25 ), # Christmas Day
298
- nz_time( 2019, 12, 2 ), # Chatham Islands Anniversary
299
- nz_time( 2019, 12, 2 ), # Westland Anniversary
300
- nz_time( 2019, 11, 15 ), # Canterbury Anniversary
301
- nz_time( 2019, 11, 4 ), # Marlborough Anniversary
302
164
  nz_time( 2019, 10, 28 ), # Labour Day
303
- nz_time( 2019, 10, 25 ), # Hawke's Bay Anniversary
304
- nz_time( 2019, 9, 23 ), # Canterbury (South) Anniversary
305
165
  nz_time( 2019, 6, 3 ), # Queen's Birthday
306
166
  nz_time( 2019, 4, 25 ), # ANZAC Day
307
- nz_time( 2019, 4, 23 ), # Southland Anniversary
308
167
  nz_time( 2019, 4, 22 ), # Easter Monday
309
168
  nz_time( 2019, 4, 19 ), # Good Friday
310
- nz_time( 2019, 3, 25 ), # Otago Anniversary
311
- nz_time( 2019, 3, 11 ), # Taranaki Anniversary
312
169
  nz_time( 2019, 2, 6 ), # Waitangi Day
313
- nz_time( 2019, 2, 4 ), # Nelson Anniversary
314
- nz_time( 2019, 1, 28 ), # Auckland Anniversary
315
- nz_time( 2019, 1, 21 ), # Wellington Anniversary
316
170
  nz_time( 2019, 1, 2 ), # Day after New Year's Day
317
171
  nz_time( 2019, 1, 1 ), # New Year's Day
318
172
  nz_time( 2018, 12, 26 ), # Boxing Day
319
173
  nz_time( 2018, 12, 25 ), # Christmas Day
320
- nz_time( 2018, 12, 3 ), # Chatham Islands Anniversary
321
- nz_time( 2018, 12, 3 ), # Westland Anniversary
322
- nz_time( 2018, 11, 16 ), # Canterbury Anniversary
323
- nz_time( 2018, 10, 29 ), # Marlborough Anniversary
324
174
  nz_time( 2018, 10, 22 ), # Labour Day
325
- nz_time( 2018, 10, 19 ), # Hawke's Bay Anniversary
326
- nz_time( 2018, 9, 24 ), # Canterbury (South) Anniversary
327
175
  nz_time( 2018, 6, 4 ), # Queen's Birthday
328
176
  nz_time( 2018, 4, 25 ), # ANZAC Day
329
- nz_time( 2018, 4, 3 ), # Southland Anniversary
330
177
  nz_time( 2018, 4, 2 ), # Easter Monday
331
178
  nz_time( 2018, 3, 30 ), # Good Friday
332
- nz_time( 2018, 3, 26 ), # Otago Anniversary
333
- nz_time( 2018, 3, 12 ), # Taranaki Anniversary
334
179
  nz_time( 2018, 2, 6 ), # Waitangi Day
335
- nz_time( 2018, 1, 29 ), # Nelson Anniversary
336
- nz_time( 2018, 1, 29 ), # Auckland Anniversary
337
- nz_time( 2018, 1, 22 ), # Wellington Anniversary
338
180
  nz_time( 2018, 1, 2 ), # Day after New Year's Day
339
181
  nz_time( 2018, 1, 1 ), # New Year's Day
340
182
  ]
@@ -47,7 +47,7 @@ module Nzholidays
47
47
 
48
48
  HOLIDAYS = [
49
49
  <% calendars.each do |calendar|
50
- calendar.events.each do |event|
50
+ calendar.events.select {|e| !e.summary.match(/Anniversary/i) }.each do |event|
51
51
  -%>
52
52
  nz_time( <%= event.dtstart.year %>, <%= event.dtstart.month %>, <%= event.dtstart.day %> ), # <%= event.summary %>
53
53
  <%
@@ -1,3 +1,3 @@
1
1
  module Nzholidays
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nzholidays
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Carl Douglas