From 8649417aff3aeba2c9c31f2e94c0d9eee7a2d3fe Mon Sep 17 00:00:00 2001 From: Richard Taylor Date: Mon, 14 Jan 2013 13:22:24 +0000 Subject: [PATCH] added support for rails4 --- lib/sendhub.rb | 2 ++ sendhub.gemspec | 6 +++--- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/lib/sendhub.rb b/lib/sendhub.rb index 74508fb..ea2a767 100644 --- a/lib/sendhub.rb +++ b/lib/sendhub.rb @@ -20,5 +20,7 @@ module Sendhub require 'sendhub/plugins/rails2' elsif Rails.version =~ /^3./ require 'sendhub/plugins/rails3' + elsif Rails.version =~ /^4./ + require 'sendhub/plugins/rails3' end end \ No newline at end of file diff --git a/sendhub.gemspec b/sendhub.gemspec index 9d2fadb..2fcb785 100644 --- a/sendhub.gemspec +++ b/sendhub.gemspec @@ -2,11 +2,11 @@ Gem::Specification.new do |s| s.name = %q{sendhub} - s.version = "0.1.17" + s.version = "0.1.18" s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version= s.authors = ["Richard Taylor"] - s.date = %q{2012-07-11} + s.date = %q{2013-01-14} s.description = %q{sendhub is a Ruby client library for SendHub.net.} s.email = %q{moomerman@gmail.com} s.files = ["LICENSE", "README.textile","lib/sendhub.rb","lib/sendhub/ca.pem"] + Dir.glob('lib/sendhub/*.rb') + Dir.glob('lib/sendhub/plugins/*.rb') @@ -21,7 +21,7 @@ Gem::Specification.new do |s| if s.respond_to? :specification_version then current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION s.specification_version = 2 - + if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then s.add_runtime_dependency(%q, [">= 1.1.9"]) else