refine rubyspec result detection.