Permalink
Browse files

Run tests against various mime-types using Appraisal

Run tests against all mime-types version with

    appraisal rake

or

    rake appraisal
  • Loading branch information...
1 parent d6e70f1 commit f734d21349bbfda7a1b0ab6dd7f6150667f16225 @bf4 bf4 committed May 26, 2014
View
1 .gitignore
@@ -18,3 +18,4 @@
/.idea
/.rbenv-vars
/.ruby-version
+gemfiles/*.lock
View
27 Appraisals
@@ -0,0 +1,27 @@
+appraise "mime-types-1.16" do
+ gem "mime-types", "~> 1.16"
+end
+
+appraise "mime-types-2.0" do
+ gem "mime-types", "~> 2.0.0"
+end
+
+appraise "mime-types-2.1" do
+ gem "mime-types", "~> 2.1.0"
+end
+
+appraise "mime-types-2.2" do
+ gem "mime-types", "~> 2.2.0"
+end
+
+appraise "mime-types-2.3" do
+ gem "mime-types", "~> 2.3.0"
+end
+
+appraise "mime-types-2.latest" do
+ gem "mime-types", "~> 2.3"
+end
+
+appraise "mime-types-edge" do
+ gem "mime-types", :github => "halostatue/mime-types"
+end
View
4 Gemfile
@@ -5,6 +5,10 @@ gemspec
gem "tlsmail", "~> 0.0.1" if RUBY_VERSION <= "1.8.6"
gem "jruby-openssl", :platforms => :jruby
+group :development, :test do
+ gem "appraisal", "~> 1.0"
+end
+
# For gems not required to run tests
group :local_development, :test do
gem "ruby-debug", :platforms => :mri_18
View
6 Rakefile
@@ -19,5 +19,11 @@ RSpec::Core::RakeTask.new(:spec) do |t|
t.rspec_opts = %w(--backtrace --color)
end
+begin
+ require "appraisal"
+rescue LoadError
+ warn "Appraisal is only available in test/development"
+end
+
# load custom rake tasks
Dir["#{File.dirname(__FILE__)}/tasks/**/*.rake"].sort.each { |ext| load ext }
View
16 gemfiles/mime_types_1.16.gemfile
@@ -0,0 +1,16 @@
+# This file was generated by Appraisal
+
+source "https://rubygems.org"
+
+gem "jruby-openssl", :platforms => :jruby
+gem "mime-types", "~> 1.16"
+
+group :development, :test do
+ gem "appraisal", "~> 1.0"
+end
+
+group :local_development, :test do
+ gem "ruby-debug", :platforms => :mri_18
+end
+
+gemspec :path => "../"
View
16 gemfiles/mime_types_2.0.gemfile
@@ -0,0 +1,16 @@
+# This file was generated by Appraisal
+
+source "https://rubygems.org"
+
+gem "jruby-openssl", :platforms => :jruby
+gem "mime-types", "~> 2.0.0"
+
+group :development, :test do
+ gem "appraisal", "~> 1.0"
+end
+
+group :local_development, :test do
+ gem "ruby-debug", :platforms => :mri_18
+end
+
+gemspec :path => "../"
View
16 gemfiles/mime_types_2.1.gemfile
@@ -0,0 +1,16 @@
+# This file was generated by Appraisal
+
+source "https://rubygems.org"
+
+gem "jruby-openssl", :platforms => :jruby
+gem "mime-types", "~> 2.1.0"
+
+group :development, :test do
+ gem "appraisal", "~> 1.0"
+end
+
+group :local_development, :test do
+ gem "ruby-debug", :platforms => :mri_18
+end
+
+gemspec :path => "../"
View
16 gemfiles/mime_types_2.2.gemfile
@@ -0,0 +1,16 @@
+# This file was generated by Appraisal
+
+source "https://rubygems.org"
+
+gem "jruby-openssl", :platforms => :jruby
+gem "mime-types", "~> 2.2.0"
+
+group :development, :test do
+ gem "appraisal", "~> 1.0"
+end
+
+group :local_development, :test do
+ gem "ruby-debug", :platforms => :mri_18
+end
+
+gemspec :path => "../"
View
16 gemfiles/mime_types_2.3.gemfile
@@ -0,0 +1,16 @@
+# This file was generated by Appraisal
+
+source "https://rubygems.org"
+
+gem "jruby-openssl", :platforms => :jruby
+gem "mime-types", "~> 2.3.0"
+
+group :development, :test do
+ gem "appraisal", "~> 1.0"
+end
+
+group :local_development, :test do
+ gem "ruby-debug", :platforms => :mri_18
+end
+
+gemspec :path => "../"
View
16 gemfiles/mime_types_2.latest.gemfile
@@ -0,0 +1,16 @@
+# This file was generated by Appraisal
+
+source "https://rubygems.org"
+
+gem "jruby-openssl", :platforms => :jruby
+gem "mime-types", "~> 2.3"
+
+group :development, :test do
+ gem "appraisal", "~> 1.0"
+end
+
+group :local_development, :test do
+ gem "ruby-debug", :platforms => :mri_18
+end
+
+gemspec :path => "../"
View
16 gemfiles/mime_types_edge.gemfile
@@ -0,0 +1,16 @@
+# This file was generated by Appraisal
+
+source "https://rubygems.org"
+
+gem "jruby-openssl", :platforms => :jruby
+gem "mime-types", :github => "halostatue/mime-types"
+
+group :development, :test do
+ gem "appraisal", "~> 1.0"
+end
+
+group :local_development, :test do
+ gem "ruby-debug", :platforms => :mri_18
+end
+
+gemspec :path => "../"

0 comments on commit f734d21

Please sign in to comment.