Sha256: db84fba491d889e5d348c7174723b9afb4b59ba28246dbfa3f7f43112ede7ff0

Contents?: true

Size: 1.3 KB

Versions: 1

Compression:

Stored size: 1.3 KB

Contents

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

require "irb"
require "irb/completion"
require "bundler/setup"
require "justa"

# 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.

# (If you use this, don't forget to add pry to your Gemfile!)
# require "pry"
# Pry.start

# Config IRB to enable --simple-prompt and auto indent
IRB.conf[:PROMPT_MODE] = :SIMPLE
IRB.conf[:AUTO_INDENT] = true

def reload!(print = true)
  puts "Reloading ..." if print
  # Main project directory.
  root_dir = File.expand_path("..", __dir__)
  # Directories within the project that should be reloaded.
  reload_dirs = %w[lib]
  # Loop through and reload every file in all relevant project directories.
  reload_dirs.each do |dir|
    Dir.glob("#{root_dir}/#{dir}/**/*.rb").each { |f| load(f) }
  end
  # Return true when complete.
  true
end

def initialize_justa
  pp "Initilizing..."
  Justa.username = "FUSION_TECNOLOGIAS"
  Justa.password = "m12MS4Hbez*"
  Justa.client_id = "ae31b7da-3465-43fc-957a-abd773bfa785"
  Justa.client_secret = "8900d798-d874-4904-b920-b137d8573ff3"
  Justa.integrator_id = "0a484870-38b8-4337-8f37-c3b2eec604fc"

  Justa.credentials = [{ key: :default, document: "75547678015" }]
end

initialize_justa
IRB.start

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
justa-ruby-0.1.9 bin/console