Sha256: ffee87dcbdda0b93f1c9a3d6ab6763f004358dda878eb3d68ff4a97936595790

Contents?: true

Size: 988 Bytes

Versions: 3

Compression:

Stored size: 988 Bytes

Contents

#!/usr/bin/env ruby

require "bundler/setup"
require "majestic/api"
require "yaml"

# 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

cfg_path                =   File.join(File.dirname(__FILE__), "../credentials.yml")

if File.exists?(cfg_path)
  yaml                  =   YAML.load_file(cfg_path)["development"]

  Majestic::Api.configure do |config|
    config.environment  =   yaml.fetch("environment", :sandbox)
    config.api_key      =   yaml.fetch("api_key", nil)
    config.verbose      =   true
  end
end

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

require "pry"
Pry.config.history.file = File.join(__FILE__, "../.pry_history")
Pry.start

#require "irb"
#IRB.start(__FILE__)

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
majestic-api-1.4.2 bin/console
majestic-api-1.4.1 bin/console
majestic-api-1.4.0 bin/console