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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d4b7182e130e10193863e5b5b524977b5d373aa13a6a9db809e67249e8b04ce6
4
- data.tar.gz: 65caec1dde0005f62256ac196de8f5a20fcf62aa16cbef37a43a249a08f31a5b
3
+ metadata.gz: 1b7a08f7d5c62bc27062ea6cde8bf800b6631c58b428991b994e285a86469b07
4
+ data.tar.gz: 14051dfef891767a810a0d4d1a55d1da9417b946fb08ec8565b6247fcd909212
5
5
  SHA512:
6
- metadata.gz: 7ad00fb2a168c77de262d4f121f9a08b628e398c831da59cda5fb33e9b37cecfc122b309eb65d9c2d964902c9f55e5a3a9b5bea7a8f4aa76ff84cae5d99e98c5
7
- data.tar.gz: fa60df16a0afd9de3c1385406bddd2c1ea6ec868d6fd0ace59b7ae2e5a58c866f7301b4629ced941984a7652c13b4d7646cb2d442d05d524b8cce60fd26d0ece
6
+ metadata.gz: a60997ef2b79dd0f8943a89fe0982242adcc7124c6d6ca93def4caaf359eb326fe42861a2ecdc30559ec217f7cb317a4ed411cafd146769614c4c0ac63c3102c
7
+ data.tar.gz: b5d7e8448ddea760a62c022dc6b1e5e66a80055b798f39ebc7495ef0250a94e763b1ca28422c6cdf6fb715bb94fd8ff88daf662f7e0ef0a92ea4951c14a4ad49
data/bin/icalPal CHANGED
@@ -137,7 +137,7 @@ unless success
137
137
  # Use a real open to get a useful error
138
138
  File.open(db).close
139
139
  rescue Exception => e
140
- $log.fatal("#{e.class}: #{db}")
140
+ $log.fatal("#{e}: #{db}")
141
141
 
142
142
  eperm = 1 if e.instance_of?(Errno::EPERM)
143
143
  end
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 in
13
- # macOS. Adding these dependencies anyway will cause errors that
14
- # prevent icalPal from being installed.
15
- unless RUBY_VERSION >= '2.6'
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
- rescue Exception
27
- exit(1)
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).round
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
@@ -1,4 +1,4 @@
1
1
  module ICalPal
2
2
  NAME = 'icalPal'.freeze
3
- VERSION = '4.1.0'.freeze
3
+ VERSION = '4.1.1'.freeze
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: icalPal
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.0
4
+ version: 4.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andy Rosen