lib = File.expand_path('lib', Dir.pwd) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require 'waeasyapi/constants' Gem::Specification.new do |spec| spec.name = 'waeasyapi' spec.version = WAEasyAPI::VERSION spec.authors = ['WA Easy API'] spec.email = ['team@waeasyapi.com'] spec.summary = "WAEasyAPI's Ruby API" spec.description = 'Official ruby bindings for the WAEasyAPI API' spec.homepage = 'https://waeasyapi.com/' spec.license = 'MIT' spec.files = `git ls-files`.split("\n") spec.executables = spec.files.grep(/^bin/) { |f| File.basename(f) } spec.test_files = spec.files.grep(/^(test|spec|features)/) spec.require_paths = ['lib'] spec.add_dependency 'httparty', '~> 0.14' spec.add_development_dependency 'coveralls', '~> 0.8' spec.add_development_dependency 'minitest', '~> 5.11' spec.add_development_dependency 'rake', '~> 12.0' if RUBY_VERSION >= '2.1.0' # rubocop is only run in the latest ruby build # so we use the latest version and don't switch to a # older version for 1.9.3 spec.add_development_dependency 'rubocop', '~> 0.49' spec.add_development_dependency 'webmock', '~> 3.0' else # Webmock 3.0 does not support Ruby 1.9.3 spec.add_development_dependency 'webmock', '~> 2.3' end end