winton-active_wrapper 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- data/README.markdown +1 -1
- data/active_wrapper.gemspec +2 -2
- data/gemspec.rb +1 -1
- data/lib/active_wrapper/mail.rb +13 -10
- metadata +4 -3
data/README.markdown
CHANGED
data/active_wrapper.gemspec
CHANGED
@@ -2,11 +2,11 @@
|
|
2
2
|
|
3
3
|
Gem::Specification.new do |s|
|
4
4
|
s.name = %q{active_wrapper}
|
5
|
-
s.version = "0.1.
|
5
|
+
s.version = "0.1.6"
|
6
6
|
|
7
7
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
8
8
|
s.authors = ["Winton Welsh"]
|
9
|
-
s.date = %q{2009-07-
|
9
|
+
s.date = %q{2009-07-28}
|
10
10
|
s.email = %q{mail@wintoni.us}
|
11
11
|
s.extra_rdoc_files = ["README.markdown"]
|
12
12
|
s.files = ["active_wrapper.gemspec", "gemspec.rb", "lib", "lib/active_wrapper", "lib/active_wrapper/db.rb", "lib/active_wrapper/log.rb", "lib/active_wrapper/mail.rb", "lib/active_wrapper/tasks.rb", "lib/active_wrapper.rb", "MIT-LICENSE", "Rakefile", "README.markdown", "resources", "resources/migration.template", "spec", "spec/spec.opts", "spec/spec_helper.rb"]
|
data/gemspec.rb
CHANGED
data/lib/active_wrapper/mail.rb
CHANGED
@@ -11,18 +11,21 @@ module ActiveWrapper
|
|
11
11
|
|
12
12
|
if @env == 'test'
|
13
13
|
ActionMailer::Base.delivery_method = :test
|
14
|
-
|
15
|
-
@config =
|
16
|
-
|
17
|
-
|
18
|
-
@config =
|
19
|
-
@config
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
ActionMailer::Base.smtp_settings = @config[:smtp]
|
14
|
+
else
|
15
|
+
@config[:smtp] = options[:smtp]
|
16
|
+
@config[:imap] = options[:imap]
|
17
|
+
if File.exists?(path)
|
18
|
+
@config = YAML::load(File.open(path))
|
19
|
+
if @config && @config = @config[@env]
|
20
|
+
@config = @config.to_options
|
21
|
+
@config[:imap] = @config[:imap].to_options unless @config[:imap]
|
22
|
+
@config[:smtp] = @config[:smtp].to_options unless @config[:smtp]
|
24
23
|
end
|
25
24
|
end
|
25
|
+
if @config[:smtp]
|
26
|
+
ActionMailer::Base.delivery_method = :smtp
|
27
|
+
ActionMailer::Base.smtp_settings = @config[:smtp]
|
28
|
+
end
|
26
29
|
end
|
27
30
|
end
|
28
31
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: winton-active_wrapper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Winton Welsh
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-07-
|
12
|
+
date: 2009-07-28 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -60,6 +60,7 @@ files:
|
|
60
60
|
- spec/spec_helper.rb
|
61
61
|
has_rdoc: false
|
62
62
|
homepage: http://github.com/winton/active_wrapper
|
63
|
+
licenses:
|
63
64
|
post_install_message:
|
64
65
|
rdoc_options: []
|
65
66
|
|
@@ -80,7 +81,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
80
81
|
requirements: []
|
81
82
|
|
82
83
|
rubyforge_project:
|
83
|
-
rubygems_version: 1.
|
84
|
+
rubygems_version: 1.3.5
|
84
85
|
signing_key:
|
85
86
|
specification_version: 2
|
86
87
|
summary: Wraps ActiveRecord and Logger for use in non-Rails environments
|