structure.gemspec in structure-0.24.0 vs structure.gemspec in structure-0.25.0
- old
+ new
@@ -1,21 +1,23 @@
-# -*- encoding: utf-8 -*-
-$:.push File.expand_path('../lib', __FILE__)
+# coding: utf-8
+lib = File.expand_path('../lib', __FILE__)
+$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
require 'structure/version'
-Gem::Specification.new do |s|
- s.name = 'structure'
- s.version = Structure::VERSION
- s.platform = Gem::Platform::RUBY
- s.authors = ['Hakan Ensari']
- s.email = ['code@papercavalier.com']
- s.homepage = 'http://github.com/hakanensari/structure'
- s.summary = 'A key/value container'
- s.description = 'Structure is a key/value container.'
+Gem::Specification.new do |spec|
+ spec.name = 'structure'
+ spec.version = Structure::VERSION
+ spec.authors = ['Hakan Ensari']
+ spec.email = ['hakan.ensari@papercavalier.com']
+ spec.description = 'Value objects in Ruby'
+ spec.summary = 'Value objects in Ruby'
+ spec.homepage = 'http://github.com/hakanensari/structure'
+ spec.license = 'MIT'
- s.rubyforge_project = 'structure'
+ spec.files = `git ls-files`.split("\n")
+ spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
+ spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
+ spec.require_paths = ['lib']
- 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']
+ spec.add_development_dependency 'minitest'
+ spec.add_development_dependency 'rake'
end