Skip to content

Commit 564a5e1

Browse files
committed
Fix #36
1 parent 2139811 commit 564a5e1

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

bin/icalpal

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/usr/bin/env ruby
22

3+
# rubocop: disable Style/RedundantBegin
4+
35
# require a gem
46
#
57
# @param gem [String] The gem
@@ -29,6 +31,8 @@ def rr(library)
2931
end
3032
end
3133

34+
# rubocop: enable Style/RedundantBegin
35+
3236
%w[ logger csv json rdoc sqlite3 yaml ].each { |g| r g }
3337
%w[ icalPal defaults options utils ].each { |l| rr l }
3438

@@ -235,7 +239,7 @@ mu = case $opts[:output]
235239
##################################################
236240
# Print the data
237241

238-
items = $items[0..$opts[:li] - 1]
242+
items = $items[0..($opts[:li] - 1)]
239243

240244
unless mu
241245
$log.debug("Output in #{$opts[:output]} format")

lib/defaults.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@
6464
},
6565

6666
stores: {
67-
itp: %w[ account type ],
67+
iep: %w[ account type ],
6868
sort: 'account',
6969
},
7070

lib/utils.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,5 +34,5 @@ def ancestor
3434
ppid = ps[/^[0-9 ]+ /].to_i
3535
end
3636

37-
ps[ps.rindex('/') + 1..].chop
37+
ps[(ps.rindex('/') + 1)..].chop
3838
end

lib/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
module ICalPal
22
NAME = 'icalPal'.freeze
3-
VERSION = '3.7.0'.freeze
3+
VERSION = '3.7.1'.freeze
44
end

0 commit comments

Comments
 (0)