# coding: utf-8

lib = File.expand_path("../lib", __FILE__)
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require "request_info/version"

Gem::Specification.new do |spec|
  spec.name          = "request_info"
  spec.version       = RequestInfo::VERSION
  spec.authors       = ["Ribose Inc."]
  spec.email         = ["open.source@ribose.com"]

  spec.summary       = "Detect request IP, timezone and locale information with ease"
  spec.homepage      = "https://github.com/riboseinc/request_info"
  spec.license       = "MIT"

  spec.files         = `git ls-files -z`.split("\x0").reject do |f|
    f.match(%r{^(test|spec|features|geolitedb)/})
  end
  spec.bindir        = "exe"
  spec.executables   = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
  spec.require_paths = ["lib"]

  spec.has_rdoc              = true
  spec.required_ruby_version = ">= 2.2.0"

  spec.add_dependency("browser")
  spec.add_dependency("country_to_locales_mapping", "~> 0.1")
  spec.add_dependency("i18n")
  spec.add_dependency("rails", ">= 4.1")
  spec.add_dependency("tzinfo")

  spec.add_development_dependency "bundler", ">= 1.13"
  spec.add_development_dependency "pry", "~> 0.11"
  spec.add_development_dependency "rake", ">= 10.0"
  spec.add_development_dependency "rspec", "~> 3.0"
  spec.add_development_dependency "timecop", "~> 0.8"
end
