Sha256: a0fcdfd139c4c45bf1f529afa0839a2ec4f3bf208a8ba15a30e65380eff74c73
Contents?: true
Size: 672 Bytes
Versions: 14
Compression:
Stored size: 672 Bytes
Contents
#!/usr/bin/env ruby require "bundler/setup" require "mangadex" def try_logging_in 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 rescue Mangadex::Errors::StandardError => e puts e false end try_logging_in # 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__)
Version data entries
14 entries across 14 versions & 1 rubygems