icalPal 4.1.0 → 4.1.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 +4 -4
- data/bin/icalPal +1 -1
- data/ext/extconf.rb +8 -6
- data/lib/rdt.rb +1 -1
- data/lib/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 1b7a08f7d5c62bc27062ea6cde8bf800b6631c58b428991b994e285a86469b07
|
|
4
|
+
data.tar.gz: 14051dfef891767a810a0d4d1a55d1da9417b946fb08ec8565b6247fcd909212
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a60997ef2b79dd0f8943a89fe0982242adcc7124c6d6ca93def4caaf359eb326fe42861a2ecdc30559ec217f7cb317a4ed411cafd146769614c4c0ac63c3102c
|
|
7
|
+
data.tar.gz: b5d7e8448ddea760a62c022dc6b1e5e66a80055b798f39ebc7495ef0250a94e763b1ca28422c6cdf6fb715bb94fd8ff88daf662f7e0ef0a92ea4951c14a4ad49
|
data/bin/icalPal
CHANGED
data/ext/extconf.rb
CHANGED
|
@@ -9,10 +9,11 @@ begin
|
|
|
9
9
|
# Dependencies common to all environments
|
|
10
10
|
dependencies = %w[ plist ]
|
|
11
11
|
|
|
12
|
-
# All dependencies are included with the installation of Ruby
|
|
13
|
-
# macOS. Adding these dependencies anyway will cause errors that
|
|
14
|
-
# prevent icalPal from being installed
|
|
15
|
-
|
|
12
|
+
# All other dependencies are included with the installation of Ruby
|
|
13
|
+
# in macOS. Adding these dependencies anyway will cause errors that
|
|
14
|
+
# prevent icalPal from being installed, so we need to be more
|
|
15
|
+
# granular.
|
|
16
|
+
if RUBY_VERSION >= '3.0'
|
|
16
17
|
dependencies.push('logger')
|
|
17
18
|
dependencies.push('csv')
|
|
18
19
|
dependencies.push('json')
|
|
@@ -23,8 +24,9 @@ begin
|
|
|
23
24
|
|
|
24
25
|
di = Gem::DependencyInstaller.new(install_dir: gemdir)
|
|
25
26
|
dependencies.each { |d| di.install(d) }
|
|
26
|
-
|
|
27
|
-
|
|
27
|
+
|
|
28
|
+
rescue Exception => e
|
|
29
|
+
abort(e)
|
|
28
30
|
end
|
|
29
31
|
|
|
30
32
|
File.write('Makefile', "clean:\n\ttrue\ninstall:\n\ttrue")
|
data/lib/rdt.rb
CHANGED
|
@@ -66,7 +66,7 @@ module ICalPal
|
|
|
66
66
|
return strftime($opts[:df]) if $opts && $opts[:df] && $opts[:nrd]
|
|
67
67
|
return super unless $today && $opts
|
|
68
68
|
|
|
69
|
-
case (self - $today).
|
|
69
|
+
case (self - $today).floor
|
|
70
70
|
when -2 then 'day before yesterday'
|
|
71
71
|
when -1 then 'yesterday'
|
|
72
72
|
when 0 then 'today'
|
data/lib/version.rb
CHANGED