diff options
-rw-r--r-- | .autotest | 34 | ||||
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | .minitest.rb | 2 | ||||
-rw-r--r-- | Manifest.txt | 5 | ||||
-rw-r--r-- | Rakefile | 1 | ||||
-rw-r--r-- | mime-types.gemspec | 25 |
6 files changed, 48 insertions, 21 deletions
@@ -1,7 +1,35 @@ -# -*- ruby encoding: utf-8 -*- +# -*- ruby -*- -require "autotest/restart" +require 'autotest/bundler' +require 'autotest/restart' +require 'autotest/timestamp' + +def require_plugin(resource) + require resource +rescue LoadError + false +end + +require_plugin 'autotest/clear' Autotest.add_hook :initialize do |at| - at.testlib = ".minitest" + # at.testlib = "minitest/unit" + # + # at.extra_files << "../some/external/dependency.rb" + # + # at.libs << ":../some/external" + # + # at.add_exception "vendor" + # + # at.add_mapping(/dependency.rb/) do |f, _| + # at.files_matching(/test_.*rb$/) + # end + # + # %w(TestA TestB).each do |klass| + # at.extra_class_map[klass] = "test/test_misc.rb" + # end end + +# Autotest.add_hook :run_command do |at| +# system "rake build" +# end @@ -1,3 +1,4 @@ +*.md *.swp *~ .rake_tasks~ @@ -11,4 +12,3 @@ html pkg publish test/cache.tst -*.md diff --git a/.minitest.rb b/.minitest.rb deleted file mode 100644 index bba217e..0000000 --- a/.minitest.rb +++ /dev/null @@ -1,2 +0,0 @@ -gem "minitest" -require "minitest/autorun" diff --git a/Manifest.txt b/Manifest.txt index e5bbc93..1c482c6 100644 --- a/Manifest.txt +++ b/Manifest.txt @@ -1,11 +1,8 @@ .autotest -.coveralls.yml .gemtest +.gitignore .hoerc -.minitest.rb -.travis.yml Contributing.rdoc -Gemfile History-Types.rdoc History.rdoc Licence.rdoc @@ -28,6 +28,7 @@ spec = Hoe.spec 'mime-types' do self.extra_dev_deps << ['hoe-rubygems', '~> 1.0'] self.extra_dev_deps << ['hoe-travis', '~> 1.2'] self.extra_dev_deps << ['minitest', '~> 5.3'] + self.extra_dev_deps << ['minitest-autotest', ['>= 1.0.b', '<2']] self.extra_dev_deps << ['rake', '~> 10.0'] self.extra_dev_deps << ['simplecov', '~> 0.7'] self.extra_dev_deps << ['coveralls', '~> 0.7'] diff --git a/mime-types.gemspec b/mime-types.gemspec index e04ff16..eeb33bf 100644 --- a/mime-types.gemspec +++ b/mime-types.gemspec @@ -1,18 +1,18 @@ # -*- encoding: utf-8 -*- -# stub: mime-types 2.4.1 ruby lib +# stub: mime-types 2.4.3 ruby lib Gem::Specification.new do |s| s.name = "mime-types" - s.version = "2.4.1" + s.version = "2.4.3" s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= s.require_paths = ["lib"] s.authors = ["Austin Ziegler"] - s.date = "2014-10-07" - s.description = "The mime-types library provides a library and registry for information about\nMIME content type definitions. It can be used to determine defined filename\nextensions for MIME types, or to use filename extensions to look up the likely\nMIME type definitions.\n\nMIME content types are used in MIME-compliant communications, as in e-mail or\nHTTP traffic, to indicate the type of content which is transmitted. The\nmime-types library provides the ability for detailed information about MIME\nentities (provided as an enumerable collection of MIME::Type objects) to be\ndetermined and used programmatically. There are many types defined by RFCs and\nvendors, so the list is long but by definition incomplete; don't hesitate to to\nadd additional type definitions (see Contributing.rdoc). The primary sources\nfor MIME type definitions found in mime-types is the IANA collection of\nregistrations (see below for the link), RFCs, and W3C recommendations.\n\nThis is release 2.4.1 (2.4 was pulled), fixing a bug in observed use of the\nmime-types library where extensions were not previously sorted, such that\n\n MIME::Types.of('image.jpg').first.extensions.first\n\nreturned a value of +jpeg+ in mime-types 1, but +jpe+ in mime-types 2. This was\nintroduced because extensions were sorted during assignment\n(MIME::Type#extensions=). This behaviour has been reverted to protect clients\nthat work as noted above. The preferred way to express this is the new method:\n\n MIME::Type.of('image.jpg').first.preferred_extension\n\n\u{141}ukasz \u{15a}liwa created the\n{friendly_mime}[https://github.com/lukaszsliwa/friendly_mime] gem, which offers\nfriendly descriptive names for MIME types. This functionality and\nEnglish-language data has been added to mime-types as MIME::Type#friendly. To\nmake it easy for internationalization, MIME::Type#i18n_key has been added,\nwhich will return a key suitable for use with the\n{I18n}[https://github.com/svenfuchs/i18n] library.\n\nAs a reminder, mime-types 2.x is no longer compatible with Ruby 1.8 and\nmime-types 1.x is only being maintained for security issues. No new MIME types\nor features will be added.\n\nmime-types (previously called MIME::Types for Ruby) was originally based on\nMIME::Types for Perl by Mark Overmeer, copyright 2001 - 2009. It is built to\nconform to the MIME types of RFCs 2045 and 2231. It tracks the {IANA Media\nTypes registry}[https://www.iana.org/assignments/media-types/media-types.xhtml]\nwith some types added by the users of mime-types." + s.date = "2014-12-21" + s.description = "The mime-types library provides a library and registry for information about\nMIME content type definitions. It can be used to determine defined filename\nextensions for MIME types, or to use filename extensions to look up the likely\nMIME type definitions.\n\nMIME content types are used in MIME-compliant communications, as in e-mail or\nHTTP traffic, to indicate the type of content which is transmitted. The\nmime-types library provides the ability for detailed information about MIME\nentities (provided as an enumerable collection of MIME::Type objects) to be\ndetermined and used programmatically. There are many types defined by RFCs and\nvendors, so the list is long but by definition incomplete; don't hesitate to\nadd additional type definitions (see Contributing.rdoc). The primary sources\nfor MIME type definitions found in mime-types is the IANA collection of\nregistrations (see below for the link), RFCs, and W3C recommendations.\n\nThis is release 2.5, \u{2026}\n\nAs a reminder, mime-types 2.x is no longer compatible with Ruby 1.8 and\nmime-types 1.x is only being maintained for security issues. No new MIME types\nor features will be added.\n\nmime-types (previously called MIME::Types for Ruby) was originally based on\nMIME::Types for Perl by Mark Overmeer, copyright 2001 - 2009. It is built to\nconform to the MIME types of RFCs 2045 and 2231. It tracks the {IANA Media\nTypes registry}[https://www.iana.org/assignments/media-types/media-types.xhtml]\nwith some types added by the users of mime-types." s.email = ["halostatue@gmail.com"] s.extra_rdoc_files = ["Contributing.rdoc", "History-Types.rdoc", "History.rdoc", "Licence.rdoc", "Manifest.txt", "README.rdoc", "docs/COPYING.txt", "docs/artistic.txt", "Contributing.rdoc", "History-Types.rdoc", "History.rdoc", "Licence.rdoc", "README.rdoc"] - s.files = [".autotest", ".coveralls.yml", ".gemtest", ".hoerc", ".minitest.rb", ".travis.yml", "Contributing.rdoc", "Gemfile", "History-Types.rdoc", "History.rdoc", "Licence.rdoc", "Manifest.txt", "README.rdoc", "Rakefile", "data/mime-types.json", "docs/COPYING.txt", "docs/artistic.txt", "lib/mime-types.rb", "lib/mime.rb", "lib/mime/type.rb", "lib/mime/types.rb", "lib/mime/types/cache.rb", "lib/mime/types/loader.rb", "lib/mime/types/loader_path.rb", "support/apache_mime_types.rb", "support/benchmarks/load.rb", "support/convert.rb", "support/iana_registry.rb", "test/bad-fixtures/malformed", "test/fixture/json.json", "test/fixture/old-data", "test/fixture/yaml.yaml", "test/minitest_helper.rb", "test/test_mime_type.rb", "test/test_mime_types.rb", "test/test_mime_types_cache.rb", "test/test_mime_types_class.rb", "test/test_mime_types_lazy.rb", "test/test_mime_types_loader.rb"] + s.files = [".autotest", ".coveralls.yml", ".gemtest", ".hoerc", ".pullreview.yml", ".travis.yml", "Contributing.rdoc", "Gemfile", "History-Types.rdoc", "History.rdoc", "Licence.rdoc", "Manifest.txt", "README.rdoc", "Rakefile", "data/mime-types.json", "docs/COPYING.txt", "docs/artistic.txt", "lib/mime-types.rb", "lib/mime.rb", "lib/mime/type.rb", "lib/mime/types.rb", "lib/mime/types/cache.rb", "lib/mime/types/loader.rb", "lib/mime/types/loader_path.rb", "support/apache_mime_types.rb", "support/benchmarks/load.rb", "support/convert.rb", "support/iana_registry.rb", "test/bad-fixtures/malformed", "test/fixture/json.json", "test/fixture/old-data", "test/fixture/yaml.yaml", "test/minitest_helper.rb", "test/test_mime_type.rb", "test/test_mime_types.rb", "test/test_mime_types_cache.rb", "test/test_mime_types_class.rb", "test/test_mime_types_lazy.rb", "test/test_mime_types_loader.rb"] s.homepage = "https://github.com/halostatue/mime-types/" s.licenses = ["MIT", "Artistic 2.0", "GPL-2"] s.rdoc_options = ["--main", "README.rdoc"] @@ -25,41 +25,44 @@ Gem::Specification.new do |s| s.specification_version = 4 if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then - s.add_development_dependency(%q<minitest>, ["~> 5.3"]) + s.add_development_dependency(%q<minitest>, ["~> 5.4"]) s.add_development_dependency(%q<rdoc>, ["~> 4.0"]) s.add_development_dependency(%q<hoe-doofus>, ["~> 1.0"]) s.add_development_dependency(%q<hoe-gemspec2>, ["~> 1.1"]) s.add_development_dependency(%q<hoe-git>, ["~> 1.6"]) s.add_development_dependency(%q<hoe-rubygems>, ["~> 1.0"]) s.add_development_dependency(%q<hoe-travis>, ["~> 1.2"]) + s.add_development_dependency(%q<minitest-autotest>, ["~> 1.0.b"]) s.add_development_dependency(%q<rake>, ["~> 10.0"]) s.add_development_dependency(%q<simplecov>, ["~> 0.7"]) s.add_development_dependency(%q<coveralls>, ["~> 0.7"]) - s.add_development_dependency(%q<hoe>, ["~> 3.12"]) + s.add_development_dependency(%q<hoe>, ["~> 3.13"]) else - s.add_dependency(%q<minitest>, ["~> 5.3"]) + s.add_dependency(%q<minitest>, ["~> 5.4"]) s.add_dependency(%q<rdoc>, ["~> 4.0"]) s.add_dependency(%q<hoe-doofus>, ["~> 1.0"]) s.add_dependency(%q<hoe-gemspec2>, ["~> 1.1"]) s.add_dependency(%q<hoe-git>, ["~> 1.6"]) s.add_dependency(%q<hoe-rubygems>, ["~> 1.0"]) s.add_dependency(%q<hoe-travis>, ["~> 1.2"]) + s.add_dependency(%q<minitest-autotest>, ["~> 1.0.b"]) s.add_dependency(%q<rake>, ["~> 10.0"]) s.add_dependency(%q<simplecov>, ["~> 0.7"]) s.add_dependency(%q<coveralls>, ["~> 0.7"]) - s.add_dependency(%q<hoe>, ["~> 3.12"]) + s.add_dependency(%q<hoe>, ["~> 3.13"]) end else - s.add_dependency(%q<minitest>, ["~> 5.3"]) + s.add_dependency(%q<minitest>, ["~> 5.4"]) s.add_dependency(%q<rdoc>, ["~> 4.0"]) s.add_dependency(%q<hoe-doofus>, ["~> 1.0"]) s.add_dependency(%q<hoe-gemspec2>, ["~> 1.1"]) s.add_dependency(%q<hoe-git>, ["~> 1.6"]) s.add_dependency(%q<hoe-rubygems>, ["~> 1.0"]) s.add_dependency(%q<hoe-travis>, ["~> 1.2"]) + s.add_dependency(%q<minitest-autotest>, ["~> 1.0.b"]) s.add_dependency(%q<rake>, ["~> 10.0"]) s.add_dependency(%q<simplecov>, ["~> 0.7"]) s.add_dependency(%q<coveralls>, ["~> 0.7"]) - s.add_dependency(%q<hoe>, ["~> 3.12"]) + s.add_dependency(%q<hoe>, ["~> 3.13"]) end end |