From decec06c287af71bed057cf3c7687c606abb48d1 Mon Sep 17 00:00:00 2001 From: Daniel Rubio Date: Mon, 3 Oct 2016 06:27:26 -0400 Subject: [PATCH 1/2] Fix: Change activesupport load requirement to address humanize method error --- lib/time_difference.rb | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/time_difference.rb b/lib/time_difference.rb index 73705cf..0d59947 100644 --- a/lib/time_difference.rb +++ b/lib/time_difference.rb @@ -1,5 +1,6 @@ require 'rubygems' -require "active_support/all" +require "active_support" +require "active_support/core_ext" class TimeDifference From 997c3c83a5eb38cd6a713f736270b7e5b13fba7a Mon Sep 17 00:00:00 2001 From: Daniel Rubio Date: Mon, 3 Oct 2016 10:37:44 -0400 Subject: [PATCH 2/2] Upgrade activesupport from 3.2 to 4.2 --- Gemfile.activesupport32 | 2 +- time_difference.gemspec | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Gemfile.activesupport32 b/Gemfile.activesupport32 index 8678900..a235641 100644 --- a/Gemfile.activesupport32 +++ b/Gemfile.activesupport32 @@ -1,4 +1,4 @@ source "https://rubygems.org" gemspec -gem 'activesupport', '~> 3.2' +gem 'activesupport', '~> 4.2' diff --git a/time_difference.gemspec b/time_difference.gemspec index c9b0692..7ac5adf 100644 --- a/time_difference.gemspec +++ b/time_difference.gemspec @@ -14,7 +14,7 @@ Gem::Specification.new do |gem| gem.version = "0.4.2" gem.license = 'MIT' - gem.add_runtime_dependency('activesupport') + gem.add_runtime_dependency('activesupport', '~> 4.2' ) gem.add_development_dependency('rspec', '~> 2.13.0') gem.add_development_dependency('rake')