Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Switch from vendored 1.4.3 fork to gem dep on 1.4.5

  • Loading branch information...
commit 2bfa04ae3f474a6eb12b9a78e82ad60b5ab86369 1 parent 9ef1889
Jeremy Kemper jeremy authored
3  .gitmodules
View
@@ -1,3 +0,0 @@
-[submodule "lib/mail/vendor/treetop-1.4.4"]
- path = lib/mail/vendor/treetop-1.4.4
- url = git://github.com/mikel/treetop.git
1  Gemfile
View
@@ -3,6 +3,7 @@ source 'http://rubygems.org'
gem "activesupport", ">= 2.3.6.pre"
gem "tlsmail" if RUBY_VERSION <= '1.8.6'
gem "mime-types"
+gem "treetop", ">= 1.4.5"
group :test do
gem "rcov"
1  Rakefile
View
@@ -21,6 +21,7 @@ spec = Gem::Specification.new do |s|
s.add_dependency('activesupport', ">= 2.3.4")
s.add_dependency('mime-types')
+ s.add_dependency('treetop', '>= 1.4.5')
s.require_path = 'lib'
s.files = %w(README.rdoc Rakefile TODO.rdoc) + Dir.glob("lib/**/*")
1  lib/mail.rb
View
@@ -50,7 +50,6 @@ module Mail # :doc:
require 'mail/envelope'
- require 'mail/vendor/treetop'
parsers = %w[ rfc2822_obsolete rfc2822 address_lists phrase_lists
date_time received message_ids envelope_from rfc2045
mime_version content_type content_disposition
1  lib/mail/vendor/treetop-1.4.4
@@ -1 +0,0 @@
-Subproject commit b8f5e4861cad91b6cb88c1754e17a35b9326e51d
2  lib/mail/vendor/treetop.rb
View
@@ -1,2 +0,0 @@
-# Have to vendor treetop to avoid loading polyglot
-$:.unshift "#{File.dirname(__FILE__)}/treetop-1.4.4/lib"
8 lib/tasks/treetop.rake
View
@@ -2,9 +2,9 @@ namespace :treetop do
desc "Pre-generate all the .treetop files into .rb files"
task :generate do
- Dir[File.join(File.dirname(__FILE__), '..', 'mail', 'parsers', '*.treetop')].each do |filename|
- `lib/mail/vendor/treetop-1.4.3/bin/tt #{filename}`
+ Dir.glob(File.expand_path('../../mail/parsers/*.treetop', __FILE__)).each do |filename|
+ `bundle exec tt #{filename}`
end
end
-
-end
+
+end
1  spec/mail/parsers/address_lists_parser_spec.rb
View
@@ -1,7 +1,6 @@
# encoding: utf-8
require 'spec_helper'
-require 'mail/vendor/treetop'
require 'treetop/compiler'
Treetop.load(File.join(MAIL_ROOT, 'lib/mail/parsers/rfc2822_obsolete'))
Treetop.load(File.join(MAIL_ROOT, 'lib/mail/parsers/rfc2822'))
Please sign in to comment.
Something went wrong with that request. Please try again.