Sha256: 16fc9fa83d3c169b1af0fb8591ec081b0dba60aff9e7c3a7f6eaf2d64861dcb6

Contents?: true

Size: 396 Bytes

Versions: 14

Compression:

Stored size: 396 Bytes

Contents

# encoding: utf-8
# frozen_string_literal: false
# A pry shell for live coding.
# Will start with your sketch.
require_relative 'base'
Processing.load_and_run_sketch

class PryException < StandardError
end

MESSAGE = "You need to 'jruby -S gem install pry' for 'live' mode"

if Gem::Specification.find_all_by_name('pry').any?
  require 'pry'
  $app.pry
else
  fail(PryException.new, MESSAGE)
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
jruby_art-1.2.5 lib/jruby_art/runners/live.rb
jruby_art-1.2.4 lib/jruby_art/runners/live.rb
jruby_art-1.2.3 lib/jruby_art/runners/live.rb
jruby_art-1.2.2 lib/jruby_art/runners/live.rb
jruby_art-1.2.1 lib/jruby_art/runners/live.rb
jruby_art-1.2.0.pre lib/jruby_art/runners/live.rb
jruby_art-1.1.3 lib/jruby_art/runners/live.rb
jruby_art-1.1.2 lib/jruby_art/runners/live.rb
jruby_art-1.1.1 lib/jruby_art/runners/live.rb
jruby_art-1.1.0 lib/jruby_art/runners/live.rb
jruby_art-1.0.8 lib/jruby_art/runners/live.rb
jruby_art-1.0.7 lib/jruby_art/runners/live.rb
jruby_art-1.0.6 lib/jruby_art/runners/live.rb
jruby_art-1.0.5 lib/jruby_art/runners/live.rb