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 +4 -4
- data/bin/icalPal +5 -1
- data/bin/icalpal +5 -1
- data/lib/EventKit.rb +1 -1
- data/lib/defaults.rb +4 -6
- data/lib/event.rb +1 -1
- data/lib/options.rb +5 -3
- data/lib/reminder.rb +1 -1
- data/lib/utils.rb +1 -1
- data/lib/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e58fa4c25f2889085177f9914025ee4d6a6e4c3da4794b8735c7f66d585ccc59
|
4
|
+
data.tar.gz: e50b7413fd65d780e74a00818d51aa89481f51f2f1317253ac657ea88e40fdb9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
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
|
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
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
|
-
|
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
|
-
|
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
|
-
|
60
|
+
iep: %w[ title notes due priority ],
|
63
61
|
sort: 'prio',
|
64
62
|
},
|
65
63
|
|
66
64
|
stores: {
|
67
|
-
|
65
|
+
iep: %w[ account type ],
|
68
66
|
sort: 'account',
|
69
67
|
},
|
70
68
|
|
data/lib/event.rb
CHANGED
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
|
-
|
286
|
-
|
287
|
-
|
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::
|
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
data/lib/version.rb
CHANGED
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.
|
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-
|
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
|