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

Version Path
mangadex-5.10.0 bin/console
mangadex-5.9.0 bin/console
mangadex-5.8.0 bin/console
mangadex-5.7.5.3 bin/console
mangadex-5.7.5.2 bin/console
mangadex-5.7.5.1 bin/console
mangadex-5.7.5 bin/console
mangadex-5.5.8 bin/console
mangadex-5.5.6 bin/console
mangadex-5.4.16 bin/console
mangadex-5.4.11.3 bin/console
mangadex-5.4.11.2 bin/console
mangadex-5.4.11.1 bin/console
mangadex-5.4.11 bin/console