Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Updating gem loads and active support loads

  • Loading branch information...
commit 090e0e2746a5b240b8037a4c2501f697731e8fbb 1 parent c35ec73
@mikel authored
View
4 Gemfile
@@ -1,8 +1,8 @@
source "http://gemcutter.org"
gem "tlsmail"
-gem "treetop"
-gem "activesupport"
+gem "treetop", ">= 1.4"
+gem 'activesupport', ">= 2.3"
gem "mime-types"
only :test do
View
2  Rakefile
@@ -7,7 +7,7 @@ require 'bundler'
spec = Gem::Specification.new do |s|
s.name = "mail"
- s.version = "1.2.6"
+ s.version = "1.2.7"
s.author = "Mike Lindsaar"
s.email = "raasdnil@gmail.com"
s.homepage = "http://github.com/mikel/mail"
View
14 lib/mail.rb
@@ -3,15 +3,15 @@ module Mail # :doc:
require 'date'
- gem "treetop", ">= 1.4"
require 'treetop'
- gem 'activesupport', ">= 2.3"
require 'active_support'
- begin
- require 'active_support/hash_with_indifferent_access'
- rescue LoadError
- HashWithIndifferentAccess # Ensure this is available in any case
- end
+ require 'active_support'
+
+ # Have to handle ActiveSupport 2.3 and 3.0
+ # Following two lines make sure that HashWithIndifferentAccess is available
+ # regardless of having activesupport 3 or 2.3 loaded
+ require 'active_support/core_ext/hash/indifferent_access'
+ HashWithIndifferentAccess
require 'uri'
require 'net/smtp'
View
2  lib/mail/version.rb
@@ -3,7 +3,7 @@ module Mail
module VERSION
MAJOR = 1
MINOR = 2
- TINY = 6
+ TINY = 7
STRING = [MAJOR, MINOR, TINY].join('.')
end
View
3  spec/spec_helper.rb
@@ -10,6 +10,9 @@
end
require 'rubygems'
+gem "treetop", ">= 1.4"
+gem 'activesupport', ">= 2.3"
+
require 'ruby-debug' if RUBY_VERSION < '1.9'
require 'spec'
require 'treetop'
Please sign in to comment.
Something went wrong with that request. Please try again.