lib/rubygems-requirements-system/platform/ubuntu.rb in rubygems-requirements-system-0.0.2 vs lib/rubygems-requirements-system/platform/ubuntu.rb in rubygems-requirements-system-0.0.3

- old
+ new

@@ -37,20 +37,20 @@ platform == "ubuntu" || super end private def prepare_command_lines(package) - if package.start_with?("ppa:") + if package.is_a?(String) and package.start_with?("ppa:") [ ["apt-get", "update"], install_command_line("software-properties-common"), ] else super end end - def install_command_line(package) + def install_command_line_package(package) if package.start_with?("ppa:") [ "add-apt-repository", "-y", package,