Skip to content
This repository has been archived by the owner on Dec 13, 2023. It is now read-only.

Commit

Permalink
feature: add rails 5 support
Browse files Browse the repository at this point in the history
Update gemspec and add appraisal for rails 5.
  • Loading branch information
lanej committed Feb 1, 2017
1 parent 91d5375 commit e787f2c
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 1 deletion.
5 changes: 5 additions & 0 deletions Appraisals
Expand Up @@ -10,3 +10,8 @@ end
appraise 'rails-41' do
gem 'rails', '~> 4.1.1'
end

appraise 'rails-5' do
gem 'rails', '~> 5.0'
gem 'rails-controller-testing'
end
2 changes: 1 addition & 1 deletion fastly-rails.gemspec
Expand Up @@ -14,7 +14,7 @@ Gem::Specification.new do |s|
s.files = Dir["{app,config,db,lib}/**/*", "MIT-LICENSE", "Rakefile", "README.rdoc"]
s.test_files = Dir["test/**/*"]

s.add_dependency "railties", '< 5'
s.add_dependency "railties", '> 2', '< 6'
s.add_dependency 'fastly', '~> 1.6'

s.add_runtime_dependency('mime-types', ['>= 1.16', '< 3'])
Expand Down
8 changes: 8 additions & 0 deletions gemfiles/rails_5.gemfile
@@ -0,0 +1,8 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "rails", "~> 5.0"
gem "rails-controller-testing"

gemspec :path => "../"
5 changes: 5 additions & 0 deletions test/test_helper.rb
Expand Up @@ -9,6 +9,11 @@
require 'factory_girl_rails'
require 'webmock/minitest'

begin
require 'rails-controller-testing'
rescue LoadError
end

Rails.backtrace_cleaner.remove_silencers!

#include factories
Expand Down

0 comments on commit e787f2c

Please sign in to comment.