From d7969fbd3b2be292e4977fdb9cb86b7cafd78498 Mon Sep 17 00:00:00 2001 From: Giuseppe Bilotta Date: Sat, 4 Apr 2009 11:20:40 +0200 Subject: [PATCH] Suppress two more warnings * parenthesize an Array explosion * define :date as an attribute reader since we're going to define the :date= writer ourselves --- rcs-fast-export.rb | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/rcs-fast-export.rb b/rcs-fast-export.rb index 79e3531..c1ad411 100755 --- a/rcs-fast-export.rb +++ b/rcs-fast-export.rb @@ -177,9 +177,10 @@ module RCS end class Revision - attr_accessor :rev, :author, :date, :state, :next + attr_accessor :rev, :author, :state, :next attr_accessor :branches, :log, :text, :symbols attr_accessor :branch, :diff_base, :branch_point + attr_reader :date def initialize(rev) @rev = rev @author = nil @@ -352,7 +353,7 @@ module RCS count -= 1 # collected all the lines, put the before unless count > 0 - buffer[index].unshift *adding + buffer[index].unshift(*adding) adding = false end next -- 2.32.0.93.g670b81a890