# Copyright (c) 2013-2021 Snowplow Analytics Ltd. All rights reserved.
#
# This program is licensed to you under the Apache License Version 2.0,
# and you may not use this file except in compliance with the Apache License Version 2.0.
# You may obtain a copy of the Apache License Version 2.0 at http://www.apache.org/licenses/LICENSE-2.0.
#
# Unless required by applicable law or agreed to in writing,
# software distributed under the Apache License Version 2.0 is distributed on an
# "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the Apache License Version 2.0 for the specific language governing permissions and limitations there under.

# Author::    Snowplow Analytics Ltd
# Copyright:: Copyright (c) 2013-2021 Snowplow Analytics Ltd
# License::   Apache License Version 2.0
#
# -*- encoding: utf-8 -*-

require_relative 'lib/snowplow-tracker/version'

Gem::Specification.new do |s|
  s.name        = 'snowplow-tracker'
  s.version     = SnowplowTracker::VERSION
  s.homepage    = 'http://github.com/snowplow/snowplow-ruby-tracker'
  s.license     = 'Apache-2.0'
  s.summary     = 'Ruby Analytics for Snowplow'
  s.description = 'With this tracker you can collect event data '\
                  'from your Ruby applications, Ruby on Rails web'\
                  ' applications and Ruby gems.'
  s.author      = 'Snowplow Analytics Ltd'
  s.email       = 'support@snowplowanalytics.com'
  s.files       = %w[LICENSE-2.0.txt README.md] + Dir.glob('lib/**/*.rb')
  s.platform    = Gem::Platform::RUBY
  s.required_ruby_version = '>= 2.1'

  if RUBY_VERSION >= '3.0.0'
    s.add_runtime_dependency 'contracts', '~> 0.17'
  else
    s.add_runtime_dependency 'contracts', '~> 0.7', '< 0.17'
  end
  s.add_development_dependency 'rspec', '~> 3.10'
  s.add_development_dependency 'webmock', '~> 3.14'
end
