merb-mailer 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -1,46 +1,9 @@
1
1
  require 'rubygems'
2
2
  require 'rake'
3
3
 
4
- # Assume a typical dev checkout to fetch the current merb-core version
5
- require File.expand_path('../../merb-core/lib/merb-core/version', __FILE__)
6
-
7
4
  # Load this library's version information
8
5
  require File.expand_path('../lib/merb-mailer/version', __FILE__)
9
6
 
10
- begin
11
-
12
- gem 'jeweler', '~> 1.4'
13
- require 'jeweler'
14
-
15
- Jeweler::Tasks.new do |gemspec|
16
-
17
- gemspec.version = Merb::Mailer::VERSION.dup
18
-
19
- gemspec.name = "merb-mailer"
20
- gemspec.description = "Merb plugin for mailer support"
21
- gemspec.summary = "Merb plugin that provides mailer functionality to Merb"
22
-
23
- gemspec.authors = [ "Yehuda Katz" ]
24
- gemspec.email = "ykatz@engineyard.com"
25
- gemspec.homepage = "http://merbivore.com/"
26
-
27
- gemspec.files = %w(Generators LICENSE Rakefile README.textile TODO) + Dir['{lib,spec}/**/*']
28
-
29
- # Runtime dependencies
30
- gemspec.add_dependency 'merb-core', "~> #{Merb::VERSION}"
31
- gemspec.add_dependency('mailfactory', '>= 1.2.3')
32
-
33
- # Development dependencies
34
- gemspec.add_development_dependency 'rspec', '>= 1.2.9'
35
-
36
- end
37
-
38
- Jeweler::GemcutterTasks.new
39
-
40
- rescue LoadError
41
- puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
42
- end
43
-
44
7
  require 'spec/rake/spectask'
45
8
  Spec::Rake::SpecTask.new(:spec) do |spec|
46
9
  spec.spec_opts << '--options' << 'spec/spec.opts' if File.exists?('spec/spec.opts')
@@ -66,7 +66,8 @@ module Merb
66
66
  end
67
67
  end
68
68
  smtp.start(config[:domain], config[:user], config[:pass], config[:auth]) { |smtp|
69
- to = @mail.to.is_a?(String) ? @mail.to.split(/[,;]/) : @mail.to
69
+ @mail.to = [@mail.to] unless @mail.to.is_a?(Array)
70
+ to = @mail.to.inject([]) {|r, e| r + e.split(/[,;]/) }.map {|e| e.strip}
70
71
  smtp.send_message(@mail.to_s, @mail.from.first, to)
71
72
  }
72
73
  end
@@ -1,5 +1,5 @@
1
1
  module Merb
2
2
  module Mailer
3
- VERSION = '1.1.0'.freeze
3
+ VERSION = '1.1.1'.freeze
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: merb-mailer
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 17
4
5
  prerelease: false
5
6
  segments:
6
7
  - 1
7
8
  - 1
8
- - 0
9
- version: 1.1.0
9
+ - 1
10
+ version: 1.1.1
10
11
  platform: ruby
11
12
  authors:
12
13
  - Yehuda Katz
@@ -14,30 +15,34 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2010-03-22 00:00:00 +00:00
18
+ date: 2010-06-15 00:00:00 +01:00
18
19
  default_executable:
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency
21
22
  name: merb-core
22
23
  prerelease: false
23
24
  requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
24
26
  requirements:
25
27
  - - ~>
26
28
  - !ruby/object:Gem::Version
29
+ hash: 17
27
30
  segments:
28
31
  - 1
29
32
  - 1
30
- - 0
31
- version: 1.1.0
33
+ - 1
34
+ version: 1.1.1
32
35
  type: :runtime
33
36
  version_requirements: *id001
34
37
  - !ruby/object:Gem::Dependency
35
38
  name: mailfactory
36
39
  prerelease: false
37
40
  requirement: &id002 !ruby/object:Gem::Requirement
41
+ none: false
38
42
  requirements:
39
43
  - - ">="
40
44
  - !ruby/object:Gem::Version
45
+ hash: 25
41
46
  segments:
42
47
  - 1
43
48
  - 2
@@ -49,9 +54,11 @@ dependencies:
49
54
  name: rspec
50
55
  prerelease: false
51
56
  requirement: &id003 !ruby/object:Gem::Requirement
57
+ none: false
52
58
  requirements:
53
59
  - - ">="
54
60
  - !ruby/object:Gem::Version
61
+ hash: 13
55
62
  segments:
56
63
  - 1
57
64
  - 2
@@ -66,23 +73,21 @@ executables: []
66
73
  extensions: []
67
74
 
68
75
  extra_rdoc_files:
76
+ - README.textile
69
77
  - LICENSE
70
78
  - TODO
71
79
  files:
72
80
  - Generators
73
- - LICENSE
74
- - README.textile
75
81
  - Rakefile
76
- - TODO
77
82
  - lib/generators/mailer_generator.rb
78
83
  - lib/generators/templates/mailer/app/mailers/%file_name%_mailer.rb
79
84
  - lib/generators/templates/mailer/app/mailers/views/%file_name%_mailer/notify_on_event.text.erb
80
85
  - lib/generators/templates/mailer/spec/mailers/%file_name%_mailer_spec.rb
81
- - lib/merb-mailer.rb
82
86
  - lib/merb-mailer/mail_controller.rb
83
87
  - lib/merb-mailer/mailer.rb
84
88
  - lib/merb-mailer/mailer_mixin.rb
85
89
  - lib/merb-mailer/version.rb
90
+ - lib/merb-mailer.rb
86
91
  - spec/mail_controller_spec.rb
87
92
  - spec/mailer_generator_spec.rb
88
93
  - spec/mailer_spec.rb
@@ -100,33 +105,40 @@ files:
100
105
  - spec/mailers/views/test_mail_controller/third.html.erb
101
106
  - spec/spec.opts
102
107
  - spec/spec_helper.rb
108
+ - README.textile
109
+ - LICENSE
110
+ - TODO
103
111
  has_rdoc: true
104
112
  homepage: http://merbivore.com/
105
113
  licenses: []
106
114
 
107
115
  post_install_message:
108
- rdoc_options:
109
- - --charset=UTF-8
116
+ rdoc_options: []
117
+
110
118
  require_paths:
111
119
  - lib
112
120
  required_ruby_version: !ruby/object:Gem::Requirement
121
+ none: false
113
122
  requirements:
114
123
  - - ">="
115
124
  - !ruby/object:Gem::Version
125
+ hash: 3
116
126
  segments:
117
127
  - 0
118
128
  version: "0"
119
129
  required_rubygems_version: !ruby/object:Gem::Requirement
130
+ none: false
120
131
  requirements:
121
132
  - - ">="
122
133
  - !ruby/object:Gem::Version
134
+ hash: 3
123
135
  segments:
124
136
  - 0
125
137
  version: "0"
126
138
  requirements: []
127
139
 
128
140
  rubyforge_project:
129
- rubygems_version: 1.3.6
141
+ rubygems_version: 1.3.7
130
142
  signing_key:
131
143
  specification_version: 3
132
144
  summary: Merb plugin that provides mailer functionality to Merb