require File.expand_path('../lib/hashie/version', __FILE__)

Gem::Specification.new do |gem|
  gem.name          = 'hashie'
  gem.version       = Hashie::VERSION
  gem.authors       = ['Michael Bleigh', 'Jerry Cheung']
  gem.email         = ['michael@intridea.com', 'jollyjerry@gmail.com']
  gem.description   = 'Hashie is a collection of classes and mixins that make hashes more powerful.'
  gem.summary       = 'Your friendly neighborhood hash library.'
  gem.homepage      = 'https://github.com/intridea/hashie'
  gem.license       = 'MIT'

  gem.require_paths = ['lib']
  gem.files         = `git ls-files`.split("\n")
  gem.test_files    = `git ls-files -- {test,spec,features}/*`.split("\n")

  gem.add_development_dependency 'rake'
  gem.add_development_dependency 'rspec', '~> 3.0'
end

require File.expand_path('../lib/hashie/version', __FILE__)

Gem::Specification.new do |gem|
  gem.name          = 'hashie'
  gem.version       = Hashie::VERSION
  gem.authors       = ['Michael Bleigh', 'Jerry Cheung']
  gem.email         = ['michael@intridea.com', 'jollyjerry@gmail.com']
  gem.description   = 'Hashie is a collection of classes and mixins that make hashes more powerful.'
  gem.summary       = 'Your friendly neighborhood hash library.'
  gem.homepage      = 'https://github.com/intridea/hashie'
  gem.license       = 'MIT'

  gem.require_paths = ['lib']
  gem.files         = %w(.yardopts CHANGELOG.md CONTRIBUTING.md LICENSE README.md UPGRADING.md Rakefile hashie.gemspec)
  gem.files         += Dir['lib/**/*.rb']
  gem.files         += Dir['spec/**/*.rb']
  gem.test_files    = Dir['spec/**/*.rb']

  gem.add_development_dependency 'rake'
  gem.add_development_dependency 'rspec', '~> 3.0'
end

Update the way files are added in the gemspec
Update the way files are added in the gemspec

Since the gem is packaged based on this file list, it seems pertinent to
only include files that users might want to see when they install the
gem, so let's explicitly list those files from the root that we want to
include.

Also, let's use Ruby globbing instead of `git ls-files` so it's all
in-Ruby calls.

Note: `.yardopts` is included explicitly to show the file list on
rdoc.info if later added. See [this Twitter conversation][twitter].

[twitter]: https://twitter.com/lsegal/status/270950893875245057
