# frozen_string_literal: true

lib = File.expand_path('lib', __dir__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'epics/version'

Gem::Specification.new do |spec|
  spec.name          = 'epics'
  spec.version       = Epics::VERSION
  spec.authors       = ['Lars Brillert']
  spec.email         = ['lars@railslove.com']
  spec.summary       = 'a ruby implementation of the EBICS protocol'
  spec.description   = <<-description
    Epics is a ruby implementation of the EBIC standard (H004)

    It supports the complete initialization process comprising INI, HIA and HPB
    including the INI letter generation.

    Furthermore it offers support for the most common download types:
      STA HAA HTD HPD PKT HAC HKD C52 C53 C54

    And the following upload orders:
      CD1 CDD CCT CDB CDS CCS CDZ
  description

  spec.homepage      = 'https://github.com/railslove/epics'
  spec.license       = 'LGPL-3.0'

  spec.required_ruby_version = '>= 2.4'

  spec.files         = `git ls-files -z`.split("\x0")
  spec.executables   = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
  spec.test_files    = spec.files.grep(%r{^(test|spec|features)/})
  spec.require_paths = ['lib']

  spec.post_install_message  = "\n\e[32m" + ('*' * 60) + "\n\e[0m"
  spec.post_install_message += "Thanks for using Epics - your epic EBICS client!\n"
  spec.post_install_message += "Epics provides a full production-tested implementation of the Electronic Banking Internet Communication Standard.\n"
  spec.post_install_message += "Railslove as the maintainer is commited to provide extensive developer tools to make integrating financial institutions fun and easy.\n"
  spec.post_install_message += "Please create an issue on github (railslove/epics) if anything does not work as expected. And contact team@railslove.com if you are looking for support with your integration.\n"
  spec.post_install_message += "\e[32m" + ('*' * 60) + "\n\e[0m"

  spec.add_dependency 'faraday', '>= 1.0.0'
  spec.add_dependency 'nokogiri', '>= 1.10.7'
  spec.add_dependency 'rubyzip', '2.2.0'

  spec.add_development_dependency 'bundler', '>= 1.6.2'
  spec.add_development_dependency 'equivalent-xml'
  spec.add_development_dependency 'pry'
  spec.add_development_dependency 'rake', '~> 13.0'
  spec.add_development_dependency 'rspec'
  spec.add_development_dependency 'webmock'
end