Sha256: 1ae236f0aab328bf0bd4fcdb0842009faab27526877d49df03ce81dadc0b632b

Contents?: true

Size: 1.47 KB

Versions: 1

Compression:

Stored size: 1.47 KB

Contents

# -*- encoding: utf-8 -*-
$:.push File.expand_path("../lib", __FILE__)
require "api_client/version"

Gem::Specification.new do |s|
  s.name        = "api_client"
  s.version     = ApiClient::VERSION
  s.authors     = ["Zendesk"]
  s.email       = ["opensource@zendesk.com"]
  s.homepage    = "https://github.com/futuresimple/api_client"
  s.summary     = %q{API client builder}
  s.description = %q{API client builder}
  s.license     = "Apache License Version 2.0"

  s.rubyforge_project = "api_client"

  # Declare runtime dependencies here:
  def s.add_runtime_dependencies(method)
    if RUBY_PLATFORM == "java"
      send method, 'jrjackson'
    else
      send method, 'yajl-ruby'
    end

    send method, 'hashie', [">= 2.0.5"]
    send method, 'faraday', [">= 0.8.1", "< 1.0.0"]
    send method, 'multi_json', [">= 1.6.1"]
  end

  # Declare development dependencies here:
  s.add_development_dependency 'rspec', '2.14.1'

  if s.respond_to? :specification_version then
    s.specification_version = 3

    if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
      s.add_runtime_dependencies(:add_runtime_dependency)
    else
      s.add_runtime_dependencies(:add_dependency)
    end
  else
    s.add_runtime_dependencies(:add_dependency)
  end

  s.files         = `git ls-files`.split("\n")
  s.test_files    = `git ls-files -- {test,spec,features}/*`.split("\n")
  s.executables   = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
  s.require_paths = ["lib"]
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
api_client-0.5.24 api_client.gemspec