Sha256: 219de64672c1f407006dcd82cbd53ee9e850a7fbe8b948cc43c24ce0d67cd37d

Contents?: true

Size: 1.59 KB

Versions: 6

Compression:

Stored size: 1.59 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     = ["Marcin Bunsch"]
  s.email       = ["marcin@futuresimple.com"]
  s.homepage    = "https://github.com/futuresimple/api_client"
  s.summary     = %q{API client builder}
  s.description = %q{API client builder}

  s.rubyforge_project = "api_client"

  # Declare runtime dependencies here:
  def s.add_runtime_dependencies(method)
    if RUBY_PLATFORM == "java"
      send method, 'json_pure'
      send method, 'hashie', [">= 2.0.5"]
    else
      send method, 'yajl-ruby'
      send method, 'hashie', RUBY_VERSION =~ /1\.8/ ? [">= 2.0.5", "<= 3.4.2"] : [">= 2.0.5"]
    end

    send method, 'faraday', [">= 0.8.1"]
    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
    current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
    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

6 entries across 6 versions & 1 rubygems

Version Path
api_client-0.5.19 api_client.gemspec
api_client-0.5.18 api_client.gemspec
api_client-0.5.17 api_client.gemspec
api_client-0.5.16 api_client.gemspec
api_client-0.5.15 api_client.gemspec
api_client-0.5.14 api_client.gemspec