padrino-mailer 0.12.5 → 0.12.6

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: ebfc7dc73e50c5123e5e704ae35d2136825138f7
4
- data.tar.gz: 8caa0f4778a04fdc10d81b0196a8a4e3a1d73663
3
+ metadata.gz: 0efb8ea30f34cea58fb4d90ffe68b654cb03ae5b
4
+ data.tar.gz: 24873e6622a80523164fa3a2246803e11bd7ff5f
5
5
  SHA512:
6
- metadata.gz: 8ede6f06db20ae2646e28d962b0079304fab6b858fbb7704481c3901db8619793874fdf653c183d0989146a5ef8bb2711c6cf5e32248983ae552605ae8f9a698
7
- data.tar.gz: e94d4f408a6d23bcf6e2f3547888fef5681a93985b26add689cdf82564ab6744793fef1a0edfab8ee4ae031190ca8251df93320242c1025c9b614755c1ca05fc
6
+ metadata.gz: ffa4f387913402c4ce5710567e2f744b72c71c3da78e88edb252590637e68067bf001eab24c0fbfccf0b54b57ba418271def41b1cb0685ff6479ea51112a64c0
7
+ data.tar.gz: 6c2935948035347136feb22c133f47f0c01acc05b584ab0d2b9a5957cc2e85a47001c38fe387e6a9dad447f3f4e1abc52003702a1abd370dc51031e95d60329d
@@ -112,7 +112,7 @@ module Mail # @private
112
112
 
113
113
  def do_delivery_with_logging
114
114
  logger.debug "Sending email to: #{destinations.join(" ")}"
115
- encoded.to_lf.split("\n").each { |line| logger << (" " + line) } if logger.debug?
115
+ encoded.each_line { |line| logger << (" " + line.strip) } if logger.debug?
116
116
  do_delivery_without_logging
117
117
  end
118
118
  alias_method_chain :do_delivery, :logging if Padrino.respond_to?(:logger)
@@ -124,6 +124,13 @@ module Mail # @private
124
124
  self.class
125
125
  end
126
126
 
127
+ ##
128
+ # Sinatra almost compatibility.
129
+ #
130
+ def self.set(name, value)
131
+ self.class.instance_eval{ define_method(name) { value } unless method_defined?(:erb) }
132
+ end
133
+
127
134
  ##
128
135
  # Sets the message defined template path to the given view path.
129
136
  #
@@ -24,5 +24,6 @@ Gem::Specification.new do |s|
24
24
  s.rdoc_options = ["--charset=UTF-8"]
25
25
 
26
26
  s.add_dependency("padrino-core", Padrino.version)
27
- s.add_dependency("mail", "~> 2.5.3")
27
+ s.add_dependency("mime-types", "< 3")
28
+ s.add_dependency("mail", "~> 2.5")
28
29
  end
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.12.5
4
+ version: 0.12.6
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: 2015-03-04 00:00:00.000000000 Z
14
+ date: 2016-05-09 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: padrino-core
@@ -19,28 +19,42 @@ dependencies:
19
19
  requirements:
20
20
  - - '='
21
21
  - !ruby/object:Gem::Version
22
- version: 0.12.5
22
+ version: 0.12.6
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.12.5
29
+ version: 0.12.6
30
+ - !ruby/object:Gem::Dependency
31
+ name: mime-types
32
+ requirement: !ruby/object:Gem::Requirement
33
+ requirements:
34
+ - - "<"
35
+ - !ruby/object:Gem::Version
36
+ version: '3'
37
+ type: :runtime
38
+ prerelease: false
39
+ version_requirements: !ruby/object:Gem::Requirement
40
+ requirements:
41
+ - - "<"
42
+ - !ruby/object:Gem::Version
43
+ version: '3'
30
44
  - !ruby/object:Gem::Dependency
31
45
  name: mail
32
46
  requirement: !ruby/object:Gem::Requirement
33
47
  requirements:
34
- - - ~>
48
+ - - "~>"
35
49
  - !ruby/object:Gem::Version
36
- version: 2.5.3
50
+ version: '2.5'
37
51
  type: :runtime
38
52
  prerelease: false
39
53
  version_requirements: !ruby/object:Gem::Requirement
40
54
  requirements:
41
- - - ~>
55
+ - - "~>"
42
56
  - !ruby/object:Gem::Version
43
- version: 2.5.3
57
+ version: '2.5'
44
58
  description: Mailer system for padrino allowing easy delivery of application emails
45
59
  email: padrinorb@gmail.com
46
60
  executables: []
@@ -48,9 +62,9 @@ extensions: []
48
62
  extra_rdoc_files:
49
63
  - README.rdoc
50
64
  files:
51
- - .document
52
- - .gitignore
53
- - .yardopts
65
+ - ".document"
66
+ - ".gitignore"
67
+ - ".yardopts"
54
68
  - LICENSE.txt
55
69
  - README.rdoc
56
70
  - Rakefile
@@ -92,22 +106,22 @@ licenses:
92
106
  metadata: {}
93
107
  post_install_message:
94
108
  rdoc_options:
95
- - --charset=UTF-8
109
+ - "--charset=UTF-8"
96
110
  require_paths:
97
111
  - lib
98
112
  required_ruby_version: !ruby/object:Gem::Requirement
99
113
  requirements:
100
- - - '>='
114
+ - - ">="
101
115
  - !ruby/object:Gem::Version
102
116
  version: '0'
103
117
  required_rubygems_version: !ruby/object:Gem::Requirement
104
118
  requirements:
105
- - - '>='
119
+ - - ">="
106
120
  - !ruby/object:Gem::Version
107
121
  version: 1.3.6
108
122
  requirements: []
109
123
  rubyforge_project: padrino-mailer
110
- rubygems_version: 2.0.6
124
+ rubygems_version: 2.4.8
111
125
  signing_key:
112
126
  specification_version: 4
113
127
  summary: Mailer system for padrino