Sha256: fff1b8fff6c08ae428d64a93724fed3e857e7e9bb27943fad6ff6b40e9f8baa6
Contents?: true
Size: 1.39 KB
Versions: 1
Compression:
Stored size: 1.39 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/android' extend Calabash::Android extend Calabash::ConsoleHelpers Calabash::Android.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/android/lib/.irbrc |