Skip to content

Commit

Permalink
Merge pull request #51 from aws/ruby2.4-refactor
Browse files Browse the repository at this point in the history
Ruby 2.4 Refactor
  • Loading branch information
awood45 committed Jan 5, 2017
2 parents 4d23f71 + 94365fe commit cb5f10f
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 4 deletions.
8 changes: 8 additions & 0 deletions .travis.yml
Expand Up @@ -10,6 +10,9 @@ rvm:

sudo: false

env:
- OLD_RAILS=1

script: bundle exec rake

bundler_args: --without docs release repl
Expand All @@ -18,3 +21,8 @@ matrix:
include:
- rvm: 2.3.0
env: NEW_RAILS=1
- rvm: 2.4.0
env: NEW_RAILS=1
exclude:
- rvm: 2.4.0
env: OLD_RAILS=1
4 changes: 2 additions & 2 deletions Gemfile
Expand Up @@ -3,10 +3,10 @@ source 'https://rubygems.org'
# Specify your gem's dependencies in aws-record.gemspec
gemspec

gem 'rake', '< 11.0', require: false
gem 'rake', require: false

group :test do
gem 'rspec', '~> 3.0.0'
gem 'rspec', '~> 3'
gem 'cucumber'
gem 'simplecov', require: false
gem 'coveralls', require: false if RUBY_VERSION > '1.9.3'
Expand Down
2 changes: 0 additions & 2 deletions Rakefile
@@ -1,5 +1,3 @@
require "rspec/core/rake_task"

$REPO_ROOT = File.dirname(__FILE__)
$LOAD_PATH.unshift(File.join($REPO_ROOT, 'lib'))
$VERSION = ENV['VERSION'] || File.read(File.join($REPO_ROOT, 'VERSION')).strip
Expand Down
2 changes: 2 additions & 0 deletions tasks/test.rake
Expand Up @@ -11,6 +11,8 @@
# or implied. See the License for the specific language governing permissions
# and limitations under the License.

require 'rspec/core/rake_task'

desc "aws-record unit tests"
RSpec::Core::RakeTask.new('test:unit') do |t|
t.rspec_opts = "-I #{$REPO_ROOT}/lib"
Expand Down

0 comments on commit cb5f10f

Please sign in to comment.