Sha256: 4eed4f458e7c5fcd0ec98db37f713af36f89a9bfaeee95b87eb8f1fcc01f6a07
Contents?: true
Size: 1.38 KB
Versions: 1
Compression:
Stored size: 1.38 KB
Contents
begin require 'irb/completion' require 'irb/ext/save-history' begin require 'awesome_print' rescue LoadError => e msg = ["Caught a LoadError: could not load 'awesome_print'", "#{e}", '', 'Use bundler (recommended) or uninstall awesome_print.', '', '# Use bundler (recommended)', '$ bundle update', '$ bundle exec calabash console [path to apk]', '', '# Uninstall', '$ gem update --system', '$ gem uninstall -Vax --force --no-abort-on-dependent awesome_print'] puts msg exit(1) end AwesomePrint.irb! ARGV.concat [ '--readline', '--prompt-mode', 'simple'] # 50 entries in the list IRB.conf[:SAVE_HISTORY] = 50 # Store results in home directory with specified file name IRB.conf[:HISTORY_FILE] = '.irb-history' require 'calabash/ios' extend Calabash::IOS extend Calabash::ConsoleHelpers Calabash::IOS.setup_defaults! Calabash.new_embed_method!(lambda {|*_| Calabash::Logger.info 'Embed is not available in the console.'}) Calabash::Screenshot.screenshot_directory_prefix = 'console_' rescue Exception => e puts 'Unable to start console:' puts "#{e.class}: #{e.message}" puts "#{e.backtrace.join("\n")}" exit(1) end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
calabash-1.9.9.pre2 | lib/calabash/ios/lib/.irbrc |