brainz.gemspec in brainz-0.1.2 vs brainz.gemspec in brainz-0.1.3

- old
+ new

@@ -1,35 +1,20 @@ # -*- encoding: utf-8 -*- +require File.expand_path('../lib/brainz/version', __FILE__) -Gem::Specification.new do |s| - s.name = "brainz" - s.version = "0.1.2" +Gem::Specification.new do |gem| + gem.authors = ["Vilius Luneckas"] + gem.email = ["vilius.luneckas@gmail.com"] + gem.description = %q{Artificial Neural Network library written in Ruby} + gem.summary = %q{Artificial Neural Network library written in Ruby} + gem.homepage = "https://github.com/ViliusLuneckas/brainz/" - s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version= - s.authors = ["Vilius Luneckas"] - s.date = "2012-03-26" - s.description = "Simple artificial intelligence" - s.email = "vilius.luneckas@gmail.com" - s.extra_rdoc_files = ["LICENSE", "README.rdoc", "lib/brainz.rb", "lib/brainz/backpropagation.rb", "lib/brainz/brainz.rb", "lib/brainz/layer.rb", "lib/brainz/loader.rb", "lib/brainz/network.rb", "lib/brainz/neuron.rb", "lib/brainz/synapse.rb", "lib/brainz/version.rb", "lib/ext/array.rb"] - s.files = ["LICENSE", "README.rdoc", "Rakefile", "brainz.gemspec", "examples/and.rb", "examples/multi_layer_xor.rb", "examples/sign.rb", "examples/xor.rb", "lib/brainz.rb", "lib/brainz/backpropagation.rb", "lib/brainz/brainz.rb", "lib/brainz/layer.rb", "lib/brainz/loader.rb", "lib/brainz/network.rb", "lib/brainz/neuron.rb", "lib/brainz/synapse.rb", "lib/brainz/version.rb", "lib/ext/array.rb", "spec/array_spec.rb", "spec/brainz_spec.rb", "spec/loader_spec.rb", "spec/neuron_spec.rb", "spec/spec_helper.rb", "spec/temp/brainz.b", "Manifest"] - s.homepage = "https://github.com/ViliusLuneckas/brainz/" - s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Brainz", "--main", "README.rdoc"] - s.require_paths = ["lib"] - s.rubyforge_project = "brainz" - s.rubygems_version = "1.8.19" - s.summary = "Simple artificial intelligence" - - if s.respond_to? :specification_version then - s.specification_version = 3 - - if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then - s.add_development_dependency(%q<rspec>, [">= 0"]) - s.add_development_dependency(%q<mocha>, [">= 0"]) - else - s.add_dependency(%q<rspec>, [">= 0"]) - s.add_dependency(%q<mocha>, [">= 0"]) - end - else - s.add_dependency(%q<rspec>, [">= 0"]) - s.add_dependency(%q<mocha>, [">= 0"]) + gem.files = `git ls-files`.split($\) + gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) } + gem.test_files = gem.files.grep(%r{^(test|spec|features)/}) + gem.name = "brainz" + gem.require_paths = ["lib"] + gem.version = Brainz::VERSION + %w(rspec mocha).each do |gem_name| + gem.add_development_dependency gem_name end end