active-icalendar-events 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/active-icalendar-events.rb +10 -15
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 66faac211abc46fa695ee95745004e6223cd07be003036c26d7fcbf91c2b0818
4
- data.tar.gz: c526790a49ab6a346eafe16592775e9d04afc5084fa8eae1ba20ca4bc44a1522
3
+ metadata.gz: 6d892e9c6fe0c2ed7de91e9f085aa7e812901b6ddce53184928d6be5482a2a3b
4
+ data.tar.gz: 3ab320fe7a381d9361a50a629eeafdcae8e581b7695cdbc514b140e77fb11171
5
5
  SHA512:
6
- metadata.gz: b075bbe5774a836656ebb7849d052f26a03ec321a335b181424fedecb4929e32e1f41eb11cb39d56f5922cb3fad2a986eb0fc938f074c34ca1f9b95fecc590a6
7
- data.tar.gz: 5b8fa60c24e61314eee6e8d829ae02988ae9a57940d152de5ded2f6e62d96f6442df7a0c6d7c0a7e567735224668d50909d99121e7389430a8b392152b88884f
6
+ metadata.gz: 8a702e4fdec5d0474469d5445ab6eb218a54cebfce69d40872c7c75e5a3328666e1e6e917e6073ea379effc52bc6fc660c662e09442f332d1cf955997b23d3d8
7
+ data.tar.gz: 5956bb66a7955f25126cd861fb77e0386d8ee2cd073c7d36468007a4879185b4b0b8ce9599f2dbc62e87516bdbb2263e36ed706c68afc397c5a2145757bd11ce
@@ -138,9 +138,8 @@ module ActiveIcalendarEvents
138
138
  !overridden_dates.include?(event_start_considered)
139
139
  end
140
140
 
141
- if !excluding_dates.include?(event_start_considered)
142
- considered_count += 1
143
- end
141
+ # We consider both active dates and excluded dates for the recurrence count
142
+ considered_count += 1
144
143
 
145
144
  event_start_considered = event_start_considered + interval.days
146
145
  event_end_considered = event_end_considered + interval.days
@@ -174,9 +173,8 @@ module ActiveIcalendarEvents
174
173
  !overridden_dates.include?(event_start_considered)
175
174
  end
176
175
 
177
- if !excluding_dates.include?(event_start_considered)
178
- considered_count += 1
179
- end
176
+ # We consider both active dates and excluded dates for the recurrence count
177
+ considered_count += 1
180
178
  else
181
179
  week_event_start_considered =
182
180
  event_start_considered.monday? ? event_start_considered :
@@ -199,9 +197,8 @@ module ActiveIcalendarEvents
199
197
  !overridden_dates.include?(week_event_start_considered)
200
198
  end
201
199
 
202
- if !excluding_dates.include?(week_event_start_considered)
203
- considered_count += 1
204
- end
200
+ # We consider both active dates and excluded dates for the recurrence count
201
+ considered_count += 1
205
202
  end
206
203
  end
207
204
 
@@ -284,9 +281,8 @@ module ActiveIcalendarEvents
284
281
  !overridden_dates.include?(event_start_considered)
285
282
  end
286
283
 
287
- if !excluding_dates.include?(event_start_considered)
288
- considered_count += 1
289
- end
284
+ # We consider both active dates and excluded dates for the recurrence count
285
+ considered_count += 1
290
286
 
291
287
  if by_day.nil? || by_day.empty?
292
288
  event_start_considered = event_start_considered + interval.month
@@ -322,9 +318,8 @@ module ActiveIcalendarEvents
322
318
  !overridden_dates.include?(event_start_considered)
323
319
  end
324
320
 
325
- if !excluding_dates.include?(event_start_considered)
326
- considered_count += 1
327
- end
321
+ # We consider both active dates and excluded dates for the recurrence count
322
+ considered_count += 1
328
323
 
329
324
  event_start_considered = event_start_considered + interval.years
330
325
  event_end_considered = event_end_considered + interval.years
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active-icalendar-events
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - William Starling