require 'hoe'
require './lib/beerdb/cli/version.rb'


Hoe.spec 'beerdb' do

  self.version = BeerDbTool::VERSION

  self.summary = 'beerdb - beer.db command line tool'
  self.description = summary

  self.urls    = ['https://github.com/beerkit/beer.db']

  self.author  = 'Gerald Bauer'
  self.email   = 'beerdb@googlegroups.com'

  # switch extension to .markdown for gihub formatting
  self.readme_file  = 'README.md'
  self.history_file = 'HISTORY.md'

  self.extra_deps = [
    ['beerdb-models', '>= 1.2.0'],
    ['beerdb-note',   '>= 0.1.0'],    ## (auto-)add notes extension / addon too

    ['datafile',   '>= 0.2.5'],
    ['fetcher',    '>= 0.4.5'],
    ['webservice', '>= 0.6.1'],

    ## 3rd party
    ['gli', '>= 2.12.2'],
    ['sqlite3']
  ]

  self.licenses = ['Public Domain']

  self.spec_extras = {
    required_ruby_version: '>= 2.3'
  }

end
