icalPal 3.8.0 → 3.8.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5f6b4e0abaf6ebfaceb51c92f393411df9f5edf2669bdef2121a2c6a09f7443f
4
- data.tar.gz: 68297ddc631da32b6d4bdd5d25726892ce271b50a122a922f84ff4839e0f9500
3
+ metadata.gz: b4116d19f06e3a6c30572cffa5321ca802469c32f7999a0a50a0fcf7f44e2e69
4
+ data.tar.gz: 1ed8f8159355c01c60e3c91e473463f8c348caa59298ae4f60c280b7af788d48
5
5
  SHA512:
6
- metadata.gz: db0d030f84bd00891f3bd3fbece35dabb6d43b429e94bfe04aa6323979a0382b8ea0bcaceddb662faa55f6008f813af004f3f2778a1d029ae99d037bb8fb7bb0
7
- data.tar.gz: e4fc2f8e55ac0db6a9175c836499fe1cc3b5e24d10d2d71964c033e18904d9beb24f3731da2e94feddd1797d8059e09b0f9685f383684f4df1492236fcc35c78
6
+ metadata.gz: 11add63df946eb60cb3ad9831802fcdd148cc398e3b97225c8dd6bc821cb9320228cb97795eda0a0ff2fa963ff6dc1068f9f8f49ef14c831e7780373d8211621
7
+ data.tar.gz: 492a5ca77a0378e467d61fb8aa276401d19cc12145e7be5cb9df9ff7a3c0e6423547120cbf745ec36fc88773d67022674e23dec0ecb65f2637d0e2cdbe9bdd25
data/bin/icalPal CHANGED
@@ -230,7 +230,7 @@ begin
230
230
 
231
231
  $log.info("Sorting #{$items.count} items by #{sort}, reverse #{$opts[:reverse].inspect}")
232
232
 
233
- $items.sort_by! { |i| sort }
233
+ $items.sort_by! { |i| [i[sort[0]], i[sort[1]], i[sort[2]] ] }
234
234
  $items.reverse! if $opts[:reverse]
235
235
  rescue Exception => e
236
236
  $log.info("Sorting failed: #{e}\n")
data/bin/icalpal CHANGED
@@ -230,7 +230,7 @@ begin
230
230
 
231
231
  $log.info("Sorting #{$items.count} items by #{sort}, reverse #{$opts[:reverse].inspect}")
232
232
 
233
- $items.sort_by! { |i| sort }
233
+ $items.sort_by! { |i| [i[sort[0]], i[sort[1]], i[sort[2]] ] }
234
234
  $items.reverse! if $opts[:reverse]
235
235
  rescue Exception => e
236
236
  $log.info("Sorting failed: #{e}\n")
data/lib/options.rb CHANGED
@@ -238,6 +238,9 @@ module ICalPal
238
238
  cli[:cmd] ||= env[:cmd] if env[:cmd]
239
239
  cli[:cmd] ||= cf[:cmd] if cf[:cmd]
240
240
 
241
+ # Must have a command
242
+ raise(OptionParser::MissingArgument, 'COMMAND is required') unless cli[:cmd]
243
+
241
244
  # Handle command aliases
242
245
  cli[:cmd] = 'accounts' if cli[:cmd] == 'stores'
243
246
  cli[:cmd] = cli[:cmd].sub('reminders', 'tasks')
@@ -261,7 +264,6 @@ module ICalPal
261
264
  end if cli[:cmd]
262
265
 
263
266
  # Must have a valid command
264
- raise(OptionParser::MissingArgument, 'COMMAND is required') unless cli[:cmd]
265
267
  raise(OptionParser::InvalidArgument, "Unknown COMMAND #{cli[:cmd]}") unless (COMMANDS.any? cli[:cmd])
266
268
 
267
269
  # Merge options
@@ -294,8 +296,9 @@ module ICalPal
294
296
  opts[:props] = (opts[:iep] + opts[:aep] - opts[:eep]).uniq
295
297
 
296
298
  # From, to, days
299
+ opts[:days] -= 1 if opts[:days]
300
+
297
301
  if opts[:from]
298
- opts[:to] += 1 if opts[:to]
299
302
  opts[:to] ||= opts[:from] + 1 if opts[:from]
300
303
  opts[:to] = opts[:from] + opts[:days] if opts[:days]
301
304
  opts[:to] = RDT.new(*opts[:to].to_a[0..2] + [ 23, 59, 59 ])
data/lib/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module ICalPal
2
2
  NAME = 'icalPal'.freeze
3
- VERSION = '3.8.0'.freeze
3
+ VERSION = '3.8.2'.freeze
4
4
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: icalPal
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.8.0
4
+ version: 3.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Rosen
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-08-06 00:00:00.000000000 Z
10
+ date: 2025-08-07 00:00:00.000000000 Z
11
11
  dependencies: []
12
12
  description: |
13
13
  Inspired by icalBuddy and maintains close compatability. Includes