icalPal 3.6.0 → 3.6.1

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: 1bb41e372eb79335bd81f3a97556bbad22b0542ee994419789f4cae5b577dff5
4
- data.tar.gz: '080b8d6cab28abc20ec7cdbbd6fa1d028edbb6df4b8b427f23ba8cad0fcbab25'
3
+ metadata.gz: b6dbdc21833e53b6318750c5e1035ffaf995b9afa11eda811eb92f8ec39e7890
4
+ data.tar.gz: 4ce4e4166ddae0fac1c35d0e3b50ce25d3e1dc948205c6655775da6ae47c4a6e
5
5
  SHA512:
6
- metadata.gz: 96c74266454fc2593c2b0a557593ba13736278ecf827c0646d4e3f897bb8db23bd037f0db90d871a4d2bcf661abbc956ccfe32b704a9e27d8fcf458478cc80d1
7
- data.tar.gz: d4a541f5c44ade8f0a815ca49e6ad582dbd0d60fe2da7c2d5b1cd4f3b3bd0e7b098bec038c77f38d302ff69608d9848453f32fe057a1ec97e7c747117d96fe04
6
+ metadata.gz: e23aea3695d7554dd3a2d38f52852e33979b0892384ae2cef565620031e036d495a1b489d0893e2426b6d2066d3075cea958c579140be798fec3bb576f5185e0
7
+ data.tar.gz: e769f0bd0164a71129a135cb82555c872bac9938ceac2301c7845355da2c9aceb37c05a67c97c10a293db07f9f5e62666b2137e02bca7156d2a31273367c52d6
data/README.md CHANGED
@@ -82,8 +82,9 @@ Shows only reminders that have a due date.
82
82
  * ```--match``` lets you filter the results of any command to items where a *FIELD* matches a regular expression. Eg., ```--match notes=zoom.us``` to show only Zoom meeetings
83
83
 
84
84
  Because icalPal is written in Ruby, and not a native Mac application,
85
- you can run it just about anywhere. It's been tested with the version
86
- of Ruby (2.6.10) included with macOS.
85
+ you can run it just about anywhere. It's been tested with the
86
+ versions of Ruby included with macOS Sequoia (2.6.10) and
87
+ [Homebrew](https://brew.sh/) (3.4.4).
87
88
 
88
89
  ## Usage
89
90
 
data/lib/defaults.rb CHANGED
@@ -8,6 +8,7 @@ $defaults = {
8
8
  common: {
9
9
  ab: '!',
10
10
  aep: [],
11
+ atp: [],
11
12
  bullet: '•',
12
13
  cf: "#{Dir.home}/.icalpal",
13
14
  color: false,
@@ -19,6 +20,7 @@ $defaults = {
19
20
  df: '%b %-d, %Y',
20
21
  ec: [],
21
22
  eep: [],
23
+ etp: [],
22
24
  el: [],
23
25
  es: [],
24
26
  et: [],
@@ -43,26 +45,26 @@ $defaults = {
43
45
  tasks: {
44
46
  dated: 0,
45
47
  db: [ ICalPal::Reminder::DB_PATH ],
46
- iep: %w[ title notes due priority ],
48
+ itp: %w[ title notes due priority ],
47
49
  sort: 'prio',
48
50
  },
49
51
 
50
52
  undatedTasks: {
51
53
  dated: 1,
52
54
  db: [ ICalPal::Reminder::DB_PATH ],
53
- iep: %w[ title notes due priority ],
55
+ itp: %w[ title notes due priority ],
54
56
  sort: 'prio',
55
57
  },
56
58
 
57
59
  datedTasks: {
58
60
  dated: 2,
59
61
  db: [ ICalPal::Reminder::DB_PATH ],
60
- iep: %w[ title notes due priority ],
62
+ itp: %w[ title notes due priority ],
61
63
  sort: 'prio',
62
64
  },
63
65
 
64
66
  stores: {
65
- iep: %w[ account type ],
67
+ itp: %w[ account type ],
66
68
  sort: 'account',
67
69
  },
68
70
 
data/lib/event.rb CHANGED
@@ -177,7 +177,7 @@ module ICalPal
177
177
  skip = false
178
178
 
179
179
  changes[1..].each do |change|
180
- codate = Time.at(change['orig_date'] + ITIME).to_a[3..5].reverse
180
+ codate = Time.at(change['orig_date'] + ITIME, in: '+00:00').to_a[3..5].reverse
181
181
  odate = occurrence['sdate'].ymd
182
182
 
183
183
  skip = true if codate == odate
data/lib/options.rb CHANGED
@@ -282,10 +282,9 @@ module ICalPal
282
282
  opts[:version] = @op.version
283
283
 
284
284
  # From the Department of Redundancy Department
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
- opts[:props] = (opts[:iep] + opts[:aep] - opts[:eep]).uniq
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
289
288
 
290
289
  # From, to, days
291
290
  if opts[:from]
data/lib/reminder.rb CHANGED
@@ -9,7 +9,7 @@ module ICalPal
9
9
  def [](k)
10
10
  case k
11
11
  when 'notes' # Skip empty notes
12
- (@self['notes'].empty?)? @self['notes'] : nil
12
+ (@self['notes'].empty?)? nil : @self['notes']
13
13
 
14
14
  when 'priority' # Integer -> String
15
15
  EventKit::EKReminderProperty[@self['priority']] if @self['priority'].positive?
data/lib/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
  module ICalPal
2
2
  NAME = 'icalPal'.freeze
3
- VERSION = '3.6.0'.freeze
3
+ VERSION = '3.6.1'.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.6.0
4
+ version: 3.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Rosen
8
8
  bindir: bin
9
9
  cert_chain: []
10
- date: 2025-05-18 00:00:00.000000000 Z
10
+ date: 2025-05-20 00:00:00.000000000 Z
11
11
  dependencies: []
12
12
  description: |
13
13
  Inspired by icalBuddy and maintains close compatability. Includes