icalPal 3.6.0 → 3.7.0

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: ba338929f0377bfae8aec2fd52aee889987fe891f434ae060791efc7b328d90e
4
+ data.tar.gz: 3c3dfd531eb50be50ef04c89f9a5960744ee7c0f11a811d837e4e35f847e63bf
5
5
  SHA512:
6
- metadata.gz: 96c74266454fc2593c2b0a557593ba13736278ecf827c0646d4e3f897bb8db23bd037f0db90d871a4d2bcf661abbc956ccfe32b704a9e27d8fcf458478cc80d1
7
- data.tar.gz: d4a541f5c44ade8f0a815ca49e6ad582dbd0d60fe2da7c2d5b1cd4f3b3bd0e7b098bec038c77f38d302ff69608d9848453f32fe057a1ec97e7c747117d96fe04
6
+ metadata.gz: c9ad992af30cd496af96b2bdbb7c069c9982dd737c2d139c6106f6cdf04ab95a2da0de407245da074111a4e867aca6c5c2ecc84469662f003fab0c739c7a85b8
7
+ data.tar.gz: 9d84127d8ee6341902ea6b9844b7630995e576c615c2d5a8a04f790b8538ec00e1b319e7db5e1f7fcd7965793b21a643186c6c0d2c3905162fd5a7be8539455c
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
@@ -99,8 +99,9 @@ module ICalPal
99
99
  zone = '+00:00'
100
100
  end
101
101
 
102
+ # Save as seconds, Time, RDT
102
103
  ctime = obj[k] + ITIME
103
-
104
+ @self["#{k[0]}seconds"] = ctime
104
105
  @self["#{k[0]}ctime"] = Time.at(ctime)
105
106
  @self["#{k[0]}date"] = RDT.from_time(Time.at(ctime, in: zone))
106
107
  end
@@ -177,7 +178,7 @@ module ICalPal
177
178
  skip = false
178
179
 
179
180
  changes[1..].each do |change|
180
- codate = Time.at(change['orig_date'] + ITIME).to_a[3..5].reverse
181
+ codate = Time.at(change['orig_date'] + ITIME, in: '+00:00').to_a[3..5].reverse
181
182
  odate = occurrence['sdate'].ymd
182
183
 
183
184
  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.7.0'.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.7.0
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-22 00:00:00.000000000 Z
11
11
  dependencies: []
12
12
  description: |
13
13
  Inspired by icalBuddy and maintains close compatability. Includes