Sha256: 5952bb232cedefd286bc63c4489fb720b0ee45da49b987941585e99c4ad6c1c2

Contents?: true

Size: 1.02 KB

Versions: 6

Compression:

Stored size: 1.02 KB

Contents

#!/usr/bin/env ruby

# So that this script can be called from places other than the Gemfile dir,
# like when it's in `//dev/bin/console` and the Gemfile is at `//dev/Gemfile`
Dir.chdir __dir__ do
  require "bundler/setup"
end

# Load `nrser` gem and use refinements if it's available
begin
  require 'nrser'
rescue LoadError => error
  puts "WARN -- Failed to load `nrser` gem."
  puts "WARN -- Add it do your dependencies or edit #{ __FILE__ }"
else
  require 'nrser/refinements/types'
  using NRSER::Types
end

{% if qb_gem_info is defined %}
require '{{ qb_gem_info.name }}'
{% endif %}

# You can add fixtures and/or initialization code here to make experimenting
# with your gem easier. You can also use a different console, if you like.

# Load `pry` if it's available, falling back to `irb`
begin
  require "pry"
rescue LoadError => error
  puts "WARN -- Failed to load `pry` gem."
  puts "WARN -- Add it do your dependencies or edit #{ __FILE__ }"
  puts "INFO -- Starting `IRB`..."
  
  require "irb"
  IRB.start
else
  Pry.start
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
qb-0.4.5 roles/qb/ruby/gem/bin_stubs/templates/console
qb-0.4.4 roles/qb/ruby/gem/bin_stubs/templates/console
qb-0.4.3 roles/qb/ruby/gem/bin_stubs/templates/console
qb-0.4.2 roles/qb/ruby/gem/bin_stubs/templates/console
qb-0.4.1 roles/qb/ruby/gem/bin_stubs/templates/console
qb-0.4.0 roles/qb/ruby/gem/bin_stubs/templates/console