padrino-mailer 0.14.0 → 0.14.0.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: caf652a89de8bdbbb55cdbac2b2fd44b76ee2995
4
- data.tar.gz: 19676f31ffd9dc9a71a3a262265f8d70694c1c92
3
+ metadata.gz: 41329bda808f47ea53fef6e04c9b0b4f1fdbb4cd
4
+ data.tar.gz: 40d13722d23bcf97daa74a71eff70a5b86e809e0
5
5
  SHA512:
6
- metadata.gz: 64f10d4b75dd3a893e8e4593466521f25493a88f1f6958382faeb02ddf19bf68dc69ce1899ea39a9482f81aeebeaad8bacdb07f404c1ff193a1142a3eb013342
7
- data.tar.gz: 9aa0cb6e6666cf0a5fde6b91ada8ca5a23908d2e6c0adc0d3ddec1f9ef9b752680dd03f2ee3621e60ea460c8a01aac6832572483e4fca5ea2e7a413aaa19c333
6
+ metadata.gz: 26460bf78bd6f903bf4c67c2f3eb3535135b7592ef1fa840dd19c6106c175b640b84a750d2313c225b8e3dbdd008d56c07ee7cadb11fdf854f444155cfaa8fde
7
+ data.tar.gz: 92d4c6294e4f46cd6131c4ae2ed06faebe593d1937ca4d9a7d36a6417b6dd11b17e7d4c917425cb71f771073dabe8bc34a6335b0c9b6d175f8af42fe196ada70
@@ -148,7 +148,10 @@ module Padrino
148
148
  #
149
149
  def delivery_settings
150
150
  @_delivery_setting ||= begin
151
- raise "You must setup :delivery_method, see api for more details" if RUBY_PLATFORM =~ /win32/ && !respond_to?(:delivery_method)
151
+ if Gem.win_platform? && !respond_to?(:delivery_method)
152
+ raise "To use mailers on Windows you must set a :delivery_method, see http://padrinorb.com/guides/features/padrino-mailer/#configuration"
153
+ end
154
+
152
155
  return [:sendmail, { :location => `which sendmail`.chomp }] unless respond_to?(:delivery_method)
153
156
  return [delivery_method.keys[0], delivery_method.values[0]] if delivery_method.is_a?(Hash)
154
157
  return [delivery_method, {}] if delivery_method.is_a?(Symbol)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: padrino-mailer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.0
4
+ version: 0.14.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Padrino Team
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2017-03-15 00:00:00.000000000 Z
14
+ date: 2017-03-23 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: padrino-core
@@ -19,14 +19,14 @@ dependencies:
19
19
  requirements:
20
20
  - - '='
21
21
  - !ruby/object:Gem::Version
22
- version: 0.14.0
22
+ version: 0.14.0.1
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
27
  - - '='
28
28
  - !ruby/object:Gem::Version
29
- version: 0.14.0
29
+ version: 0.14.0.1
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: mime-types
32
32
  requirement: !ruby/object:Gem::Requirement