Sha256: e46eeca611e75ea89fa6cd3928cbb4e97a69942bc51138a156467ba7ed6c5967

Contents?: true

Size: 1.78 KB

Versions: 18

Compression:

Stored size: 1.78 KB

Contents

# -*- encoding: utf-8 -*-
lib = File.expand_path('../lib/', __FILE__)
$LOAD_PATH.unshift lib unless $LOAD_PATH.include?(lib)
require "mocha/version"

Gem::Specification.new do |s|
  s.name = "mocha"
  s.version = Mocha::VERSION

  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
  s.authors = ["James Mead"]
  s.description = "Mocking and stubbing library with JMock/SchMock syntax, which allows mocking and stubbing of methods on real (non-mock) classes."
  s.email = "mocha-developer@googlegroups.com"

  s.files = `git ls-files`.split("\n")
  s.files.delete(".travis.yml")
  s.files.delete(".gitignore")

  s.homepage = "http://gofreerange.com/mocha/docs"
  s.require_paths = ["lib"]
  s.rubyforge_project = "mocha"
  s.summary = "Mocking and stubbing library"
  s.has_rdoc = "yard"

  s.add_dependency("metaclass", "~> 0.0.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_development_dependency("rake", ">= 0")
      s.add_development_dependency("introspection", "~> 0.0.1")
      unless ENV["MOCHA_NO_DOCS"]
        s.add_development_dependency("yard")
        s.add_development_dependency("redcarpet", "~> 1")
      end
    else
      s.add_dependency("rake", ">= 0")
      s.add_dependency("introspection", "~> 0.0.1")
      unless ENV["MOCHA_NO_DOCS"]
        s.add_dependency("yard")
        s.add_dependency("redcarpet", "~> 1")
      end
    end
  else
    s.add_dependency("rake", ">= 0")
    s.add_dependency("introspection", "~> 0.0.1")
    unless ENV["MOCHA_NO_DOCS"]
      s.add_dependency("yard")
      s.add_dependency("redcarpet", "~> 1")
    end
  end
end

Version data entries

18 entries across 17 versions & 4 rubygems

Version Path
mocha-1.1.0 mocha.gemspec
mocha-1.0.0 mocha.gemspec
mocha-1.0.0.alpha mocha.gemspec
tnargav-1.3.3 vendor/bundle/ruby/1.9.1/gems/mocha-0.14.0/mocha.gemspec
challah-1.0.0 vendor/bundle/gems/mocha-0.14.0/mocha.gemspec
tnargav-1.2.3 vendor/bundle/ruby/1.9.1/gems/mocha-0.14.0/mocha.gemspec
mocha-0.14.0 mocha.gemspec
challah-1.0.0.beta3 vendor/bundle/gems/mocha-0.13.3/mocha.gemspec
mocha-0.14.0.alpha mocha.gemspec
challah-1.0.0.beta2 vendor/bundle/gems/mocha-0.13.3/mocha.gemspec
challah-1.0.0.beta vendor/bundle/gems/mocha-0.13.3/mocha.gemspec
mocha-0.13.3 mocha.gemspec
mocha-0.13.2 mocha.gemspec
mocha-0.13.1 mocha.gemspec
challah-rolls-0.2.0 vendor/bundle/gems/challah-0.8.3/vendor/bundle/gems/mocha-0.13.0/mocha.gemspec
challah-rolls-0.2.0 vendor/bundle/gems/mocha-0.13.0/mocha.gemspec
challah-0.8.3 vendor/bundle/gems/mocha-0.13.0/mocha.gemspec
mocha-0.13.0 mocha.gemspec