Sha256: 337e9ea943e91131021f1c59add20ce6bd636a5f29bd428ba6aea5c68365e57c

Contents?: true

Size: 1.5 KB

Versions: 5

Compression:

Stored size: 1.5 KB

Contents

require 'rubygems'
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-ios console',
         '',
         '# 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']

IRB.conf[:SAVE_HISTORY] = 50
IRB.conf[:HISTORY_FILE] = '.irb-history'

require 'calabash-cucumber/operations'

# legacy support - module was deprecated 0.9.169
# and replaced with simulator_launcher
require 'calabash-cucumber/launch/simulator_helper'
require 'calabash-cucumber/launch/simulator_launcher'
SIM=Calabash::Cucumber::SimulatorLauncher.new()

extend Calabash::Cucumber::Operations

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

require "calabash-cucumber"

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

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
calabash-cucumber-0.18.2 scripts/.irbrc
calabash-cucumber-0.18.1 scripts/.irbrc
calabash-cucumber-0.18.0 scripts/.irbrc
calabash-cucumber-0.17.1 scripts/.irbrc
calabash-cucumber-0.17.0 scripts/.irbrc