padrino-mailer 0.14.1.1 → 0.15.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,7 @@
1
1
  ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- MGEyYjlkOWIwY2UzYTRkNGIxNThhMjYxMmNiNDRkYzM1YzI1MGY0MA==
5
- data.tar.gz: !binary |-
6
- Mzk0MzNkNDE0MTkxNzczMGJhZjZmZjQzMTJjYzUxOWVlNmUxMWM2NA==
2
+ SHA256:
3
+ metadata.gz: a37c986ac374e6e52d87cfecb5346c3016159eb8e6305a2454790f5eb08c8149
4
+ data.tar.gz: 69676c945595daf4c62dc3dcfd0a41e25e591b24ec568a4397b22a1cd0806265
7
5
  SHA512:
8
- metadata.gz: !binary |-
9
- ZjMyYTkxYjM1N2ZjYmNkYzNkNzJkZWE1NDY2NDk3MTVhOTI2YmEyYTFmZDcw
10
- ODgyODRmNzliNWU1MTFjYmQ3MDc3OGJmNDQxYTNkZjZiYjU0ZmRkYThlNTRj
11
- YTU1NDI4ODYxNDdjMmIxYWRkYjVkYjNlYjU3YmQ5YTAwNjRhOGE=
12
- data.tar.gz: !binary |-
13
- YmIzYzI0NWI5NzlkMGQyODUyYWEyYmZjNjU1OTliM2Y1YjQ4YTVkOGMxN2Nm
14
- OWVhZGM3MDE2YjEzN2IxYWUyMmI5MDYwN2I0ZmIwNzQ2ZTc2MTc1MjQwMGUy
15
- ZjQ2NzZlMmIxMDA5M2Y0NDAwYzIxOWM5NjAxNjMwNDQ0ZjIyZTU=
6
+ metadata.gz: 0fbc59c4bb9201f087cfdb58b1c140e7c75a8a120c32b89cd00d2ee7ffba4bd1910fcb8d02b3d76c60f57760af5e01a2c9c6836bceaca76a322e8c66dda401b0
7
+ data.tar.gz: 0765cadc01bc7f895515ddd3afab6fc71a553544fdfd59683b1abff8ddc9af03bb26390f6bc6b8db04564e29be0dc15a2ae0b2460a446db3b70384554e117511
@@ -46,6 +46,9 @@ module Padrino
46
46
  app._padrino_mailer = Mail
47
47
  }
48
48
  app.helpers Padrino::Mailer::Helpers
49
+ unless app.respond_to?(:mailer)
50
+ app.send(:extend, Padrino::Mailer::Helpers::ClassMethods)
51
+ end
49
52
  end
50
53
  alias :included :registered
51
54
  end
@@ -5,7 +5,6 @@ require File.expand_path("../../padrino-core/lib/padrino-core/version.rb", __FIL
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "padrino-mailer"
8
- s.rubyforge_project = "padrino-mailer"
9
8
  s.authors = ["Padrino Team", "Nathan Esquenazi", "Davide D'Agostino", "Arthur Chiu"]
10
9
  s.email = "padrinorb@gmail.com"
11
10
  s.summary = "Mailer system for padrino"
@@ -24,6 +23,6 @@ Gem::Specification.new do |s|
24
23
  s.rdoc_options = ["--charset=UTF-8"]
25
24
 
26
25
  s.add_dependency("padrino-core", Padrino.version)
27
- s.add_dependency("mime-types", "< 3")
26
+ s.add_dependency("mime-types", "< 4")
28
27
  s.add_dependency("mail", "~> 2.5")
29
28
  end
data/test/test_part.rb CHANGED
@@ -33,7 +33,6 @@ describe "Part" do
33
33
  assert_equal 'other', message.parts[2].body.decoded
34
34
 
35
35
  assert_equal 'This is a foo message in mailers/sample dir', message.html_part.body.decoded.chomp
36
- assert_equal 'plain text', message.text_part.body.decoded
37
36
  end
38
37
 
39
38
  it 'should works with multipart templates' do
metadata CHANGED
@@ -1,17 +1,17 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: padrino-mailer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.14.1.1
4
+ version: 0.15.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Padrino Team
8
8
  - Nathan Esquenazi
9
9
  - Davide D'Agostino
10
10
  - Arthur Chiu
11
- autorequire:
11
+ autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2017-05-16 00:00:00.000000000 Z
14
+ date: 2021-04-25 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: padrino-core
@@ -19,46 +19,42 @@ dependencies:
19
19
  requirements:
20
20
  - - '='
21
21
  - !ruby/object:Gem::Version
22
- version: 0.14.1.1
22
+ version: 0.15.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.1.1
29
+ version: 0.15.1
30
30
  - !ruby/object:Gem::Dependency
31
31
  name: mime-types
32
32
  requirement: !ruby/object:Gem::Requirement
33
33
  requirements:
34
- - - <
34
+ - - "<"
35
35
  - !ruby/object:Gem::Version
36
- version: !binary |-
37
- Mw==
36
+ version: '4'
38
37
  type: :runtime
39
38
  prerelease: false
40
39
  version_requirements: !ruby/object:Gem::Requirement
41
40
  requirements:
42
- - - <
41
+ - - "<"
43
42
  - !ruby/object:Gem::Version
44
- version: !binary |-
45
- Mw==
43
+ version: '4'
46
44
  - !ruby/object:Gem::Dependency
47
45
  name: mail
48
46
  requirement: !ruby/object:Gem::Requirement
49
47
  requirements:
50
- - - ~>
48
+ - - "~>"
51
49
  - !ruby/object:Gem::Version
52
- version: !binary |-
53
- Mi41
50
+ version: '2.5'
54
51
  type: :runtime
55
52
  prerelease: false
56
53
  version_requirements: !ruby/object:Gem::Requirement
57
54
  requirements:
58
- - - ~>
55
+ - - "~>"
59
56
  - !ruby/object:Gem::Version
60
- version: !binary |-
61
- Mi41
57
+ version: '2.5'
62
58
  description: Mailer system for padrino allowing easy delivery of application emails
63
59
  email: padrinorb@gmail.com
64
60
  executables: []
@@ -66,9 +62,9 @@ extensions: []
66
62
  extra_rdoc_files:
67
63
  - README.rdoc
68
64
  files:
69
- - .document
70
- - .gitignore
71
- - .yardopts
65
+ - ".document"
66
+ - ".gitignore"
67
+ - ".yardopts"
72
68
  - LICENSE.txt
73
69
  - README.rdoc
74
70
  - Rakefile
@@ -111,25 +107,53 @@ homepage: http://www.padrinorb.com
111
107
  licenses:
112
108
  - MIT
113
109
  metadata: {}
114
- post_install_message:
110
+ post_install_message:
115
111
  rdoc_options:
116
- - --charset=UTF-8
112
+ - "--charset=UTF-8"
117
113
  require_paths:
118
114
  - lib
119
115
  required_ruby_version: !ruby/object:Gem::Requirement
120
116
  requirements:
121
- - - ! '>='
117
+ - - ">="
122
118
  - !ruby/object:Gem::Version
123
119
  version: '0'
124
120
  required_rubygems_version: !ruby/object:Gem::Requirement
125
121
  requirements:
126
- - - ! '>='
122
+ - - ">="
127
123
  - !ruby/object:Gem::Version
128
124
  version: 1.3.6
129
125
  requirements: []
130
- rubyforge_project: padrino-mailer
131
- rubygems_version: 2.4.3
132
- signing_key:
126
+ rubygems_version: 3.0.8
127
+ signing_key:
133
128
  specification_version: 4
134
129
  summary: Mailer system for padrino
135
- test_files: []
130
+ test_files:
131
+ - test/fixtures/basic.erb
132
+ - test/fixtures/layout.erb
133
+ - test/fixtures/padrino_app/app.rb
134
+ - test/fixtures/padrino_app/views/mailers/demo/sample_mail.erb
135
+ - test/fixtures/padrino_app/views/mailers/sample/anniversary.erb
136
+ - test/fixtures/padrino_app/views/mailers/sample/birthday.erb
137
+ - test/fixtures/padrino_app/views/mailers/sample/default_mailer_email_name.erb
138
+ - test/fixtures/padrino_app/views/mailers/sample/default_mailer_name.erb
139
+ - test/fixtures/padrino_app/views/mailers/sample/foo_message.erb
140
+ - test/fixtures/padrino_app/views/mailers/sample/helper_message.erb
141
+ - test/fixtures/sinatra_app/app.rb
142
+ - test/fixtures/sinatra_app/views/mailers/demo/sample_mail.erb
143
+ - test/fixtures/sinatra_app/views/mailers/sample/anniversary.erb
144
+ - test/fixtures/sinatra_app/views/mailers/sample/birthday.erb
145
+ - test/fixtures/sinatra_app/views/mailers/sample/foo_message.erb
146
+ - test/fixtures/views/mailers/alternate/foo.erb
147
+ - test/fixtures/views/mailers/bar.erb
148
+ - test/fixtures/views/mailers/i18n/hello.en.erb
149
+ - test/fixtures/views/mailers/i18n/hello.it.erb
150
+ - test/fixtures/views/mailers/layouts/sample.erb
151
+ - test/fixtures/views/mailers/multipart/basic.html.erb
152
+ - test/fixtures/views/mailers/multipart/basic.plain.erb
153
+ - test/fixtures/views/mailers/partial/_object.erb
154
+ - test/fixtures/views/mailers/sample/foo.erb
155
+ - test/helper.rb
156
+ - test/test_email.rb
157
+ - test/test_message.rb
158
+ - test/test_padrino_mailer.rb
159
+ - test/test_part.rb