Sha256: d04a2cb921cd13f3b0385fb59f82c7f337f4641ffe694e04966cc6b6ce9e66e4

Contents?: true

Size: 536 Bytes

Versions: 12

Compression:

Stored size: 536 Bytes

Contents

#!/usr/bin/env ruby
# frozen_string_literal: true

require 'bundler/setup'

require 'pry'
require 'fortnox/api'

##
# Starts a new copy of this script, replacing the current session.
#
# When run the current process, this script, will be replaced by the result from
# exec, a new copy of this script.
#
# Together with Pry's history this makes it look like you basically just
# reloaded the gem and all of it's dependancies with their latest versions.

def reload!
  exec([File.absolute_path(__FILE__), __FILE__], *ARGV)
end

Pry.start

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
fortnox-api-0.9.1 bin/console
fortnox-api-0.8.2 bin/console
fortnox-api-0.8.1 bin/console
fortnox-api-0.9.0 bin/console
fortnox-api-0.8.0 bin/console
fortnox-api-0.7.2 bin/console
fortnox-api-0.7.1 bin/console
fortnox-api-0.7.0 bin/console
fortnox-api-0.6.3 bin/console
fortnox-api-0.6.2 bin/console
fortnox-api-0.6.1 bin/console
fortnox-api-0.6.0 bin/console