From cd62f5d3474d1e96a92445cf99fae0777dccc7ce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mislav=20Marohni=C4=87?= Date: Thu, 9 Oct 2014 18:48:47 +0200 Subject: [PATCH] Test with Faraday 0.8 additionally in CI --- Appraisals | 3 + gemfiles/faraday_old.gemfile | 29 ++++++++ gemfiles/faraday_old.gemfile.lock | 118 ++++++++++++++++++++++++++++++ script/ci.sh | 5 ++ 4 files changed, 155 insertions(+) create mode 100644 gemfiles/faraday_old.gemfile create mode 100644 gemfiles/faraday_old.gemfile.lock diff --git a/Appraisals b/Appraisals index 3249f3c9..21d57659 100644 --- a/Appraisals +++ b/Appraisals @@ -3,3 +3,6 @@ appraise "typhoeus-old" do gem 'webmock', '1.8.11' end +appraise "faraday-old" do + gem 'faraday', '~> 0.8.8' +end diff --git a/gemfiles/faraday_old.gemfile b/gemfiles/faraday_old.gemfile new file mode 100644 index 00000000..85729fae --- /dev/null +++ b/gemfiles/faraday_old.gemfile @@ -0,0 +1,29 @@ +# This file was generated by Appraisal + +source "https://rubygems.org" + +gem "jruby-openssl", :platforms=>:jruby +gem "yard" +gem "rake", ">= 0.9.2" +gem "cucumber", ">= 1.1.4" +gem "aruba", ">= 0.5" +gem "rspec", "~> 3.1" +gem "fakeweb", ">= 1.3.0" +gem "webmock", ">= 1.14" +gem "httpclient", ">= 2.2" +gem "excon", ">= 0.22" +gem "timecop", "0.6.1" +gem "rack", ">= 1.3.6" +gem "sinatra", ">= 1.3.2" +gem "multi_json", ">= 1.0.3" +gem "json", ">= 1.6.5" +gem "simplecov", ">= 0.5.3" +gem "redis", ">= 2.2.2" +gem "typhoeus", ">= 0.6" +gem "patron", ">= 0.4.15", :platform=>:ruby +gem "em-http-request", ">= 1.0.2", :platform=>:ruby +gem "curb", ">= 0.8.0", :platform=>:ruby +gem "yajl-ruby", ">= 1.1.0", :platform=>:ruby +gem "faraday", "~> 0.8.8" + +gemspec :path=>"../" \ No newline at end of file diff --git a/gemfiles/faraday_old.gemfile.lock b/gemfiles/faraday_old.gemfile.lock new file mode 100644 index 00000000..6cf63c6a --- /dev/null +++ b/gemfiles/faraday_old.gemfile.lock @@ -0,0 +1,118 @@ +PATH + remote: ../ + specs: + vcr (2.9.3) + +GEM + remote: https://rubygems.org/ + specs: + addressable (2.3.6) + aruba (0.6.1) + childprocess (>= 0.3.6) + cucumber (>= 1.1.1) + rspec-expectations (>= 2.7.0) + builder (3.2.2) + childprocess (0.5.5) + ffi (~> 1.0, >= 1.0.11) + cookiejar (0.3.2) + crack (0.4.2) + safe_yaml (~> 1.0.0) + cucumber (1.3.17) + builder (>= 2.1.2) + diff-lcs (>= 1.1.3) + gherkin (~> 2.12) + multi_json (>= 1.7.5, < 2.0) + multi_test (>= 0.1.1) + curb (0.8.6) + diff-lcs (1.2.5) + docile (1.1.5) + em-http-request (1.1.2) + addressable (>= 2.3.4) + cookiejar + em-socksify (>= 0.3) + eventmachine (>= 1.0.3) + http_parser.rb (>= 0.6.0) + em-socksify (0.3.0) + eventmachine (>= 1.0.0.beta.4) + ethon (0.7.1) + ffi (>= 1.3.0) + eventmachine (1.0.3) + excon (0.40.0) + fakeweb (1.3.0) + faraday (0.8.9) + multipart-post (~> 1.2.0) + ffi (1.9.5) + gherkin (2.12.2) + multi_json (~> 1.3) + http_parser.rb (0.6.0) + httpclient (2.4.0) + json (1.8.1) + multi_json (1.10.1) + multi_test (0.1.1) + multipart-post (1.2.0) + patron (0.4.18) + rack (1.5.2) + rack-protection (1.5.3) + rack + rake (10.3.2) + redis (3.1.0) + rspec (3.1.0) + rspec-core (~> 3.1.0) + rspec-expectations (~> 3.1.0) + rspec-mocks (~> 3.1.0) + rspec-core (3.1.6) + rspec-support (~> 3.1.0) + rspec-expectations (3.1.2) + diff-lcs (>= 1.2.0, < 2.0) + rspec-support (~> 3.1.0) + rspec-mocks (3.1.3) + rspec-support (~> 3.1.0) + rspec-support (3.1.2) + safe_yaml (1.0.4) + simplecov (0.9.1) + docile (~> 1.1.0) + multi_json (~> 1.0) + simplecov-html (~> 0.8.0) + simplecov-html (0.8.0) + sinatra (1.4.5) + rack (~> 1.4) + rack-protection (~> 1.4) + tilt (~> 1.3, >= 1.3.4) + tilt (1.4.1) + timecop (0.6.1) + typhoeus (0.6.9) + ethon (>= 0.7.1) + webmock (1.19.0) + addressable (>= 2.3.6) + crack (>= 0.3.2) + yajl-ruby (1.2.1) + yard (0.8.7.4) + +PLATFORMS + ruby + +DEPENDENCIES + aruba (>= 0.5) + cucumber (>= 1.1.4) + curb (>= 0.8.0) + em-http-request (>= 1.0.2) + excon (>= 0.22) + fakeweb (>= 1.3.0) + faraday (~> 0.8.8) + httpclient (>= 2.2) + jruby-openssl + json (>= 1.6.5) + multi_json (>= 1.0.3) + patron (>= 0.4.15) + rack (>= 1.3.6) + rake (>= 0.9.2) + redis (>= 2.2.2) + rspec (~> 3.1) + simplecov (>= 0.5.3) + sinatra (>= 1.3.2) + timecop (= 0.6.1) + typhoeus (>= 0.6) + vcr! + webmock (>= 1.14) + yajl-ruby (>= 1.1.0) + yard diff --git a/script/ci.sh b/script/ci.sh index ab2e901d..5f59b65c 100755 --- a/script/ci.sh +++ b/script/ci.sh @@ -12,6 +12,11 @@ echo "-------- Running Typhoeus 0.4 Specs ---------" bundle install --gemfile=gemfiles/typhoeus_old.gemfile --without extras BUNDLE_GEMFILE=gemfiles/typhoeus_old.gemfile bundle exec rspec spec/vcr/library_hooks/typhoeus_0.4_spec.rb --format progress --backtrace +echo "-------- Running Faraday 0.8 Specs ---------" +bundle install --gemfile=gemfiles/faraday_old.gemfile --without extras +BUNDLE_GEMFILE=gemfiles/faraday_old.gemfile bundle exec rspec spec/vcr/middleware/faraday_spec.rb spec/vcr/library_hooks/faraday_spec.rb --format progress --backtrace +BUNDLE_GEMFILE=gemfiles/faraday_old.gemfile bundle exec cucumber features/middleware/faraday.feature --format progress --backtrace + # Setup vendored rspec-1 bundle exec rake submodules