bencodr.gemspec in bencodr-1.2.0 vs bencodr.gemspec in bencodr-2.0.0
- old
+ new
@@ -1,81 +1,24 @@
-# Generated by jeweler
-# DO NOT EDIT THIS FILE DIRECTLY
-# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
# -*- encoding: utf-8 -*-
+$:.push File.expand_path("../lib", __FILE__)
+require "bencodr/version"
Gem::Specification.new do |s|
- s.name = %q{bencodr}
- s.version = "1.2.0"
+ s.name = "bencodr"
+ s.version = BEncodr::VERSION
+ s.platform = Gem::Platform::RUBY
+ s.authors = ["Allen Madsen"]
+ s.email = ["blatyo@gmail.com"]
+ s.homepage = "http://github.com/blatyo/bencodr"
+ s.summary = "This gem provides a way to encode and decode bencode used by the Bit Torrent protocol."
+ s.description = "This gem provides a way to encode and decode bencode used by the Bit Torrent protocol. Normal ruby objects can be marshalled as bencode and demarshalled back to ruby."
- s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
- s.authors = ["Allen Madsen"]
- s.date = %q{2010-02-04}
- s.description = %q{This gem provides a way to encode and parse bencodings used by the Bit Torrent protocol.}
- s.email = %q{blatyo@gmail.com}
- s.extra_rdoc_files = [
- "LICENSE",
- "README.rdoc"
- ]
- s.files = [
- ".autotest",
- ".document",
- ".gitignore",
- "LICENSE",
- "README.rdoc",
- "Rakefile",
- "VERSION",
- "autotest/discover.rb",
- "bencodr.gemspec",
- "lib/bencodr.rb",
- "lib/bencodr/dictionary.rb",
- "lib/bencodr/integer.rb",
- "lib/bencodr/io.rb",
- "lib/bencodr/list.rb",
- "lib/bencodr/parser.rb",
- "lib/bencodr/string.rb",
- "spec/bencode_spec.rb",
- "spec/bencodr/dictionary_spec.rb",
- "spec/bencodr/integer_spec.rb",
- "spec/bencodr/io_spec.rb",
- "spec/bencodr/list_spec.rb",
- "spec/bencodr/parser_spec.rb",
- "spec/bencodr/string_spec.rb",
- "spec/samples/bencode.rb.torrent",
- "spec/samples/mini.bencode",
- "spec/samples/python.torrent",
- "spec/spec.opts",
- "spec/spec_helper.rb"
- ]
- s.homepage = %q{http://github.com/blatyo/bencodr}
- s.rdoc_options = ["--charset=UTF-8"]
- s.require_paths = ["lib"]
- s.rubygems_version = %q{1.3.5}
- s.summary = %q{This gem provides a way to encode and parse bencodings used by the Bit Torrent protocol.}
- s.test_files = [
- "spec/bencode_spec.rb",
- "spec/bencodr/dictionary_spec.rb",
- "spec/bencodr/integer_spec.rb",
- "spec/bencodr/io_spec.rb",
- "spec/bencodr/list_spec.rb",
- "spec/bencodr/parser_spec.rb",
- "spec/bencodr/string_spec.rb",
- "spec/spec_helper.rb"
- ]
+ s.required_rubygems_version = ">= 1.3.6"
+ s.add_development_dependency "rspec", "~> 2.1.0"
+ s.add_development_dependency "bundler", ">= 1.0.0"
+ s.add_development_dependency "fuubar", ">= 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::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
- s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
- s.add_development_dependency(%q<yard>, [">= 0"])
- else
- s.add_dependency(%q<rspec>, [">= 1.2.9"])
- s.add_dependency(%q<yard>, [">= 0"])
- end
- else
- s.add_dependency(%q<rspec>, [">= 1.2.9"])
- s.add_dependency(%q<yard>, [">= 0"])
- end
+ 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"]
end
-