icalPal 3.7.0 → 3.7.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: ba338929f0377bfae8aec2fd52aee889987fe891f434ae060791efc7b328d90e
4
- data.tar.gz: 3c3dfd531eb50be50ef04c89f9a5960744ee7c0f11a811d837e4e35f847e63bf
3
+ metadata.gz: e58fa4c25f2889085177f9914025ee4d6a6e4c3da4794b8735c7f66d585ccc59
4
+ data.tar.gz: e50b7413fd65d780e74a00818d51aa89481f51f2f1317253ac657ea88e40fdb9
5
5
  SHA512:
6
- metadata.gz: c9ad992af30cd496af96b2bdbb7c069c9982dd737c2d139c6106f6cdf04ab95a2da0de407245da074111a4e867aca6c5c2ecc84469662f003fab0c739c7a85b8
7
- data.tar.gz: 9d84127d8ee6341902ea6b9844b7630995e576c615c2d5a8a04f790b8538ec00e1b319e7db5e1f7fcd7965793b21a643186c6c0d2c3905162fd5a7be8539455c
6
+ metadata.gz: 97bdc6289a47ce703869487823d1273ba182dc40a51272114745dad592748dca9acff3f91a22691e24ef766b2d21984c641dc7d7e949d9db9a66453544784f82
7
+ data.tar.gz: 8507ac86ddd34ea7eea90443c4b15c8f81aa77aa4fb1bf8438c5fb1db35c1af77d5a4d586a8b639c6a1f55049c102320c745f7b8be56dde09ca50edd55c08173
data/bin/icalPal CHANGED
@@ -1,5 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
+ # rubocop: disable Style/RedundantBegin
4
+
3
5
  # require a gem
4
6
  #
5
7
  # @param gem [String] The gem
@@ -29,6 +31,8 @@ def rr(library)
29
31
  end
30
32
  end
31
33
 
34
+ # rubocop: enable Style/RedundantBegin
35
+
32
36
  %w[ logger csv json rdoc sqlite3 yaml ].each { |g| r g }
33
37
  %w[ icalPal defaults options utils ].each { |l| rr l }
34
38
 
@@ -235,7 +239,7 @@ mu = case $opts[:output]
235
239
  ##################################################
236
240
  # Print the data
237
241
 
238
- items = $items[0..$opts[:li] - 1]
242
+ items = $items[0..($opts[:li] - 1)]
239
243
 
240
244
  unless mu
241
245
  $log.debug("Output in #{$opts[:output]} format")
data/bin/icalpal CHANGED
@@ -1,5 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
+ # rubocop: disable Style/RedundantBegin
4
+
3
5
  # require a gem
4
6
  #
5
7
  # @param gem [String] The gem
@@ -29,6 +31,8 @@ def rr(library)
29
31
  end
30
32
  end
31
33
 
34
+ # rubocop: enable Style/RedundantBegin
35
+
32
36
  %w[ logger csv json rdoc sqlite3 yaml ].each { |g| r g }
33
37
  %w[ icalPal defaults options utils ].each { |l| rr l }
34
38
 
@@ -235,7 +239,7 @@ mu = case $opts[:output]
235
239
  ##################################################
236
240
  # Print the data
237
241
 
238
- items = $items[0..$opts[:li] - 1]
242
+ items = $items[0..($opts[:li] - 1)]
239
243
 
240
244
  unless mu
241
245
  $log.debug("Output in #{$opts[:output]} format")
data/lib/EventKit.rb CHANGED
@@ -30,7 +30,7 @@ class EventKit
30
30
  yearly
31
31
  ].freeze
32
32
 
33
- EKReminderProperty = [
33
+ EKReminderPriority = [
34
34
  'none', # 0
35
35
  'high', nil, nil, nil, # 1
36
36
  'medium', nil, nil, nil, # 5
data/lib/defaults.rb CHANGED
@@ -8,7 +8,6 @@ $defaults = {
8
8
  common: {
9
9
  ab: '!',
10
10
  aep: [],
11
- atp: [],
12
11
  bullet: '•',
13
12
  cf: "#{Dir.home}/.icalpal",
14
13
  color: false,
@@ -20,7 +19,6 @@ $defaults = {
20
19
  df: '%b %-d, %Y',
21
20
  ec: [],
22
21
  eep: [],
23
- etp: [],
24
22
  el: [],
25
23
  es: [],
26
24
  et: [],
@@ -45,26 +43,26 @@ $defaults = {
45
43
  tasks: {
46
44
  dated: 0,
47
45
  db: [ ICalPal::Reminder::DB_PATH ],
48
- itp: %w[ title notes due priority ],
46
+ iep: %w[ title notes due priority ],
49
47
  sort: 'prio',
50
48
  },
51
49
 
52
50
  undatedTasks: {
53
51
  dated: 1,
54
52
  db: [ ICalPal::Reminder::DB_PATH ],
55
- itp: %w[ title notes due priority ],
53
+ iep: %w[ title notes due priority ],
56
54
  sort: 'prio',
57
55
  },
58
56
 
59
57
  datedTasks: {
60
58
  dated: 2,
61
59
  db: [ ICalPal::Reminder::DB_PATH ],
62
- itp: %w[ title notes due priority ],
60
+ iep: %w[ title notes due priority ],
63
61
  sort: 'prio',
64
62
  },
65
63
 
66
64
  stores: {
67
- itp: %w[ account type ],
65
+ iep: %w[ account type ],
68
66
  sort: 'account',
69
67
  },
70
68
 
data/lib/event.rb CHANGED
@@ -304,7 +304,7 @@ module ICalPal
304
304
  end
305
305
 
306
306
  # Check if an event starts or ends between from and to, or if it's
307
- # running now (for -n)
307
+ # running now (for eventsNow)
308
308
  #
309
309
  # @param s [RDT] Event start
310
310
  # @param e [RDT] Event end
data/lib/options.rb CHANGED
@@ -282,9 +282,11 @@ module ICalPal
282
282
  opts[:version] = @op.version
283
283
 
284
284
  # From the Department of Redundancy Department
285
- (opts[:cmd].include? 'tasks')?
286
- opts[:props] = (opts[:itp] + opts[:atp] - opts[:etp]).uniq :
287
- opts[:props] = (opts[:iep] + opts[:aep] - opts[:eep]).uniq
285
+ opts[:iep] = opts[:itp] if opts[:itp]
286
+ opts[:eep] = opts[:etp] if opts[:etp]
287
+ opts[:aep] = opts[:atp] if opts[:atp]
288
+
289
+ opts[:props] = (opts[:iep] + opts[:aep] - opts[:eep]).uniq
288
290
 
289
291
  # From, to, days
290
292
  if opts[:from]
data/lib/reminder.rb CHANGED
@@ -12,7 +12,7 @@ module ICalPal
12
12
  (@self['notes'].empty?)? nil : @self['notes']
13
13
 
14
14
  when 'priority' # Integer -> String
15
- EventKit::EKReminderProperty[@self['priority']] if @self['priority'].positive?
15
+ EventKit::EKReminderPriority[@self['priority']] if @self['priority'].positive?
16
16
 
17
17
  when 'sdate' # For sorting
18
18
  @self['title']
data/lib/utils.rb CHANGED
@@ -34,5 +34,5 @@ def ancestor
34
34
  ppid = ps[/^[0-9 ]+ /].to_i
35
35
  end
36
36
 
37
- ps[ps.rindex('/') + 1..].chop
37
+ ps[(ps.rindex('/') + 1)..].chop
38
38
  end
data/lib/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module ICalPal
2
2
  NAME = 'icalPal'.freeze
3
- VERSION = '3.7.0'.freeze
3
+ VERSION = '3.7.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.7.0
4
+ version: 3.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Rosen
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-05-22 00:00:00.000000000 Z
10
+ date: 2025-07-31 00:00:00.000000000 Z
11
11
  dependencies: []
12
12
  description: |
13
13
  Inspired by icalBuddy and maintains close compatability. Includes