# Copyright 2013 Google Inc. All Rights Reserved.
# Licensed under the Apache License, Version 2.0, found in the LICENSE file.

Gem::Specification.new do |spec|
  spec.name          = "rack-allocation_stats"
  spec.version       = "0.1.0"
  spec.authors       = ["Sam Rawlins"]
  spec.email         = ["sam.rawlins@gmail.com"]
  spec.license       = "Apache v2"
  spec.summary       = "Rack middleware for tracing object allocations in Ruby 2.1"
  spec.description   = "Rack middleware for tracing object allocations in Ruby 2.1"

  #spec.files         = `git ls-files`.split("\n")
  spec.files         = `find . -path "*.rb"`.split("\n")
  spec.require_paths = ["lib"]

  spec.add_dependency "allocation_stats"
  spec.add_dependency "yajl-ruby"
  #spec.add_dependency "pry"
  spec.add_development_dependency "rspec"

  # ">= 2.1.0" seems logical, but rubygems thought that "2.1.0.dev.0" did not fit that bill.
  # "> 2.0.0" was my next guess, but apparently "2.0.0.247" _does_ fit that bill.
  spec.required_ruby_version = "> 2.0.99"
end

# Copyright 2013 Google Inc. All Rights Reserved.
# Licensed under the Apache License, Version 2.0, found in the LICENSE file.

Gem::Specification.new do |spec|
  spec.name          = "rack-allocation_stats"
  spec.version       = "0.1.0"
  spec.authors       = ["Sam Rawlins"]
  spec.email         = ["sam.rawlins@gmail.com"]
  spec.license       = "Apache v2"
  spec.summary       = "Rack middleware for tracing object allocations in Ruby 2.1"
  spec.description   = "Rack middleware for tracing object allocations in Ruby 2.1"

  spec.files         = Dir.glob('{lib,spec}/**/*') + %w[LICENSE README.markdown TODO.markdown]
  spec.require_paths = ["lib"]

  spec.add_dependency "allocation_stats"
  spec.add_dependency "yajl-ruby"
  #spec.add_dependency "pry"
  spec.add_development_dependency "rspec"

  # ">= 2.1.0" seems logical, but rubygems thought that "2.1.0.dev.0" did not fit that bill.
  # "> 2.0.0" was my next guess, but apparently "2.0.0.247" _does_ fit that bill.
  spec.required_ruby_version = "> 2.0.99"
end

Include non-Ruby files in gem package
Include non-Ruby files in gem package

The interactive mode was not working because the gem package did not
contain the non-Ruby files needed to run it. This commit opens up the
file inclusion to anything under lib and spec.
