lib/dryrun.rb in dryrun-0.7.6 vs lib/dryrun.rb in dryrun-0.7.7
- old
+ new
@@ -7,14 +7,16 @@
require 'dryrun/version'
require 'dryrun/android_project'
require "highline/import"
require 'openssl'
-module DryRun
+module Dryrun
class MainApp
def initialize(arguments)
+
outdated_verification
+
@url = ['-h', '--help', '-v', '--version'].include?(arguments.first) ? nil : arguments.shift
# defaults
@app_path = nil
@custom_module = nil
@@ -57,11 +59,11 @@
puts opts.help
exit
end
opts.on('-v', '--version', 'Displays the version') do
- puts DryRun::VERSION
+ puts Dryrun::VERSION
exit
end
opts.parse!
@@ -143,9 +145,11 @@
puts "\nNow type #{'source ~/.bashrc'.yellow}\n\n"
exit 1
end
@url = @url.split("?").first
+ @url.chop! if @url.end_with? '/'
+
pick_device()
github = Github.new(@url)