#!/usr/bin/env ruby require "bundler/setup" require "mangadex" username, password, email = [ ENV['MD_USERNAME'], ENV['MD_PASSWORD'], ENV['MD_EMAIL'], ] if (username || email) && password Mangadex::Auth.login(username: username, email: email, password: password) 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. # (If you use this, don't forget to add pry to your Gemfile!) require "pry" Pry.start # require "irb" # IRB.start(__FILE__)