cowtech-rails 1.9.7.1 → 1.9.7.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -8,8 +8,8 @@ module Cowtech
8
8
  module RubyOnRails
9
9
  module Models
10
10
  class EMail < ActionMailer::Base
11
- def self.setup(method = :smtp)
12
- rv = YAML.load_file(Rails.root + "config/email.yml")
11
+ def self.setup(method = :smtp, file = nil)
12
+ rv = YAML.load_file(file || (Rails.root + "config/email.yml"))
13
13
 
14
14
  ActionMailer::Base.raise_delivery_errors = true
15
15
  ActionMailer::Base.charset = "utf-8"
@@ -25,9 +25,8 @@ module Cowtech
25
25
  rv
26
26
  end
27
27
 
28
- def setup(method = :smtp)
29
- @configuration = EMail.setup(method) if !@configuration
30
- @configuration
28
+ def setup(method = :smtp, file = nil)
29
+ @configuration ||= EMail.setup(method, file)
31
30
  end
32
31
 
33
32
  def generic(*args)
@@ -10,7 +10,7 @@ module Cowtech
10
10
  MAJOR = 1
11
11
  MINOR = 9
12
12
  PATCH = 7
13
- BUILD = 1
13
+ BUILD = 2
14
14
 
15
15
  STRING = [MAJOR, MINOR, PATCH, BUILD].compact.join('.')
16
16
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cowtech-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.9.7.1
4
+ version: 1.9.7.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2011-08-13 00:00:00.000000000Z
12
+ date: 2011-08-16 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: cowtech-extensions
16
- requirement: &70098867365480 !ruby/object:Gem::Requirement
16
+ requirement: &70134493487880 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,7 +21,7 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70098867365480
24
+ version_requirements: *70134493487880
25
25
  description: A general purpose Rails utility plugin.
26
26
  email: shogun_panda@me.com
27
27
  executables: []