Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,4 @@ spec/reports
test/tmp
test/version_tmp
tmp
*.gemfile.lock
20 changes: 16 additions & 4 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,25 @@
language: ruby
sudo: false

cache:
bundler: true

rvm:
- 2.2
- 2.3
- 2.4
- jruby-19mode # JRuby in 1.9 mode
# uncomment this line if your project needs to run something other than `rake`:
script: bundle exec rspec spec

script: bundle exec rake

gemfile:
- Gemfile.activesupport51
- gemfiles/activesupport_5.1.gemfile
- gemfiles/activesupport_5.2.gemfile

matrix:
fast_finish: true
allow_failures:
- rvm: jruby-19mode

before_install:
- gem install bundler
- gem update --system
7 changes: 7 additions & 0 deletions Appraisals
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
appraise "activesupport-5.1" do
gem "activesupport", "~> 5.1.0"
end

appraise "activesupport-5.2" do
gem "activesupport", "~> 5.2.0"
end
4 changes: 0 additions & 4 deletions Gemfile.activesupport51

This file was deleted.

5 changes: 4 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,7 @@ require "bundler/gem_tasks"
require 'rspec/core/rake_task'

task :default => :spec
RSpec::Core::RakeTask.new('spec')
if !ENV["APPRAISAL_INITIALIZED"] && !ENV["TRAVIS"]
task :default => :appraisal
end
RSpec::Core::RakeTask.new('spec')
7 changes: 7 additions & 0 deletions gemfiles/activesupport_5.1.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "activesupport", "~> 5.1.0"

gemspec path: "../"
54 changes: 54 additions & 0 deletions gemfiles/activesupport_5.1.gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
PATH
remote: ..
specs:
time_difference (0.7.0)
activesupport

GEM
remote: https://rubygems.org/
specs:
activesupport (5.1.5)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (~> 0.7)
minitest (~> 5.1)
tzinfo (~> 1.1)
appraisal (2.2.0)
bundler
rake
thor (>= 0.14.0)
concurrent-ruby (1.0.5)
diff-lcs (1.3)
i18n (0.9.5)
concurrent-ruby (~> 1.0)
minitest (5.11.3)
rake (12.3.1)
rspec (3.7.0)
rspec-core (~> 3.7.0)
rspec-expectations (~> 3.7.0)
rspec-mocks (~> 3.7.0)
rspec-core (3.7.1)
rspec-support (~> 3.7.0)
rspec-expectations (3.7.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.7.0)
rspec-mocks (3.7.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.7.0)
rspec-support (3.7.1)
thor (0.20.0)
thread_safe (0.3.6)
tzinfo (1.2.5)
thread_safe (~> 0.1)

PLATFORMS
ruby

DEPENDENCIES
activesupport (~> 5.1.0)
appraisal
rake
rspec (~> 3.7.0)
time_difference!

BUNDLED WITH
1.16.1
7 changes: 7 additions & 0 deletions gemfiles/activesupport_5.2.gemfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
# This file was generated by Appraisal

source "https://rubygems.org"

gem "activesupport", "~> 5.2.0"

gemspec path: "../"
54 changes: 54 additions & 0 deletions gemfiles/activesupport_5.2.gemfile.lock
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
PATH
remote: ..
specs:
time_difference (0.7.0)
activesupport

GEM
remote: https://rubygems.org/
specs:
activesupport (5.2.0)
concurrent-ruby (~> 1.0, >= 1.0.2)
i18n (>= 0.7, < 2)
minitest (~> 5.1)
tzinfo (~> 1.1)
appraisal (2.2.0)
bundler
rake
thor (>= 0.14.0)
concurrent-ruby (1.0.5)
diff-lcs (1.3)
i18n (1.0.1)
concurrent-ruby (~> 1.0)
minitest (5.11.3)
rake (12.3.1)
rspec (3.7.0)
rspec-core (~> 3.7.0)
rspec-expectations (~> 3.7.0)
rspec-mocks (~> 3.7.0)
rspec-core (3.7.1)
rspec-support (~> 3.7.0)
rspec-expectations (3.7.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.7.0)
rspec-mocks (3.7.0)
diff-lcs (>= 1.2.0, < 2.0)
rspec-support (~> 3.7.0)
rspec-support (3.7.1)
thor (0.20.0)
thread_safe (0.3.6)
tzinfo (1.2.5)
thread_safe (~> 0.1)

PLATFORMS
ruby

DEPENDENCIES
activesupport (~> 5.2.0)
appraisal
rake
rspec (~> 3.7.0)
time_difference!

BUNDLED WITH
1.16.1
5 changes: 3 additions & 2 deletions time_difference.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,9 @@ Gem::Specification.new do |gem|
gem.version = "0.7.0"
gem.license = 'MIT'

gem.add_runtime_dependency('activesupport', '~> 5.1')
gem.add_runtime_dependency('activesupport')

gem.add_development_dependency('appraisal')
gem.add_development_dependency('rspec', '~> 3.7.0')
gem.add_development_dependency('rake')

end