Sha256: 38d18608022419c57f88c702d9463c8a52405d956ea583f973c45de7020be06a

Contents?: true

Size: 1.98 KB

Versions: 2

Compression:

Stored size: 1.98 KB

Contents

require "irb/completion"
require "irb/ext/save-history"
require "benchmark"

begin
  require "awesome_print"
rescue LoadError => e
  puts %Q[
Caught a LoadError: could not load 'awesome_print'",

#{e}

Use bundler (recommended) or uninstall awesome_print.

# Use bundler (recommended)
$ bundle update
$ bundle exec calabash-ios console

# Uninstall awesome_print and reinstall calabash-cucumber
$ gem update --system
$ gem uninstall -Vax --force --no-abort-on-dependent awesome_print
$ gem install calabash-cucumber

]
  exit(1)
end

AwesomePrint.irb!

ARGV.concat ["--readline", "--prompt-mode", "simple"]

IRB.conf[:SAVE_HISTORY] = 100
IRB.conf[:HISTORY_FILE] = ".irb-history"

begin
  require "pry"
  Pry.config.history.should_save = true
  Pry.config.history.should_load = true
  Pry.config.history.file = ".pry-history"
  require "pry-nav"
rescue LoadError => _

end

def embed(x,y=nil,z=nil)
  puts "Screenshot at #{x}"
end

require "calabash-cucumber"

IRB.conf[:AUTO_INDENT] = true

IRB.conf[:PROMPT][:CALABASH_IOS] = {
  :PROMPT_I => "calabash-ios #{Calabash::Cucumber::VERSION}> ",
  :PROMPT_N => "calabash-ios #{Calabash::Cucumber::VERSION}> ",
  :PROMPT_S => nil,
  :PROMPT_C => "> ",
  :AUTO_INDENT => false,
  :RETURN => "%s\n"
}

IRB.conf[:PROMPT_MODE] = :CALABASH_IOS

require "calabash-cucumber/operations"
extend Calabash::Cucumber::Operations

require "calabash-cucumber/console_helpers"
include Calabash::Cucumber::ConsoleHelpers
Calabash::Cucumber::ConsoleHelpers.start_readline_history!

def preferences
  Calabash::Cucumber::Preferences.new
end

def disable_usage_tracking
  preferences.usage_tracking = "none"
  puts "Calabash will not collect usage information."
  "none"
end

def enable_usage_tracking(level="system_info")
  preferences.usage_tracking = level
  puts "Calabash will collect statistics using the '#{level}' rule."
  level
end

xcode = RunLoop::Xcode.new
Calabash::Cucumber::UIA.redefine_instance_methods_if_necessary(xcode)

puts_console_details
puts_message_of_the_day
_try_to_attach

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
calabash-cucumber-0.20.4 scripts/.irbrc
calabash-cucumber-0.20.3 scripts/.irbrc